Charging cable identification method, device, charging cable and readable storage medium
By reusing communication ports in the charging cable control module, the problems of poor compatibility and high cost of charging cables are solved, improving the compatibility of charging cables and reducing power consumption without increasing hardware costs. .
Patent Information
- Application Number
- CN202011148232.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-23
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2040-10-23
AI Technical Summary
The charging cable has poor compatibility and high cost. Especially during fast charging, the E-Mark chip can only communicate with one party, resulting in insufficient compatibility. Adding dual E-Mark chips is more expensive.
By using two communication ports for port multiplexing in the control module of the charging cable, after receiving the identification request in the listening mode, it switches to the data sending state and sends the charging cable identification information, thereby improving compatibility. Reduce costs.
Without adding an E-Mark chip, the charging cable identification device can receive identification requests from chargers or charging equipment and send identification information, which improves the compatibility of charging cables, reduces manufacturing costs, and improves data processing. After the transfer is completed, it enters sleep mode to reduce power consumption.
Smart Images

Figure CN112269086B_ABST
Abstract
Description
Technical Field
[0001] 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
[0002] With the development of charging technology, more and more electronic devices support fast charging.
[0003] 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.
[0004] 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
[0005] 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.
[0006] In order to solve the above technical problems, this application is implemented as follows:
[0007] 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.
[0008] 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.
[0009] 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.
[0010] 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.
[0011] 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.
[0012] 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
[0013] Figure 1 This is a schematic diagram of the connection relationship of a related charging cable identification method provided in an embodiment of the present application;
[0014] Figure 2This is a schematic diagram of a charging cable identification method provided in an embodiment of the present application;
[0015] Figure 3 This is a schematic diagram of the connection relationship of a charging cable identification method provided in an embodiment of the present application;
[0016] Figure 4 It is a schematic diagram of the structure of a charging cable identification device provided in an embodiment of the present application;
[0017] Figure 5 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0018] 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.
[0019] The terms "first", "second", etc. in the specification and claims of the present 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.
[0020] The charging cable identification method provided in the embodiment of the present application can be applied to the scenario of charging an electronic device.
[0021] 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 fast charging (usually a fast charging protocol with a charging current greater than 3A), 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. Figure 1As shown, 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 and the charging device are connected through the D+ and D- of the TYPE-C interface, and data communication is performed through D+ and D-. 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 transmission, under normal circumstances, 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.
[0022] 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 others 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 will fast charge the charging device. Figure 1 As shown in (A), it 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. Figure 1 As shown in (B), it is a flow chart 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 an 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. However, due to the high cost of E-Mark chips, in order to reduce costs, a solution of one E-Mark chip is usually adopted, resulting in poor compatibility of the charging cable.
[0023] 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.
[0024] 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.
[0025] like Figure 2 As shown, a charging cable identification method provided in an embodiment of the present application is applied to a charging cable identification device, the device includes a first communication port and a second communication port, and the method may include the following steps 201 and 202:
[0026] 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.
[0027] 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.
[0028] Step 202: The charging cable identification device sends charging cable identification information through the second target communication port.
[0029] 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.
[0030] 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.
[0031] 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, as well as the cable impedance information, etc. 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.
[0032] 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.
[0033] 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.
[0034] 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:
[0035] Method 1:
[0036] In the first mode, the charging cable identification device receives a charging cable identification request sent from the charger.
[0037] Exemplarily, the above steps 201 and 202 may include the following steps 201a1 and 201a2:
[0038] 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.
[0039] Step 201a2: The charging cable identification device sends charging cable identification information to the charger through the second communication port.
[0040] The first target communication port is the first communication port, and the second target communication port is the second communication port.
[0041] 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.
[0042] 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.
[0043] Method 2:
[0044] In the second mode, the charging cable identification device receives a charging cable identification request sent from the charging device.
[0045] Exemplarily, the above steps 201 and 202 may include the following steps 201b1 and 201b2:
[0046] 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.
[0047] Step 201b2: The charging cable identification device sends target information to the charger through the first communication port.
[0048] The first target communication port is the second communication port, and the second target communication port is the first communication port.
[0049] 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.
[0050] For example, combining Figure 1 ,like Figure 3 As shown in (A), in the monitoring mode, the two communication ports Pin1 and Pin2 of the charging cable identification device are in a 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. Figure 3 As shown in (B), after receiving information from the charger 21, the Pin2 port is switched to the data transmission state, and the information is sent to the charger 21 through the Pin2 port. Conversely, after receiving information from the charging device 23, the Pin1 port is switched to the data transmission state, and the information is sent to the charging device 23 through the Pin1 port.
[0051] 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.
[0052] 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.
[0053] 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:
[0054] 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.
[0055] 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.
[0056] 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.
[0057] 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.
[0058] 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.
[0059] 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:
[0060] 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.
[0061] 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 a monitoring mode.
[0062] 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 listening mode.
[0063] 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.
[0064] Exemplarily, the power supply modes of the charging cable identification device include the following three:
[0065] Power supply mode 1:
[0066] In power supply mode 1, the charging cable identification device relies on the vbus cable of the TYPE-C interface for power supply.
[0067] Power supply method 2:
[0068] In power supply mode 2, the charging cable identification device relies on the vcon cable of the TYPE-C interface for power supply.
[0069] Power supply method 3:
[0070] 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.
[0071] It should be noted that the charging cable identification method provided in the embodiment of the present application is not only applicable to TYPE-C interface, but also to other types of interfaces, such as TYPE-A interface.
[0072] In this way, when the preset conditions are met, the charging cable identification device enters the sleep mode to reduce power consumption.
[0073] 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.
[0074] 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.
[0075] 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.
[0076] Figure 4 A possible structural diagram of a charging cable identification device provided in an embodiment of the present application is as follows: Figure 4 As shown, the charging cable identification device 600 includes: a receiving module 601 and a sending module 602. At the same time, 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.
[0077] 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.
[0078] 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.
[0079] 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.
[0080] 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.
[0081] 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.
[0082] 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.
[0083] The charging cable identification device provided in the embodiment of the present application can achieve Figure 2 and Figure 3 In order to avoid repetition, the various processes implemented by the charging cable identification device in the method embodiment are not described here.
[0084] 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.
[0085] 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.
[0086] 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.
[0087] Figure 5 A schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present application.
[0088] 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.
[0089] Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 5 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0090] 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.
[0091] 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.
[0092] 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.
[0093] 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.
[0094] 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.
[0095] 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.
[0096] 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.
[0097] 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.
[0098] In this way, when the preset conditions are met, the charging cable identification device enters the sleep mode to reduce power consumption.
[0099] 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.
[0100] 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.
[0101] 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.
[0102] 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.
[0103] 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.
[0104] 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.
[0105] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are 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 "comprise 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 methods and devices in the embodiments 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.
[0106] 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.
[0107] 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 purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A charging cable identification method, applied to a charging cable identification device, the device comprising: The first communication port and the second communication port are characterized in that the method comprises: When the charging cable identification device is in the monitoring 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; sending charging cable identification information through the second target communication port; Among them, 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.
2. The method according to claim 1, characterized in that: The first communication port is connected to a first communication line, and the second communication port is connected to a second communication line; the charger is connected to the charging device via the first communication line and the second communication line; If the first target communication port receives the charging cable identification request, switching the second target communication port from a data receiving state to a data sending state includes: If the first communication port receives the charging cable identification request sent by the charger, the second communication port is switched from a data receiving state to a data sending state; The sending the charging cable identification information through the second target communication port includes: sending target information to the charger via 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.
3. The method according to claim 1, characterized in that The first communication port is connected to a first communication line, and the second communication port is connected to a second communication line; the charger is connected to the charging device via the first communication line and the second communication line; If the first target communication port receives the charging cable identification request, switching the second target communication port from a data receiving state to a data sending state includes: If the second communication port receives the charging cable identification request sent by the charging device, the first communication port is switched from a data receiving state to a data sending state; Sending the charging cable identification information through the second target communication port includes: sending target information to the charging device 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.
4. The method according to claim 1, characterized in that: After sending the charging cable identification information through the second target communication port, the method further includes: If the first target communication port receives the first instruction, the second target communication port is switched from a data sending state to a data receiving state; or, If the first target communication port does not receive the first instruction within a preset time, the charging cable identification device is controlled to enter a sleep mode.
5. The method according to claim 1, characterized in that After sending the charging cable identification information through the second target communication port, the method further includes: If it is detected that the circuit power supply voltage of the charging cable is greater than a first preset voltage, controlling the charging cable identification device to enter a sleep mode; or, If it is detected that the circuit power supply voltage of the cable is less than a second preset voltage, controlling the charging cable identification device to enter a monitoring mode; Wherein, the second preset voltage is smaller than the first preset voltage.
6. A charging cable identification device, characterized in that: The device comprises: a receiving module and a sending module, a first communication port and a second communication port; The receiving module is configured 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 monitoring mode; The sending module is used to send the charging cable identification information through the second target communication port; Among them, 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.
7. The device according to claim 6, characterized in that The first communication port is connected to a first communication line, and the second communication port is connected to a second communication line; the charger is connected to the charging device via the first communication line and the second communication line; The receiving module is specifically configured 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 is specifically used to send target 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.
8. The device according to claim 6, characterized in that The first communication port is connected to a first communication line, and the second communication port is connected to a second communication line; the charger is connected to the charging device via the first communication line and the second communication line; The receiving module is specifically configured 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 is specifically used to send target information to the charging device 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.
9. The device according to claim 6, characterized in that The device also includes: a control module; The receiving module is further configured 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 is configured 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.
10. The device according to claim 6, characterized in that The device also includes: a control module; The control module is configured 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 is further configured to control the charging cable identification device to enter a monitoring 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 smaller than the first preset voltage.
11. A charging cable, characterized in that: The invention comprises 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 according to any one of claims 1 to 5.
12. A readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by the processor, the steps of the charging cable identification method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Communication system
CN102265688A
Telematics communication system and method
CN103428905A
Two-way communication method and system, and terminal device
CN108763140A
Communication method and device
CN110650167A
Synchronous serial bus multiplexing method and device, terminal, and non-temporary computer readable storage medium
CN110990319A
