CN112269086A - Charging cable identification method and device, charging cable and readable storage medium - Google Patents

Charging cable identification method and device, charging cable and readable storage medium Download PDF

Info

Publication number
CN112269086A
CN112269086A CN202011148232.3A CN202011148232A CN112269086A CN 112269086 A CN112269086 A CN 112269086A CN 202011148232 A CN202011148232 A CN 202011148232A CN 112269086 A CN112269086 A CN 112269086A
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.)
Granted
Application number
CN202011148232.3A
Other languages
Chinese (zh)
Other versions
CN112269086B (en
Inventor
郭朋飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011148232.3A priority Critical patent/CN112269086B/en
Publication of CN112269086A publication Critical patent/CN112269086A/en
Application granted granted Critical
Publication of CN112269086B publication Critical patent/CN112269086B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements 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

The application discloses a charging cable identification method and device, a charging cable and a readable storage medium, belongs to the technical field of communication, and can solve the problems of poor compatibility and high cost of the charging cable. The method comprises the following steps: under the condition that the charging cable identification device is in a monitoring mode, if the first target communication port receives a charging cable identification request, switching the data receiving state of the second target communication port into a data sending state, and sending 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 destination communication port is: one of a first communication port and a second communication port, and the second target communication port is a different communication port than the first target communication port; the first communication port and the second communication port are both in a data receiving state in the monitoring mode. The embodiment of the application is applied to a scene of charging the electronic equipment.

Description

Charging cable identification method and device, charging cable and readable storage medium
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a charging cable identification method and device, a charging cable and a readable storage medium.
Background
With the development of charging technology, more and more electronic devices support fast charging.
In the related art, the current for fast charging is usually large, and in order to ensure the charging safety during the charging process, the charger or the charging device needs to detect the overcurrent capability of the charging cable before performing fast charging. For a fast charging protocol with a charging current larger than 3A, an E-Mark (electronic Mark) chip scheme is generally adopted to obtain the overcurrent capability of the charging cable.
However, since the E-Mark chip can only communicate with one party (charger or charging device), the charging cable has poor compatibility, and the solution of using dual E-Mark chips to improve compatibility has high cost.
Disclosure of Invention
The embodiment of the application aims to provide a charging cable identification method, a charging cable identification device, a charging cable and a readable storage medium, and the problems of poor compatibility and high cost of the charging cable can be solved.
In order to solve the technical problem, the present 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, where the charging cable identification device includes: a first communication port and a second communication port, the method comprising: under the condition that the charging cable identification device is in a monitoring mode, if the first target communication port receives a charging cable identification request, switching the data receiving state of the second target communication port into a data sending state, and sending 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 destination communication port is: one of a first communication port and a second communication port, and the second target communication port is a different communication port than the first target communication port; and in the monitoring mode, the first communication port and the second communication port are both in a data receiving state.
In a second aspect, an embodiment of the present application further provides a charging cable identification device, where the charging cable identification device includes: the system comprises a receiving module, a sending module, a first communication port and a second communication port; the receiving module is used for switching the data receiving state of the second target communication port into a data sending state if the first target communication port receives the charging cable identification request under the condition that the charging cable identification device is in the monitoring mode; the transmitting module is used for transmitting the 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 destination communication port is: one of a first communication port and a second communication port, and the second target communication port is a different communication port than the first target communication port; the first communication port and the second communication port are both in a data receiving state in the monitoring mode.
In a third aspect, an embodiment of the present application provides a charging cable, including a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the charging cable identification method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, the first communication port and the second communication port are both in a data receiving state in the monitoring mode of the charging cable identification device, and after 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 a 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 by the charger or the charging equipment in a port multiplexing mode without adding an E-Mark chip, and send the identification information to the charger or the charging equipment, thereby improving the compatibility of the charging cable and reducing the manufacturing cost of the charging cable.
Drawings
Fig. 1 is a schematic connection relationship diagram of a related charging cable identification method according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a charging cable identification method according to an embodiment of the present disclosure;
fig. 3 is a schematic connection relationship diagram of a charging cable identification method according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a charging cable identification device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The charging cable identification method provided by the embodiment of the application can be applied to a scene of charging electronic equipment.
For example, in the related art, each terminal manufacturer has its own private fast charging protocol, and part of the fast charging protocol may increase the charging current, and in order to ensure charging safety, when performing fast charging at high current (typically, the fast charging protocol with the charging current greater than 3A), a charger or a charging device (e.g., a mobile phone, a tablet, etc.) may first send an identification information acquisition request to a control module in the charging cable, so as to acquire the maximum current load capability of the charging cable. As shown in fig. 1, the charging circuit in the related art includes 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 with the charging device through D + and D-of the TYPE-C interface, and performs data communication through D + and D-. And the charger 11 sends information to the charging device 13 through the D + cable, and the charger 11 receives the information sent by the charging device 13 through the D-cable. The control module 12 includes two communication ports, which are respectively connected to the D + and D-cables, and since the data transmission directions of D + and D-are both unidirectional transmission, in general, two communication ports of the E-Mark chip are disposed on the control module, one communication port is used for receiving data, and the other communication port is used for sending data.
However, due to the proprietary protocol of each manufacturer, there are manufacturers that obtain the maximum current load capability of the charging cable by the charger and manufacturers that obtain the maximum current load capability of the charging cable by the charging device. And after the maximum current load capacity of the charging cable meets the requirement of the quick charging protocol, the charger quickly charges the charging equipment. As shown in fig. 1 (a), a flowchart for acquiring the maximum current load capability of the charging cable for the charger is shown, 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 capability of the charging cable to the charger 11 through the Pin2 port. As shown in (B) of fig. 1, a flowchart for acquiring the maximum current load capability of the charging cable for the charging device is shown, 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 capability of the charging cable to the charging device 13 through the Pin2 port. It can be seen that one E-Mark chip can only satisfy one type of fast charge protocol, and if the two types of fast charge protocols are compatible, in the related art, two E-Mark chips are usually provided, however, since the cost of the E-Mark chip is high, in order to reduce the cost, the scheme of one E-Mark chip is usually adopted, which results in poor compatibility of the charging cable.
To solve the problem, in the technical solution provided in the embodiment of the present application, when the control module is in the default state, both the two communication ports of the E-Mark chip are in the data receiving state, and when one of the Pin1 port and the Pin2 port receives the identification request of the charging cable, the control module switches the other communication port to the data sending state and sends the identification information of the charging cable through the port, so that the control module of the charging cable can receive the identification request sent from the charger or the charging device and send the identification information to the charger or the charging device in a port multiplexing manner without increasing the E-Mark chip, thereby improving the compatibility of the charging cable and reducing the manufacturing cost of the charging cable. And after the data transmission is finished, the control module enters a sleep mode to reduce the power consumption.
The charging cable identification method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
As shown in fig. 2, a charging cable identification method provided in an embodiment of the present application is applied to a charging cable identification device, where the charging cable identification device includes a first communication port and a second communication port, and the method may include the following steps 201 and 202:
in step 201, under the condition that the charging cable identification apparatus is in the monitoring mode, if the first target communication port receives the charging cable identification request, the charging cable identification apparatus switches the second target communication port from the data receiving state to the data transmitting state.
For example, the charging cable identification device may be an E-Mark chip disposed in a charging cable, or an integrated circuit on which the E-Mark chip is mounted, where the E-Mark chip includes two communication ports, and unlike the related art, one of the two communication ports of the E-Mark chip is used for receiving data, and the other is used for transmitting data.
Step 202, the charging cable identification device sends the 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. And in the monitoring mode, the first communication port and the second communication port are both in a data receiving state.
For example, when a user uses a charging cable containing the charging cable identification device to perform charging, in order to prevent the charging current from exceeding the maximum carrying capacity of the charging cable, which creates a safety hazard, before performing charging, the charger or the charging device needs to send a charging cable identification request to the charging cable identification device, where the request is used to obtain the current carrying capacity of the charging cable. Since it is not clear whether the request is sent by the charger or the charging device before the charging cable identification apparatus receives the request, it is possible to set both the two communication ports of the charging cable identification apparatus to the data receiving state, and after the charging cable identification apparatus receives the request, the charging cable identification apparatus switches the data transmission state of the other communication port (i.e., the second target communication port) of the two communication ports except for the first target communication port that received the request from the data receiving state to the data transmitting state. Thereafter, the charging cable identification means transmits the charging cable identification information to the charger or the charging device through the second target communication port.
The charging cable identification request may be used to obtain maximum withstand voltage information of the charging cable, cable impedance information, and the like. The charging cable identification information is stored in an E-Mark chip of the charging cable identification device. The communication format of the communication is determined by the fast charging protocol.
Therefore, when 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 after 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 by the charger or the charging equipment in a port multiplexing mode without increasing an E-Mark chip, and send the identification information to the charger or the charging equipment, the compatibility of the charging cable is improved, and the manufacturing cost of the charging cable is reduced.
Optionally, in this embodiment of the 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 equipment through the first communication line, and receives the information sent by the charging equipment through the second communication line.
For example, based on the charging circuit, the charging cable identification device receives a charging cable identification request, and the following two ways may be included:
mode 1:
in the aspect 1, the charging cable identification device receives a charging cable identification request transmitted from the charger.
Illustratively, the steps 201 and 202 may include the following steps 201a1 and 201a 2:
in step 201a1, when the first communication port receives a charging cable identification request transmitted by the charger, the charging cable identification device switches the second communication port from the data reception state to the data transmission state.
Step 201a2, the charging cable identification means sends charging cable identification information to the charger through the second communication port.
The first target communication port is a first communication port, and the second target communication port is a second communication port.
For example, since it takes a certain time for the charging cable identification device to switch the first communication port from the data receiving state to the data transmitting state, the charging cable identification device may delay for a certain time (for example, delay for 5ms), and after the switching process is completed, the charging cable identification information may be transmitted to the charger through the second communication port.
In the aspect 1, since the charger transmits information to the charging device through the first communication line, the first communication port connected to the first communication line receives the information transmitted from the charger.
Mode 2:
in the aspect 2, the charging cable identification device receives a charging cable identification request transmitted from the charging apparatus.
Illustratively, the steps 201 and 202 may include the following steps 201b1 and 201b 2:
in step 201b1, when the second communication port receives the charging cable identification request sent by the charger, the charging cable identification device switches the first communication port from the data receiving state to the data sending state.
Step 201b2, the charging cable identification device sends the target information to the charger through the first communication port.
The first target communication port is a second communication port, and the second target communication port is a first communication port.
In the embodiment 2, since the charger receives the information transmitted from the charging device through the second communication line, the first communication port connected to the second communication line receives the information transmitted from the charger.
For example, referring to fig. 1, as shown in (a) of fig. 3, in the listening mode, the two communication ports Pin1 and Pin2 of the charging cable identification apparatus are in a data receiving state, and at this time, the information transmitted from the charger 21 may be received, and the information transmitted from the charging device 23 may also be received. As shown in fig. 3 (B), upon receiving the information transmitted from the charger 21, the Pin2 port is switched to the data transmission state, and the information is transmitted to the charger 21 through the Pin2 port. On the contrary, when receiving the information transmitted from the charging device 23, the Pin1 port is switched to the data transmission state, and the information is transmitted to the charging device 23 through the Pin1 port.
Therefore, the charging cable identification device can be compatible with two modes of a charger and a charging device for acquiring the maximum current load capacity of the charging cable, and the compatibility of the charging cable is improved while the hardware cost is not increased.
Optionally, in this embodiment of the application, after the charging cable identification apparatus completes one communication with the charger or the charging device, in order to be able to receive next instruction information of the charger or the charging device, the charging cable identification apparatus may switch the communication port in the data transmission state to the data reception state after receiving a control instruction of the charger or the charging device.
For example, after the step 202, the method for identifying a charging cable according to the embodiment of the present application may further include the following step 203a1 or step 203a 2:
in step 203a1, when the first target communication port receives the first command, the charging cable identification device switches the second target communication port from the data transmission state to the data reception state.
Step 203a2, if the first target communication port does not receive the first command within a preset time, the charging cable identification device controls the charging cable identification device to enter a sleep mode.
Illustratively, the first instruction is used for instructing the charging cable identification device to enter a listening mode. In some cases, the charger or the charging device does not send the first instruction to the charging cable identification device after completing communication with the charging cable identification device, and at this time, the charging cable identification device enters the sleep mode after not receiving any information within a preset time.
Therefore, the charging cable identification device can complete communication with the charger or the charging equipment and enter a monitoring mode after receiving a control command of the charger or the charging equipment, so that the next communication is facilitated.
Optionally, in this embodiment of the application, in order to reduce power consumption of the charging cable identification device, especially in a case where the mobile power source is used to charge the charging device, the charging cable identification device may enter the sleep mode after the quick charging is started.
For example, after the step 202, the method for identifying a charging cable according to the embodiment of the present application may further include the following step 203b or step 203 c:
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, controlling the charging cable identification device to enter a sleep mode.
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, controlling the charging cable identification device to enter a monitoring mode.
The second preset voltage is smaller than the first preset voltage. The power consumption of the sleep mode is less than the power consumption of the listening mode.
For example, after the charger or the charging device obtains the maximum current load of the charging cable, if the requirement of the fast charging protocol is met, the charger performs fast charging on the charging device, and at this time, a vcc (voltage supply voltage) of the charging cable identification device exceeds a first preset voltage, where the first preset voltage is typically 6 v. The charging cable identification device may determine whether the current charging circuit is in a charging state by detecting vcc. And if the current charging circuit is in a charging state, the charging cable identification device enters a sleep mode, and at the moment, the E-Mark chip is in sleep. Meanwhile, the charging cable identification device can also periodically detect whether the vcc is smaller than a second preset voltage, when the charging cable identification device detects that the vcc is smaller than the second preset voltage, the monitoring mode is entered, and at the moment, the E-Mark chip is awakened.
For example, the power supply method of the charging cable identification device includes the following three methods:
power supply method 1:
in the power supply mode 1, the charging cable recognition device is powered by a vbus cable of the TYPE-C interface.
Power supply method 2:
in the power supply method 2, the charging cable identification device is powered by the vcon cable of the TYPE-C interface.
Power supply method 3:
in power supply mode 3, the charging cable identification device can also supply power by means of a power supply pin independent of the TYPE-A interface.
It should be noted that the charging cable identification method provided in the embodiment of the present application is not only applicable to a TYPE-C interface, but also applicable to other TYPEs of interfaces, such as a TYPE-a interface.
Therefore, under the condition that the preset condition is met, the charging cable identification device enters the sleep mode, and power consumption is reduced.
In the charging cable identification method provided by the embodiment of the application, when 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, when a first target communication port of the first communication port and the second communication port receives a charging cable identification request, by switching the second target communication port of the first communication port and the second communication port to the data transmission state, and the charging cable identification information is sent through the second target communication port, so that the charging cable identification device can identify the charging cable through the port multiplexing mode under the condition of not increasing an E-Mark chip, the identification request sent by the charger or the charging equipment can be received, and the identification information is sent to the charger or the charging equipment, so that the compatibility of the charging cable is improved, and the manufacturing cost of the charging cable is reduced. Meanwhile, under the condition that the preset condition is met, the charging cable identification device automatically enters the sleep mode, and power consumption is reduced.
It should be noted that, in the charging cable identification method provided in the embodiment of the present application, the execution main body may be 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, a charging cable identification method executed by a charging cable identification device is taken as an example, and the charging cable identification device provided in the embodiment of the present application is described.
In the embodiments of the present application, the above-described methods are illustrated in the drawings. The charging cable identification method is exemplarily described with reference to one of the drawings in the embodiments of the present application. In specific implementation, the charging cable identification method shown in each method drawing can also be implemented by combining any other drawing which can be combined and is illustrated in the above embodiments, and details are not described here.
Fig. 4 is a schematic structural diagram of a possible charging cable identification apparatus according to an embodiment of the present disclosure, and as shown in fig. 4, the charging cable identification apparatus 600 includes: receiving module 601 and sending module 602, and meanwhile, charging cable identification apparatus 600 further includes: a first communication port and a second communication port; wherein: a receiving module 601, configured to switch a data receiving state of a second target communication port to a data sending state if a first target communication port receives a charging cable identification request when the charging cable identification apparatus is in a monitoring mode; a sending module 602, configured to send charging cable identification information through a second target communication port; wherein the first target communication port is: one of the first communication port and the second communication port; the second destination communication port is: one of a first communication port and a second communication port, and the second target communication port is different from the first target communication port; and in the monitoring mode, the first communication port and the second communication port are both in a data receiving state.
Optionally, in this 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 with the charging equipment through a first communication line and a second communication line; the receiving module 601 is specifically configured to switch the data receiving state of the second communication port to the data sending state if the first communication port receives the charging cable identification request sent by the charger; a sending module 602, specifically configured to send target information to the charger through the second communication port; the first target communication port is a first communication port, and the second target communication port is a second communication port.
Optionally, in this 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 with the charging equipment through a first communication line and a second communication line; the receiving module 601 is specifically configured to switch the first communication port from the data receiving state to the data sending state after the second communication port receives the charging cable identification request sent by the charging device; a sending module 602, specifically configured to send target information to a charging device through a first communication port; the first target communication port is a second communication port, and the second target communication port is a first communication port.
Optionally, in this embodiment of the present application, the charging information identifying apparatus 600 further includes: a control module 603; the receiving module 601 is further configured to switch the data sending state of the second target communication port to the data receiving state if the first target communication port receives the first instruction; or, the control module 603 is configured to control the charging cable identification apparatus to enter the sleep mode if the first target communication port does not receive the first instruction within the preset time.
Optionally, in this embodiment of the application, the control module 603 is configured to control the charging cable identification apparatus 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 further configured to control the charging cable identification apparatus 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; the second preset voltage is smaller than the first preset voltage.
The charging cable identification device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
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 (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The charging cable identification device provided in the embodiment of the present application can implement each process implemented by the charging cable identification device in the method embodiments of fig. 2 and fig. 3, and is not described here again to avoid repetition.
In the charging cable identification device provided by the embodiment of the application, when 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, when a first target communication port of the first communication port and the second communication port receives a charging cable identification request, by switching the second target communication port of the first communication port and the second communication port to the data transmission state, and the charging cable identification information is sent through the second target communication port, so that the charging cable identification device can identify the charging cable through the port multiplexing mode under the condition of not increasing an E-Mark chip, the identification request sent by the charger or the charging equipment can be received, and the identification information is sent to the charger or the charging equipment, so that the compatibility of the charging cable is improved, and the manufacturing cost of the charging cable is reduced. Meanwhile, under the condition that the preset condition is met, the charging cable identification device automatically enters the sleep mode, and power consumption is reduced.
Optionally, an electronic device is further provided in this embodiment of the present application, and includes a processor 110, a memory 109, and a program or an instruction stored in the memory 109 and capable of being executed on the processor 110, where the program or the instruction is executed by the processor 110 to implement each process of the charging cable identification method embodiment, and the same technical effect can be achieved, and in order to avoid repetition, details are not described here again.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present application.
The electronic device 100 includes, but is not limited to: 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.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., 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, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 5 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 110 is configured to, when the charging cable identification apparatus is in the monitoring mode, switch the second target communication port from the data receiving state to the data transmitting state if the first target communication port receives the charging cable identification request; a processor 110 for transmitting 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 destination communication port is: one of a first communication port and a second communication port, and the second target communication port is a different communication port than the first target communication port; the first communication port and the second communication port are both in a data receiving state in the monitoring mode.
Therefore, when 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 after 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 by the charger or the charging equipment in a port multiplexing mode without increasing an E-Mark chip, and send the identification information to the charger or the charging equipment, the compatibility of the charging cable is improved, and the manufacturing cost of the charging cable is reduced.
Optionally, in this 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 with the charging equipment through a first communication line and a second communication line; the processor 110 is specifically configured to switch the data receiving state of the second communication port to the data sending state if the first communication port receives the charging cable identification request sent by the charger; the processor 110 is specifically configured to send the target information to the charger through the second communication port; the first target communication port is a first communication port, and the second target communication port is a second communication port.
Optionally, in this 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 with the charging equipment through a first communication line and a second communication line; the processor 110 is specifically configured to switch the data receiving state of the first communication port to the data sending state if the second communication port receives the charging cable identification request sent by the charging device; the processor 110 is specifically configured to send target information to the charging device through the first communication port; the first target communication port is a second communication port, and the second target communication port is a first communication port.
Therefore, the charging cable identification device can be compatible with two modes of a charger and a charging device for acquiring the maximum current load capacity of the charging cable, and the compatibility of the charging cable is improved while the hardware cost is not increased.
Optionally, in this embodiment of the application, the processor 110 is further configured to switch the data sending state of the second target communication port to the data receiving state if the first target communication port receives the first instruction, or if the first target communication port does not receive the information within a preset time.
So, charging cable recognition device can be after accomplishing the communication with charger or battery charging outfit, and the mode is monitored in the automatic entering, makes things convenient for next communication.
Optionally, in this embodiment of the present application, the charging information identifying apparatus 600 further includes: a processor 110; the processor 110 is configured to control the charging cable identification apparatus to enter a sleep mode if it is detected that the circuit supply voltage of the charging cable is greater than a first preset voltage; or, the processor 110 is further configured to control the charging cable identification apparatus 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; the second preset voltage is smaller than the first preset voltage.
Therefore, under the condition that the preset condition is met, the charging cable identification device enters the sleep mode, and power consumption is reduced.
According to the electronic device provided by the embodiment of the 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 after 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 by the charger or the charging device through a port multiplexing mode under the condition that an E-Mark chip is not added, and send the identification information to the charger or the charging device, the compatibility of the charging cable is improved, and the manufacturing cost of the charging cable is reduced. Meanwhile, under the condition that the preset condition is met, the charging cable identification device automatically enters the sleep mode, and power consumption is reduced.
It should be understood that, in the embodiment of the present application, the input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing 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, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above charging cable identification method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the above charging cable identification method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. A charging cable identification method is applied to a charging cable identification device, and the device comprises the following steps: a first communication port and a second communication port, the method comprising:
under the condition that the charging cable identification device is in a monitoring mode, if a first target communication port receives a charging cable identification request, switching a data receiving state of a second target communication port into a data sending state;
transmitting 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; and in the monitoring mode, the first communication port and the second communication port are both in a data receiving state.
2. The method of claim 1, wherein 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 with the charging equipment through 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 the data receiving state to the data sending state, including:
if the first communication port receives a charging cable identification request sent by the charger, switching the second communication port from a data receiving state to a data sending state;
the sending charging cable identification information through the second target communication port includes:
sending 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.
3. The method of claim 1, wherein 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 with the charging equipment through 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 the data receiving state to the data sending state, including:
if the second communication port receives a charging cable identification request sent by the charging equipment, switching the first communication port from a data receiving state to a data sending state;
transmitting charging cable identification information through the second target communication port, including:
sending 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.
4. The method of claim 1, wherein after sending charging cable identification information through the second target communication port, the method further comprises:
if the first target communication port receives a first instruction, switching the second target communication port from a data sending state to a data receiving state;
or,
and if the first target communication port does not receive the first instruction within the preset time, controlling the charging cable identification device to enter a sleep mode.
5. The method of claim 1, wherein after sending destination information through the second destination communication port, the method further comprises:
if the circuit power supply voltage of the charging cable is detected to be greater than a first preset voltage, controlling the charging cable identification device to enter a sleep mode;
or,
if the circuit power supply voltage of the cable is detected to be smaller than a second preset voltage, controlling the charging cable identification device to enter a monitoring mode;
wherein the second preset voltage is less than the first preset voltage.
6. A charging cable identification apparatus, the apparatus comprising: the system comprises a receiving module, a sending module, a first communication port and a second communication port;
the receiving module is used for switching a data receiving state of the second target communication port into a data sending state if the first target communication port receives the charging cable identification request under the condition that the charging cable identification device is in a monitoring mode;
the sending module is used for sending 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; and in the monitoring mode, the first communication port and the second communication port are both in a data receiving state.
7. The apparatus of claim 6, wherein 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 with the charging equipment through 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 after the first communication port receives the charging cable identification request sent by the charger;
the sending module is specifically configured 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.
8. The apparatus of claim 6, wherein 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 with the charging equipment through 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 after the second communication port receives the charging cable identification request sent by the charging device;
the sending module is specifically configured 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.
9. The apparatus of claim 6, further comprising: 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 the 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 apparatus of claim 6, further comprising: a control module;
the control module is used for controlling the charging cable identification device to enter a sleep mode if the control module detects 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 supply voltage of the cable is less than a second preset voltage;
wherein the second preset voltage is less than the first preset voltage.
11. A charging cable comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing 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 thereon a program or instructions which, when executed by a processor, implement the steps of the charging cable identification method according to any one of claims 1 to 5.
CN202011148232.3A 2020-10-23 2020-10-23 Charging cable identification method and device, charging cable and readable storage medium Active CN112269086B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011148232.3A CN112269086B (en) 2020-10-23 2020-10-23 Charging cable identification method and 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 and device, charging cable and readable storage medium

Publications (2)

Publication Number Publication Date
CN112269086A true CN112269086A (en) 2021-01-26
CN112269086B 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 and device, charging cable and readable storage medium

Country Status (1)

Country Link
CN (1) CN112269086B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112769196A (en) * 2021-02-04 2021-05-07 维沃移动通信有限公司 Charging control method and device, electronic equipment and charger
CN113991804A (en) * 2021-11-22 2022-01-28 厦门东昂科技股份有限公司 Charging protocol handshaking circuit and electronic equipment
WO2022213738A1 (en) * 2021-04-08 2022-10-13 Oppo广东移动通信有限公司 Charging cable, power supply apparatus, terminal device, and communication system

Citations (9)

* Cited by examiner, † Cited by third party
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
CN102265688A (en) * 2008-12-24 2011-11-30 日本电气株式会社 Communications system
US20130265865A1 (en) * 2012-04-06 2013-10-10 Panasonic Corporation Communication device, and wiring state detection method and non-transitory computer-readable medium storing program using communication device
CN103428905A (en) * 2012-05-24 2013-12-04 现代摩比斯株式会社 Telematics communication system and method
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
CN110650167A (en) * 2018-06-26 2020-01-03 华为技术有限公司 Communication method and device
CN110990319A (en) * 2019-11-28 2020-04-10 北京雷石天地电子技术有限公司 Synchronous serial bus multiplexing method, device, terminal and non-transitory computer readable storage medium
CN111157813A (en) * 2019-12-31 2020-05-15 Oppo广东移动通信有限公司 Method and device for determining charging current

Patent Citations (9)

* Cited by examiner, † Cited by third party
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
CN102265688A (en) * 2008-12-24 2011-11-30 日本电气株式会社 Communications system
US20130265865A1 (en) * 2012-04-06 2013-10-10 Panasonic Corporation Communication device, and wiring state detection method and non-transitory computer-readable medium storing program using communication device
CN103428905A (en) * 2012-05-24 2013-12-04 现代摩比斯株式会社 Telematics communication system and method
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
CN110650167A (en) * 2018-06-26 2020-01-03 华为技术有限公司 Communication method and device
CN110990319A (en) * 2019-11-28 2020-04-10 北京雷石天地电子技术有限公司 Synchronous serial bus multiplexing method, device, terminal and non-transitory computer readable storage medium
CN111157813A (en) * 2019-12-31 2020-05-15 Oppo广东移动通信有限公司 Method and device for determining charging current

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112769196A (en) * 2021-02-04 2021-05-07 维沃移动通信有限公司 Charging control method and device, electronic equipment and charger
WO2022166698A1 (en) * 2021-02-04 2022-08-11 维沃移动通信有限公司 Charging control method and apparatus, electronic device, and charger
CN112769196B (en) * 2021-02-04 2023-06-20 维沃移动通信有限公司 Charging control method and device, electronic equipment and charger
WO2022213738A1 (en) * 2021-04-08 2022-10-13 Oppo广东移动通信有限公司 Charging cable, power supply apparatus, terminal device, and communication system
EP4304100A4 (en) * 2021-04-08 2024-10-02 Guangdong Oppo Mobile Telecommunications Corp Ltd Charging cable, power supply apparatus, terminal device, and communication system
CN113991804A (en) * 2021-11-22 2022-01-28 厦门东昂科技股份有限公司 Charging protocol handshaking circuit and electronic equipment
CN113991804B (en) * 2021-11-22 2023-06-16 厦门东昂科技股份有限公司 Charging protocol handshaking circuit and electronic equipment

Also Published As

Publication number Publication date
CN112269086B (en) 2024-10-08

Similar Documents

Publication Publication Date Title
CN112269086B (en) Charging cable identification method and device, charging cable and readable storage medium
US8285345B2 (en) Mobile terminal and method for switching states thereof
JP5100854B2 (en) Communication apparatus and communication method
CN102263904B (en) Method and system for controlling double cameras and electronic equipment with double cameras
CN112165140B (en) Charging and discharging control method and device and power supply equipment
CN113473006B (en) Information processing apparatus, image pickup apparatus, information processing system, information processing method, and non-transitory computer-readable medium
US9395781B2 (en) Electronic device to perform enumeration without power request to an external device when electronic device is on
CN111490578A (en) Charging control method and device
US20230378767A1 (en) Charging control method and apparatus, electronic device, and charger
CN108777627B (en) Power supply method and device
CN111864858A (en) Charging control method, charging control device, power utilization equipment, charging system and medium
CN112542867B (en) Mobile terminal power supply control method and device, terminal equipment and storage medium
CN115567901A (en) Method, device, equipment and storage medium for operating user identity identification card
CN110995324B (en) Bluetooth communication method, device, storage medium and terminal equipment
CN105208208B (en) Network connection switchs deployment method and device
CN113922522A (en) Wireless charging management method, system, electronic device and storage medium
CN113613310A (en) WIFI connection method and device, storage medium and mobile terminal
CN107402898B (en) Information processing method and electronic equipment
CN107562167B (en) Multi-path charging method, mobile terminal and computer-readable storage medium
CN105786534A (en) Information acquisition method and device
CN112738908B (en) Electronic equipment connection method and device and electronic equipment
CN112702083B (en) Electronic device and communication method
CN116016639B (en) Link management method, device and system
CN111093173B (en) Method and device for limiting starting of STK application
JP2017054278A (en) Information processing apparatus

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