CN112269086B - Charging cable identification method, device, charging cable and readable storage medium - Google Patents
Charging cable identification method, device, charging cable and readable storage medium Download PDFInfo
- Publication number
- CN112269086B CN112269086B CN202011148232.3A CN202011148232A CN112269086B CN 112269086 B CN112269086 B CN 112269086B CN 202011148232 A CN202011148232 A CN 202011148232A CN 112269086 B CN112269086 B CN 112269086B
- Authority
- CN
- China
- Prior art keywords
- communication port
- charging cable
- cable identification
- target
- charging
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 71
- 238000004891 communication Methods 0.000 claims abstract description 361
- 238000012544 monitoring process Methods 0.000 claims abstract description 18
- 238000010586 diagram Methods 0.000 description 7
- 238000004519 manufacturing process Methods 0.000 description 7
- 101001128814 Pandinus imperator Pandinin-1 Proteins 0.000 description 6
- 101001024685 Pandinus imperator Pandinin-2 Proteins 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 3
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 3
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 2
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 2
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
Abstract
Description
技术领域Technical Field
本申请实施例涉及通信技术领域,尤其涉及一种充电线缆的识别方法、装置、充电线缆及可读存储介质。The embodiments of the present application relate to the field of communication technology, and in particular, to a method and device for identifying a charging cable, a charging cable, and a readable storage medium.
背景技术Background Art
随着充电技术的发展,越来越多的电子设备支持快速充电。With the development of charging technology, more and more electronic devices support fast charging.
在相关技术中,快速充电的电流通常较大,为了保证充电过程中的充电安全,充电器或充电设备在进行快充之前,需要先检测充电线缆的过流能力。对于充电电流大于3A的快充协议,通常采用E-Mark(electronically marked电子标记)芯片方案来获取充电线缆的过流能力。In the related art, the current of fast charging is usually large. In order to ensure charging safety during the charging process, the charger or charging device needs to detect the overcurrent capacity of the charging cable before fast charging. For fast charging protocols with charging current greater than 3A, the E-Mark (electronically marked) chip solution is usually used to obtain the overcurrent capacity of the charging cable.
然而,由于E-Mark芯片只能与一方(充电器或充电设备)进行通信,因此,充电线缆兼的容性较差,而采用双E-Mark芯片改善兼容性的方案的成本较高。However, since the E-Mark chip can only communicate with one party (charger or charging device), the compatibility of the charging cable is poor, and the cost of using dual E-Mark chips to improve compatibility is high.
发明内容Summary of the invention
本申请实施例的目的是提供一种充电线缆的识别方法、装置、充电线缆及可读存储介质,能够解决充电线缆兼容性差,成本高的问题。The purpose of the embodiments of the present application is to provide a charging cable identification method, device, charging cable and readable storage medium, which can solve the problems of poor compatibility and high cost of charging cables.
为了解决上述技术问题,本申请是这样实现的:In order to solve the above technical problems, this application is implemented as follows:
第一方面,本申请实施例提供一种充电线缆识别方法,应用于充电线缆识别装置,该装置包括:第一通信端口和第二通信端口,该方法包括:在充电线缆识别装置处于监听模式的情况下,若第一目标通信端口接收到充电线缆识别请求,则将第二目标通信端口由数据接收状态切换为数据发送状态,并通过第二目标通信端口发送充电线缆识别信息;其中,第一目标通信端口为:第一通信端口和第二通信端口中的一个;第二目标通信端口为:第一通信端口和第二通信端口中的一个,且所述第二目标通信端口与第一目标通信端口不同的通信端口;在监听模式下第一通信端口和第二通信端口均处于数据接收状态。In a first aspect, an embodiment of the present application provides a charging cable identification method, which is applied to a charging cable identification device, the device comprising: a first communication port and a second communication port, the method comprising: when the charging cable identification device is in a listening mode, if the first target communication port receives a charging cable identification request, the second target communication port is switched from a data receiving state to a data sending state, and charging cable identification information is sent through the second target communication port; wherein the first target communication port is: one of the first communication port and the second communication port; the second target communication port is: one of the first communication port and the second communication port, and the second target communication port is a communication port different from the first target communication port; in the listening mode, the first communication port and the second communication port are both in a data receiving state.
第二方面,本申请实施例还提供了一种充电线缆识别装置,该装置包括:接收模块和发送模块,第一通信端口和第二通信端口;接收模块,用于在充电线缆识别装置处于监听模式的情况下,若第一目标通信端口接收到充电线缆识别请求,则将第二目标通信端口由数据接收状态切换为数据发送状态;发送模块,用于通过第二目标通信端口发送充电线缆识别信息;其中,第一目标通信端口为:第一通信端口和第二通信端口中的一个;第二目标通信端口为:第一通信端口和第二通信端口中的一个,且所述第二目标通信端口与第一目标通信端口不同的通信端口;第一通信端口和第二通信端口,在监听模式下均处于数据接收状态。In the second aspect, an embodiment of the present application also provides a charging cable identification device, which includes: a receiving module and a sending module, a first communication port and a second communication port; the receiving module is used to switch the second target communication port from a data receiving state to a data sending state if the first target communication port receives a charging cable identification request when the charging cable identification device is in a listening mode; the sending module is used to send charging cable identification information through the second target communication port; wherein the first target communication port is: one of the first communication port and the second communication port; the second target communication port is: one of the first communication port and the second communication port, and the second target communication port is a different communication port from the first target communication port; the first communication port and the second communication port are both in a data receiving state in the listening mode.
第三方面,本申请实施例提供了一种充电线缆,包括处理器、存储器及存储在该存储器上并可在该处理器上运行的程序或指令,该程序或指令被该处理器执行时实现如第一方面所述的充电线缆识别方法的步骤。In a third aspect, an embodiment of the present application provides a charging cable, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the charging cable identification method described in the first aspect.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
在本申请实施例中,充电线缆识别装置在监听模式下,第一通信端口和第二通信端口均处于数据接收状态,当第一通信端口和第二通信端口中第一目标通信端口接收到充电线缆识别请求后,通过将第一通信端口和第二通信端口中的第二目标通信端口切换为数据发送状态,并通过该第二目标通信端口,发送充电线缆识别信息,使得充电线缆识别装置在不增加E-Mark芯片的情况下,通过端口复用的方式,可以接收来自充电器或者充电设备的发送的识别请求,并将识别信息发送至充电器或者充电设备,提高了充电线缆的兼容性,降低了充电线缆的制造成本。In an embodiment of the present application, when the charging cable identification device is in the listening mode, the first communication port and the second communication port are both in a data receiving state. When the first target communication port of the first communication port and the second communication port receives a charging cable identification request, the second target communication port of the first communication port and the second communication port is switched to a data sending state, and the charging cable identification information is sent through the second target communication port. Therefore, the charging cable identification device can receive the identification request sent from the charger or the charging device through port multiplexing without adding an E-Mark chip, and send the identification information to the charger or the charging device, thereby improving the compatibility of the charging cable and reducing the manufacturing cost of the charging cable.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是本申请实施例提供的一种相关的充电线缆识别方法连接关系示意图;FIG1 is a schematic diagram of a connection relationship of a related charging cable identification method provided in an embodiment of the present application;
图2是本申请实施例提供的一种充电线缆识别方法流程示意图;FIG2 is a schematic diagram of a charging cable identification method provided in an embodiment of the present application;
图3是本申请实施例提供的一种充电线缆识别方法连接关系示意图;FIG3 is a schematic diagram of a connection relationship of a charging cable identification method provided by an embodiment of the present application;
图4是本申请实施例提供的一种充电线缆识别装置结构示意图;FIG4 is a schematic diagram of the structure of a charging cable identification device provided in an embodiment of the present application;
图5是本申请实施例提供的一种电子设备的结构示意图。FIG5 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
具体实施方式DETAILED DESCRIPTION
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and/or" in the specification and claims represents at least one of the connected objects, and the character "/" generally indicates that the objects associated with each other are in an "or" relationship.
本申请实施例提供的充电线缆识别方法可以应用于为电子设备进行充电的场景中。The charging cable identification method provided in the embodiment of the present application can be applied to the scenario of charging an electronic device.
示例性的,在相关技术中,各终端厂商都有自己私有的快充协议,部分快充协议会提高充电电流,为了保证充电安全,在进行高电流(通常为充电电流大于3A的快充协议)快充时,充电器或者充电设备(例如,手机、平板等)会首先向充电线缆中的控制模块发送识别信息获取请求,用于获取充电线缆的最大电流负载能力。如图1所示,为相关技术中的充电线路,包括充电器11、充电线缆的控制模块12以及充电设备13。以充电线缆为TYPE-C接口为例,充电器11与充电设备通过TYPE-C接口的D+和D-连接,并通过D+和D-进行数据通信。且充电器11通过D+线缆向充电设备13发送信息,充电器11通过D-线缆接收充电设备13发送的信息。控制模块12包含两个通信端口,分别与D+和D-线缆进行连接,由于D+和D-的数据传输方向均为单向传输,因此,通常情况下,控制模块上设置的E-Mark芯片的两个通讯端口,一个通信端口用于接收数据,另一个通信端口用于发送数据。For example, in the related art, each terminal manufacturer has its own private fast charging protocol, and some fast charging protocols will increase the charging current. In order to ensure charging safety, when performing high current (usually a fast charging protocol with a charging current greater than 3A) fast charging, the charger or charging device (for example, a mobile phone, tablet, etc.) will first send an identification information acquisition request to the control module in the charging cable to obtain the maximum current load capacity of the charging cable. As shown in Figure 1, it is a charging circuit in the related art, including a charger 11, a control module 12 of a charging cable, and a charging device 13. Taking the charging cable as a TYPE-C interface as an example, the charger 11 is connected to the charging device through the D+ and D- of the TYPE-C interface, and data communication is performed through D+ and D-. And the charger 11 sends information to the charging device 13 through the D+ cable, and the charger 11 receives information sent by the charging device 13 through the D- cable. The control module 12 includes two communication ports, which are connected to the D+ and D- cables respectively. Since the data transmission directions of D+ and D- are both unidirectional, usually, the two communication ports of the E-Mark chip set on the control module, one communication port is used to receive data, and the other communication port is used to send data.
然而,由于各厂商私有协议的不同,有的厂商是充电器获取充电线缆的最大电流负载能力,有的厂商是充电设备获取充电线缆的最大电流负载能力。并在充电线缆的最大电流负载能力满足其快充协议的要求后,充电器对充电设备进行快充。如图1中(A)所示,为充电器获取充电线缆的最大电流负载能力的流程图,其中,控制模块12的Pin1端口接收充电器11发送的信息,之后,控制模块12通过Pin2端口向充电器11发送充电线缆的最大电流负载能力。如图1中(B)所示,为充电设备获取充电线缆的最大电流负载能力的流程图,其中,控制模块12的Pin1端口接收充电设备13发送的信息,之后,控制模块12通过Pin2端口向充电设备13发送充电线缆的最大电流负载能力。可见,一个E-Mark芯片只能满足一种形式的快充协议,如果想要兼容两种形式的快充协议,在相关技术中,通常设置两个E-Mark芯片,然而,由于E-Mark芯片的成本较高,为了降低成本,通常采用一个E-Mark芯片的方案,导致充电线缆的兼容性较差。However, due to the differences in private protocols among manufacturers, some manufacturers obtain the maximum current load capacity of the charging cable from the charger, while some manufacturers obtain the maximum current load capacity of the charging cable from the charging device. After the maximum current load capacity of the charging cable meets the requirements of its fast charging protocol, the charger fast charges the charging device. As shown in (A) in Figure 1, this is a flowchart of the charger obtaining the maximum current load capacity of the charging cable, wherein the Pin1 port of the control module 12 receives the information sent by the charger 11, and then the control module 12 sends the maximum current load capacity of the charging cable to the charger 11 through the Pin2 port. As shown in (B) in Figure 1, this is a flowchart of the charging device obtaining the maximum current load capacity of the charging cable, wherein the Pin1 port of the control module 12 receives the information sent by the charging device 13, and then the control module 12 sends the maximum current load capacity of the charging cable to the charging device 13 through the Pin2 port. It can be seen that one E-Mark chip can only meet one form of fast charging protocol. If you want to be compatible with two forms of fast charging protocols, in the relevant technology, two E-Mark chips are usually set up. However, due to the high cost of E-Mark chips, in order to reduce costs, one E-Mark chip solution is usually adopted, resulting in poor compatibility of charging cables.
针对这一问题,在本申请实施例提供的技术方案中,控制模块在默认状态下,E-Mark芯片的两个通讯端口均处于数据接收状态,当Pin1端口和Pin2端口中其中一个端口接收到充电线缆识别请求后,控制模块将另一个通信端口切换为数据发送状态,并通过该端口发送充电线缆识别信息,使得充电线缆的控制模块在不增加E-Mark芯片的情况下,通过端口复用的方式,可以接收来自充电器或者充电设备的发送的识别请求,并将识别信息发送至充电器或者充电设备,提高了充电线缆的兼容性,降低了充电线缆的制造成本。并且,在数据传输完成后,控制模块进入休眠模式,降低功耗。To address this problem, in the technical solution provided in the embodiment of the present application, in the default state of the control module, both communication ports of the E-Mark chip are in the data receiving state. When one of the Pin1 port and the Pin2 port receives the charging cable identification request, the control module switches the other communication port to the data sending state and sends the charging cable identification information through the port, so that the control module of the charging cable can receive the identification request sent from the charger or charging device through port multiplexing without adding the E-Mark chip, and send the identification information to the charger or charging device, thereby improving the compatibility of the charging cable and reducing the manufacturing cost of the charging cable. In addition, after the data transmission is completed, the control module enters the sleep mode to reduce power consumption.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的充电线缆识别方法进行详细地说明。The following describes in detail the charging cable identification method provided in the embodiment of the present application through specific embodiments and application scenarios in conjunction with the accompanying drawings.
如图2所示,本申请实施例提供的一种充电线缆识别方法,应用于充电线缆识别装置,该装置包括第一通信端口和第二通信端口,该方法可以包括下述步骤201和步骤202:As shown in FIG2 , a charging cable identification method provided in an embodiment of the present application is applied to a charging cable identification device, the device including a first communication port and a second communication port. The method may include the following steps 201 and 202:
步骤201、在充电线缆识别装置处于监听模式的情况下,若第一目标通信端口接收到充电线缆识别请求,则充电线缆识别装置将第二目标通信端口由数据接收状态切换为数据发送状态。Step 201: When the charging cable identification device is in the monitoring mode, if the first target communication port receives a charging cable identification request, the charging cable identification device switches the second target communication port from a data receiving state to a data sending state.
示例性地,上述充电线缆识别装置,可以为设置在充电线缆中的E-Mark芯片,或者搭载该芯片的集成电路,该E-Mark芯片包括两个通信端口,区别于相关技术中,该E-Mark芯片中的两个通信端口中的一个用于接收数据,另一个用于发送数据,本申请实施例中的充电线缆识别方法,对该E-Mark芯片的两个通信端口进行了端口复用,使其可以根据实际需求,改变上述两个通信端口的数据传输状态。Exemplarily, the above-mentioned charging cable identification device may be an E-Mark chip arranged in the charging cable, or an integrated circuit equipped with the chip. The E-Mark chip includes two communication ports. Different from the related art, one of the two communication ports in the E-Mark chip is used to receive data and the other is used to send data. The charging cable identification method in the embodiment of the present application performs port multiplexing on the two communication ports of the E-Mark chip, so that it can change the data transmission status of the above-mentioned two communication ports according to actual needs.
步骤202、充电线缆识别装置通过上述第二目标通信端口发送充电线缆识别信息。Step 202: The charging cable identification device sends charging cable identification information through the second target communication port.
其中,上述第一目标通信端口为:第一通信端口和第二通信端口中的一个。上述第二目标通信端口为:第一通信端口和第二通信端口中的一个,且所述第二目标通信端口与第一目标通信端口不同。在监听模式下上述第一通信端口和第二通信端口均处于数据接收状态。The first target communication port is one of the first communication port and the second communication port. The second target communication port is one of the first communication port and the second communication port, and the second target communication port is different from the first target communication port. In the monitoring mode, the first communication port and the second communication port are both in a data receiving state.
示例性地,当用户使用包含有上述充电线缆识别装置的充电线缆进行充电时,为了防止充电电流超出充电线缆的最大承载能力,产生安全隐患,在进行充电之前,充电器或者充电设备需要向充电线缆识别装置发送充电线缆识别请求,该请求用于获取充电线缆的电流承载能力。由于充电线缆识别装置在在接收到该请求之前,并不清楚该请求是由充电器发送还是由充电设备发送,因此,可以将充电线缆识别装置的两个通信端口均设置为数据接收状态,充电线缆识别装置在接收到该请求后,将上述两个通信端口中,除接收到该请求的第一目标通信端口之外的另一个通信端口(即上述第二目标通信端口)的数据传输状态,由数据接收状态切换为数据发送状态。之后,充电线缆识别装置通过第二目标通信端口,向充电器或者充电设备发送充电线缆识别信息。Exemplarily, when a user uses a charging cable including the above-mentioned charging cable identification device to charge, in order to prevent the charging current from exceeding the maximum carrying capacity of the charging cable and causing safety hazards, before charging, the charger or charging device needs to send a charging cable identification request to the charging cable identification device, and the request is used to obtain the current carrying capacity of the charging cable. Since the charging cable identification device does not know whether the request is sent by the charger or the charging device before receiving the request, both communication ports of the charging cable identification device can be set to a data receiving state. After receiving the request, the charging cable identification device switches the data transmission state of the other communication port (i.e., the above-mentioned second target communication port) of the above-mentioned two communication ports except the first target communication port that receives the request from the data receiving state to the data sending state. Afterwards, the charging cable identification device sends the charging cable identification information to the charger or charging device through the second target communication port.
需要说明的是,上述充电线缆识别请求,还可用于获取充电线缆的最大耐压信息,以及线缆阻抗信息等。上述充电线缆识别信息存储于充电线缆识别装置的E-Mark芯片中。上述通信的通信格式,由快充协议决定。It should be noted that the above charging cable identification request can also be used to obtain the maximum withstand voltage information of the charging cable and the cable impedance information. The above charging cable identification information is stored in the E-Mark chip of the charging cable identification device. The communication format of the above communication is determined by the fast charging protocol.
如此,充电线缆识别装置在监听模式下,第一通信端口和第二通信端口均处于数据接收状态,当第一通信端口和第二通信端口中第一目标通信端口接收到充电线缆识别请求后,通过将第一通信端口和第二通信端口中的第二目标通信端口切换为数据发送状态,并通过该第二目标通信端口,发送充电线缆识别信息,使得充电线缆识别装置在不增加E-Mark芯片的情况下,通过端口复用的方式,可以接收来自充电器或者充电设备的发送的识别请求,并将识别信息发送至充电器或者充电设备,提高了充电线缆的兼容性,降低了充电线缆的制造成本。In this way, when the charging cable identification device is in the listening mode, the first communication port and the second communication port are both in the data receiving state. When the first target communication port of the first communication port and the second communication port receives the charging cable identification request, the second target communication port of the first communication port and the second communication port is switched to the data sending state, and the charging cable identification information is sent through the second target communication port. Therefore, the charging cable identification device can receive the identification request sent from the charger or the charging device through port multiplexing without adding an E-Mark chip, and send the identification information to the charger or the charging device, thereby improving the compatibility of the charging cable and reducing the manufacturing cost of the charging cable.
可选地,在本申请实施例中,在充电器向充电设备通过充电线缆进行充电的充电电路中,充电器通过第一通信线路和第二通信线路与充电设备进行连接。充电器通过上述第一通信线路向充电设备发送信息,并通过第二通信线路接收充电设备发送的信息。Optionally, in an embodiment of the present application, in a charging circuit in which a charger charges a charging device through a charging cable, the charger is connected to the charging device through a first communication line and a second communication line. The charger sends information to the charging device through the first communication line and receives information sent by the charging device through the second communication line.
示例性的,基于上述充电电路,上述充电线缆识别装置接收充电线缆识别请求,可以包括以下两种方式:Exemplarily, based on the above charging circuit, the above charging cable identification device receives the charging cable identification request, which may include the following two methods:
方式1:Method 1:
在方式1中,充电线缆识别装置接收来自充电器发送的充电线缆识别请求。In the first mode, the charging cable identification device receives a charging cable identification request sent from the charger.
示例性地,上述步骤201和步骤202,可以包括以下步骤201a1和步骤201a2:Exemplarily, the above steps 201 and 202 may include the following steps 201a1 and 201a2:
步骤201a1、若第一通信端口接收到充电器发送的充电线缆识别请求后,则充电线缆识别装置将第二通信端口由数据接收状态切换为数据发送状态。Step 201a1: if the first communication port receives a charging cable identification request sent by the charger, the charging cable identification device switches the second communication port from a data receiving state to a data sending state.
步骤201a2、充电线缆识别装置通过第二通信端口向充电器发送充电线缆识别信息。Step 201a2: The charging cable identification device sends charging cable identification information to the charger through the second communication port.
其中,上述第一目标通信端口为第一通信端口,第二目标通信端口为第二通信端口。The first target communication port is the first communication port, and the second target communication port is the second communication port.
示例性地,由于充电线缆识别装置将第一通信端口由数据接收状态切换为数据发送状态需要耗费一定的时间,因此,充电线缆识别装置可以延时一定时间(例如,延时5ms),在上述切换过程完成后,再将充电线缆识别信息通过第二通信端口发送至充电器。For example, since it takes a certain amount of time for the charging cable identification device to switch the first communication port from a data receiving state to a data sending state, the charging cable identification device can delay for a certain period of time (for example, a delay of 5ms), and after the above switching process is completed, send the charging cable identification information to the charger through the second communication port.
需要说明的是,在方式1中,由于充电器通过上述第一通信线路向充电设备发送信息,因此,与第一通信线路连接的第一通信端口接收到来自充电器发送的信息。It should be noted that, in Mode 1, since the charger sends information to the charging device through the first communication line, the first communication port connected to the first communication line receives the information sent from the charger.
方式2:Method 2:
在方式2中,充电线缆识别装置接收来自充电设备发送的充电线缆识别请求。In the second mode, the charging cable identification device receives a charging cable identification request sent from the charging device.
示例性地,上述步骤201和步骤202,可以包括以下步骤201b1和步骤201b2:Exemplarily, the above steps 201 and 202 may include the following steps 201b1 and 201b2:
步骤201b1、若第二通信端口接收到充电器发送的充电线缆识别请求后,则充电线缆识别装置将第一通信端口由数据接收状态切换为数据发送状态。Step 201b1: If the second communication port receives a charging cable identification request sent by the charger, the charging cable identification device switches the first communication port from a data receiving state to a data sending state.
步骤201b2、充电线缆识别装置通过第一通信端口向充电器发送目标信息。Step 201b2: The charging cable identification device sends target information to the charger through the first communication port.
其中,上述第一目标通信端口为第二通信端口,上述第二目标通信端口为第一通信端口。The first target communication port is the second communication port, and the second target communication port is the first communication port.
需要说明的是,在方式2中,由于充电器通过上述第二通信线路接收充电设备发送的信息,因此,与第二通信线路连接的第一通信端口接收到来自充电器发送的信息。It should be noted that in Mode 2, since the charger receives the information sent by the charging device through the second communication line, the first communication port connected to the second communication line receives the information sent from the charger.
举例说明,结合图1,如图3中(A)所示,在监听模式下,上述充电线缆识别装置的两个通信端口Pin1端口和Pin2端口处于数据接收状态,此时,可以接收来自充电器21发送的信息,也可以接收来自充电设备23发送的信息。如图3中(B)所示,当接收到来自充电器21发送的信息后,将Pin2端口切换为数据发送状态,并通过Pin2端口向充电器21发送信息。反之,当接收到来自充电设备23发送的信息后,将Pin1端口切换为数据发送状态,并通过Pin1端口向充电设备23发送信息。For example, in combination with FIG1, as shown in FIG3 (A), in the monitoring mode, the two communication ports Pin1 and Pin2 of the charging cable identification device are in the data receiving state. At this time, information sent from the charger 21 can be received, and information sent from the charging device 23 can also be received. As shown in FIG3 (B), after receiving information sent from the charger 21, the Pin2 port is switched to the data sending state, and information is sent to the charger 21 through the Pin2 port. Conversely, after receiving information sent from the charging device 23, the Pin1 port is switched to the data sending state, and information is sent to the charging device 23 through the Pin1 port.
如此,充电线缆识别装置可以同时兼容充电器和充电设备两种获取充电线缆最大电流负载能力的方式,在不增加硬件成本的同时,提高了充电线缆的兼容性。In this way, the charging cable identification device can be compatible with both the charger and the charging device to obtain the maximum current load capacity of the charging cable, thereby improving the compatibility of the charging cable without increasing the hardware cost.
可选地,在本申请实施例中,充电线缆识别装置在与充电器或者充电设备完成一次通信后,为了能够接收充电器或者充电设备的下一次指令信息,充电线缆识别装置可以在接收到充电器或者充电设备的控制指令后,将处于数据发送状态的通信端口,切换为数据接收状态。Optionally, in an embodiment of the present application, after the charging cable identification device completes a communication with the charger or charging device, in order to be able to receive the next instruction information from the charger or charging device, the charging cable identification device can switch the communication port in the data sending state to the data receiving state after receiving the control instruction from the charger or charging device.
示例性的,上述步骤202之后,本申请实施例提供的充电线缆识别方法,还可以包括以下步骤203a1或者步骤203a2:Exemplarily, after the above step 202, the charging cable identification method provided in the embodiment of the present application may further include the following step 203a1 or step 203a2:
步骤203a1、若上述第一目标通信端口接收到第一指令,则充电线缆识别装置将上述第二目标通信端口由数据发送状态切换为数据接收状态。Step 203a1: If the first target communication port receives the first instruction, the charging cable identification device switches the second target communication port from a data sending state to a data receiving state.
步骤203a2、若上述第一目标通信端口在预设时间内未接收到所述第一指令,则充电线缆识别装置控制充电线缆识别装置进入休眠模式。Step 203a2: If the first target communication port does not receive the first instruction within a preset time, the charging cable identification device controls the charging cable identification device to enter a sleep mode.
示例性的,上述第一指令用于指示充电线缆识别装置进入监听模式。在某些情况下,充电器或者充电设备在与充电线缆识别装置完成通信后,并不会向充电线缆识别装置发送第一指令,此时,在预设时间内未接收到任何信息后,充电线缆识别装置进入休眠模式。Exemplarily, the first instruction is used to instruct the charging cable identification device to enter the listening mode. In some cases, after the charger or charging device completes the communication with the charging cable identification device, it does not send the first instruction to the charging cable identification device. At this time, after no information is received within a preset time, the charging cable identification device enters the sleep mode.
如此,充电线缆识别装置可以在与充电器或者充电设备完成通信,并接收到充电器或者充电设备的控制指令后,进入监听模式,方便下一次通信。In this way, the charging cable identification device can enter the monitoring mode after completing the communication with the charger or the charging device and receiving the control instruction of the charger or the charging device, so as to facilitate the next communication.
可选地,在本申请实施例中,为了降低充电线缆识别装置的功耗,尤其是采用移动电源为充电设备进行充电的情况下,充电线缆识别装置可以在快充开始后,进入休眠模式。Optionally, in an embodiment of the present application, in order to reduce the power consumption of the charging cable identification device, especially when a mobile power supply is used to charge the charging device, the charging cable identification device can enter a sleep mode after fast charging starts.
示例性地,上述步骤202之后,本申请实施例提供的充电线缆识别方法,还可以包括以下步骤203b或者步骤203c:Exemplarily, after the above step 202, the charging cable identification method provided in the embodiment of the present application may further include the following step 203b or step 203c:
步骤203b、若充电线缆识别装置检测到充电线缆的电路供电电压大于第一预设电压,则控制充电线缆识别装置进入休眠模式。Step 203b: If the charging cable identification device detects that the circuit power supply voltage of the charging cable is greater than the first preset voltage, the charging cable identification device is controlled to enter the sleep mode.
步骤203c、若充电线缆识别装置检测到线缆的电路供电电压小于第二预设电压,则控制充电线缆识别装置进入监听模式。Step 203c: If the charging cable identification device detects that the circuit power supply voltage of the cable is less than the second preset voltage, the charging cable identification device is controlled to enter the monitoring mode.
其中,上述第二预设电压小于第一预设电压。休眠模式的功耗小于监听模式的功耗。The second preset voltage is smaller than the first preset voltage. The power consumption in the sleep mode is smaller than the power consumption in the monitoring mode.
示例性地,充电器或者充电设备获取到充电线缆的最大电流负载之后,若满足快充协议的要求,则充电器向充电设备进行快速充电,此时,充电线缆识别装置的vcc(voltcurrent condenser,电路供电电压)会超过第一预设电压,第一预设电压通常为6v。充电线缆识别装置可以通过检测vcc来判断当前充电电路是否处于充电状态。若当前充电电路处于充电状态,则充电线缆识别装置进入休眠模式,此时,E-Mark芯片处于休眠中。同时,充电线缆识别装置还会周期性的检测vcc是否小于第二预设电压,当充电线缆识别装置检测到vcc小于第二预设电压时,进入监听模式,此时,E-Mark芯片被唤醒。Exemplarily, after the charger or charging device obtains the maximum current load of the charging cable, if the requirements of the fast charging protocol are met, the charger will quickly charge the charging device. At this time, the vcc (volt current condenser, circuit power supply voltage) of the charging cable identification device will exceed the first preset voltage, and the first preset voltage is usually 6v. The charging cable identification device can determine whether the current charging circuit is in a charging state by detecting vcc. If the current charging circuit is in a charging state, the charging cable identification device enters sleep mode, and the E-Mark chip is in sleep mode. At the same time, the charging cable identification device will also periodically detect whether vcc is less than the second preset voltage. When the charging cable identification device detects that vcc is less than the second preset voltage, it enters the monitoring mode, and the E-Mark chip is awakened.
示例性的,上述充电线缆识别装置的供电方式包括以下三种:Exemplarily, the power supply modes of the charging cable identification device include the following three:
供电方式1:Power supply mode 1:
在供电方式1中,充电线缆识别装置依靠TYPE-C接口的vbus线缆供电。In power supply mode 1, the charging cable identification device relies on the vbus cable of the TYPE-C interface for power supply.
供电方式2:Power supply method 2:
在供电方式2中,充电线缆识别装置依靠TYPE-C接口的vcon线缆供电。In power supply mode 2, the charging cable identification device relies on the vcon cable of the TYPE-C interface for power supply.
供电方式3:Power supply method 3:
在供电方式3中,充电线缆识别装置还可以依靠TYPE-A接口单独的供电引脚进行供电。In power supply mode 3, the charging cable identification device can also be powered by a separate power supply pin of the TYPE-A interface.
需要说明的是,本申请实施例提供的充电线缆识别方法,不仅适用于TYPE-C接口,还可以适用于其他类型的接口,例如TYPE-A接口等。It should be noted that the charging cable identification method provided in the embodiment of the present application is not only applicable to the TYPE-C interface, but also to other types of interfaces, such as the TYPE-A interface.
如此,在满足预设条件的情况下,充电线缆识别装置进入休眠模式,降低功耗。In this way, when the preset conditions are met, the charging cable identification device enters the sleep mode to reduce power consumption.
本申请实施例提供的充电线缆识别方法,充电线缆识别装置在监听模式下,第一通信端口和第二通信端口均处于数据接收状态,当第一通信端口和第二通信端口中第一目标通信端口接收到充电线缆识别请求后,通过将第一通信端口和第二通信端口中的第二目标通信端口切换为数据发送状态,并通过该第二目标通信端口,发送充电线缆识别信息,使得充电线缆识别装置在不增加E-Mark芯片的情况下,通过端口复用的方式,可以接收来自充电器或者充电设备的发送的识别请求,并将识别信息发送至充电器或者充电设备,提高了充电线缆的兼容性,降低了充电线缆的制造成本。同时,在满足预设条件的情况下,充电线缆识别装置自动进入休眠模式,降低了功耗。In the charging cable identification method provided in the embodiment of the present application, the charging cable identification device is in the monitoring mode, the first communication port and the second communication port are both in the data receiving state, and when the first target communication port of the first communication port and the second communication port receives the charging cable identification request, the second target communication port of the first communication port and the second communication port is switched to the data sending state, and the charging cable identification information is sent through the second target communication port, so that the charging cable identification device can receive the identification request sent from the charger or the charging device through port multiplexing without adding an E-Mark chip, and send the identification information to the charger or the charging device, thereby improving the compatibility of the charging cable and reducing the manufacturing cost of the charging cable. At the same time, when the preset conditions are met, the charging cable identification device automatically enters the sleep mode to reduce power consumption.
需要说明的是,本申请实施例提供的充电线缆识别方法,执行主体可以为充电线缆识别装置,或者该充电线缆识别装置中的用于执行充电线缆识别方法的控制模块。本申请实施例中以充电线缆识别装置执行充电线缆识别方法为例,说明本申请实施例提供的充电线缆识别装置。It should be noted that the charging cable identification method provided in the embodiment of the present application can be executed by a charging cable identification device, or a control module in the charging cable identification device for executing the charging cable identification method. In the embodiment of the present application, the charging cable identification device provided in the embodiment of the present application is described by taking the charging cable identification device executing the charging cable identification method as an example.
需要说明的是,本申请实施例中,上述各个方法附图所示的。充电线缆识别方法均是以结合本申请实施例中的一个附图为例示例性的说明的。具体实现时,上述各个方法附图所示的充电线缆识别方法还可以结合上述实施例中示意的其它可以结合的任意附图实现,此处不再赘述。It should be noted that in the embodiments of the present application, the charging cable identification methods shown in the above-mentioned method drawings are all illustrated by taking one of the drawings in the embodiments of the present application as an example. In specific implementation, the charging cable identification methods shown in the above-mentioned method drawings can also be implemented in combination with any other drawings that can be combined as shown in the above-mentioned embodiments, which will not be repeated here.
图4为实现本申请实施例提供的一种充电线缆识别装置的可能的结构示意图,如图4所示,充电线缆识别装置600包括:接收模块601和发送模块602,同时,充电线缆识别装置600还包括:第一通信端口和第二通信端口;其中:接收模块601,用于在充电线缆识别装置处于监听模式的情况下,若第一目标通信端口接收到充电线缆识别请求,则将第二目标通信端口由数据接收状态切换为数据发送状态;发送模块602,用于通过第二目标通信端口发送充电线缆识别信息;其中,第一目标通信端口为:第一通信端口和第二通信端口中的一个;第二目标通信端口为:第一通信端口和第二通信端口中的一个,且所述第二目标通信端口与第一目标通信端口不同;在所述监听模式下第一通信端口和第二通信端口均处于数据接收状态。FIG4 is a schematic diagram of a possible structure of a charging cable identification device provided by an embodiment of the present application. As shown in FIG4 , the charging cable identification device 600 includes: a receiving module 601 and a sending module 602. Meanwhile, the charging cable identification device 600 also includes: a first communication port and a second communication port; wherein: the receiving module 601 is used to switch the second target communication port from a data receiving state to a data sending state if the first target communication port receives a charging cable identification request when the charging cable identification device is in a listening mode; the sending module 602 is used to send charging cable identification information through the second target communication port; wherein the first target communication port is: one of the first communication port and the second communication port; the second target communication port is: one of the first communication port and the second communication port, and the second target communication port is different from the first target communication port; in the listening mode, the first communication port and the second communication port are both in a data receiving state.
可选地,在本申请实施例中,第一通信端口与第一通信线路连接,第二通信端口与第二通信线路连接;充电器与充电设备通过第一通信线路和第二通信线路相连接;接收模块601,具体用于若第一通信端口接收到充电器发送的充电线缆识别请求后,则将第二通信端口由数据接收状态切换为数据发送状态;发送模块602,具体用于通过第二通信端口向充电器发送目标信息;其中,第一目标通信端口为第一通信端口,第二目标通信端口为第二通信端口。Optionally, in an embodiment of the present application, the first communication port is connected to the first communication line, and the second communication port is connected to the second communication line; the charger and the charging device are connected through the first communication line and the second communication line; the receiving module 601 is specifically used to switch the second communication port from a data receiving state to a data sending state if the first communication port receives a charging cable identification request sent by the charger; the sending module 602 is specifically used to send target information to the charger through the second communication port; wherein the first target communication port is the first communication port, and the second target communication port is the second communication port.
可选地,在本申请实施例中,第一通信端口与第一通信线路连接,第二通信端口与第二通信线路连接;充电器与充电设备通过第一通信线路和第二通信线路相连接;接收模块601,具体用于若第二通信端口接收到充电设备发送的充电线缆识别请求后,则将第一通信端口由数据接收状态切换为数据发送状态;发送模块602,具体用于通过第一通信端口向充电设备发送目标信息;其中,第一目标通信端口为第二通信端口,第二目标通信端口为第一通信端口。Optionally, in an embodiment of the present application, the first communication port is connected to the first communication line, and the second communication port is connected to the second communication line; the charger is connected to the charging device through the first communication line and the second communication line; the receiving module 601 is specifically used to switch the first communication port from a data receiving state to a data sending state if the second communication port receives a charging cable identification request sent by the charging device; the sending module 602 is specifically used to send target information to the charging device through the first communication port; wherein the first target communication port is the second communication port, and the second target communication port is the first communication port.
可选地,在本申请实施例中,充电信息识别装置600,还包括:控制模块603;接收模块601,还用于若第一目标通信端口接收到第一指令,则将第二目标通信端口由数据发送状态切换为数据接收状态;或者,控制模块603,用于若第一目标通信端口在预设时间内未接收到第一指令,则控制充电线缆识别装置进入休眠模式。Optionally, in an embodiment of the present application, the charging information identification device 600 further includes: a control module 603; a receiving module 601, which is also used to switch the second target communication port from a data sending state to a data receiving state if the first target communication port receives a first instruction; or, the control module 603 is used to control the charging cable identification device to enter a sleep mode if the first target communication port does not receive the first instruction within a preset time.
可选地,在本申请实施例中,控制模块603,用于若检测到充电线缆的电路供电电压大于第一预设电压,则控制充电线缆识别装置进入休眠模式;或者,控制模块603,还用于若检测到线缆的电路供电电压小于第二预设电压,则控制充电线缆识别装置进入监听模式;其中,第二预设电压小于第一预设电压。Optionally, in an embodiment of the present application, the control module 603 is used to control the charging cable identification device to enter a sleep mode if it is detected that the circuit power supply voltage of the charging cable is greater than a first preset voltage; or, the control module 603 is also used to control the charging cable identification device to enter a listening mode if it is detected that the circuit power supply voltage of the cable is less than a second preset voltage; wherein the second preset voltage is less than the first preset voltage.
本申请实施例中的充电线缆识别装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The charging cable identification device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
本申请实施例中的充电线缆识别装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The charging cable identification device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
本申请实施例提供的充电线缆识别装置能够实现图2和图3的方法实施例中充电线缆识别装置实现的各个过程,为避免重复,这里不再赘述。The charging cable identification device provided in the embodiment of the present application can implement various processes implemented by the charging cable identification device in the method embodiments of Figures 2 and 3, and will not be described again here to avoid repetition.
本申请实施例提供的充电线缆识别装置,充电线缆识别装置在监听模式下,第一通信端口和第二通信端口均处于数据接收状态,当第一通信端口和第二通信端口中第一目标通信端口接收到充电线缆识别请求后,通过将第一通信端口和第二通信端口中的第二目标通信端口切换为数据发送状态,并通过该第二目标通信端口,发送充电线缆识别信息,使得充电线缆识别装置在不增加E-Mark芯片的情况下,通过端口复用的方式,可以接收来自充电器或者充电设备的发送的识别请求,并将识别信息发送至充电器或者充电设备,提高了充电线缆的兼容性,降低了充电线缆的制造成本。同时,在满足预设条件的情况下,充电线缆识别装置自动进入休眠模式,降低了功耗。The charging cable identification device provided in the embodiment of the present application is in the monitoring mode, and the first communication port and the second communication port are both in the data receiving state. When the first target communication port of the first communication port and the second communication port receives the charging cable identification request, the second target communication port of the first communication port and the second communication port is switched to the data sending state, and the charging cable identification information is sent through the second target communication port, so that the charging cable identification device can receive the identification request sent from the charger or the charging device through port multiplexing without adding an E-Mark chip, and send the identification information to the charger or the charging device, thereby improving the compatibility of the charging cable and reducing the manufacturing cost of the charging cable. At the same time, when the preset conditions are met, the charging cable identification device automatically enters the sleep mode to reduce power consumption.
可选的,本申请实施例还提供一种电子设备,包括处理器110,存储器109,存储在存储器109上并可在所述处理器110上运行的程序或指令,该程序或指令被处理器110执行时实现上述充电线缆识别方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present application further provides an electronic device, including a processor 110, a memory 109, and a program or instruction stored in the memory 109 and executable on the processor 110. When the program or instruction is executed by the processor 110, each process of the above-mentioned charging cable identification method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
需要注意的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
图5为实现本申请各个实施例的一种电子设备的硬件结构示意图。FIG5 is a schematic diagram of the hardware structure of an electronic device implementing various embodiments of the present application.
该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。The electronic device 100 includes but is not limited to components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图5中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 100 can also include a power supply (such as a battery) for supplying power to each component, and the power supply can be logically connected to the processor 110 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The electronic device structure shown in FIG5 does not constitute a limitation on the electronic device, and the electronic device can include more or fewer components than shown in the figure, or combine certain components, or arrange components differently, which will not be described in detail here.
其中,处理器110,用于在充电线缆识别装置处于监听模式的情况下,若第一目标通信端口接收到充电线缆识别请求,则将第二目标通信端口由数据接收状态切换为数据发送状态;处理器110,用于通过第二目标通信端口发送充电线缆识别信息;其中,第一目标通信端口为:第一通信端口和第二通信端口中的一个;第二目标通信端口为:第一通信端口和第二通信端口中的一个,且所述第二目标通信端口与第一目标通信端口不同的通信端口;第一通信端口和第二通信端口,在监听模式下均处于数据接收状态。Among them, the processor 110 is used to switch the second target communication port from a data receiving state to a data sending state if the first target communication port receives a charging cable identification request when the charging cable identification device is in a listening mode; the processor 110 is used to send charging cable identification information through the second target communication port; wherein the first target communication port is: one of the first communication port and the second communication port; the second target communication port is: one of the first communication port and the second communication port, and the second target communication port is a communication port different from the first target communication port; the first communication port and the second communication port are both in a data receiving state in the listening mode.
如此,充电线缆识别装置在监听模式下,第一通信端口和第二通信端口均处于数据接收状态,当第一通信端口和第二通信端口中第一目标通信端口接收到充电线缆识别请求后,通过将第一通信端口和第二通信端口中的第二目标通信端口切换为数据发送状态,并通过该第二目标通信端口,发送充电线缆识别信息,使得充电线缆识别装置在不增加E-Mark芯片的情况下,通过端口复用的方式,可以接收来自充电器或者充电设备的发送的识别请求,并将识别信息发送至充电器或者充电设备,提高了充电线缆的兼容性,降低了充电线缆的制造成本。In this way, when the charging cable identification device is in the listening mode, the first communication port and the second communication port are both in the data receiving state. When the first target communication port of the first communication port and the second communication port receives the charging cable identification request, the second target communication port of the first communication port and the second communication port is switched to the data sending state, and the charging cable identification information is sent through the second target communication port. Therefore, the charging cable identification device can receive the identification request sent from the charger or the charging device through port multiplexing without adding an E-Mark chip, and send the identification information to the charger or the charging device, thereby improving the compatibility of the charging cable and reducing the manufacturing cost of the charging cable.
可选地,在本申请实施例中,第一通信端口与第一通信线路连接,第二通信端口与第二通信线路连接;充电器与充电设备通过第一通信线路和第二通信线路相连接;处理器110,具体用于若第一通信端口接收到充电器发送的充电线缆识别请求后,则将第二通信端口由数据接收状态切换为数据发送状态;处理器110,具体用于通过第二通信端口向充电器发送目标信息;其中,第一目标通信端口为第一通信端口,第二目标通信端口为第二通信端口。Optionally, in an embodiment of the present application, the first communication port is connected to the first communication line, and the second communication port is connected to the second communication line; the charger and the charging device are connected through the first communication line and the second communication line; the processor 110 is specifically used to switch the second communication port from a data receiving state to a data sending state if the first communication port receives a charging cable identification request sent by the charger; the processor 110 is specifically used to send target information to the charger through the second communication port; wherein the first target communication port is the first communication port, and the second target communication port is the second communication port.
可选地,在本申请实施例中,第一通信端口与第一通信线路连接,第二通信端口与第二通信线路连接;充电器与充电设备通过第一通信线路和第二通信线路相连接;处理器110,具体用于若第二通信端口接收到充电设备发送的充电线缆识别请求后,则将第一通信端口由数据接收状态切换为数据发送状态;处理器110,具体用于通过第一通信端口向充电设备发送目标信息;其中,第一目标通信端口为第二通信端口,第二目标通信端口为第一通信端口。Optionally, in an embodiment of the present application, the first communication port is connected to the first communication line, and the second communication port is connected to the second communication line; the charger is connected to the charging device through the first communication line and the second communication line; the processor 110 is specifically used to switch the first communication port from a data receiving state to a data sending state if the second communication port receives a charging cable identification request sent by the charging device; the processor 110 is specifically used to send target information to the charging device through the first communication port; wherein the first target communication port is the second communication port, and the second target communication port is the first communication port.
如此,充电线缆识别装置可以同时兼容充电器和充电设备两种获取充电线缆最大电流负载能力的方式,在不增加硬件成本的同时,提高了充电线缆的兼容性。In this way, the charging cable identification device can be compatible with both the charger and the charging device to obtain the maximum current load capacity of the charging cable, thereby improving the compatibility of the charging cable without increasing the hardware cost.
可选地,在本申请实施例中,处理器110,还用于若第一目标通信端口接收到第一指令,或者,若第一目标通信端口在预设时间内未接收到信息,则将第二目标通信端口由数据发送状态切换为数据接收状态。Optionally, in an embodiment of the present application, the processor 110 is further used to switch the second target communication port from a data sending state to a data receiving state if the first target communication port receives a first instruction, or if the first target communication port does not receive information within a preset time.
如此,充电线缆识别装置可以在与充电器或者充电设备完成通信后,自动进入监听模式,方便下一次通信。In this way, the charging cable identification device can automatically enter the monitoring mode after completing the communication with the charger or charging device, so as to facilitate the next communication.
可选地,在本申请实施例中,充电信息识别装置600,还包括:处理器110;处理器110,用于若检测到充电线缆的电路供电电压大于第一预设电压,则控制充电线缆识别装置进入休眠模式;或者,处理器110,还用于若检测到线缆的电路供电电压小于第二预设电压,则控制充电线缆识别装置进入监听模式;其中,第二预设电压小于第一预设电压。Optionally, in an embodiment of the present application, the charging information identification device 600 further includes: a processor 110; the processor 110 is used to control the charging cable identification device to enter a sleep mode if it is detected that the circuit power supply voltage of the charging cable is greater than a first preset voltage; or, the processor 110 is also used to control the charging cable identification device to enter a listening mode if it is detected that the circuit power supply voltage of the cable is less than a second preset voltage; wherein the second preset voltage is less than the first preset voltage.
如此,在满足预设条件的情况下,充电线缆识别装置进入休眠模式,降低功耗。In this way, when the preset conditions are met, the charging cable identification device enters the sleep mode to reduce power consumption.
本申请实施例提供的电子设备,充电线缆识别装置在监听模式下,第一通信端口和第二通信端口均处于数据接收状态,当第一通信端口和第二通信端口中第一目标通信端口接收到充电线缆识别请求后,通过将第一通信端口和第二通信端口中的第二目标通信端口切换为数据发送状态,并通过该第二目标通信端口,发送充电线缆识别信息,使得充电线缆识别装置在不增加E-Mark芯片的情况下,通过端口复用的方式,可以接收来自充电器或者充电设备的发送的识别请求,并将识别信息发送至充电器或者充电设备,提高了充电线缆的兼容性,降低了充电线缆的制造成本。同时,在满足预设条件的情况下,充电线缆识别装置自动进入休眠模式,降低了功耗。In the electronic device provided in the embodiment of the present application, the charging cable identification device is in the monitoring mode, and the first communication port and the second communication port are both in the data receiving state. When the first target communication port of the first communication port and the second communication port receives the charging cable identification request, the second target communication port of the first communication port and the second communication port is switched to the data sending state, and the charging cable identification information is sent through the second target communication port, so that the charging cable identification device can receive the identification request sent from the charger or the charging device through port multiplexing without adding an E-Mark chip, and send the identification information to the charger or the charging device, thereby improving the compatibility of the charging cable and reducing the manufacturing cost of the charging cable. At the same time, when the preset conditions are met, the charging cable identification device automatically enters the sleep mode to reduce power consumption.
应理解的是,本申请实施例中,输入单元104可以包括图形处理器(GraphicsProcessing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器109可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。It should be understood that in the embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include but are not limited to a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 109 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 110 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, the user interface, and the application program, etc., and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 110 .
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述充电线缆识别方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned charging cable identification method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述充电线缆识别方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned charging cable identification method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this article, the term "comprises", "includes" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the scope of protection of the purpose of the present application and the claims, all of which are within the protection of the present application.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011148232.3A CN112269086B (en) | 2020-10-23 | 2020-10-23 | Charging cable identification method, device, charging cable and readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011148232.3A CN112269086B (en) | 2020-10-23 | 2020-10-23 | Charging cable identification method, device, charging cable and readable storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN112269086A CN112269086A (en) | 2021-01-26 |
| CN112269086B true CN112269086B (en) | 2024-10-08 |
Family
ID=74341105
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202011148232.3A Active CN112269086B (en) | 2020-10-23 | 2020-10-23 | Charging cable identification method, device, charging cable and readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112269086B (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112769196B (en) * | 2021-02-04 | 2023-06-20 | 维沃移动通信有限公司 | A charging control method, device, electronic equipment and charger |
| CN115208433B (en) * | 2021-04-08 | 2025-09-02 | Oppo广东移动通信有限公司 | Charging cable, power supply device, terminal equipment and communication system |
| CN113991804B (en) * | 2021-11-22 | 2023-06-16 | 厦门东昂科技股份有限公司 | Charging protocol handshaking circuit and electronic equipment |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN205491151U (en) * | 2016-02-03 | 2016-08-17 | 北京卓锐微技术有限公司 | Microphone and mobile terminal |
| CN108763140A (en) * | 2018-04-23 | 2018-11-06 | 深圳市文鼎创数据科技有限公司 | A kind of method of two-way communication, system and terminal device |
| CN111157813A (en) * | 2019-12-31 | 2020-05-15 | Oppo广东移动通信有限公司 | Method and device for determining charging current |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060161689A1 (en) * | 2005-01-18 | 2006-07-20 | Hewlett-Packard Development Company, L.P. | Apparatus and systems for monitoring communication |
| WO2010073474A1 (en) * | 2008-12-24 | 2010-07-01 | 日本電気株式会社 | Communications system |
| JP2013232886A (en) * | 2012-04-06 | 2013-11-14 | Panasonic Corp | Communication device, method for detecting wiring state using communication device, and computer program |
| KR101355977B1 (en) * | 2012-05-24 | 2014-02-05 | 현대모비스 주식회사 | Telematics Communication System and Method |
| CN110650167B (en) * | 2018-06-26 | 2021-02-23 | 华为技术有限公司 | Communication method and device |
| CN110990319B (en) * | 2019-11-28 | 2021-07-20 | 北京雷石天地电子技术有限公司 | Synchronous serial bus multiplexing method, apparatus, terminal and non-transitory computer-readable storage medium |
-
2020
- 2020-10-23 CN CN202011148232.3A patent/CN112269086B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN205491151U (en) * | 2016-02-03 | 2016-08-17 | 北京卓锐微技术有限公司 | Microphone and mobile terminal |
| CN108763140A (en) * | 2018-04-23 | 2018-11-06 | 深圳市文鼎创数据科技有限公司 | A kind of method of two-way communication, system and terminal device |
| CN111157813A (en) * | 2019-12-31 | 2020-05-15 | Oppo广东移动通信有限公司 | Method and device for determining charging current |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112269086A (en) | 2021-01-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20210243831A1 (en) | Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device | |
| CN108899952B (en) | A multi-battery charging and discharging device and mobile terminal | |
| CN110191215B (en) | Terminal and processing method | |
| CN112269086B (en) | Charging cable identification method, device, charging cable and readable storage medium | |
| CN107635069B (en) | UART (Universal asynchronous receiver transmitter) and USB (Universal Serial bus) multiplexing circuit and mobile terminal | |
| US9395781B2 (en) | Electronic device to perform enumeration without power request to an external device when electronic device is on | |
| CN107678989B (en) | UART and USB multiplexing circuit and mobile terminal | |
| CN106786961A (en) | Charging process method, device and terminal | |
| CN106532876B (en) | Power supply control method and device and computer equipment | |
| CN111864858B (en) | Charging control method, device, electric equipment, charging equipment, system and medium | |
| CN112165140A (en) | Charging and discharging control method and device and power supply equipment | |
| US20060160569A1 (en) | Cellular phone and portable storage device using the same | |
| CN108777627B (en) | A power supply method and device | |
| WO2023045921A1 (en) | Display method and apparatus, and electronic device | |
| CN112994184B (en) | Reverse charging method, device and electronic device | |
| CN112542867B (en) | Mobile terminal power supply control method and device, terminal equipment and storage medium | |
| US9763196B2 (en) | Mobile hotspot UFI device and start-up method | |
| CN112769196B (en) | A charging control method, device, electronic equipment and charger | |
| US20220247198A1 (en) | Charging method and device, and device | |
| CN111384754B (en) | Charging method, charging device, storage medium and mobile terminal | |
| JP6586832B2 (en) | Information processing device | |
| CN113507515B (en) | Data transmission method, device, electronic equipment and storage medium | |
| CN112188592B (en) | Wireless hotspot connection control method and device and electronic equipment | |
| CN111987764B (en) | Discharge control method and device, storage medium and mobile terminal | |
| CN119853201A (en) | Method, device, equipment and storage medium for switching charging modes |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |