CN113949116B - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN113949116B
CN113949116B CN202011175402.7A CN202011175402A CN113949116B CN 113949116 B CN113949116 B CN 113949116B CN 202011175402 A CN202011175402 A CN 202011175402A CN 113949116 B CN113949116 B CN 113949116B
Authority
CN
China
Prior art keywords
signal
electronic device
message
pin
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011175402.7A
Other languages
Chinese (zh)
Other versions
CN113949116A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to PCT/CN2021/106599 priority Critical patent/WO2022012644A1/en
Priority to CN202211602263.0A priority patent/CN115864582A/en
Priority to EP21842808.4A priority patent/EP4181341A4/en
Priority to CN202180003825.7A priority patent/CN114631244A/en
Priority to CN202210012459.8A priority patent/CN114297127B/en
Priority to CN202210012219.8A priority patent/CN114297126B/en
Priority to CN202211613029.8A priority patent/CN115912567A/en
Priority to US18/014,529 priority patent/US20230261477A1/en
Publication of CN113949116A publication Critical patent/CN113949116A/en
Application granted granted Critical
Publication of CN113949116B publication Critical patent/CN113949116B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0063Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with circuits adapted for supplying loads from the battery
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J2207/00Indexing scheme relating to details of circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J2207/20Charging or discharging characterised by the power electronics converter

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a data transmission method and a data transmission device, wherein first electronic equipment is connected with second electronic equipment through third electronic equipment, the third electronic equipment comprises a first data signal line and a second data signal line, and when the method is applied to the first electronic equipment, the connection with the second electronic equipment can be detected; sending a first message through a first pin; the first pin is connected with a first data signal line; receiving a second message through a second pin; the second pin is connected with a second data signal line; the first message and the second message are used for setting charging of the first electronic device.

Description

Data transmission method and device
Cross Reference to Related Applications
The present application claims priority from chinese patent office, application number 202010682894.2, application name "a data transmission method, apparatus and system" filed 15 in 07 in 2020, the entire contents of which are incorporated herein by reference.
Technical Field
The present application relates to the field of charging technologies, and in particular, to a data transmission method and apparatus.
Background
With the trend of diversification of functions and large screen of the intelligent terminal, the power consumption of the equipment is gradually increased, the battery capacity is gradually increased, and the requirements of the intelligent terminal equipment on quick charge are more and more strong. A variety of fast charge protocols have been derived in the industry in recent years.
One Type of fast charging protocol is a single-wire communication (Configuration Channel, CC) fast charging protocol, a representative of the CC-based communication protocol is USB PD, and a terminal product in the USB PD may support a USB class C USB interface defined by the USB association, referred to as a Type-C interface, where the USB Type-C interface has the advantages that: the USB interface double-sided insertion is supported, the USB interface double-sided insertion device is of a thinner and simpler design, and has stronger circuit transmission (maximum 100W), and the terminal product can be rapidly charged due to the advantages, so that the charging requirement of a customer is met. But the USB PD fast charge protocol can not be applied in other scene that charges except Type-C to Type-C interface, for example Type A to interface scene such as Type B, and USB PD protocol has great restriction to charging power, specification, and it is comparatively complicated to realize, and the cost is higher.
Another type of fast charging protocol is a fast charging protocol based on d+/D- (data+/Data-) channel communication, such as the State of Charge (SCP), OPPO VOOC, QC, samsung AFC, etc., but in the existing charging process based on d+/D- (data+/Data-) channel communication, the transmission efficiency of charging Data or instructions is very low, and in the charging process of a terminal product, delay may occur in the transmission of the charging state of the terminal or power supply device or the information waiting for transmission due to sudden faults, which may affect the security of the charging system.
Disclosure of Invention
The application provides a data transmission method and a data transmission device, which are used for improving the data transmission efficiency of a D+/D-channel in a charging process.
In a first aspect, the present application provides a data transmission method applied to a first electronic device, where the first electronic device is connected to a second electronic device through a third electronic device, where the third electronic device includes a first data signal line and a second data signal line, and the method includes: detecting a connection with the second electronic device; sending a first message through a first pin; the first pin is connected with a first data signal line; receiving a second message through a second pin; the second pin is connected with a second data signal line; the first message and the second message are used for setting charging of the first electronic device.
Unlike the prior art in which the transmission and reception of messages between the first electronic device and the second electronic device can only be performed via the D-data signal line. By the method, the messages can be sent and received on different data signal lines, so that the messages can be sent to the opposite terminal without waiting for the opposite terminal to finish sending, and the transmission efficiency of the data on the data signal lines is effectively improved. In addition, compared with the scheme that the second electronic equipment is used as equipment to be charged, when the second electronic equipment is used as power supply equipment, in the prior art, only the first electronic equipment can actively send a message to the second electronic equipment, and the second electronic equipment responds passively.
One possible implementation manner, the first pin is a pin connected with a negative signal data line; the second pin is a pin connected with the positive signal data line.
One possible implementation manner, the first pin is a pin connected with a positive signal data line; the second pin is a pin connected with the negative signal data line.
By the method, the pin of the positive signal data line (for example, D+) is set as the first pin, the pin of the negative signal data line (for example, D-) is set as the second pin, the pin of the positive signal data line (for example, D+) is set as the second pin, and the pin of the negative signal data line (for example, D-) is set as the first pin, so that signals can be independently sent or received on different data lines, duplex transmission on the signal data lines is realized, and different duplex transmission modes can be set as required, thereby effectively improving the data transmission efficiency and the flexibility of data transmission.
One possible implementation manner, detecting connection with a second electronic device through the first pin or the second pin, and determining that the second electronic device is a proprietary charging interface (DCP) device; transmitting a first pulse signal through the first pin; and detecting an electric signal of the second electronic device through the second pin, and confirming that the second electronic device supports a quick charging mode.
Considering that the handshake process of the communication protocol in the prior art consumes longer time, by the method for sending the first pulse signal, the handshake protocol that the first electronic device and the second electronic device support the battery of the first electronic device to be charged in the quick charging mode is realized, and the second electronic device can quickly detect the first pulse signal, so that the time for entering the quick charging mode is shortened, and particularly when the electric quantity of the first electronic device is too low, the quick charging mode can be quickly entered to improve the charging experience.
In one possible implementation manner, the second pin is a pin connected to a positive signal data line, and the electrical signal is a second response signal.
By the method, when the second pin is a pin connected with the positive signal data line, the first electronic device is considered to send the first pulse signal through the first pin, and at the moment, the first pin is a negative signal data line and is at a low level in an idle state. Thus, the electrical signal of the second electronic device may be the second response signal, for example, the second response signal may be a high level pulse signal. Therefore, the first electronic device can quickly confirm that the handshake is completed by detecting the second response signal, and the time for entering the quick charging mode is further shortened.
In one possible implementation manner, the second pin is a pin connected to a negative signal data line, and the electrical signal is a first response signal.
By the method, when the second pin is a pin connected with the negative signal data line, the first electronic device is considered to send the first pulse signal through the first pin, and at this time, the first pin is a positive signal data line and is at a high level in an idle state. Thus, the electrical signal of the second electronic device may be the first response signal, for example, the first response signal may be a low level pulse signal. Therefore, the first electronic device can quickly confirm that the handshake is completed by detecting the first response signal, and the time for entering the quick charging mode is further shortened.
A possible implementation manner, the first message includes: a first identifier; the first identifier is used for indicating a receiver of the first message; the second message includes: a second identifier; the second identity is used to indicate a recipient of the second message.
One possible implementation manner is that the receiver of the first message is a chip of the third electronic device, and the receiver of the second message is the first electronic device; one possible implementation manner, the receiver of the first message is the second electronic device; the receiver of the second message is the first electronic device.
By the method, the identification can be set for the receiver of the message, so that the receiver of the message in the data transmission system is distinguished, the mishandling of the message is avoided, and the reliability of the message transmission is improved.
A possible implementation manner, before the first message is sent through the first pin, further includes: transmitting a first signal through the first pin; the frequency of the first signal is a first frequency; the first signal is used to indicate that the frequency of the first message is the first frequency.
Through the method, the first electronic equipment can send the first signal, so that the frequency of sending the first signal is determined through negotiation with the second electronic equipment, the frequency of signals transmitted by the first electronic equipment and the second electronic equipment can be negotiated and adjusted according to the needs, the flexibility of data transmission is improved, in addition, the anti-interference capability on the data transmission can be realized through adjusting the frequency of the signals, the reliability of the data signal transmission is improved, and the performance of the data transmission is improved.
One possible implementation receives a second signal through the second pin; the frequency of the second signal is a second frequency; the second signal is used to indicate that the frequency of the second message is the second frequency.
By the method, the first electronic device can receive the second signal sent by the second electronic device to determine that the frequency for sending the first signal is the second frequency through negotiation with the second electronic device.
A possible implementation manner, the first message includes at least one of the following: at least one data frame, a cyclic redundancy check field; wherein one data frame includes: a start field, an end field, a data packet header field, and a data field.
By the method, the first electronic equipment can determine the content of the message sent to the second electronic equipment according to the requirement, and the flexibility of sending the first message is improved. The second electronic device can accurately receive the first message through the start field and the end field of the transmitted data frame, and in addition, the reliability of data transmission can be improved through the cyclic redundancy check field. Similarly, the second electronic device or the third device can determine the content of the second message sent to the first electronic device according to the requirement, so that the flexibility of sending the second message is improved.
A possible implementation, the packet header field includes the first identifier.
By the method, after the receiving end (for example, the second electronic device or the third electronic device) receives the first message, the first identifier included in the data packet header field can be determined first, so that whether the first message is sent to the receiving end or not is determined, after the first message is confirmed to be sent to the receiving end, the remaining fields are analyzed, and therefore unnecessary message processing of the receiving end is avoided, and power consumption is saved.
A possible implementation manner, before the first message is sent through the first pin, further includes: transmitting a start signal; the start signal is a low level signal; after the first message is sent through the first pin, the method further includes: a transmission end signal; the end signal is a high level signal.
By the method, the method for transmitting the initial signal can be adopted, so that the receiving end determines the initial of the message transmission, and the efficiency of message receiving is improved. And the receiving end determines the end of the message sending by means of the end signal sending, so that the receiving end is prevented from receiving the message by mistake, and the efficiency of receiving the message is improved.
A possible implementation manner, before the second message is received through the second pin, further includes: receiving a start signal; the start signal is a low level signal; after receiving the second message through the second pin, the method further includes: receiving an end signal; the end signal is a high level signal.
By the method, the start of the received message can be determined through the received start signal, and the efficiency of receiving the message is improved. And the end of the received message is determined through the received end signal, so that the error receiving of the message is avoided, and the efficiency of receiving the message is improved.
One possible implementation way sends a first reset signal through the first pin; the first reset signal is used for indicating a receiver of the first reset signal to reset; the pulse width of the first reset signal has an association relation with the receiver.
By the method, when the data transmission is confirmed to be abnormal or other abnormal conditions, the first reset signal can be sent to the second electronic equipment or the third electronic equipment, so that the receiver confirms that the current data transmission is abnormal according to the received first reset signal, damage can be timely stopped, damage to equipment caused by abnormal charging behaviors is avoided, and charging safety is improved. In addition, in order to distinguish the first reset signals sent to different receivers, the pulse width of the first reset signals can be associated with the receivers, so that error reset is avoided.
In a second aspect, the present application provides a data transmission method applied to a second electronic device, where the second electronic device is connected to a first electronic device through a third electronic device, and the third electronic device includes a first data signal line and a second data signal line, where the method includes: determining a connection with the first electronic device; receiving a first message through a first pin; the first pin is connected with a first data signal line; sending a second message through a second pin; the second pin is connected with a second data signal line; the first message and the second message are used for setting charging of the first electronic device.
Unlike the prior art in which the transmission and reception of messages between the first electronic device and the second electronic device can only be performed via the D-data signal line. By the method, the messages can be sent and received on different data signal lines, so that the messages can be sent to the opposite terminal without waiting for the opposite terminal to finish sending, and in addition, compared with the scheme that the second electronic equipment is used as a charging equipment and only can respond passively in the prior art, the second electronic equipment can also actively send the messages to the first electronic equipment or the third electronic equipment, thereby effectively improving the transmission efficiency of data on the data signal lines. Especially when the second electronic device or the third electronic device is abnormal, the scene which needs to be actively reported can effectively improve the safety of the charging process.
One possible implementation manner, the first pin is a pin connected with a negative signal data line; the second pin is a pin connected with the positive signal data line.
One possible implementation manner, the first pin is a pin connected with a positive signal data line; the second pin is a pin connected with the negative signal data line.
By the method, the pin of the positive signal data line (for example, D+) is set as the first pin, the pin of the negative signal data line (for example, D-) is set as the second pin, the pin of the positive signal data line (for example, D+) is set as the second pin, and the pin of the negative signal data line (for example, D-) is set as the first pin, so that signals can be independently sent or received on different data lines, duplex transmission on the signal data lines is realized, and different duplex transmission modes can be set as required, thereby effectively improving the data transmission efficiency and the flexibility of data transmission.
One possible implementation manner, the detection from the first electronic device is received through the first pin or the second pin, and the detection is used for the first electronic device to determine that the second electronic device is a proprietary charging interface (DCP) device;
Receiving a first pulse signal from the first electronic device through the first pin; and sending an electric signal to the first electronic device through the second pin, and confirming that the battery of the first electronic device is charged through a quick charging mode.
Considering that the handshake process of the communication protocol in the prior art consumes longer time, by the method for sending the first pulse signal by the first electronic device, the handshake protocol that the first electronic device and the second electronic device support the battery of the first electronic device to be charged by the fast charging mode is realized, and the second electronic device can rapidly detect the first pulse signal, so that the time for entering the fast charging mode is shortened, and particularly when the electric quantity of the first electronic device is too low, the fast charging mode can be rapidly entered to improve the charging experience.
One possible implementation manner, the second pin is a pin connected to a positive signal data line, and the electrical signal is a second pulse signal; the second pin is a pin connected with a negative signal data line, and the electric signal is a low-level signal.
By the method, when the second pin is a pin connected with the negative signal data line, the first electronic device is considered to send the first pulse signal through the first pin, and at this time, the first pin is a positive signal data line and is at a high level in an idle state. Thus, the electrical signal of the second electronic device may be the first response signal, for example, the first response signal may be a low level pulse signal. Therefore, the first electronic device can quickly confirm that the handshake is completed by detecting the first response signal, and the time for entering the quick charging mode is further shortened.
A possible implementation manner, the first message includes: a first identifier; the first identifier is used for indicating a receiver of the first message; the second message includes: a second identifier; the second identity is used to indicate a recipient of the second message.
By the method, the identification can be set for the receiver of the message, so that the receiver of the message in the data transmission system is distinguished, the mishandling of the message is avoided, and the reliability of the message transmission is improved.
One possible implementation manner, the receiver of the first message is the second electronic device; the receiver of the second message is the first electronic device.
In one possible implementation manner, when the receiving side of the first message is the chip of the third electronic device, the second message is not sent to the first electronic device.
By the method, the occurrence of conflict caused by the fact that the second electronic equipment actively sends the message to the first electronic equipment when the first electronic equipment and the third electronic equipment transmit the message can be avoided, and the reliability of message transmission is improved.
A possible implementation manner, before the second message is sent through the second pin, further includes: transmitting a second signal through the second pin; the frequency of the second signal is a second frequency; the second signal is used to indicate that the frequency of the second message is the second frequency.
By the method, the second electronic device can send the second signal to the first device, so that the first device can determine that the frequency of the first signal sent by the first electronic device is the second frequency through negotiation with the second electronic device. The frequency of the signals transmitted by the first electronic equipment and the second electronic equipment can be negotiated and adjusted according to the requirements, and the flexibility of data transmission is improved. In addition, the anti-interference capability on data transmission can be realized by adjusting the frequency of the signal, the reliability of data signal transmission is improved, and the performance of data transmission is improved.
One possible implementation receives a first signal through the first pin; the frequency of the first signal is a first frequency; the first signal is used to indicate that the frequency of the first message is the first frequency.
By the method, the first electronic equipment can send the first signal, so that the frequency of sending the first signal is determined by negotiation with the second electronic equipment, the frequency of the signal transmitted by the first electronic equipment and the frequency of the signal transmitted by the second electronic equipment can be negotiated and adjusted according to the requirement, and the flexibility of data transmission is improved. In addition, the anti-interference capability on data transmission can be realized by adjusting the frequency of the signal, the reliability of data signal transmission is improved, and the performance of data transmission is improved.
A possible implementation manner, the first message includes at least one data frame; the data frame is any one of the following: header information, data information, control information, cyclic redundancy check; wherein one data frame includes: a start field, a data field, and an end field.
By the method, the first electronic equipment can determine the content of the message sent to the second electronic equipment according to the requirement, and the flexibility of sending the first message is improved. The second electronic device can accurately receive the first message through the start field and the end field of the transmitted data frame, and in addition, the reliability of data transmission can be improved through the cyclic redundancy check field. Similarly, the second electronic device can also determine the content of the second message sent to the first electronic device according to the requirement, so that the flexibility of sending the second message is improved.
A possible implementation manner, before the second message is sent through the second pin, further includes: transmitting a start signal; the start signal is a low level signal; after the second message is sent through the second pin, the method further includes: a transmission end signal; the end signal is a high level signal.
By the method, the method for transmitting the initial signal can be adopted, so that the receiving end determines the initial of the message transmission, and the efficiency of message receiving is improved. And the receiving end determines the end of the message sending by means of the end signal sending, so that the receiving end is prevented from receiving the message by mistake, and the efficiency of receiving the message is improved.
A possible implementation manner, before the receiving the first message through the first pin, further includes: receiving a start signal; the start signal is a low level signal; after the first message is received through the first pin, the method further includes: receiving an end signal; the end signal is a high level signal.
By the method, the start of the received message can be determined through the received start signal, and the efficiency of receiving the message is improved. And the end of the received message is determined through the received end signal, so that the error receiving of the message is avoided, and the efficiency of receiving the message is improved.
One possible implementation manner receives a first reset signal through the first pin; the pulse width of the first reset signal has an association relationship with the second electronic device; and resetting the second electronic equipment according to the first reset signal.
By the method, when the first electronic equipment confirms that the data transmission is abnormal or other abnormal conditions occur, the first reset signal can be sent to the second electronic equipment, so that the second electronic equipment confirms that the current data transmission is abnormal according to the first reset signal sent by the first electronic equipment, damage can be timely stopped, damage to each electronic equipment caused by abnormal charging behaviors is avoided, and charging safety is improved.
One possible implementation receives a second reset signal through the first pin; the pulse width of the second reset signal has an association relationship with the third electronic device; the second reset signal is ignored.
By the method, the first reset signals sent by the first electronic equipment to other receivers can be distinguished, so that the second electronic equipment is prevented from being reset by mistake according to the second reset signals.
In a third aspect, the present application provides a data transmission method applied to a third electronic device, where the third electronic device is configured to connect a second electronic device with a first electronic device, and the third electronic device includes a first data signal line and a second data signal line, and the method includes: receiving a first message through a first pin; the first pin is connected with a first data signal line; sending a second message through a second pin; the second pin is connected with a second data signal line; the first message and the second message are used for setting charging of the first electronic device.
Unlike the prior art in which the transmission and reception of messages between the first electronic device and the second electronic device can only be performed via the D-data signal line. By the method, the messages can be sent and received on different data signal lines, so that the messages can be sent to the opposite terminal without waiting for the opposite terminal to finish sending, and the transmission efficiency of the data on the data signal lines is effectively improved. In addition, compared with the scheme that the second electronic equipment is used as equipment to be charged, when the second electronic equipment is used as power supply equipment, in the prior art, only the first electronic equipment can actively send a message to the second electronic equipment, and the second electronic equipment responds passively.
One possible implementation manner, the first pin is a pin connected with a negative signal data line; the second pin is a pin connected with the positive signal data line.
One possible implementation manner, the first pin is a pin connected with a positive signal data line; the second pin is a pin connected with the negative signal data line.
By the method, the pin of the positive signal data line (for example, D+) is set as the first pin, the pin of the negative signal data line (for example, D-) is set as the second pin, the pin of the positive signal data line (for example, D+) is set as the second pin, and the pin of the negative signal data line (for example, D-) is set as the first pin, so that signals can be independently sent or received on different data lines, duplex transmission on the signal data lines is realized, and different duplex transmission modes can be set as required, thereby effectively improving the data transmission efficiency and the flexibility of data transmission.
A possible implementation manner, the first message includes: a first identifier; the first identifier is used for indicating a receiver of the first message; the second message includes: a second identifier; the second identity is used to indicate a recipient of the second message.
Considering that a third electronic device may also participate in the data transmission, for example, in one possible implementation manner, the receiving side of the first message is the third electronic device; the receiver of the second message is the first electronic device. By the method, the identification can be set for the receiver of the message, so that the receiver of the message in the data transmission system is distinguished, the mishandling of the message is avoided, and the reliability of message transmission is improved.
In one possible implementation manner, when the receiver of the first message is the second electronic device, the second message is not sent to the first electronic device.
By the method, the occurrence of conflict caused by the fact that the second electronic equipment actively sends the message to the first electronic equipment when the first electronic equipment and the third electronic equipment transmit the message can be avoided, and the reliability of message transmission is improved.
One possible implementation receives a first signal through the first pin; the frequency of the first signal is a first frequency; the first signal is used for indicating that the frequency of the first message is the first frequency;
Before the second message is sent through the second pin, the method further includes: transmitting a first signal through the second pin; the frequency of the first signal is a second frequency; the first signal is used to indicate that the frequency of the first message is the second frequency.
By the method, the third electronic device can send the second signal to the first device, so that the first device can determine that the frequency of the first signal sent by the first electronic device is the second frequency through negotiation with the third electronic device. The frequency of the signals transmitted by the first electronic equipment and the third electronic equipment can be negotiated and adjusted according to the requirements, and the flexibility of data transmission is improved. In addition, the anti-interference capability on data transmission can be realized by adjusting the frequency of the signal, the reliability of data signal transmission is improved, and the performance of data transmission is improved.
A possible implementation manner, the first message includes at least one data frame; the data frame is any one of the following: header information, data information, control information, cyclic redundancy check; wherein one data frame includes: a start field, a data field, and an end field.
By the method, the first electronic equipment can determine the content of the message sent to the third electronic equipment according to the requirement, and the flexibility of sending the first message is improved. The third electronic device can accurately receive the first message through the start field and the end field of the transmitted data frame, and in addition, the reliability of data transmission can be improved through the cyclic redundancy check field. Similarly, the third device can also determine the content of the second message sent to the first electronic device according to the requirement, so that the flexibility of sending the second message is improved.
A possible implementation manner, before the second message is sent through the second pin, further includes: transmitting a start signal; the start signal is a low level signal; after the second message is sent through the second pin, the method further includes: a transmission end signal; the end signal is a high level signal.
By the method, the method for transmitting the initial signal can be adopted, so that the receiving end determines the initial of the message transmission, and the efficiency of message receiving is improved. And the receiving end determines the end of the message sending by means of the end signal sending, so that the receiving end is prevented from receiving the message by mistake, and the efficiency of receiving the message is improved.
A possible implementation manner, before the receiving the first message through the first pin, further includes: receiving a start signal; the start signal is a low level signal; after the first message is received through the first pin, the method further includes: receiving an end signal; the end signal is a high level signal.
By the method, the start of the received message can be determined through the received start signal, and the efficiency of receiving the message is improved. And the end of the received message is determined through the received end signal, so that the error receiving of the message is avoided, and the efficiency of receiving the message is improved.
One possible implementation receives a second reset signal through the first pin; the pulse width of the second reset signal has an association relationship with the third electronic device; and resetting according to the second reset signal.
By the method, when the first electronic equipment confirms that the data transmission is abnormal or other abnormal conditions occur, the second reset signal can be sent to the third electronic equipment, so that the third electronic equipment confirms that the current data transmission is abnormal according to the received second reset signal, damage can be timely stopped, damage to each electronic equipment caused by abnormal charging behaviors is avoided, and charging safety is improved.
One possible implementation manner receives a first reset signal through the first pin; the pulse width of the first reset signal has an association relationship with the second electronic device; the first reset signal is ignored.
By the method, the first reset signals sent by the first electronic equipment to other receivers can be distinguished, so that the third electronic equipment is prevented from being reset by mistake according to the first reset signals.
In a fourth aspect, the present application provides a data transmission method applied to a first electronic device, where the first electronic device is connected to a second electronic device through a third electronic device, where the third electronic device includes a first data signal line, and the method includes: detecting a connection with the second electronic device; sending a first message through a first pin; or receiving a second message through the first pin; wherein the first message and the second message are Manchester encoded messages; the first pin is connected with a first data signal line; the first message and the second message are used for setting charging of the first electronic device.
By the method, the first electronic equipment can send the first message after Manchester encoding, and decode the received second message through Manchester encoding, so that a synchronous clock signal is not required to be sent in the message, and the problems that a receiving end is difficult to receive continuous high-frequency signals, poor in transmission performance and low in transmission efficiency in the prior art are avoided.
One possible implementation manner, the first pin is a pin connected with a negative signal data line; or the first pin is a pin connected with a positive signal data line.
By the method, the first pins for transmitting the first message and the second message can be flexibly configured, so that data transmission is more flexible.
One possible implementation way is to detect a connection with a second electronic device through the first pin and the second pin, and determine that the second electronic device is a proprietary charging interface DCP device; transmitting a first pulse signal through the first pin; and detecting an electric signal of the second electronic device through the second pin, and confirming whether the battery of the first electronic device is charged through a quick charging mode.
Considering that the handshake process of the communication protocol in the prior art consumes longer time, by the method for sending the first pulse signal, the handshake protocol that the first electronic device and the second electronic device support the battery of the first electronic device to be charged in the quick charging mode is realized, the time for entering the quick charging mode is shortened, and particularly when the electric quantity of the first electronic device is too low, the quick charging mode can be quickly entered to improve the charging experience.
In one possible implementation manner, the second pin is a pin connected to a positive signal data line, and the electrical signal is a second pulse signal.
By the method, when the second pin is a pin connected with the positive signal data line, the first electronic device is considered to send the first pulse signal through the first pin, and at the moment, the first pin is a negative signal data line and is at a low level in an idle state. Thus, the electrical signal of the second electronic device may be a second pulse signal, for example, the second response signal may be a high level pulse signal. Therefore, the first electronic device can quickly confirm that the handshake is completed by detecting the second response signal, and the time for entering the quick charging mode is further shortened.
In one possible implementation manner, the second pin is a pin connected to a negative signal data line, and the electrical signal is a low level signal.
By the method, when the second pin is a pin connected with the negative signal data line, the first electronic device is considered to send the first pulse signal through the first pin, and at this time, the first pin is a positive signal data line and is at a high level in an idle state. Therefore, the electric signal of the second electronic device can be a low-level signal, so that the first electronic device can quickly confirm that the handshake is completed by detecting the first response signal, the time for entering the quick charging mode is shortened, and the handshake complexity is reduced.
A possible implementation manner, the first message includes: a third identifier; the third identifier is used for indicating a receiver of the first message and a sender of the first message; the second message includes: a fourth identifier; the fourth identifier is used for indicating a receiver of the second message and a sender of the second message; the receiver of the first message or the sender of the second message is any one of the following: the second electronic device and the third electronic device.
By the method, the identification can be respectively set for the sender and the receiver of the message, so that the sender and the receiver of the message in the data transmission system are distinguished, the mishandling of the message is avoided, and the reliability of the message transmission is improved.
One possible implementation way sends a first signal through the first pin; the frequency of the first signal is a first frequency; the first signal is used to negotiate a communication frequency to be the first frequency.
Through the method, the first electronic equipment can send the first signal, so that the frequency of sending the first signal is determined through negotiation with the second electronic equipment, the frequency of signals transmitted by the first electronic equipment and the second electronic equipment can be negotiated and adjusted according to the needs, the flexibility of data transmission is improved, in addition, the anti-interference capability on the data transmission can be realized through adjusting the frequency of the signals, the reliability of the data signal transmission is improved, and the performance of the data transmission is improved.
One possible implementation receives a second signal through the first pin; the frequency of the second signal is the first frequency; the second signal is used to determine a communication frequency as the first frequency.
By the method, the first electronic device can receive the second signal sent by the second electronic device to determine that the frequency for sending the first signal is the first frequency through negotiation with the second electronic device.
A possible implementation manner, the frequencies of the first message and the second message are the first frequencies.
By the method, the frequency of the information sent and received by the first electronic equipment is consistent, and the complexity of data transmission is reduced.
A possible implementation, the first message includes at least one data frame; the data frame is any one of the following: header information, data information, control information, cyclic redundancy check; wherein one data frame includes: a start field, a data field, and an end field.
By the method, the first electronic device can determine the content of the message sent to the second electronic device or the third electronic device according to the requirement, and the flexibility of sending the first message is improved. The second electronic device or the third electronic device can accurately receive the first message through the start field and the end field of the transmitted data frame, and in addition, the reliability of data transmission can be improved through the cyclic redundancy check field. Similarly, the second electronic device or the third device can determine the content of the second message sent to the first electronic device according to the requirement, so that the flexibility of sending the second message is improved.
A possible implementation manner, after the first message is sent through the first pin, further includes: the first data signal line is for the first electronic device to receive messages within a first time window.
By the method, after the first electronic device sends the first message, a first time window is set, and in the first time window, the sending authority of the first data signal line can be other electronic devices, so that the scheme that the other electronic devices actively send the message is realized, the flexibility of data transmission is improved, and the possibility of collision of the data transmission is avoided.
A possible implementation manner, after the second message is received through the first pin, further includes: the first data signal line is for the first electronic device to receive messages during a second time window.
By the method, after the first electronic device receives the second message, a second time window can be set, and in the second time window, the sending authority of the first data signal line can also be other electronic devices, so that the scheme that the other electronic devices actively send the message is realized, the flexibility of data transmission is improved, and the possibility of collision of the data transmission is avoided.
A possible implementation manner, after the second message is received through the first pin, further includes: and after the current time is determined to exceed the second time window, the first data signal line is used for sending a message by the first electronic equipment.
By the method, the second time window can be set after the first electronic device receives the second message, and after the second time window is finished, the sending authority of the first data signal line returns to the first electronic device, so that the possibility that the first electronic device cannot actively send the message for a long time is avoided, the transmission efficiency of data transmission is improved, and the possibility of collision of the data transmission is avoided.
A possible implementation manner, the method further includes: transmitting a first reset signal through the first pin; the first reset signal is used for indicating a receiver of the first reset signal to reset; the pulse width of the first reset signal has an association relation with the receiver.
By the method, when the first electronic device confirms that the data transmission is abnormal or other abnormal conditions occur, the second reset signal can be sent to the third electronic device, so that the third electronic device confirms that the current data transmission is abnormal according to the received second reset signal, damage can be timely stopped, damage to each electronic device caused by abnormal charging behaviors is avoided, and charging safety is improved. Further, the first reset signal sent by the first electronic device to other receivers can be distinguished, so that the second electronic device or the third electronic device is prevented from being reset by mistake according to the first reset signal.
In a fifth aspect, the present application provides a data transmission method applied to a second electronic device, where the second electronic device is connected to a first electronic device through a third electronic device, and the third electronic device includes a first data signal line, where the method includes: determining a connection with the first electronic device; sending a second message through the first pin; or receiving a first message through the first pin; the first pin is connected with a first data signal line; wherein the first message and the second message are Manchester encoded messages; the first message and the second message are used for setting charging of the first electronic device.
By the method, the second electronic equipment can send the second message after Manchester encoding, and decode the received first message through Manchester encoding, so that a synchronous clock signal is not required to be sent in the message, and the problems that a receiving end is difficult to receive continuous high-frequency signals, poor in transmission performance and low in transmission efficiency in the prior art are avoided.
One possible implementation manner, the first pin is a pin connected with a negative signal data line; or the first pin is a pin connected with a positive signal data line.
By the method, the first pins for transmitting the first message and the second message can be flexibly configured, so that data transmission is more flexible.
One possible implementation manner, a detection from the first electronic device is received through the first pin and the second pin, wherein the detection is used for the first electronic device to determine that the second electronic device is a proprietary charging interface (DCP) device; receiving a first pulse signal from the first electronic device through the first pin; and sending an electric signal to the first electronic device through the second pin, and confirming whether the battery of the first electronic device is charged through a quick charging mode.
Considering that the handshake process of the communication protocol in the prior art consumes longer time, by the method for sending the first pulse signal, the handshake protocol that the first electronic device and the second electronic device support the battery of the first electronic device to be charged in the quick charging mode is realized, the time for entering the quick charging mode is shortened, and particularly when the electric quantity of the first electronic device is too low, the quick charging mode can be quickly entered to improve the charging experience.
One possible implementation manner, the second pin is a pin connected to a positive signal data line, and the electrical signal is a second pulse signal; the second pin is a pin connected with a negative signal data line, and the electric signal is a low-level signal.
By the method, when the second pin is a pin connected with the negative signal data line, the first electronic device is considered to send the first pulse signal through the first pin, and at this time, the first pin is a positive signal data line and is at a high level in an idle state. Therefore, the electric signal of the second electronic device can be a low-level signal, so that the first electronic device can quickly confirm that the handshake is completed by detecting the first response signal, the time for entering the quick charging mode is shortened, and the handshake complexity is reduced.
A possible implementation manner, the first message includes: a third identifier; the third identifier is used for indicating a receiver of the first message and a sender of the first message; the second message includes: a fourth identifier; the fourth identifier is used for indicating a receiver of the second message and a sender of the second message; the sender of the first message or the receiver of the second message is any one of the following: the first electronic device and the third electronic device.
By the method, the identification can be respectively set for the sender and the receiver of the message, so that the sender and the receiver of the message in the data transmission system are distinguished, the mishandling of the message is avoided, and the reliability of the message transmission is improved.
One possible implementation receives a first signal through the first pin; the frequency of the first signal is a first frequency; the first signal is used to negotiate a communication frequency to be the first frequency.
Through the method, the first electronic equipment can send the first signal, so that the frequency of sending the first signal is determined through negotiation with the second electronic equipment, the frequency of signals transmitted by the first electronic equipment and the second electronic equipment can be negotiated and adjusted according to the needs, the flexibility of data transmission is improved, in addition, the anti-interference capability on the data transmission can be realized through adjusting the frequency of the signals, the reliability of the data signal transmission is improved, and the performance of the data transmission is improved.
One possible implementation sends a second signal through the first pin; the frequency of the second signal is the first frequency; the first signal is used to determine a communication frequency as the first frequency.
By the method, the first electronic device can receive the second signal sent by the second electronic device to determine that the frequency for sending the first signal is the first frequency through negotiation with the second electronic device.
A possible implementation manner, the frequencies of the first message and the second message are the first frequencies.
By the method, the frequency of the information sent and received by the second electronic equipment is consistent, and the complexity of data transmission is reduced.
A possible implementation manner, the first message includes at least one of the following: at least one data frame, a cyclic redundancy check field; wherein one data frame includes: a start field, an end field, a data packet header field, and a data field.
By the method, the first electronic equipment can determine the content of the message sent to the second electronic equipment according to the requirement, and the flexibility of sending the first message is improved. The second electronic device can accurately receive the first message through the start field and the end field of the transmitted data frame, and in addition, the reliability of data transmission can be improved through the cyclic redundancy check field. Similarly, the third device can also determine the content of the second message sent to the first electronic device according to the requirement, so that the flexibility of sending the second message is improved.
A possible implementation manner, after the first message is received through the first pin, further includes: the first data signal line is for the second electronic device or the third electronic device to send a message within a first time window.
By the method, after the first electronic device sends the first message, a first time window can be set, and in the first time window, the sending authority of the first data signal line can be the second electronic device or the third electronic device, so that the scheme that the second electronic device or the third electronic device actively sends the message is realized, the flexibility of data transmission is improved, and the possibility of collision of the data transmission is avoided.
A possible implementation manner, after the second message is sent through the first pin, further includes:
And in a second time window, the first data signal line is used for the second electronic device or the third electronic device to send a message.
By the method, after the first electronic device receives the second message, a second time window can be set, and in the second time window, the sending authority of the first data signal line can also be other electronic devices, so that the scheme that the other electronic devices actively send the message is realized, the flexibility of data transmission is improved, and the possibility of collision of the data transmission is avoided.
A possible implementation manner, after the second message is sent through the first pin, further includes:
and after the current time exceeds the second time window, the first data signal line is used for receiving a message by the second electronic device or the third electronic device.
By the method, the second time window can be set after the first electronic device receives the second message, and after the second time window is finished, the sending authority of the first data signal line returns to the first electronic device, so that the possibility that the first electronic device cannot actively send the message for a long time is avoided, the transmission efficiency of data transmission is improved, and the possibility of collision of the data transmission is avoided.
One possible implementation manner receives a first reset signal through the first pin; the pulse width of the first reset signal has an association relationship with the second electronic device; and resetting the charging mode according to the first reset signal.
By the method, when the first electronic equipment confirms that the data transmission is abnormal or other abnormal conditions occur, the first reset signal can be sent to the second electronic equipment, so that the second electronic equipment confirms that the current data transmission is abnormal according to the first reset signal sent by the first electronic equipment, damage can be timely stopped, damage to each electronic equipment caused by abnormal charging behaviors is avoided, and charging safety is improved.
One possible implementation receives a second reset signal through the first pin; the pulse width of the second reset signal has an association relationship with the third electronic device; the second reset signal is ignored.
By the method, the first reset signals sent by the first electronic equipment to other receivers can be distinguished, so that the second electronic equipment is prevented from being reset by mistake according to the second reset signals.
In a sixth aspect, the present application provides a data transmission method applied to a third electronic device, where the third electronic device is configured to connect a second electronic device with a first electronic device, and the third electronic device includes a first data signal line, and the method includes: sending a second message through the first pin; or receiving a first message through the first pin; the first pin is connected with a first data signal line; wherein the first message and the second message are Manchester encoded messages; the first message and the second message are used for setting charging of the first electronic device.
By the method, the third electronic device can send the second message after Manchester encoding, and decode the received first message through Manchester encoding, so that a synchronous clock signal is not required to be sent in the message, and the problems that a receiving end is difficult to receive continuous high-frequency signals, poor in transmission performance and low in transmission efficiency in the prior art are avoided.
One possible implementation manner, the first pin is a pin connected with a negative signal data line; or the first pin is a pin connected with a positive signal data line.
By the method, the first pins for transmitting the first message and the second message can be flexibly configured, so that data transmission is more flexible.
A possible implementation manner, the first message includes: a third identifier; the third identifier is used for indicating a receiver of the first message and a sender of the first message;
The second message includes: a fourth identifier; the fourth identifier is used for indicating a receiver of the second message and a sender of the second message; the sender of the first message or the receiver of the second message is any one of the following: the first electronic device and the third electronic device.
By considering that the third electronic equipment participates in data transmission, through the method, the identifiers can be respectively set for the sender and the receiver of the message, so that the sender and the receiver of the message in the data transmission system are distinguished, the mishandling of the message is avoided, and the reliability of message transmission is improved.
A possible implementation manner, the frequencies of the first message and the second message are the first frequencies.
By the method, the frequency of the information sent and received by the second electronic equipment is consistent, and the complexity of data transmission is reduced.
A possible implementation manner, the first message includes at least one of the following: at least one data frame, a cyclic redundancy check field; wherein one data frame includes: a start field, an end field, a data packet header field, and a data field.
By the method, the first electronic equipment can determine the content of the first message sent to the third electronic equipment according to the requirement, and the flexibility of sending the first message is improved. The second electronic device can accurately receive the first message through the start field and the end field of the transmitted data frame, and in addition, the reliability of data transmission can be improved through the cyclic redundancy check field. Similarly, the third electronic device can also determine the content of the second message sent to the first electronic device according to the requirement, so that the flexibility of sending the second message is improved.
A possible implementation manner, after the first message is received through the first pin, further includes: the first data signal line is for the second electronic device or the third electronic device to send a message within a first time window.
By the method, after the first electronic device sends the first message, a first time window can be set, and in the first time window, the sending authority of the first data signal line can be the second electronic device or the third electronic device, so that the scheme that the second electronic device or the third electronic device actively sends the message is realized, the flexibility of data transmission is improved, and the possibility of collision of the data transmission is avoided.
A possible implementation manner, after the second message is sent through the first pin, further includes: and in a second time window, the first data signal line is used for the second electronic device or the third electronic device to send a message.
By the method, after the first electronic device receives the second message, a second time window can be set, and in the second time window, the sending authority of the first data signal line can also be the second electronic device or the third electronic device, so that the scheme that the second electronic device or the third electronic device actively sends the message is realized, the flexibility of data transmission is improved, and the possibility of collision of the data transmission is avoided.
A possible implementation manner, after the second message is sent through the first pin, further includes: and after the current time exceeds the second time window, the first data signal line is used for receiving a message by the third electronic device or the second electronic device.
By the method, the second time window can be set after the first electronic device receives the second message, and after the second time window is finished, the sending authority of the first data signal line returns to the first electronic device, so that the possibility that the first electronic device cannot actively send the message for a long time is avoided, the transmission efficiency of data transmission is improved, and the possibility of collision of the data transmission is avoided.
One possible implementation receives a second reset signal through the first pin; the pulse width of the second reset signal has an association relationship with the third electronic device; and resetting the charging mode according to the second reset signal.
By the method, when the first electronic device confirms that the data transmission is abnormal or other abnormal conditions occur, the second reset signal can be sent to the third electronic device, so that the third electronic device confirms that the current data transmission is abnormal according to the second reset signal sent by the first electronic device, damage can be timely stopped, damage to each electronic device caused by abnormal charging behaviors is avoided, and charging safety is improved.
One possible implementation manner receives a first reset signal through the first pin; the pulse width of the first reset signal has an association relationship with the second electronic device; the first reset signal is ignored.
By the method, the first reset signals sent by the first electronic equipment to other receivers can be distinguished, so that the third electronic equipment is prevented from being reset by mistake according to the first reset signals.
In a seventh aspect, the present application provides an electronic device comprising one or more processors, memory, and one or more computer programs; wherein one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the electronic device, cause the electronic device to perform the method of any of the possible designs provided by the first or fourth aspects of the embodiments of the application.
In an eighth aspect, the present application provides an electronic device comprising one or more processors, memory, and one or more computer programs; wherein one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the electronic device, cause the electronic device to perform the method of any of the possible designs provided by the second or fifth aspects of the embodiments of the application.
In a ninth aspect, the application provides an electronic device comprising one or more processors, memory, and one or more computer programs; wherein one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the electronic device, cause the electronic device to perform the method of any of the possible designs provided by the third or sixth aspect of the embodiments of the application. Or the electronic device may not comprise a memory, for example, the processor may execute instructions stored in an external memory, so that the electronic device performs any of the possible designs of the method provided in the third aspect or the sixth aspect of the embodiments of the present application.
In a tenth aspect, an embodiment of the present application provides a data transmission system, including the electronic device according to the seventh aspect, the electronic device according to the eighth aspect, and the electronic device according to the ninth aspect.
In an eleventh aspect, an embodiment of the present application provides a computer storage medium storing a program that, when executed on an electronic device, causes the electronic device to execute the method of any one of the possible designs of the first to sixth aspects.
In a twelfth aspect, embodiments of the present application provide a computer program product which, when run on an electronic device, causes the electronic device to perform the method of any one of the possible designs of the first to sixth aspects.
Drawings
Fig. 1a is a schematic structural diagram of a charging system according to an embodiment of the present application;
Fig. 1b is a schematic structural diagram of a charging interface according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an electronic device;
fig. 3 is a schematic structural diagram of a charging system according to an embodiment of the present application;
FIG. 4a is a timing diagram of a handshake according to the prior art;
fig. 4b is a flow chart of a protocol handshaking method according to an embodiment of the present application;
fig. 4c and fig. 4d are schematic diagrams of a protocol handshake according to an embodiment of the present application;
fig. 5a is a flow chart of a method for handshaking a protocol according to an embodiment of the present application;
fig. 5b and 5c are schematic diagrams of a protocol handshake according to an embodiment of the present application;
fig. 6a is a schematic diagram of encoding a data transmission method according to an embodiment of the present application;
Fig. 6b is a schematic diagram of a structure of encoding and decoding of a data transmission method according to an embodiment of the present application;
fig. 6c is a schematic flow chart of a data transmission method according to an embodiment of the present application;
Fig. 6d is a schematic structural diagram of a data transmission method according to an embodiment of the present application;
Fig. 6e is a schematic structural diagram of a data transmission method according to an embodiment of the present application;
fig. 6f is a schematic signal diagram in a data transmission method according to an embodiment of the present application;
fig. 7 is a schematic flow chart of a data transmission method according to an embodiment of the present application;
Fig. 8a is a timing diagram of a data transmission method according to an embodiment of the present application;
fig. 8b is a schematic flow chart of a data transmission method according to an embodiment of the present application;
fig. 8c is a timing diagram of a data transmission method according to an embodiment of the present application;
FIGS. 8d and 8e are schematic diagrams illustrating a data structure according to an embodiment of the present application;
fig. 9a is a schematic flow chart of a data transmission method according to an embodiment of the present application;
Fig. 9b to 9d are schematic structural diagrams of a data transmission method according to an embodiment of the present application;
Fig. 9e is a schematic signal diagram in a data transmission method according to an embodiment of the present application;
FIG. 9f is a schematic diagram of a data structure according to an embodiment of the present application;
fig. 10a is a schematic flow chart of a data transmission method according to an embodiment of the present application;
Fig. 10b is a schematic signal diagram in a data transmission method according to an embodiment of the present application;
Fig. 11a is a schematic flow chart of a data transmission method according to an embodiment of the present application;
FIG. 11b is a schematic diagram of a second reset signal according to an embodiment of the present application;
FIG. 12 is a schematic diagram of a possible electronic device according to an embodiment of the present application;
Fig. 13 is a schematic structural diagram of a possible electronic device according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the accompanying drawings. The specific method of operation in the method embodiment may also be applied to the device embodiment or the system embodiment. In the description of the following embodiments of the present application, "at least one" means one or more, wherein a plurality means two or more. In view of this, the term "plurality" may also be understood as "at least two" in embodiments of the present application. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/", unless otherwise specified, generally indicates that the associated object is an "or" relationship. In addition, it should be understood that in the description of the present application, the words "first," "second," and the like are used merely for distinguishing between the descriptions and not for indicating or implying any relative importance or order.
In addition, in the embodiments of the present application, the term "exemplary" is used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, the term use of an example is intended to present concepts in a concrete fashion.
Under the trend of diversification of functions and large screen of the intelligent terminal, the power consumption of the equipment is gradually increased, the battery capacity is gradually increased, and along with the increase of the battery capacity, the requirements of the intelligent terminal equipment on quick charge are more and more strong. Therefore, based on the USB channel, various quick charging protocols, such as USB PD2.0/3.0, high-pass QC2.0/3.0/4.0, OPPO VOOC, three-star AFC, concurrent PE, SCP and other quick charging protocols, are derived in the industry in recent years, commercial charging power in the current market is different from 10W to 65W, and the charging time of terminal equipment is greatly shortened.
The USB is a serial bus standard, and is also a technical specification of an input/output interface. There are three physical specifications for USB interfaces currently, called USB Type-A, USB Type-B and USB Type-C, respectively. The pins in the USB interface are illustrated below with USB Type-C. USB Type-C includes 24 pins. A schematic diagram of the pins of the USB Type-C interface is shown in FIG. 1a. As can be seen, USB Type-C includes 4 pairs of differential transmission line pins for implementing TX/RX functionality, including two pairs of differential transmission line pins (or differential data pins) for transmitting data signals: a2 (TX 1+) and A3 (TX 1-), B2 (TX 2+) and B3 (TX 2-); and two pairs of differential transmission line pins (or differential data pins) for receiving data signals: b11 (RX 1+) and B10 (RX 1-), A11 (RX 2+) and A10 (RX 2-). The data signals transmitted by the differential data pins are hereinafter referred to as differential data signals for convenience of description. USB Type-C also includes 2 channel configuration (channel configuration, CC) signal pins for function negotiation. For example, it may be used to determine the direction of insertion of the device: forward or reverse insertion. But also to negotiate the power function, alternative mode or peripheral mode on the interface. The peripheral mode supports transmission of analog audio or debug signals, etc. through the USB Type-C interface. The alternate mode supports the USB Type-C interface to transmit compressed or lossless video signals, such as data signals of the DP protocol. USB Type-C may also include pins for transmitting other signals, such as sideband usage (sideband use, SBU) signals, see in particular table 1.
TABLE 1
/>
Wherein TX/RX (TX 1, TX2, RX1 and RX 2) is the differential data signal of USB 3.1. Note that TX1 is used to represent a differential data signal (TX 1+/-) transmitted by a pair of differential transmission line terminals, and RX1 is also used to represent RX1+/-, and other differential signals are also described in the same manner. In USB3.1, when the insertion direction of the electronic device using the USB Type-C interface is positive insertion, A2, A3, B10, and B11 are used as differential transmission line terminals for data signals of USB 3.1. When the insertion direction of the electronic device is reverse insertion, B2, B3, a10, a11 are used as differential transmission line terminals of the USB3.1 data signal. Whether the forward or reverse direction is used, two pairs of differential transmission line pins are unused. USB Type-C may also be used to transmit digital video interface (DP) signals. In DP mode, two pairs of differential signal line pins, which are not used by USB3.1, may be used to transmit DP data signals (or data signals referred to as DP protocol). Thus, the USB Type-C interface may be used to implement USB3.1+dp signaling. In addition, if the receiving end only needs the DP signal and does not need the USB3.1 signal, the 4 pairs of differential signal line pins may all be used to transmit the DP data signal. USB Type-C also includes two pairs of differential transmission line pins (A6, A7 and B7, B7) for transmitting USB2.0 data signals, USB2.0 data signals being D+/D-. A8 and B8 are reserved pins in the USB Type-C interface for transmitting SBU signals. In different application scenarios, the SBU signal has different uses, for example, the SBU signal may include a control signal or a data signal of the DP protocol. For example, A8 and B8 serve as audio transmission channels or microphone transmission channels for transmitting audio data or video data. The control signal of the DP protocol may be an Auxiliary (AUX) signal. The USB Type-C interface also supports the Power Delivery (PD) protocol, i.e., has a power supply function. Referring to fig. 1a, GND is a ground pin, vbus is a power pin, and 4 ground pins and 4 power pins in the USB Type-C interface form 4 pairs of power supply pins for implementing power supply.
The following describes a charging scenario to which the present application is applicable. Fig. 1a is a schematic diagram of a system provided in accordance with the present application. In this example, a first electronic device 100 (e.g., an electronic device to be charged) may be connected to a second electronic device 200 (e.g., a charger, an adapter, a reverse charging device, etc. power class device) via a third electronic device 300 (e.g., a USB cable). The first electronic device may be a terminal device. The second electronic device 200 may be any suitable type of charging device, such as a charger, a Travel Adapter (TA), a chargeable electronic device, a reverse charging device, etc. The first electronic device 100 may include a USB socket (not shown) that is physically connected to another USB socket on the second electronic device 200 through the third electronic device 300. Although in this example the second electronic device 200 includes a USB socket, in other examples the third electronic device 300 may be soldered directly to the second electronic device 200, bypassing the need for a USB socket. In operation, when an Alternating Current (AC) signal (e.g., 220V or 110V) is received from a wall outlet, the second electronic device 200 may convert the received AC signal to a Direct Current (DC) signal and feed the DC signal to the first electronic device 100. In some implementations, the second electronic device 200 or the computer 120 may support a battery charger communication protocol. The battery charger communication protocol may be used to negotiate a voltage and/or current level between the second electronic device 200 (or computer 120) and the first electronic device 100.
In a specific charging process, when detecting that the second electronic device (to-be-charged device) is connected to the first electronic device (power supply device) through the third electronic device (for example, a cable) and is turned on, the processor of the first electronic device sends a charging start signal to the charging chip 14 of the first electronic device, so as to control the charging chip to start charging.
And the processor of the first electronic equipment detects whether the second electronic equipment is continuously connected or not, the step of charging is continuously carried out in the continuous connection process of the second electronic equipment, and then, in the continuous connection process of the second electronic equipment, the battery of the first electronic equipment is charged through the charging chip until the battery is full. If the second electronic equipment is detected to be disconnected at any time when the step of continuously charging is executed, stopping executing the charging, and when the second electronic equipment is subsequently reconnected, sending a charging starting signal from the reconnection of the execution circuit to control the charging chip to start the charging, and re-executing the subsequent continuous charging step.
Depending on the characteristics of the battery, the charging process of the battery from zero charge or low charge to full charge may include, for example: trickle charging (providing a small charging current to a battery at a low rate and in a constant manner), constant current charging (charging current fixed), constant voltage charging (charging voltage fixed), and as high current charging techniques develop, the constant current phase may include multiple phases, each phase being charged with a different current.
It should be noted that, the circuit structure and the charging scenario described in the embodiments of the present application are for more clearly describing the technical solution of the embodiments of the present application, and do not constitute a limitation on the technical solution provided by the embodiments of the present application.
It should be noted that "connection" in the embodiment of the present application means that electrical connection is implemented between two interfaces, and pins corresponding to each other in the two interfaces are connected one by one, but the embodiment of the present application does not limit a specific connection manner between the two interfaces. For example, the connection may be a plug-in, a docking, or the like. Taking the insertion as an example, the interface 1 accesses the interface 2, and the interface 1 may be inserted into the interface 2, or the interface 2 may be inserted into the interface 1.
Next, as shown in fig. 2, the structure of the electronic device will be described taking the first electronic device as an example. Fig. 2 is a block diagram of an example of a first electronic device 100 in accordance with aspects of the application. The first electronic device 100 according to the embodiment of the present application may be applied to various terminal devices including a battery, including, but not limited to, a mobile phone, a tablet computer, a computer with a wireless transceiving function, a Virtual Reality (VR) terminal, an augmented reality (augmented reality, AR) terminal, a wireless terminal in industrial control (industrial control), a wireless terminal in unmanned (SELF DRIVING), a wireless terminal in remote medical (remote medical), a wireless terminal in smart grid (SMART GRID), a wireless terminal in transportation security (transportation safety), a wireless terminal in smart city (SMART CITY), a wireless terminal in smart home (smart home), and the like. The second electronic device provided in the embodiment of the present application may also be a terminal device including a battery. At this time, the second electronic device may be used not only to charge the battery inside the electronic device, but also to supply power to the outside, i.e., to charge in reverse, with the battery as a power source. By reverse charging, it is meant that an electronic device (e.g., a cell phone, tablet computer, etc.) may charge another electronic device (e.g., another cell phone) by using power stored in its own battery (e.g., by providing power by wired or wireless means) in a wired/wireless manner. When the device is charged in a wired manner, the device requiring charging can be connected through a universal serial bus (universal serial bus, USB) active (OTG) to realize the wired reverse charging.
The terminal device mentioned in the embodiment of the present application may be a device that provides voice/data connectivity to a user, for example, a handheld device with a wireless connection function, a vehicle-mounted device, or the like. Currently, some examples of terminals are: a mobile phone, a tablet, a laptop, a palmtop, a mobile internet device (mobile INTERNET DEVICE, MID), a wearable device, a Virtual Reality (VR) device, an augmented reality (augmented reality, AR) device, a wireless terminal in industrial control (industrial control), a wireless terminal in unmanned (SELF DRIVING), a wireless terminal in teleoperation (remote medical surgery), a wireless terminal in smart grid (SMART GRID), a wireless terminal in transportation security (transportation safety), a wireless terminal in smart city (SMART CITY), a wireless terminal in smart home (smart home), a cellular phone, a cordless phone, a session initiation protocol (session initiationprotocol, SIP) phone, a wireless local loop (wireless local loop, WLL) station, a personal digital assistant (personal DIGITAL ASSISTANT, PDA), a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a 5G network, or a terminal in a future evolved land mobile network (public land mobile network), and the like, without limiting the application.
The terminal device may also be a User Equipment (UE), mobile Station (MS), mobile Terminal (MT), access terminal, subscriber unit, subscriber station, mobile station, remote terminal, mobile device, user terminal, wireless communication device, user agent, user equipment, or the like.
By way of example, and not limitation, in embodiments of the present application, the terminal device may also be a wearable device. The wearable device can also be called as a wearable intelligent device, and is a generic name for intelligently designing daily wear by applying wearable technology and developing wearable devices, such as glasses, gloves, watches, clothes, shoes and the like. The wearable device is a portable device that is worn directly on the body or integrated into the clothing or accessories of the user. The wearable device is not only a hardware device, but also can realize a powerful function through software support, data interaction and cloud interaction. The generalized wearable intelligent device includes full functionality, large size, and may not rely on the smart phone to implement complete or partial functionality, such as: smart watches or smart glasses, etc., and focus on only certain types of application functions, and need to be used in combination with other devices, such as smart phones, for example, various smart bracelets, smart jewelry, etc. for physical sign monitoring.
In addition, in the embodiment of the application, the terminal equipment can also be terminal equipment in an internet of things (internet of things, ioT) system, and the IoT is an important component of the development of future information technology, and the main technical characteristics are that the object is connected with the network through a communication technology, so that the man-machine interconnection and the intelligent network of the internet of things are realized. The terminal device of the present application may also be an in-vehicle module, an in-vehicle part, an in-vehicle chip, or an in-vehicle unit built in a vehicle as one or more parts or units, and the vehicle may implement the method of the present application by the in-vehicle module, the in-vehicle part, the in-vehicle chip, or the in-vehicle unit built in. Therefore, the embodiment of the application can be applied to the Internet of vehicles, such as the vehicle external connection (vehicle to everything, V2X), the long-term evolution technology of workshop communication (long term evolution-vehicle, LTE-V), the vehicle-to-vehicle (V2V) and the like.
The first electronic device 100 may include a processor 201, a charging unit 202, a memory 221, a USB interface 223, a Power MANAGER INTEGRATED Circuit (PMIC) 224, and a battery 211.
The processor 201 may include any suitable type of processing circuitry, and the processor 201 may include an application processor (application processor, AP), such as a general purpose processor (e.g., ARM-based processor, x 86-based processor, MIPS-based processor, etc.), a Field Programmable Gate Array (FPGA), and an Application Specific Integrated Circuit (ASIC). A modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (IMAGE SIGNAL processor, ISP), a controller, a memory, a video codec, a digital signal processor (DIGITAL SIGNAL processor, DSP), a baseband processor, and/or a neural-Network Processor (NPU), etc. In some implementations, the processor 201 may support computing processing functions, content rendering functions in various formats (e.g., audio, image, video, etc.), graphics engines, and the like. The processor 201 may execute an Operating System (OS), various functions, and the like. In some implementations, processor 201 may be constructed with one chip with a large number of components on the chip. The components may include logic cores, memory, display systems/controllers, multimedia encoding/decoding codecs, 2D/3D accelerator engines, image Signal Processors (ISPs), cameras, audio modems, various high-low speed serial/parallel connection interfaces, and the like. In some implementations, the processor 201 may be implemented as a system on a chip (SOC). The SOC may be used to process instructions, process data in computer software, and the like. Wherein the different processing units may be separate devices or may be integrated in one or more processors. The controller may be a neural hub and a command center of the first electronic device 100. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution. A memory may also be provided in the processor 201 for storing instructions and data. In some embodiments, the memory in the processor 201 is a cache memory. The memory may hold instructions or data that the processor 201 has just used or recycled. If the processor 201 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 201 is reduced, thus improving the efficiency of the system.
The processor 201 may be connected to various modules in the first electronic device 200, for example, as shown in fig. 2, and the processor 201 may be connected to the charging unit 202 through an integrated circuit bus (Inter-INTEGRATED CIRCUIT, I2C) bus. The processor 201 may transmit control instructions to the charging unit 202 and the like through the I2C bus.
The first electronic device 100 may further include a general purpose processor, a mobile communication module 212, a wireless communication module (wireless connectivity, WC) 214, a Front End Module (FEM), a short range communication unit, a radio frequency integrated circuit (radio frequency integrated circuit, RFIC).
The general-purpose processor may be a processor for enabling voice communication and/or data transmission, or may be a separately provided processor, or may be integrated with the processor 201, which is not limited herein. The general purpose processor may also be used to compress voice data and image data, or may decompress compressed data. The communication processor may include a baseband modem, a Baseband Processor (BP), etc. The communication processor may be designed to operate using one of a global system for mobile communications (Global System for Mobile Communication, GSM) network, an enhanced data GSM Environment (ENHANCED DATA GSM Environment, EDGE) network, a code division multiple access (Code Division Multiple Access, CDMA) network, a W-code division multiple access (W-CDMA) network, a long term evolution (Long Term Evolution, LTE) network, an orthogonal frequency division multiple access (Orthogonal Frequency Division Multiple Access, OFDMA) network, a wireless fidelity (WIRELESS FIDELITY, wi-Fi) network, a WiMax network, and a bluetooth network.
The FEM may be used to control transmission/reception of radio signals, and may separate transmission/reception signals. The FEM may be included in the mobile communication module 212 and the wireless communication module 214 or may be a separate module. The FEM may be used to filter and amplify signals, and may include a reception-side front-end module including a filter for filtering a reception signal and a transmission-side front-end module including a Power Amplifier Module (PAM) for amplifying a transmission signal.
A radio frequency integrated circuit (e.g., an RF transceiver) may receive radio frequencies from a base station and may modulate the received high frequency band to a low frequency band (i.e., baseband) that may be processed in a module (e.g., a communication processor).
The short-range communication unit may be implemented by various communication functions including a processor 201, such as WiFi, bluetooth, near Field Communication (NFC), universal Serial Bus (USB), or Global Positioning System (GPS).
Memory 221 may be used to store computer executable program code that includes instructions. The processor 201 executes various functional applications of the first electronic device 100 and data processing by executing instructions stored in the memory 221. The memory 221 may include a stored program area and a stored data area. The storage program area may store an operating system, an application program required for at least one function, and the like. The storage data area may store data (e.g., images, videos, etc.) created during use of the first electronic device 100, and so on. In addition, memory 221 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash memory (universal flash storage, UFS), and the like.
Although not shown, the first electronic device 100 may further include a speaker, a microphone, a camera, a display screen, a touch panel, a sensor module, an audio module, and the like. The first electronic device 100 may also include a graphics processor or an audio processor. The graphics processor may perform image information processing, acceleration, signal conversion, screen output, and the like. The audio processor may perform any suitable type of audio processing.
The sensor module may include a pressure sensor a, a gyroscope sensor B, a barometric sensor C, a magnetic sensor D, an acceleration sensor E, a distance sensor F, a proximity light sensor G, a fingerprint sensor H, a temperature sensor J, a touch sensor K, an ambient light sensor L, a bone conduction sensor M, and the like.
Among them, the touch sensor K is also called a "touch panel". The touch sensor K can be arranged on a display screen, and the touch sensor K and the display screen form a touch screen, which is also called a touch screen. The touch sensor K is used to detect a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with a touch operation may be provided through a display screen. In other embodiments, the touch sensor K may also be disposed on the surface of the first electronic device 100, which is different from the location of the display screen.
The display screen is used for displaying a display interface of an application in the first electronic device 100, such as a view finding interface of a camera, a chat interface of a WeChat, and the like, and may also display images, videos, and the like in a gallery. The display screen includes a display panel. The display panel may employ a Liquid Crystal Display (LCD) CRYSTAL DISPLAY, an organic light-emitting diode (OLED), an active-matrix organic LIGHT EMITTING diode (AMOLED), a flexible light-emitting diode (FLED), miniled, microLed, micro-oLed, a quantum dot LIGHT EMITTING diode (QLED), or the like. In some embodiments, the first electronic device 100 may include 1 or N display screens, N being a positive integer greater than 1.
Cameras are used to capture still images, moving images, or video. In some embodiments, the number of cameras in the first electronic device 100 may be at least two. Taking two examples, one is a front camera and the other is a rear camera. The camera may include a photosensitive element such as a lens group including a plurality of lenses (convex or concave) for collecting light signals reflected by an object to be photographed (such as a user's face, a landscape, etc.) and transmitting the collected light signals to the image sensor. The image sensor generates an image of the object to be photographed according to the optical signal.
In addition, the first electronic device 100 may implement audio functions through an audio module, a speaker a, a receiver B, a microphone C, an earphone interface D, an application processor, and the like. Such as music playing, recording, etc. The first electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the first electronic device 100. The first electronic device 100 may generate a vibration alert (such as an incoming call vibration alert) using a motor. The indicator in the first electronic device 100 may be an indicator light, may be used to indicate a state of charge, a change in power, may also be used to indicate a message, a missed call, a notification, etc. The SIM card interface in the first electronic device 100 is for connecting a SIM card. The SIM card may be inserted into or removed from the SIM card interface to enable contact and separation with the first electronic device 100.
It should be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the first electronic device 100. In other embodiments of the application, the first electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The power manager module 224 may be used to regulate the power of the battery 211. For example, the processor 201 may send information to the power manager module 224, which may be, for example, a load to be processed. The power manager module 224 may regulate the core voltage to be supplied to the processor 201 by using information provided from the processor 201.
The charging unit 202 may charge the battery 211. In some embodiments, the charging unit 202 may generate a signal for charging the battery 211. In some embodiments, the charging unit 202 may regulate (or otherwise adjust) the voltage or current fed to the battery. Additionally or alternatively, the charging unit 202 may perform a constant current charging operation and a constant voltage charging operation. The charging unit 202 may include an external port that may be electrically connected to an external device, such as a Travel Adapter (TA) or a computer. When wired charging is required, for example, when the processor 201 detects that the charging interface is connected to an external charger, the processor 201 sends a wired charging control instruction to the charging unit 202, so as to instruct the charging unit 202 to convert the voltage input by the charging interface into a charging voltage for charging the battery. When the wired reverse charging is required, for example, when the processor 201 detects a wired reverse charging request sent by an external device connected to the charging interface, the processor 201 sends a wired reverse charging control instruction to the charging unit 202, so as to instruct the charging unit 202 to convert the voltage provided by the battery into a charging voltage for charging the device connected to the charging interface.
The external port may be a USB port having a fast charge interface function.
The fast charge interface is illustrated by way of a USB port and cable operation, for example, a standard a USB port that connects to the TA of a micro-B or micro-AB USB receptacle (i.e., socket). In addition, the second electronic device 200 may be a device having a Dedicated Charging Port (DCP).
When the DCP is detected, a quick charge detection may be initiated, after which a quick charge communication is established. The first electronic device 100 and the second electronic device 200 determine that a fast charge communication link can be established, and thus the first electronic device 100 and the second electronic device 200 can communicate in a fast charge communication manner. If the communication link is broken, the ports on both sides of the first electronic device 100 and the second electronic device 200 may be restored to the corresponding default values, e.g., the normal charging communication mode.
The fast charging interface may be formed by a physical layer, which allows the data packet to realize bidirectional transmission through d+ or d+, in the embodiment of the present application, the data may be received through d+ or transmitted through d+ or D-, so that the data transmission and the data reception may be independent for any two electronic devices of the first electronic device 100, the second electronic device 200, and the third electronic device 300, thereby forming bidirectional communication between the electronic devices. It is also possible to send and receive data only over the D-line or only over the D + line. The physical layer may be used to transmit or receive multiple bytes during data transmission of the first electronic device 100, the second electronic device 200, and the third electronic device 300. Further, in the data transmission process, the data includes a check field, so that accuracy of the data packet can be improved.
In various exemplary embodiments of the present application, the electronic device to be charged may be referred to as a master device, which in embodiments of the present application may be the first electronic device 100, and in some embodiments, the master device may be a master in a communication protocol and a power receiver, for example, may be a terminal device. The terminal device is used as a master device and plays a leading role in the communication process, and instructions and data can be sent through D+ or D-.
An electronic device that provides a charging service may be referred to as a slave device. In the embodiment of the present application, the slave devices may be the second electronic device 200 and the third electronic device 300. In some embodiments, the slave device may be an electronic identification cable and a power supply device, and perform corresponding operations after receiving the information sent by the master device. For example, the terminal sends a voltage adjustment command to the power supply device, and the power supply device executes a voltage adjustment operation according to the voltage adjustment command after receiving the voltage adjustment command. For another example, the terminal sends a cable current reading capability instruction to the cable, and the cable returns current capability information.
Alternatively, the slaves may also be divided into a primary slave and a secondary slave. In some embodiments, the primary slave device may be a power-on device, such as a charger, an adapter, or the like, of a power output party in the data transmission system, and may need to perform identification detection with the primary device to communicate to provide power output to the first electronic device. In some embodiments, the secondary slave device may be an electronic device that has no power output behavior in the data transmission system, such as a third electronic device in embodiments of the present application, which may be a cable with a special identification, without the need to provide power output to the first electronic device. In some embodiments, there is and only one master device, one primary slave device, that can support multiple secondary slave devices, where the master device will designate the recipient of the information when sending the information, and the other non-designated recipients will not respond to the current information.
The fast charge protocol layer defines a corresponding negotiation manner for the instructions transmitted from the master device. For example, to set a communication frequency at which data is transmitted between the master and slave devices, the master device may send an electrical signal of the corresponding communication frequency to the slave device, so that the second electronic device 200 returns the same communication frequency as a response. If data transmission at that communication frequency cannot be supported, then all possible communication frequencies of the slave device may be attempted to be transmitted so that the master and slave devices can select the appropriate communication frequency.
The fast charge protocol layer may also define corresponding bytes for instructions transmitted from the host device, as detailed in the embodiments described below.
Charging unit 202 is discussed further below with respect to fig. 3. Fig. 3 is a schematic diagram illustrating a connection between the charging unit 202 of the first electronic device 100 and the second electronic device 200 provided according to the present application. In this example, the second electronic device 200 is a charging device, which may be a charger, but also a computer and/or any other type of battery charger.
As shown in fig. 3, the second electronic device 200 may include an alternating current power input unit 300, an AC/DC conversion unit 310, a quick charge unit 320, and a communication interface 351. The communication interface 351 may be a USB port and/or any other type of port. During the charging process, the input unit 300 may receive an AC signal from an electric outlet and feed the AC signal to the AC/DC conversion unit 310. The AC/DC conversion unit 310 may convert an AC signal into a DC signal. The AC/DC conversion unit 310 may then feed the DC signal to the fast charging unit 320. The communication interface corresponds to 4 lines corresponding to the USB interface 223, and the 4 lines include: VBUS line, D-line, d+ line, and GND line. The VBUS line and the GND line may be used to provide a supply voltage. The D-line and the D + line may be used for data transmission between electronic devices.
In one possible implementation, the fast charging unit 320 may include a controller 321 and a switch. The controller 321 may be a protocol chip at the power supply end. It should be noted that the controller 321 may also control the power supply circuit and the communication line in other manners, and is illustrated here only by way of a switch.
In some embodiments, the USB voltage may power the first electronic device 100 via the VBUS line and the GND line under the control of the USB controller 321. For example, the GND line may be connected to a Ground (GND) of the charging unit 203 in the second electronic device 200. In some embodiments, the controller 321 may be used to control the switches, e.g., may implement shorting the D-line and the d+ line when a protocol handshake is performed. In other embodiments, the controller 321 may control the switches to receive or transmit electrical signals of data via a communication line.
As shown in fig. 3, the charging unit 202 in the first electronic device 100 may include a communication interface 350, a quick charging unit 340, and a charging circuit. The communication interface 350 may be a USB port and/or any other type of port.
In one possible implementation, the fast charging unit 340 may include a controller 341 and a switch. It should be noted that, the controller 341 may also control the power supply circuit and the communication line in other manners, and is illustrated here only by way of a switch. The controller 341 may be a protocol chip of the terminal to be charged.
In some embodiments, controller 341 may provide the signal received over the Vbus line to the charging circuit. The charging circuit may generate one of a fixed voltage and a fixed current signal based on the received signal and feed the generated signal to the battery 211. To prevent an overvoltage or an overcurrent from flowing into the charging circuit, a protection circuit may be connected in front of the charging circuit. For example, the protection circuit may be an overvoltage protection (over voltage protection, OVP). According to various aspects of the application, OVPs may be implemented with switched capacitors. In some embodiments, a protection circuit may be located between the fast charge unit 202 and the charging circuit. In other embodiments, a protection circuit may be disposed between the communication port 350 and the quick charge unit 202.
In some embodiments, the controller 341 may also control a switch to set whether to transmit the received data to the processor 201 through the D-line or the d+ line, thereby enabling the controller 341 of the second electronic device 200 to communicate with the first electronic device 100.
For the third electronic device, a controller 361 may be included, where the controller 361 may be configured to record information about the cable, such as a communication protocol that may be supported, and information about a charging current, a charging voltage, etc. that may be supported. In addition, other identification information of the cable can be recorded and used for the first electronic device or the second electronic device to verify the third electronic device or acquire the capability information of the third electronic device. In other embodiments, the controller 361 may also be used to control the D-and D+ lines used to transmit and receive data. For example, it may be used to control the third electronic device to receive data via the D-line and to send data via the D + line. Or may be used to control the third electronic device to receive data over the D + line and to transmit data over the D-line. Or may be used to determine the D-and D + lines used to transmit and receive data based on the received instructions.
The communication lines are D-and D + lines. There are various ways of implementing data transmission between electronic devices through the d+ line and the D-line, and the following ways of transmitting and receiving data between the first electronic device 100 and the second electronic device 200 are exemplified in ways 1 to 4.
Mode 1 the d-line may be used to transmit and receive data between the first electronic device 100 and the second electronic device 200. The d+ line may be used to transmit a signal indicating whether the first electronic device 100 and the second electronic device 200 are connected.
Mode 2, the d + line may be used to transmit and receive data between the first electronic device 100 and the second electronic device 200. The D-line may be used to transmit a signal indicating whether the first electronic device 100 and the second electronic device 200 are connected.
Mode 3, d-line may be used by the first electronic device 100 to transmit data to the second electronic device 200. The d+ line may be used for the first electronic device 100 to receive data transmitted by the second electronic device 200.
Mode 4, the d + line may be used by the first electronic device 100 to transmit data to the second electronic device 200. The D-line may be used by the first electronic device 100 to receive data transmitted by the second electronic device 200.
For example, the characteristics of the DC signal may be determined by communication data performed between the first electronic device 200 and the second first electronic device 100. The characteristics may include voltage, current level, and/or any other suitable type of characteristics. For example, the first electronic device 100 may transmit the input voltage-current indication information to the second electronic device 200. The fast charge interface 320 of the second electronic device 200 may transmit the outputted voltage-current indication information to the first electronic device 100 and output the selected voltage-current indication information to the charging unit 202. The indication information may be transmitted through a USB interface with the charging unit 202.
Considering that the prior art handshake procedure for a communication protocol takes a long time, for example, as shown in fig. 4a, the handshake of the communication protocol requires that the first electronic device sends a high level of up to 1s to the second electronic device, so that after the second electronic device detects the high level of 1s, the corresponding communication protocol of quick charge is confirmed. The application provides a handshake method of a communication protocol. Fig. 4b is a schematic diagram illustrating a handshake method of a communication protocol according to the present applications. By performing handshaking on the communication protocol provided by the application between the first electronic device and the second electronic device, a data transmission method provided by the application can be prepared. The handshake method may specifically comprise the steps of:
step 401: and after the first electronic device establishes physical connection with the second electronic device through the third electronic device, determining that the second electronic device is the DCP device.
In some embodiments, the first electronic device and the second electronic device may perform detection of the USB BC1.2 protocol to determine that the second electronic device is a DCP device. Considering that the DCP device can better support a fast charging mode, after detection through the USB BC1.2 protocol, the fast charging process of the application can be performed based on the DCP device, so as to ensure that the fast charging of the first electronic device is better realized. The following briefly describes the steps of USB BC1.2 detection:
step 4011: the first electronic device detects whether the Vbus line is connected.
Step 4012: the first electronic device starts a timer, determines whether data connectivity detection (data contact detect, DCD) is supported.
When the first electronic device is connected with a common USB interface (SDP device) or a USB interface supporting high current (CDP device), the next step is immediately carried out without waiting for the timeout of a timer. When the first electronic device does not support DCD, the next step is executed after the waiting timer expires.
Step 4013: the first electronic device initiates a first detection.
The first electronic device applies a voltage vdp_src over D +, and the first electronic device starts to detect the voltage over D-.
The voltage vdp_src may be such that the voltage on the d+ line may range from 0.5 v to 0.7v.
When the voltage detected by the first electronic device on the D-line is greater than vdat_ref (i.e., the voltage range measured on the D-line is 0.25-0.4 v), the second electronic device is determined to be either a DCP device (during the first detection, the d+ line and the D-line will be shorted by the controller of the DCP device) or a CDP device (during the first detection, the d+ line and the D-line will be shorted by the controller of the CDP device).
Step 4014: the first electronic device performs a secondary detection to determine whether the second electronic device is a DCP device.
The first electronic device applies a voltage vdm_src (0.5-0.7 v) on the D-line and then detects the voltage on the D + line.
When the voltage on the d+ line is greater than vdat_ref (the voltage range measured on the d+ line is 0.25-0.4 v), then the second electronic device is determined to be a DCP device.
In some embodiments, the DCP device shorts the d+ line and the D-line during the first detection and the second detection. In other embodiments, the second electronic device is a BC1.2 only power supply device, the inside of which may be directly short-circuited with a resistor for the d+ line and the D-line.
After the second electronic device is determined to be the DCP device, the first electronic device and the second electronic device start protocol handshake detection to detect whether the opposite party supports the data transmission protocol of the application, so that the communication protocol of the application can be better compatible with the third electronic device and the second electronic device of the USB interface.
Step 402: the first electronic device transmits a first pulse signal to the second electronic device via a communication line (d+ line or D-line).
Mode a1: the first electronic device transmits a first pulse on the d+ line.
The first pulse may have various implementations, for example, the first pulse may be a pulse signal as shown in (a) of fig. 4c, in which the duration of the high level is Tdet1 and Tdet3; the voltage value of the high level may be 3.3V and the duration of the low level may be Tdet2. In some embodiments, tdet1, tdet2, and Tdet3 may be the same, 1ms, or may be set to different times, and may be set according to time requirements, which is not limited herein.
For example, when t=0 ms, the first electronic device enables the pull-up resistor RP, so that a high level is generated on the d+ line; taking tdet1=tdet2=tdet3=1ms as an example, at t=1-2 ms, the first electronic device pulls down the voltage of the d+ line, and after t=2 ms, resumes the high level of the d+ line, so that a first pulse of t=0-3 ms is generated. Thus, the first electronic device is enabled to send the first pulse, and the second electronic device detects the first pulse.
Mode a2: the first electronic device transmits a first pulse on the D-line.
The first pulse may have various implementations, for example, the first pulse may be a pulse signal as shown in (a) of fig. 4d, in which the duration of the low level is Tdet1 and Tdet3; the voltage value of the low level may be-3.3V and the duration of the high level may be Tdet2. In some embodiments, tdet1, tdet2, and Tdet3 may be the same, 1ms, or may be set to different times, and may be set according to time requirements, which is not limited herein.
For example, when t=0 ms, the first electronic device enables the pull-down resistor so that a low level (e.g., -3.3V) is produced on the D-line; taking tdet1=tdet2=tdet3=1ms as an example, at t=1-2 ms, the first electronic device pulls up the voltage of the d+ line (e.g., the voltage value is 0V), and after t=2 ms, resumes the low level of the d+ line (e.g., -3.3V) so that the first pulse of t=0-3 ms is generated. Thus, the first electronic device is enabled to send the first pulse, and the second electronic device detects the first pulse.
Step 403: after the second electronic device detects the first pulse, the D+ line and the D-line are disconnected, and a first response signal is sent through the communication line.
In combination with the mode a1, as shown in fig. 4c (b), in some embodiments, when the second electronic device detects the first pulse, since the d+ line and the D-line are in a short-circuited state, the first pulse may also be detected on the D-line. After the second electronic device detects the first pulse, the d+ line and the D-line may be disconnected, and the D-line may be pulled down to a ground state, to be used as a response signal sent by the second electronic device to the first electronic device, so that the first electronic device determines that the handshake is successful according to the D-line detection response signal.
In other embodiments, the duration of time that the second electronic device pulls down the D-line to ground may be Tdet5. For example, tdet5 has a time of 1ms. Therefore, the first electronic device can judge whether handshake is successful only by detecting Tdet5 time, and the detection efficiency is improved.
In combination with the example of pattern a1 in step 402, the second electronic device may detect the first pulse at t=0 to 3 ms. After the second electronic device detects the first pulse, for example, when t=3 to 4ms, the line between the d+ line and the D-line is disconnected, and the D-line is pulled down so that the level on the D-line is low after t=4 ms.
In combination with the method a2, as shown in (b) in fig. 4D, in some embodiments, after the second electronic device detects the first pulse, the d+ line and the D-line may be disconnected, and the d+ line is pulled down to the ground state, and used as a response signal sent by the second electronic device to the first electronic device, so that the first electronic device determines that the handshake is successful.
In other embodiments, the duration of time that the second electronic device pulls up the d+ line to ground may be Tdet5. Therefore, the first electronic device can judge whether handshake is successful only by detecting Tdet5 time, and the detection efficiency is improved.
In the example of the mode a2 in step 402, after the second electronic device detects the first pulse, for example, when t=3 to 4ms, the line between the d+ line and the D-line is disconnected, and the d+ line is pulled down so that the level on the d+ line becomes low after t=4 ms.
Step 404: the first electronic device detects the response signal on the communication line, and confirms whether the handshake is successful, if yes, step 406 is executed, otherwise step 405 is executed.
In combination with the method a1, in some embodiments, the first electronic device may confirm that the protocol handshake is successful when detecting that D-is low. In other embodiments, the first electronic device detects that D-is low, and the duration of the low is Tdet5, so that the success of the protocol handshake can be confirmed, and the detection efficiency is improved. In connection with the example of mode a1 in step 402, the first electronic device initiates a low level detection of the D-line at t=2 ms.
In combination with the method a2, in some embodiments, when the first electronic device detects d+ as low level, it may confirm that the protocol handshake is successful. In other embodiments, the first electronic device detects that D-is low and the duration of the low is Tdet5, and may confirm that the protocol handshake was successful.
Step 405: the first electronic device determines whether the number of times of detection in the executing step 402 exceeds 3, if yes, executing the step 402; otherwise, go to step 407;
Step 406: the first electronic device and the second electronic device complete protocol detection.
In combination with the example of mode a1 in step 402, the first electronic device turns off the low level detection of the D-line at t=5 ms.
In combination with the example of the mode a2 in step 402, at t=5 ms, the first electronic device turns off the low level detection of the d+ line.
When the first electronic device determines that the handshake fails, the first electronic device may initiate a retry of the handshake detection at t=5-10 ms.
Step 407: the first electronic device releases control of D + D-, and determines that the handshake failed.
Through the handshake protocol, the detection of the protocol handshake protocol can be performed on the premise that the second electronic device is determined to be the DCP device, so that the charging protocol based on the USB interface in the current market can be better compatible.
Fig. 5a is a schematic diagram of a handshake method according to another communication protocol according to the present application. By performing handshaking on the communication protocol provided by the application between the first electronic device and the second electronic device, a data transmission method provided by the application can be prepared. The handshake method may specifically comprise the steps of:
step 501: and after the first electronic device establishes physical connection with the second electronic device through the third electronic device, determining that the second electronic device is the DCP device.
The specific embodiment may refer to the manner in step 401, and will not be described herein.
Step 502: the first electronic device transmits a second pulse signal to the second electronic device via a communication line (d+ line or D-line).
Mode b1: the first electronic device sends a second pulse on the D-line.
The second pulse may have various implementations, for example, the second pulse may be a pulse signal as shown in (a) of fig. 5b, in which the duration of the high level is Tdet1 and Tdet3; the voltage value of the high level may be 3.3V and the duration of the low level may be Tdet2. In some embodiments, tdet1, tdet2, and Tdet3 may be the same, 1ms, or may be set to different times, and may be set according to time requirements, which is not limited herein.
For example, when t=0 ms, the first electronic device enables the pull-up resistor so that a high level is generated on the D-line; taking tdet1=tdet2=tdet3=1ms as an example, at t=1-2 ms, the first electronic device pulls up the voltage of the D-line and after t=2 ms, resumes the low level of the D-line so that a second pulse of t=0-3 ms is generated. Thereby, the first electronic device is enabled to send the second pulse, which the second electronic device detects.
Mode b2: the first electronic device sends a second pulse on the D + line.
The second pulse may have various implementations, for example, the second pulse may be a pulse signal as shown in (a) of fig. 5b, in which the duration of the low level is Tdet1 and Tdet3; the voltage value of the low level may be-3.3V and the duration of the low level may be Tdet2. In some embodiments, tdet1, tdet2, and Tdet3 may be the same, 1ms, or may be set to different times, and may be set according to time requirements, which is not limited herein.
For example, when t=0 ms, the first electronic device enables the pull-down resistor so that a low level (e.g., -3.3V) is produced on the D-line; taking tdet1=tdet2=tdet3=1ms as an example, at t=1 to 2ms, the first electronic device pulls up the voltage of the D-line (for example, the voltage value is 0V), and after t=2 ms, resumes the low level of the D-line (for example, -3.3V) so that the second pulse of t=0 to 3ms is generated. Thereby, the first electronic device is enabled to send the second pulse such that the second electronic device detects the second pulse.
Step 503: and after the second electronic equipment detects the second pulse signal, sending a second response signal.
In combination b1, as shown in fig. 5b (b), in some embodiments, when the second electronic device detects the second pulse, the second pulse may also be detected on the d+ line because the d+ line and the D-line are in a short circuit state. After the second electronic device detects the second pulse, the d+ line and the D-line may be disconnected, and the d+ line is pulled down to a ground state, and after Tdet4 is continued, the pull-down of the d+ line is released, and the high level of the d+ line is restored. And the electric signal of the D+ circuit which lasts for Tdet4 is used as a second response signal which is sent to the first electronic equipment by the second electronic equipment, so that the first electronic equipment detects the second response signal according to the D+ circuit, and the handshake is determined to be successful.
In combination with the example of mode b1 in step 502, the second electronic device may detect the second pulse at t=0 to 3 ms. After the second electronic device detects the second pulse, for example, when t=3 to 4ms, the line between the d+ line and the D-line is disconnected, and the d+ line is pulled down for 1ms so that the level on the d+ line is low when t=4 to 5 ms.
In combination b2, as shown in fig. 5c (b), in some embodiments, when the second electronic device detects the second pulse, the second pulse may also be detected on the D-line because the d+ line and the D-line are in a short circuit state. After the second electronic device detects the second pulse, the d+ line and the D-line may be disconnected, and the D-line may be pulled down to a ground state, and after Tdet4 is continued, the pull-down of the D-line may be released, and the low level of the D-line may be restored. And the electric signal which lasts for Tdet4 is used as a second response signal which is sent to the first electronic device by the second electronic device, so that the first electronic device can detect the second response signal according to the D-line and determine that the handshake is successful.
In combination with the example of mode b2 in step 502, the second electronic device may detect the second pulse at t=0 to 3 ms. After the second electronic device detects the second pulse, for example, when t=3 to 4ms, the line between the d+ line and the D-line is disconnected, the D-line is pulled down for 1ms, and when t=4 to 5ms, the level on the D-line is low.
Step 504: the first electronic device detects the second response signal on the communication line, and confirms whether the handshake is successful, if yes, step 506 is performed, otherwise, step 505 is performed.
In combination with the mode b1, the first electronic device detects a low level on the D-line, and the duration of the low level is Tdet4, so that the success of the protocol handshake can be confirmed. In combination with the example of mode b1 in step 502, the first electronic device may initiate a low level detection of the d+ line at t=2 ms.
In combination with the mode b2, the first electronic device detects a low level on the d+ line, and the duration of the low level is Tdet4, so that the success of the protocol handshake can be confirmed. In connection with the example of mode b2 in step 502, the first electronic device may initiate a low level detection of the D-line at t=2 ms.
Step 505: the first electronic device executes the step of determining whether the number of times of detection in the executing step 502 exceeds 3, if yes, executing the step 502; otherwise, go to step 507;
in combination with the example of the mode b1 in step 502, at t=5 ms, the first electronic device turns off the low level detection of the d+ line.
In connection with the example of mode b2 in step 502, the first electronic device turns off the low level detection of the D-line at t=5 ms.
Step 506: and (5) completing protocol handshake detection.
Step 507: the first electronic device releases control of D + D-, and determines that the handshake failed.
For example, in connection with fig. 5b, when the first electronic device determines that the handshake failed, the first electronic device may initiate a retry of the handshake detection at t=5-10 ms.
By the protocol handshake detection method in fig. 4a or fig. 5a, a fast protocol handshake can be realized, and after the master device and the slave device (the second electronic device or the third electronic device) are connected, detection can be completed within tens of milliseconds, so that data transmission between the electronic devices is started, the master device and the slave device can quickly enter a fast charging state, and charging efficiency is improved.
The application provides a data transmission method, which is a method for realizing data transmission based on a D+/D-data channel of a USB interface. Referring to fig. 1a to 3, the data transmission method may be applied to a scenario in which the second electronic device 200 performs rapid charging for the first electronic device 100 through the third electronic device 300. In this embodiment, the devices communicate in half duplex, and data is transmitted and received via a first data signal line in the communication line.
Problem 1: consider the prior art of using binary directly on the D-bus for data transfer. For example, as shown in fig. 6a, when the first electronic device sends data to the second electronic device, the level does not change during the whole symbol time when the data is continuous "0" or "1", so if the communication frequency is high, the second electronic device cannot determine the number of continuous 0 or continuous 1 in the data sent by the first electronic device, and thus clock synchronization of the first electronic device and the second electronic device cannot be achieved, and an additional transmission line may be required to transmit a clock signal or send an additional clock signal to achieve clock synchronization of the first electronic device and the second electronic device. Therefore, only data with a low communication frequency can be transmitted, or continuous data of "0" or "1" cannot be transmitted, resulting in a slow communication rate.
Based on the above problem 1, in order to ensure the stability of data transmission and improve the communication rate, in some embodiments, as shown in fig. 6b, the present application may transmit data based on the manchester encoding mode and receive data through the manchester decoding mode. As shown in fig. 6a, the transition at the middle time of the symbol may be represented as a clock or data based on the data after the manchester encoding scheme. For example, a positive transition (from low to high) may represent a1 and a negative transition (from high to low) may represent a 0. Or a positive transition may represent 0 and a negative transition may represent 1. In other embodiments, as shown in fig. 6a, differential manchester encoding may also be used, where transitions in the generated electrical signal represent only a clock, and where the data is represented by whether the symbol start level has changed. For example, a change indicates 0 and no change indicates 1. Taking the first electronic device and the second electronic device as an example, the data transmission method provided in this embodiment is described below, and as shown in fig. 6c, the method specifically may include:
Step 601: the first electronic device detects a connection with the second electronic device;
in addition, if the data is transmitted between the first electronic device and the third electronic device, in step 601, the first electronic device detects the connection with the third electronic device.
The first electronic device is connected to the second electronic device through a third electronic device, which may include a first data signal line and a second data signal line.
The first data signal line may be a d+ line, or a D-line. The second data signal line may be a D-line, or a d+ line.
Step 602a: the first message is sent over the first pin.
The first message is a message after Manchester encoding, and the first pin is connected with a first data signal line.
Step 602b: and receiving a second message through the first pin.
Wherein the second message is a message after Manchester encoding.
In this embodiment, the devices are in half duplex communication, and data is transmitted and received through the first data signal line. After the protocol handshake detection is successful, the connection state between the devices can be determined by maintaining the level state on the second data signal line and by monitoring the level state of the second data signal line.
In the embodiment c1, referring to fig. 6D, the second data signal line is a d+ signal line, and the first data signal line is a D-signal line.
For example, the first electronic device may pull the d+ signal line up to 3.3V and maintain the state to monitor the connection states among the first electronic device, the second electronic device, and the third electronic device; for example, when the first electronic device and the second electronic device are in a connection failure, the level on the d+ signal line received by the second electronic device is not 3.3V, so that the connection failure of the first electronic device and the second electronic device can be determined. When the first electronic equipment and the third electronic equipment are in connection failure, the level on the D+ signal line received by the third electronic equipment is not 3.3V, and therefore the connection failure of the first electronic equipment and the third electronic equipment can be determined.
The first electronic device may send data to the second electronic device and the third electronic device via the first pin on the d+ data signal line. The second electronic device or the third electronic device can also send data to the first electronic device through the first pin on the d+ data signal line, so as to realize data transmission between the devices.
In the embodiment c2, referring to fig. 6e, the first data signal line is a d+ signal line, and the second data signal line is a D-signal line.
For example, the first electronic device may pull the D-signal line down to-3.3V and maintain this state to monitor the connection state among the first electronic device, the second electronic device, and the third electronic device; for example, when the first electronic device and the second electronic device are in a connection failure, the level on the d+ signal line received by the second electronic device is not-3.3V, so that it can be determined that the first electronic device and the second electronic device are in a connection failure. When the first electronic equipment and the third electronic equipment are in connection failure, the level on the D+ signal line received by the third electronic equipment is not-3.3V, and therefore the connection failure of the first electronic equipment and the third electronic equipment can be determined.
The first electronic device may send data to the second electronic device and the third electronic device via the first pin on the D-data signal line. The second electronic device or the third electronic device can also send data to the first electronic device through the first pin on the D-data signal line, so that data transmission between the devices is realized.
The data structures of the first message and the second message are exemplified below.
Example one
The first message and the second message may include a start byte and an end byte of the data packet.
As shown in fig. 6f (a), in combination with the pattern c1, in some embodiments, the start byte of the data packet may be a high level pulse of a continuous length of time. The end byte of the packet may be a high level pulse of a continuous length of time. For example, the start byte (SOF) of a data packet may be a high level pulse of 8 UIs. For example, the end byte (EOF) of a data packet may be a high level pulse of 4 UIs.
As shown in fig. 6f (b), in combination with the pattern c2, in some embodiments, the start byte of the data packet may be a low level pulse of a continuous length of time. The end byte of the packet may be a low level pulse of a continuous length of time. For example, the start byte (SOF) of a data packet may be 8 UIs (where a UI may be the length of time required for a bus to transmit one data bit, i.e., a low level pulse where UI is related to the frequency f at which a first electronic device communicates with a second electronic device, ui=t=1/f). For example, the end byte (EOF) of a data packet may be a low level pulse of 4 UIs.
Problem 2: considering that in the prior art, data transmission is performed on a D-bus at a fixed communication frequency, when the data transmission has interference, the robustness of the data transmission is low, and the communication performance is poor.
Based on the above problem 2, in connection with the embodiment in fig. 6c, the first electronic device may select the required communication frequency according to the actual requirements. As shown in fig. 7, a method of configuring a communication frequency between a first electronic device and a second electronic device is specifically described below. The method specifically comprises the following steps:
Step 701: the first electronic device sends a first signal through the first pin.
The frequency of the first signal is a first frequency; the first signal is used to negotiate a communication frequency to be the first frequency.
The first frequency may be determined by the transmitted first signal. For example, the first signal may be a 1010 1010 1010 1010 sequence sent on the D-channel with a period T; thus, the first frequency of the first signal can be determined to be 1/T. After the sequence, a high level pulse may also be included as an end bit of the first signal.
Step 702: and the second electronic equipment receives the first signal through the first pin and then sends a second signal through the first pin.
The frequency of the second signal is the first frequency; the second signal is used to determine a communication frequency as the first frequency.
In connection with the example of step 701, after the second electronic device receives the sequence, the same sequence is transmitted as a second signal to the first electronic device at the same frequency. The first electronic equipment is informed of receiving the first signal, and the second electronic equipment supports the communication frequency corresponding to the first signal;
Step 703: the first electronic equipment receives a second signal through the first pin, and whether the second signal is received is determined in a preset time window; if yes, go to step 704, if not, go to step 705;
step 704: and determining the communication frequency of the first electronic device and the second electronic device as a first frequency.
Step 705: steps 701-705 are repeated by updating the first frequency with the second frequency.
It should be noted that, the determination of the first frequency and the second frequency may be determined according to a plurality of preset frequencies, for example, communication frequencies f1, f2, f3, and f4 of 4 gears may be preset, and when the configuration of the communication frequency f1 fails, the configuration of the communication frequency may be initiated by selecting the communication frequencies of other gears.
In some embodiments, considering that the amount of communication data between the third electronic device and the first electronic device is small, the capability information of the third electronic device is mainly used to send the capability information of the third electronic device to the first electronic device, so in this embodiment, the third electronic device may not perform configuration of the communication frequency, and only select a default communication frequency to perform communication with the first electronic device. For example, the default communication frequency may be the lowest communication frequency among the selectable frequencies. Of course, other communication frequencies may be set, and are not limited herein.
By the method, the first electronic device can send the first signal, and the second electronic device and the third electronic device determine to communicate at the first frequency of the first signal after receiving the first signal, so as to prepare for subsequent data transmission.
Problem 3: considering that in the prior art, only point-to-point communication between the first electronic device and the second electronic device can be supported on the D-line, communication between multiple devices cannot be supported, and the scenario that the first electronic device, the second electronic device and the third electronic device need to communicate when the third electronic device exists in the system cannot be adapted.
Based on the above problems, in the embodiment of the present application, different identifiers of electronic devices may be defined, and when the first message or the second message is sent, the identifiers of the corresponding electronic devices may be carried, so as to implement data transmission between multiple devices.
It is considered that in this embodiment, data is transmitted and received only through the first data signal line. Therefore, the identification of the sender and the receiver needs to be carried in the first message and the second message to distinguish the plurality of electronic devices.
In some embodiments, the identity of the different electronic devices may be represented by role-coded information. The role encoding information may be carried by physical header information.
In one possible implementation, the first message includes: a third identifier; a third identifier is used for indicating a receiver of the first message and a sender of the first message; the second message includes: a fourth identifier; a fourth identifier for indicating a receiver of the second message and a sender of the second message; the receiver of the first message or the sender of the second message is any one of the following: the second electronic device and the third electronic device.
For example, role Code (Role Code) may consist of 8bit data bits, with the upper four bits identifying the data sender Role and the lower four bits identifying the data receiver Role. Specifically as shown in table 2.
TABLE 2
For another example, the number of bytes occupied by the role code may be determined according to a plurality of electronic devices accessed in the communication system, for example, to save the number of bytes, the number of bytes occupied by the role code may be set to 4 bits. The high 2 bits identify the data sender role and the low 2 bits identify the data receiver role. Or the low 2 bits identify the sender role of the data and the high 2 bits identify the receiver role of the data. Taking the role of the sender of the high 2-bit identification data, and the role of the receiver of the low 2-bit identification data as an example, it can be expressed as shown in table 3.
TABLE 3 Table 3
Taking the example that the first message is sent to the second electronic device, the second message is fed back to the first electronic device by the second electronic device. By adding the third identifier to the first message, the second electronic device can determine that the receiver of the first message is self, and according to the sender in the third identifier, the identifier carried in the sent second message is the identifier of the first electronic device when the subsequent feedback to the sender is determined, that is, the sent second message includes the fourth identifier, the first electronic device can determine that the receiver of the second message is the first electronic device, and according to the sender in the fourth identifier is the second electronic device, the identifier carried in the sent message is the identifier of the second electronic device when the subsequent feedback to the sender is determined, so that the unspecified electronic device (for example, the third electronic device) does not respond to the first message, the unspecified electronic device (for example, the third electronic device) does not respond to the second message, and communication of a plurality of electronic devices on a single bus is realized.
In other embodiments, the related information of the role code may be sent through the physical layer before the first message or the second message is sent, so that the first electronic device, the second electronic device, and the third electronic device determine the identifiers corresponding to the roles of the data sender and the roles of the data receiver, so as to implement multi-device communication on a single bus for subsequent sending and receiving of the first message and the second message.
Problem 4: considering that in the prior art, the communication mode is performed in a mode that the master device answers the slave device (the second electronic device or the third electronic device), and the slave device (the second electronic device or the third electronic device) can only respond to the master device and cannot perform active communication. That is, only after the first electronic device sends a message to the second electronic device, the second electronic device feeds back a corresponding message, and when the second electronic device is abnormal or the like, a scene that related information needs to be actively reported may be caused, the first electronic device cannot be timely notified, so that the problem that the charging of the first electronic device is abnormal or even the corresponding device of the first electronic device is damaged may be caused. Based on problem 4, in an embodiment of the present application, the slave is allowed to actively send messages. And the plurality of electronic devices realize data transmission through D+ or D-, and are used for sending commands between the devices, reporting and acquiring information. The problem of sharing the first data signal line between a plurality of electronic devices to transmit a message is considered. Multiple devices in the system may apply for the right to use the bus at the same time, and in order to avoid bus collision, the applicant who needs to occupy the bus in the system needs to be reasonably controlled and managed. Considering whether the first electronic device is a master device, the priority of the first electronic device in transmitting data using the first data signal line may be set to be high, the priority of the second electronic device in transmitting data using the first data signal line may be set to be low, and the priority of the third electronic device in transmitting data using the first data signal line may be set to be low. An embodiment of the present application provides a method for arbitrating data transmission, which is illustrated in the following fig. 8 a.
As shown in fig. 8a (a), in some embodiments, after the first electronic device sends the first message through the first pin, the first data signal line is used by the first electronic device to receive the message within the first time window.
It should be noted that, the slave device (the second electronic device or the third electronic device) may determine that the first message transmission is completed when receiving the end field of the first message transmitted by the first electronic device. That is, after the first electronic device has sent the first message, the slave device may occupy the first data signal line by initiating communication.
As shown in fig. 8a (b), in some embodiments, after the first electronic device receives the second message through the first pin, the first data signal line is used by the electronic device to receive the message within a second time window.
As shown in fig. 8a (c), after the first electronic device determines that the current time exceeds the second time window, the first data signal line is used for the electronic device to send a message. That is, if the slave device (the second electronic device or the third electronic device) does not use the first data signal line within the second time window, ownership of the first data signal line will return to the first electronic device.
It should be noted that, in some embodiments, to avoid the delay being too large, after the second time window expires, whether the slave device (the second electronic device or the third electronic device) completes sending data or not, the slave device ends sending the message, and the ownership of the first data signal line returns to the first electronic device. In other embodiments, when it is determined that the data transmission from the slave device (the second electronic device or the third electronic device) is not completed, a third time window may be set correspondingly, where the window length of the third time window is greater than the second time window, so as to ensure that the data transmission from the slave device can be completed as much as possible.
Further, considering that in some application scenarios, when the state of the slave device (the second electronic device or the third electronic device) changes and the state information of the slave device (the second electronic device or the third electronic device) needs to be timely reported, if the current usage right of the first data signal line is the first electronic device, the state of the slave device (the second electronic device or the third electronic device) may not be timely reported to the first electronic device. Therefore, in the embodiment of the present application, a data transmission method may also be provided, as shown in fig. 8b, which specifically includes:
Step 801: and the second electronic device or the third electronic device sends a first interrupt signal when the first data signal line is idle.
When an error event or an abnormal event occurs in the second electronic device or the third electronic device, for example, the second electronic device has conditions of overlarge current, poor contact, voltage fluctuation and the like, at this time, the second electronic device needs to send the current state information of the second electronic device to the first electronic device in time, and can send a first interrupt signal to trigger a process of interrupting the first electronic device to send data.
In some embodiments, the first interrupt signal may be a pulse, and the pulse may have a pulse width that is different from the pulse width of the other messages, so that the first electronic device may be caused to distinguish the first interrupt signal from the signal of the normally communicated message by the pulse width.
Step 802: and after the first electronic equipment receives the first interrupt signal, receiving a third message reported by the second electronic equipment or the third electronic equipment.
In some embodiments, after receiving the first interrupt signal, the first electronic device may send a query message to the second electronic device or the third electronic device, where the query message is used to query the current state information of the second electronic device or the third electronic device, so as to obtain an abnormal event or an error event of the second electronic device or the third electronic device.
In other embodiments, after the second electronic device or the third electronic device sends the first interrupt signal, the third message may be directly sent to the second electronic device or the third electronic device, so that the first device obtains an abnormal event or an error event of the second electronic device or the third electronic device according to the sent third message.
By the method, the second electronic device and the third electronic device can actively report the respective state information, so that the problem that the slave device (the second electronic device or the third electronic device) only responds to the passive mode of the main device in the prior art is avoided, and the flexibility of charging control and the charging safety are improved.
When the first data signal line is abnormal, for example, when the first electronic device is disconnected from the second electronic device during high-current charging, the first electronic device may be damaged irreversibly by the high-current to capture the second electronic device, and at this time, the second electronic device may detect the pulling-out action of the third electronic device in microsecond time, rapidly close the energy output path, and stop the fast charging mode. Accordingly, the data transmission mode also needs to be restored to the data transmission mode in the normal charging mode. In the embodiment of the application, the reset signal can be sent by the first electronic equipment, so that the reset of the communication modes of the second electronic equipment and the third electronic equipment is realized.
As shown in fig. 8c, a timing diagram of a first RESET signal (t_reset) sent at a first electronic device. The first electronic device may send a first reset signal through the first pin; the first reset signal is used for indicating a receiver of the first reset signal to reset; the pulse width of the first reset signal has an association relation with the receiver.
In some embodiments, the first reset signal may be a reset pulse; the reset pulse may be a pulse signal driving the first data signal line to a high level for a preset time. The preset time may be a time length that is substantially longer than the occupied time of the data signal or time window according to the present application. For example, the preset time may be 1s.
And after the second electronic equipment receives the first reset signal, the second electronic equipment restores the state of the second electronic equipment to a default state according to a reset protocol. And after the third electronic equipment receives the first reset signal, the third electronic equipment restores the state of the third electronic equipment to a default state according to the reset protocol.
In order to improve the data transmission quality on the communication link, in the embodiment of the application, the data packet may further include a communication data error check. The communication data error check may be a cyclic redundancy check. The CRC may be generated and checked by the physical layer or the protocol layer.
For example, as shown in fig. 8d, the data frame includes 3 data frames, the 1 st data frame includes a data frame of a data packet header, the 2 nd data frame includes a data frame of control information, and the 3 rd data frame is a data frame of cyclic redundancy check. The sender transmits all data with 8 bits (one byte) length and automatically counts, and adds a parity bit to the end of each byte. Thus, the data transmitter will count the Cyclic Redundancy Check (CRC) and add it to the end of each data packet transmitted over the protocol.
In some embodiments, the cyclic redundancy check field may be added to all data transmitted by the first electronic device to the second electronic device and transmitted by the second electronic device to the first electronic device.
In other embodiments, as shown in fig. 8e, the data frame includes n+3 data frames, the 1 st data frame includes a data frame of a data packet header, the 2 nd data frame includes a data frame of data description information, and the 3 rd to n+2 th data frames are data contents; the (n+3) th data frame is a cyclic redundancy check data frame. A Cyclic Redundancy Check (CRC) may be performed only for the data field, excluding parity bits. The data transmitter counts the Cyclic Redundancy Check (CRC) and adds it to the end of the data packet. The receiving end needs to calculate the Cyclic Redundancy Check (CRC) of the received data and compare the CRC bytes received by the data packet to realize the data check.
Based on the above problem 1, the present application provides a data transmission method, which is a method for realizing data transmission based on a d+/D-data channel of a USB interface. Referring to fig. 1a to 3, the data transmission method may be applied to a scenario in which the second electronic device 200 performs rapid charging for the first electronic device 100 through the third electronic device 300. The communication mode between the devices is full duplex communication. In the embodiment of the application, the problem that the clock is required to be sent to be synchronous when the first electronic equipment sends the data to the second electronic equipment can be avoided by adopting the full duplex communication mode. As shown in fig. 9a, the specific steps may include:
Step 901: detecting a connection with the second electronic device and/or the third electronic device;
The first electronic device is connected to the second electronic device through a third electronic device, which may include a first data signal line and a second data signal line. The first data signal line may be a d+ line, or a D-line. The second data signal line may be a D-line, or a d+ line.
In some embodiments, the first electronic device may use the d+ line or the D-line as the first data signal line to send data in a plurality of manners. The manner of communication between the first electronic device and the second electronic device is illustrated below in ways d1-d 3.
In the mode D1, the first electronic device and the second electronic device determine that the first data signal line is a d+ line or a D-line through a preset mode. For example, in a communication protocol of quick charge, a default communication mode is determined, a first data signal line of an electronic device to be charged (first electronic device) is a D-line, and a second data signal line of the electronic device to be charged (first electronic device) is a d+ line. Correspondingly, the first data signal line of the power supply device is a D+ line. The second data signal line of the power supply device is a D-line.
In the mode d2, the first electronic device and the second electronic device may determine the first data signal line and the second data signal line corresponding to the first electronic device through negotiation before communication, so as to determine the first data signal line and the second data signal line corresponding to the second electronic device accordingly. In some embodiments, the first electronic device may first determine that the first data signal line is a d+ line or a D-line after the protocol handshake is completed. The second electronic device determines that the data signal line is the data signal line for receiving the first electronic device after receiving the negotiation command, that is, determines that the data signal line is the second data signal line of the second electronic device, and at this time, the first data signal line of the second electronic device can be determined through the second data signal line, so that a negotiation response is sent to the first electronic device through the first data signal line of the second electronic device to determine that negotiation is completed. In other embodiments, the negotiation instructions may be initiated by the second electronic device, such that the negotiation completion is determined by a negotiation response fed back by the first electronic device, such that the respective first and second data signal lines are determined according to the negotiation result.
It should be noted that, in some embodiments, the negotiation instruction may be data that the first electronic device sends to the second electronic device, so as to reduce sending of the instruction. The negotiation instruction may be an instruction for performing negotiation alone, and is not limited herein.
In the mode d3, the first electronic device and the second electronic device may switch the first data signal line and the second data signal line in the communication process.
In some embodiments, the instruction of the switching line initiated by the first electronic device to the second electronic device may take the current first data signal line of the first electronic device as a D-line as an example, the switching instruction may be sent to the second electronic device through the D-line, and the second electronic device determines that the data signal line in communication with the first electronic device needs to be switched after receiving the switching instruction through the D-line, so as to determine whether to switch the D-line to the second data signal line of the second electronic device according to the need, and when determining that the second electronic device may switch the D-line to the second data signal line of the second electronic device and switch the d+ line to the first data signal line of the second electronic device, the second electronic device may send a switching response to the first electronic device through the switched first data signal line (d+ line) of the second electronic device, so as to determine that the switching is completed. When the second electronic device determines that the D-line is not agreed to be switched to the second data signal line of the second electronic device, or the D-line is not supported to be switched to the second data signal line of the second electronic device, the second electronic device may send a switching response to the first electronic device through the first data signal line (D-line) of the original second electronic device to indicate that the switching is not agreed to, or the switching fails, and in the subsequent communication, the second electronic device sends data through the d+ line and receives data through the D-line. The first electronic device sends data through the D-line and receives the data through the D+.
In other embodiments, when it is determined that the second electronic device can switch the D-line to the second data signal line of the second electronic device and switch the d+ line to the first data signal line of the second electronic device, the second electronic device may send a switching response to the first electronic device through the first data signal line (D-line) of the original second electronic device, so as to determine that the switching is completed. In the subsequent communication, the first electronic device transmits data via the d+ line and receives data via the D-line. The second electronic device sends data via the D-line and receives data via the D +.
When the second electronic device determines that the D-line is not agreed to be switched to the second data signal line of the second electronic device or the D-line is not supported to be switched to the second data signal line of the second electronic device, the second electronic device sends a switching response to the first electronic device through the first data signal line (D-line) of the original second electronic device so as to determine that the switching fails.
In other embodiments, the second electronic device may initiate the switching instruction, so that the switching is determined to be completed through a negotiation response fed back by the first electronic device, and thus, the respective first data signal line and the second data signal line are determined according to a switching result.
For communication between the first electronic device and the third electronic device, the manner of communication between the first electronic device and the second electronic device is illustrated below in ways e1-e 4.
In mode e1, the first electronic device and the third electronic device determine that the first data signal line of the first electronic device is a d+ line or a D-line, and the first data signal line of the third electronic device is a D-line or a d+ line through a preset mode. For example, in a communication protocol of quick charge, a default communication mode is determined, a first data signal line of an electronic device to be charged (first electronic device) is a D-line, and a second data signal line of the electronic device to be charged (first electronic device) is a d+ line. Correspondingly, the first data signal line of the cable is a d+ line. The second data signal line of the cable is a D-line.
In the mode e2, the first electronic device and the third electronic device may negotiate to determine the first data signal line and the second data signal line corresponding to the first electronic device before the first electronic device communicates with the third electronic device, so as to determine the first data signal line and the second data signal line corresponding to the third electronic device accordingly.
In some embodiments, the first electronic device may first determine that the first data signal line is a d+ line or a D-line after the protocol handshake is completed. The third electronic device determines that the data signal line is the data signal line for receiving the first electronic device after receiving the negotiation command, that is, determines that the data signal line is the second data signal line of the third electronic device, and at this time, the first data signal line of the third electronic device can be determined through the second data signal line, so that a negotiation response is sent to the first electronic device through the first data signal line of the third electronic device to determine that negotiation is completed.
In other embodiments, the third electronic device may initiate a negotiation instruction, so that the negotiation completion is determined by a negotiation response fed back by the first electronic device, and thus, the respective first data signal line and second data signal line are determined according to the negotiation result.
It should be noted that, the negotiation instruction may be an instruction sent by the first electronic device to the second electronic device to detect the third electronic device, so as to reduce sending of the instruction. The negotiation instruction may be an instruction for performing negotiation alone, and is not limited herein.
In the mode e3, the first electronic device and the third electronic device may determine the first data signal line and the second data signal line corresponding to the third electronic device by negotiating after the first electronic device and the second electronic device determine the first data signal line and the second data signal line.
In some embodiments, after determining the first data signal line and the second data signal line for communication with the second electronic device, the first electronic device may send a negotiation instruction to the third electronic device through the determined first data signal line (d+ line or D-line), where the third electronic device determines that the data signal line is the data signal line for receiving the first electronic device after receiving the negotiation instruction.
Or after the second electronic device determines the first data signal line and the second data signal line which are in communication with the first electronic device, the second electronic device can send a negotiation command to the third electronic device through the determined first data signal line (d+ line or D-line), and at this time, the third electronic device determines that the data signal line is the data signal line for receiving the second electronic device after receiving the negotiation command.
In the above method, the communication method between the third electronic device and the first electronic device may be independent of the communication method between the third electronic device and the first electronic device. For example, a communication method between the third electronic device and the first electronic device may be set before communication between the third electronic device and the first electronic device. Before communication between the third electronic device and the second electronic device, a communication mode between the third electronic device and the second electronic device is set.
Or consider a scenario in which there may be a conflict, e.g., the first electronic device sending a first negotiation instruction to the third electronic device and the second electronic device sending a second negotiation instruction to the third electronic device. The first negotiation instruction collides with a first data signal line of the third electronic device indicated by the second negotiation instruction, and at this time, the third electronic device can determine a communication mode, so as to reply to the first electronic device and the second electronic device correspondingly. For example, the third electronic device determines to determine the first data signal line and the second data signal line in a manner corresponding to the first negotiation instruction. The negotiation success may be replied to the first electronic device and the negotiation failure may be replied to the second electronic device. Thus, the first electronic device and the second electronic device are notified of the corresponding negotiation results.
The manner in which the third electronic device determines the first data signal line and the second data signal line may be determined according to a priority of communication between the third electronic device and the first electronic device or the second electronic device, for example, when a communication priority between the first electronic device and the third electronic device is higher, may be determined according to a first negotiation instruction of the first electronic device, and when a communication priority between the second electronic device and the third electronic device is higher, may be determined according to a second negotiation instruction of the second electronic device.
The priority of the communication between the third electronic device and the first electronic device or the second electronic device may be determined according to the electronic device that the third electronic device currently communicates with in priority, or may be a preset priority, which is not limited herein.
Step 902a: sending a first message through a first pin; the first pin is connected with a first data signal line.
Step 902b: receiving a second message through a second pin; the second pin is connected with a second data signal line.
The first message and the second message are used for setting charging of the electronic equipment.
In combination with the mode a1 or b1, one possible mode f1, the second data signal line is a d+ signal line, and the first data signal line is a D-signal line. At this time, the first pin is a pin connected with the negative signal data line; the second pin is a pin connected with the positive signal data line. As shown in fig. 9b, the first electronic device sends data on D-, and receives data on d+; the second electronic device receives data on D-and transmits data on d+.
In combination with the mode a2 or b2, one possible mode f2, the first data signal line is a D-signal line, and the second data signal line is a d+ signal line. At this time, the first pin is a pin connected with the positive signal data line; the second pin is a pin connected with the negative signal data line. As shown in fig. 9c, the first electronic device sends data on d+ and receives data on D-; the second electronic device receives data on D +, and transmits data on D-.
For the third electronic device, the third electronic device may receive data on D-, and transmit data on d+. Or the third electronic device receives the data on D + and sends the data on D-. For example, in fig. 9b, data may be received on D-and sent on d+. In other embodiments, the third electronic device may further switch the communication mode of the third electronic device through a controller of the third electronic device. For example, the communication mode may be switched by setting a switch to switch a pin of the third electronic device for transmitting data to the d+ line and to switch a pin of the third electronic device for receiving data to the D-line, so as to switch the communication mode of the third electronic device to receive data to the D-line and to transmit data to the d+. In fig. 9c, the third electronic device receives data on d+ and transmits data on D-. In other embodiments, the third electronic device may further switch the communication mode of the third electronic device through a controller of the third electronic device. For example, the communication mode may be switched by setting a switch to switch a pin of the third electronic device for transmitting data to the D-line and to switch a pin of the third electronic device for receiving data to the d+ line, so as to switch the communication mode of the third electronic device to receive data to the d+ line and to transmit data to the D-line. In fig. 9D, 2 switching of the transceiving modes can be achieved in the third electronic device by providing 2 data receiving modules RX1 and RX2 and 2 data transmitting modules TX1 and TX2, for example by providing that data is received on d+ by receiving module RX1 and transmitting module TX1 and data is transmitted on D-. The setting may be performed by determining the D-data signal line as a received line after the D-receiving the control command, thereby setting the reception module RX1 to be enabled and the transmission module TX1 to be enabled accordingly. It may also be arranged to receive data on D-and to transmit data on D + by means of the receiving module RX2 and the transmitting module TX 2. The setting may be performed by determining that d+ is the data signal line as the received line after the d+ receives the control instruction, thereby setting the receiving module RX2 to be enabled and the transmitting module TX2 to be enabled accordingly. (the switching may be performed by a switch as shown in fig. 9d, for example, but it is needless to say that the switching may be performed by other means, which is not limited herein).
In step 902a, in combination with the mode a1 or b1, as shown in fig. 9e (a), the first electronic device sends a logic "0" signal by pulling the first data signal line low, indicating the start of transmitting the character. After the data transmission is completed, a logic "1" signal is sent to indicate the end of transmission.
In some embodiments, the first electronic device may set the first data signal line at a high level when the first data signal line is in an idle state, and set a time (for example, a time of one data bit) corresponding to a start field of the first data signal line to be a start field of the first message to start communication after confirming that the first message starts to be transmitted (a transmission instruction is received). And then sequentially transmitting the data in the first message from low order to high order, and transmitting the ending field of the first message after the data in the first message is transmitted. In some embodiments, the end field may be a time (e.g., a data bit time) corresponding to the end field of the first data signal line pulled up to determine that one data frame in the first message is sent over.
In step 902a, in combination with the mode a2 or b2, as shown in fig. 9e (b), the first electronic device sends a logic "0" signal by pulling the first data signal line high, indicating the start of transmitting the character. After the data transmission is completed, a logic "1" signal is sent to indicate the end of transmission.
In some embodiments, the first electronic device may pull the first data signal line high to 0V when the first data signal line is in an idle state (e.g., -3.3V), and after confirming that the first message starts to be sent (receiving a sending instruction), the first data signal line may be pulled up to the start field of the first message for a time corresponding to the start field (e.g., a time of one data bit) to start communication. And then sequentially transmitting the data in the first message from low order to high order, and transmitting the ending field of the first message after the data in the first message is transmitted. In some embodiments, the end field may be a time (e.g., a data bit time) corresponding to the end field of the first data signal line pulled down to determine that one data frame in the first message is sent over.
For example, one data frame may contain a 1bit start field, an 8bit data field, a 1bit stop field. When the first message includes only one data frame, the current first message may be considered to be completed, and when the first message includes a plurality of data frames, each data frame in the first message may be sequentially transmitted until each data frame in the first message is completed.
In step 902b, in combination with the mode a1 or b1, in some embodiments, the first electronic device may determine that the second data signal line is at a high level when the second data signal line is in an idle state, and determine that there is data transmission when detecting that the second data signal line has a falling edge, and may determine to start receiving the second message, sequentially receive one frame of the data frame in the second message from a low level to a high level, and determine that the second data signal line is at a high level after determining that the data of the preset byte is received, thereby determining that one frame of the data is received.
In step 902b, in combination with the mode a2 or b2, the first electronic device may determine that the second data signal line is at a low level (e.g., -3.3V) when the second data signal line is in an idle state, determine that there is a data transmission when detecting that the second data signal line has a rising edge, determine to start receiving the second message, sequentially receive a frame of data frame in the second message from a low level to a high level, and determine that the second data signal line is at a low level after determining that the data of the preset byte is received, thereby determining that one frame of data is received.
As shown in fig. 9f, the structure of one data frame may include a start field (S in the figure), a data field, and a stop field (E in the figure). The interval between different data is denoted as I. For example, in a data link, a frame of data contains 10 bits (1 bit start field+8 bit data field+1 bit stop field), and in a protocol layer, a data may include a plurality of 10bit data frames according to different information commands.
For example, the control command may include 5 data frames as shown in (a) of fig. 9 f. The data field of the 1 st data frame is a communication frequency (tracking) field, the data field of the 2 nd data frame is a high-order message header field, the data field of the 3 rd data frame is a low-order message header field, the data field of the 4 th data frame is a control command field, and the data field of the 5 th data frame is a CRC check field.
The data command may include 4+n data frames as shown in (b) of fig. 9 f. The data field of the 1 st data frame is a communication frequency field, the data field of the 2 nd data frame is a high-order message header field, the data field of the 3 rd data frame is a low-order message header field, the data fields of the 4 th data frame to the 3+N data frame are data fields, and the data field of the 4+N data frame is a CRC check field.
The data may also be a custom command, for example, as shown in fig. 9f (c), comprising 6+N data frames. The data field of the 1 st data frame is a communication frequency field, the data field of the 2 nd data frame is a high-order message header field, the data field of the 3 rd data frame is a low-order message header field, the data field of the 4 th data frame is a high-order manufacturer information field, the data field of the 5 th data frame is a low-order manufacturer information field, the data fields of the 6 th data frame to 5+N th data frame are data fields, and the data field of the 6+N th data frame is a CRC check field.
The format of the command field is merely an example, and the data packet may further include data frames corresponding to other fields, which are not described herein.
Based on the above-mentioned problem 2, considering that in the prior art, data transmission is performed on the D-bus at a fixed communication frequency, when there is interference in the data transmission, the robustness of the data transmission is low, and the communication performance is poor. In connection with the embodiment in fig. 9a, the first electronic device may select the required communication frequency according to the actual requirements. As shown in fig. 10a, a method of configuring a communication frequency between a first electronic device and a second electronic device is specifically described below. The method specifically comprises the following steps:
step 1001a: and the first electronic equipment sends a first message after sending a first signal through the first pin.
The frequency of the first signal is a first frequency.
The first frequency may be determined by the transmitted first signal. For example, as shown in fig. 10b, the first signal may be 0xAA or 0x55 data transmitted on the D-channel, and the communication frequency of the first signal is determined by receiving the 0xAA or 0x55 data; the data may be followed by a level pulse as an end bit of the first signal.
Step 1002a: the second electronic device or the third electronic device receives the first message after receiving the first signal through the first pin.
And determining the communication frequency of the second message as the frequency of the second signal through the first signal.
Step 1001b: and after the second electronic device or the third electronic device sends the second signal through the second pin, sending a second message.
And determining the communication frequency of the second message as the frequency of the second signal through the second signal.
Step 1002b: and the first electronic equipment receives the second message after receiving the second signal through the second pin.
And determining the communication frequency of the second message as the frequency of the second signal through the second signal.
By the method, the first electronic device can send the first signal, and the second electronic device and the third electronic device determine to communicate at the first frequency of the first signal after receiving the first signal.
Problem 3, considering that in the prior art, only point-to-point communication between the first electronic device and the second electronic device can be supported on the D-line, communication between multiple devices cannot be supported, and when a third electronic device exists in the system, a scenario that the first electronic device, the second electronic device and the third electronic device need to communicate cannot be adapted.
Based on the above problems, in the embodiment of the present application, different identifiers of electronic devices may be defined, and when the first message or the second message is sent, the identifiers of the corresponding electronic devices may be carried, so as to implement data transmission between multiple devices.
It is considered that in this embodiment, taking the first electronic device as an example, the first message is sent via the first data signal line and the second message is received via the second data signal line. Thus, only the identity of the recipient need be carried in the first and second messages to distinguish between the multiple electronic devices of the possible recipients.
In some embodiments, the identity of the different electronic devices may be represented by role-coded information. The role encoding information may be carried by physical header information.
In one possible implementation, the first message includes: a first identifier; a first identifier for indicating a recipient of the first message; the second message includes: a second identifier; a second identifier for indicating a recipient of the second message; the receiver of the first message is any one of the following: the second electronic device and the third electronic device.
For example, role Code (Role Code) may consist of 4bit data bits, with the upper 2 bits identifying the data receiver Role, or the lower 2 bits identifying the data receiver Role.
For example, the upper 2 bits identify the role of the data receiver, and in the data packet, the first byte is the data header field,
The identification of the data receiver may be carried in the header field. For example, as shown in table 4.
TABLE 4 Table 4
In consideration of the problem 4, in the prior art, the communication method is performed in such a manner that the master device answers the slave device (the second electronic device or the third electronic device), and the slave device (the second electronic device or the third electronic device) can only respond to the master device and cannot perform active communication. That is, only after the first electronic device sends a message to the second electronic device, the second electronic device feeds back a corresponding message, and when the second electronic device is abnormal or the like, a scene that related information needs to be actively reported may be caused, the first electronic device cannot be timely notified, so that the problem that the charging of the first electronic device is abnormal or even the corresponding device of the first electronic device is damaged may be caused.
Based on problem 4, in connection with the embodiment in fig. 9a, a slave is allowed to actively send a message. And the plurality of electronic devices realize data transmission through D+ or D-, and are used for sending commands between the devices, reporting and acquiring information. The problem of sharing the first data signal line between a plurality of electronic devices to transmit a message is considered. The data transmission between the third electronic device and the first electronic device may be performed first, and after the data transmission between the third electronic device and the first electronic device is determined, only the data transmission between the first electronic device and the second electronic device is started. This is illustrated below in connection with fig. 11 a.
Step 1101: after handshake detection is completed, the first electronic equipment sends a detection instruction of the third electronic equipment;
step 1102: the counter is reset.
Step 1103: the first electronic device determines whether a third electronic device is present, if not, then step 1108 is performed, and if present, then step 1104 is performed;
Step 1104: the first electronic device and the third electronic device start communication according to a set flow, and in the process, the second electronic device prohibits active initiation of communication.
Step 1105: the first electronic device determines whether the communication between the first electronic device and the third electronic device is completed; if yes, go to step 1108; if not, go to step 1106;
Step 1106: the first electronic device determines whether the communication between the first electronic device and the third electronic device exceeds a preset time, if so, step 1107 is executed; if not, go to step 1104;
Step 1106: judging whether the counter is larger than a preset threshold (for example, the preset threshold is 3); if yes, go to step 1108; if not, go to step 1109;
step 1108: the first electronic device initiates communication with the second electronic device.
Step 1109: the count of the counter is incremented.
By means of the counter, communication between the first electronic device and the third electronic device can be completed within the preset time and the preset time within the times of the preset threshold value, and then communication between the first electronic device and the second electronic device is performed.
When the first data signal line or the second data signal line is abnormal, for example, when the first electronic device is disconnected from the second electronic device during high-current charging, the first electronic device may be damaged irreversibly by the high-current, and at this time, the second electronic device may detect the pulling-out action of the third electronic device within microsecond time, so that the output path of energy is quickly closed, and the charging mode of the quick charging is stopped. Accordingly, the data transmission mode also needs to be restored to the data transmission mode in the normal charging mode. In the embodiment of the application, the reset signal can be sent by the first electronic equipment, so that the reset of the communication modes of the second electronic equipment and the third electronic equipment is realized.
As shown in fig. 11b, a timing diagram of the second reset signal sent at the first electronic device. The first electronic device can send a second reset signal through the first pin; the second reset signal is used for indicating a receiver of the second reset signal to reset; the pulse width of the second reset signal has an association relation with the receiving party.
In some embodiments, the second reset signal may be a reset pulse; the reset pulse may be a pulse signal driving the first data signal line to a low level for a preset time. For example, the preset time corresponding to the second electronic device may be 1ms. The preset time may be a time length that is substantially longer than the occupied time of the data signal or time window according to the present application.
And after the second electronic equipment receives the second reset signal, the second electronic equipment restores the state of the second electronic equipment to a default state according to the reset protocol. And after the third electronic equipment receives the second reset signal, the third electronic equipment restores the state of the third electronic equipment to a default state according to the reset protocol.
When the power supply device executes the reset command, if the last command sequence is running, the reset command starts to be issued after the last command sequence is finished. The pulse width of the second reset signal may be different for the second electronic device or the third electronic device, for example, the time length of the second reset signal of the third electronic device may be 1ms, and the time length of the second reset signal of the second electronic device may be 2ms. In another possible implementation manner, the second reset signal may also be determined according to the current communication frequency, for example, the time length of the second reset signal of the first electronic device may be N periods (a period T corresponding to the communication frequency f between the first electronic device and the second electronic device) which is not limited herein.
In order to improve the data transmission quality on the communication link, in the embodiment of the application, the data packet may further include a communication data error check. The method may refer to the data error checking method in the above embodiment, and will not be described herein.
As shown in fig. 12, based on the same concept, an electronic device 1200 according to an embodiment of the present application as shown in fig. 12, the electronic device 1200 includes: a processing module 1201 and a transceiver module 1202.
In one possible embodiment, the electronic device 1200 may be a first electronic device. The electronic device 1200 is connected to the second electronic device through a third electronic device that includes a first data signal line and a second data signal line.
The processing module 1201 is configured to detect, through the transceiver module 1201, connection with the second electronic device; a processing module 1201, configured to send a first message through a first pin of the transceiver module 1201; the first pin is connected with a first data signal line; receiving a second message through a second pin of the transceiver module 1201; the second pin is connected with a second data signal line; the first message and the second message are used for setting charging of the first electronic device.
One possible implementation manner, the first pin is a pin connected with a negative signal data line; the second pin is a pin connected with the positive signal data line.
One possible implementation manner, the first pin is a pin connected with a positive signal data line; the second pin is a pin connected with the negative signal data line.
A possible implementation manner, a processing module 1201 is configured to detect, through the first pin or the second pin, connection with a second electronic device, and determine that the second electronic device is a proprietary charging interface DCP device; transmitting a first pulse signal through the first pin of the transceiver module 1201; and detecting an electric signal of the second electronic device through the second pin, and confirming that the second electronic device supports a quick charging mode.
One possible implementation manner, the second pin is a pin connected to a positive signal data line, and the electrical signal is a second response signal;
In one possible implementation manner, the second pin is a pin connected to a negative signal data line, and the electrical signal is a first response signal.
A possible implementation manner, the first message includes: a first identifier; the first identifier is used for indicating a receiver of the first message; the second message includes: a second identifier; the second identity is used to indicate a recipient of the second message.
One possible implementation manner is that the receiver of the first message is a chip of the third electronic device, and the receiver of the second message is the first electronic device;
one possible implementation manner, the receiver of the first message is the second electronic device; the receiver of the second message is the first electronic device.
In a possible implementation manner, the processing module 1201 is configured to, before sending the first message through the first pin of the transceiver module 1201, send the first signal through the first pin; the frequency of the first signal is a first frequency; the first signal is used to indicate that the frequency of the first message is the first frequency.
In a possible implementation manner, the processing module 1201 is configured to receive a second signal through the second pin of the transceiver module 1201; the frequency of the second signal is a second frequency; the second signal is used to indicate that the frequency of the second message is the second frequency.
A possible implementation manner, the first message includes at least one of the following: at least one data frame, a cyclic redundancy check field; wherein one data frame includes: a start field, an end field, a data packet header field, and a data field.
A possible implementation, the packet header field includes the first identifier.
In a possible implementation manner, the processing module 1201 is configured to send a start signal before sending the first message through the first pin of the transceiver module 1201; the start signal is a low level signal; the processing module 1201 is configured to send an end signal after sending the first message through the first pin of the transceiver module 1201; the end signal is a high level signal.
In a possible implementation manner, the processing module 1201 is configured to receive a start signal before receiving the second message through the second pin of the transceiver module 1201; the start signal is a low level signal; the processing module 1201 is configured to receive the end signal after receiving the second message through the second pin of the transceiver module 1201; the end signal is a high level signal.
In one possible implementation manner, the processing module 1201 is configured to send a first reset signal through a first pin of the transceiver module 1201; the first reset signal is used for indicating a receiver of the first reset signal to reset; the pulse width of the first reset signal has an association relation with the receiver.
In another possible embodiment, the processing module 1201 is configured to detect, by the transceiver module 1201, a connection with the second electronic device; transmitting a first message through a first pin of the transceiver module 1201; or receiving a second message through the first pin; wherein the first message and the second message are Manchester encoded messages; the first pin is connected with a first data signal line; the first message and the second message are used for setting charging of the first electronic device.
One possible implementation manner, the first pin is a pin connected with a negative signal data line; or the first pin is a pin connected with a positive signal data line.
A possible implementation manner, the processing module 1201 is configured to detect, through the first pin and the second pin of the transceiver module 1201, connection with a second electronic device, and determine that the second electronic device is a proprietary charging interface DCP device; the processing module 1201 is configured to send a first pulse signal through the first pin of the transceiver module 1201; the processing module 1201 is configured to detect an electrical signal of the second electronic device through the second pin of the transceiver module 1201, and confirm whether to charge the battery of the first electronic device in the fast charging mode.
One possible implementation manner, the second pin is a pin connected to a positive signal data line, and the electrical signal is a second pulse signal;
In one possible implementation manner, the second pin is a pin connected to a negative signal data line, and the electrical signal is a low level signal.
A possible implementation manner, the first message includes: a third identifier; the third identifier is used for indicating a receiver of the first message and a sender of the first message; the second message includes: a fourth identifier; the fourth identifier is used for indicating a receiver of the second message and a sender of the second message; the receiver of the first message or the sender of the second message is any one of the following: the second electronic device and the third electronic device.
In a possible implementation manner, the processing module 1201 is configured to send a first signal through the first pin of the transceiver module 1201; the frequency of the first signal is a first frequency; the first signal is used to negotiate a communication frequency to be the first frequency.
In a possible implementation manner, the processing module 1201 is configured to receive a second signal through the first pin of the transceiver module 1201; the frequency of the second signal is the first frequency; the second signal is used to determine a communication frequency as the first frequency.
A possible implementation manner, the frequencies of the first message and the second message are the first frequencies.
A possible implementation, the first message includes at least one data frame; the data frame is any one of the following: header information, data information, control information, cyclic redundancy check; wherein one data frame includes: a start field, a data field, and an end field.
In a possible implementation manner, the processing module 1201 is configured to send, after the first message via the first pin of the transceiver module 1201, the first data signal line further configured to receive, within a first time window, the message by the first electronic device.
In a possible implementation manner, the processing module 1201 is configured to determine, during a second time window, that the first data signal line is used for the first electronic device to receive a message after receiving a second message through the first pin of the transceiver module 1201.
In a possible implementation manner, the processing module 1201 is configured to, after receiving a second message through the first pin of the transceiver module 1201, determine that the current time exceeds the second time window, and use the first data signal line to send a message to the first electronic device.
In one possible implementation manner, the processing module 1201 is configured to send a first reset signal through a first pin of the transceiver module 1201; the first reset signal is used for indicating a receiver of the first reset signal to reset; the pulse width of the first reset signal has an association relation with the receiver.
In one possible embodiment, the electronic device 1200 may be a second electronic device. The second electronic device is connected with the first electronic device through a third electronic device, and the third electronic device comprises a first data signal line and a second data signal line.
In some embodiments, a processing module 1201 is configured to determine, by means of the transceiver module 1201, a connection with the first electronic device; the processing module 1201 is configured to receive a first message through a first pin of the transceiver module 1201; the first pin is connected with a first data signal line; the processing module 1201 is configured to send a second message through a second pin of the transceiver module 1201; the second pin is connected with a second data signal line; the first message and the second message are used for setting charging of the first electronic device.
One possible implementation manner, the first pin is a pin connected with a negative signal data line; the second pin is a pin connected with the positive signal data line.
One possible implementation manner, the first pin is a pin connected with a positive signal data line; the second pin is a pin connected with the negative signal data line.
A possible implementation manner, the processing module 1201 is configured to receive, through a first pin or the second pin of the transceiver module 1201, a detection from the first electronic device, where the detection is used by the first electronic device to determine that the second electronic device is a proprietary charging interface DCP device;
The processing module 1201 is configured to receive a first pulse signal from the first electronic device through a first pin of the transceiver module 1201; the processing module 1201 is configured to send an electrical signal to the first electronic device through a second pin of the transceiver module 1201, and confirm that the battery of the first electronic device is charged through the fast charging mode.
One possible implementation manner, the second pin is a pin connected to a positive signal data line, and the electrical signal is a second pulse signal; the second pin is a pin connected with a negative signal data line, and the electric signal is a low-level signal.
A possible implementation manner, the first message includes: a first identifier; the first identifier is used for indicating a receiver of the first message; the second message includes: a second identifier; the second identity is used to indicate a recipient of the second message.
One possible implementation manner, the receiver of the first message is the second electronic device; the receiver of the second message is the first electronic device.
In one possible implementation manner, when the receiving side of the first message is the chip of the third electronic device, the second message is not sent to the first electronic device.
In a possible implementation manner, the processing module 1201 is configured to send, before sending the second message through the second pin of the transceiver module 1201, a second signal through the second pin; the frequency of the second signal is a second frequency; the second signal is used to indicate that the frequency of the second message is the second frequency.
In a possible implementation manner, the processing module 1201 is configured to receive a first signal through the first pin of the transceiver module 1201; the frequency of the first signal is a first frequency; the first signal is used to indicate that the frequency of the first message is the first frequency.
A possible implementation manner, the first message includes at least one data frame; the data frame is any one of the following: header information, data information, control information, cyclic redundancy check; wherein one data frame includes: a start field, a data field, and an end field.
In a possible implementation manner, the processing module 1201 is configured to send a start signal before sending the second message through the second pin of the transceiver module 1201; the start signal is a low level signal; the processing module 1201 is configured to send an end signal after sending the second message through the second pin of the transceiver module 1201; the end signal is a high level signal.
In a possible implementation manner, the processing module 1201 is configured to receive, before receiving, by the transceiver module 1201, the first message through the first pin, and further receive a start signal; the start signal is a low level signal; the processing module 1201 is configured to receive the end signal after receiving the first message through the first pin of the transceiver module 1201; the end signal is a high level signal.
In a possible implementation manner, the processing module 1201 is configured to receive a first reset signal through the first pin of the transceiver module 1201; the pulse width of the first reset signal has an association relationship with the second electronic device;
and the processing module 1201 is configured to reset the second electronic device according to the first reset signal.
In a possible implementation manner, the processing module 1201 is configured to receive a second reset signal through the first pin of the transceiver module 1201; the pulse width of the second reset signal has an association relationship with the third electronic device; the processing module 1201 is further configured to ignore the second reset signal.
In other embodiments, the processing module 1201 is configured to determine, by using the transceiver module 1201, a connection with the first electronic device; sending a second message through the first pin of the transceiver module 1201; or receive the first message through the first pin of the transceiver module 1201; the first pin is connected with a first data signal line; wherein the first message and the second message are Manchester encoded messages; the first message and the second message are used for setting charging of the first electronic device.
One possible implementation manner, the first pin is a pin connected with a negative signal data line; or the first pin is a pin connected with a positive signal data line.
A possible implementation manner, the processing module 1201 is configured to receive, through a first pin and the second pin of the transceiver module 1201, a detection from the first electronic device, where the detection is used by the first electronic device to determine that the second electronic device is a proprietary charging interface DCP device; receiving a first pulse signal from the first electronic device through the first pin; and sending an electric signal to the first electronic device through the second pin, and confirming whether the battery of the first electronic device is charged through a quick charging mode.
One possible implementation manner, the second pin is a pin connected to a positive signal data line, and the electrical signal is a second pulse signal;
The second pin is a pin connected with a negative signal data line, and the electric signal is a low-level signal.
A possible implementation manner, the first message includes: a third identifier; the third identifier is used for indicating a receiver of the first message and a sender of the first message;
The second message includes: a fourth identifier; the fourth identifier is used for indicating a receiver of the second message and a sender of the second message; the sender of the first message or the receiver of the second message is any one of the following: the first electronic device and the third electronic device.
In a possible implementation manner, the processing module 1201 is configured to receive a first signal through a first pin of the transceiver module 1201; the frequency of the first signal is a first frequency; the first signal is used to negotiate a communication frequency to be the first frequency.
In a possible implementation manner, the processing module 1201 is configured to send the second signal through the first pin of the transceiver module 1201; the frequency of the second signal is the first frequency; the first signal is used to determine a communication frequency as the first frequency.
A possible implementation manner, the frequencies of the first message and the second message are the first frequencies.
A possible implementation manner, the first message includes at least one of the following: at least one data frame, a cyclic redundancy check field; wherein one data frame includes: a start field, an end field, a data packet header field, and a data field.
In a possible implementation manner, the processing module 1201 is configured to, after receiving the first message through the first pin of the transceiver module 1201, further confirm that the first data signal line is used by the second electronic device or the third electronic device to send the message within a first time window.
In a possible implementation manner, the processing module 1201 is configured to confirm, during a second time window, that the first data signal line is used for the second electronic device or the third electronic device to send a message after sending a second message through the first pin of the transceiver module 1201.
In a possible implementation manner, the processing module 1201 is configured to, after sending a second message through the first pin of the transceiver module 1201, determine that the current time exceeds the second time window, and use the first data signal line to receive a message by the second electronic device or the third electronic device.
A possible implementation manner, the processing module 1201 is configured to receive a first reset signal through a first pin of the transceiver module 1201; the pulse width of the first reset signal has an association relationship with the second electronic device; and resetting the charging mode according to the first reset signal.
A possible implementation manner, the processing module 1201 is configured to receive the second reset signal through the first pin of the transceiver module 1201; the pulse width of the second reset signal has an association relationship with the third electronic device; the second reset signal is ignored.
In one possible embodiment, the electronic device 1200 may be a third electronic device. The third electronic device is used for connecting the second electronic device with the first electronic device, and comprises a first data signal line and a second data signal line.
A processing module 1201, configured to receive a first message through a first pin of the transceiver module 1201; the first pin is connected with a first data signal line; a processing module 1201, configured to send a second message through a second pin of the transceiver module 1201; the second pin is connected with a second data signal line; the first message and the second message are used for setting charging of the first electronic device.
One possible implementation manner, the first pin is a pin connected with a negative signal data line; the second pin is a pin connected with the positive signal data line.
One possible implementation manner, the first pin is a pin connected with a positive signal data line; the second pin is a pin connected with the negative signal data line.
A possible implementation manner, the first message includes: a first identifier; the first identifier is used for indicating a receiver of the first message; the second message includes: a second identifier; the second identity is used to indicate a recipient of the second message.
One possible implementation manner, the receiving side of the first message is the third electronic device; the receiver of the second message is the first electronic device.
In a possible implementation manner, when the receiving party of the first message is the second electronic device, the processing module 1201 is configured to determine not to send the second message to the first electronic device.
A possible implementation manner, the processing module 1201 is configured to receive the first signal through a first pin of the transceiver module 1201; the frequency of the first signal is a first frequency; the first signal is used for indicating that the frequency of the first message is the first frequency;
the processing module 1201 is configured to send a first signal through a second pin of the transceiver module 1201 before sending a second message through the second pin; the frequency of the first signal is a second frequency; the first signal is used to indicate that the frequency of the first message is the second frequency.
A possible implementation manner, the first message includes at least one data frame; the data frame is any one of the following: header information, data information, control information, cyclic redundancy check; wherein one data frame includes: a start field, a data field, and an end field.
In a possible implementation manner, the processing module 1201 is configured to send a start signal before sending the second message through the second pin of the transceiver module 1201; the start signal is a low level signal; the processing module 1201 is configured to send an end signal after sending the second message through the second pin of the transceiver module 1201; the end signal is a high level signal.
In a possible implementation manner, the processing module 1201 is configured to receive a start signal before receiving the first message through the first pin of the transceiver module 1201; the start signal is a low level signal; the processing module 1201 is configured to receive the end signal after receiving the first message through the first pin of the transceiver module 1201; the end signal is a high level signal.
A possible implementation manner, the processing module 1201 is configured to receive the second reset signal through the first pin of the transceiver module 1201; the pulse width of the second reset signal has an association relationship with the third electronic device; and resetting according to the second reset signal.
A possible implementation manner, the processing module 1201 is configured to receive a first reset signal through the first pin of the transceiver module 1201; the pulse width of the first reset signal has an association relationship with the second electronic device; a processing module 1201 is configured to ignore the first reset signal.
In other embodiments, the processing module 1201 is configured to send the second message through the first pin of the transceiver module 1201; or receive the first message through the first pin of the transceiver module 1201; the first pin is connected with a first data signal line; wherein the first message and the second message are Manchester encoded messages; the first message and the second message are used for setting charging of the first electronic device.
One possible implementation manner, the first pin is a pin connected with a negative signal data line; or the first pin is a pin connected with a positive signal data line.
A possible implementation manner, the first message includes: a third identifier; the third identifier is used for indicating a receiver of the first message and a sender of the first message;
The second message includes: a fourth identifier; the fourth identifier is used for indicating a receiver of the second message and a sender of the second message; the sender of the first message or the receiver of the second message is any one of the following: the first electronic device and the third electronic device.
A possible implementation manner, the frequencies of the first message and the second message are the first frequencies.
A possible implementation manner, the first message includes at least one of the following: at least one data frame, a cyclic redundancy check field; wherein one data frame includes: a start field, an end field, a data packet header field, and a data field.
In a possible implementation manner, the processing module 1201 is configured to, after receiving the first message through the first pin of the transceiver module 1201, further confirm that the first data signal line is used by the second electronic device or the third electronic device to send the message within the first time window.
In a possible implementation manner, the processing module 1201 is configured to, after sending the second message through the first pin of the transceiver module 1201, further confirm that the first data signal line is used for sending the message by the second electronic device or the third electronic device in the second time window.
In a possible implementation manner, the processing module 1201 is configured to, after sending a second message through the first pin of the transceiver module 1201, determine that the current time exceeds the second time window, and use the first data signal line to receive a message by the third electronic device or the second electronic device.
A possible implementation manner, the processing module 1201 is configured to receive a first reset signal through a first pin of the transceiver module 1201; the pulse width of the first reset signal has an association relationship with the third electronic device; and resetting the charging mode according to the first reset signal.
A possible implementation manner, the processing module 1201 is configured to receive, through the first pin, a second reset signal by using the transceiver module 1201; the pulse width of the second reset signal has an association relationship with the second electronic device; the second reset signal is ignored.
Based on the same inventive concept, as shown in fig. 13, a schematic structural diagram of an electronic device is provided in the present application.
In one possible embodiment, the electronic device in fig. 13 may be a first electronic device. The first electronic device may include: a processor 1310 and a communication interface 1330. Processor 1310 may be a baseband processor that may include one or more central processing units (central processing unit, CPUs) therein. The first electronic device may also be a component having the function of the first electronic device according to the embodiment of the present application, for example, in the case of a chip system, the communication interface 1330 may be an input/output interface of the chip system (for example, a baseband chip), and the processor may be a processor of the chip system, and may include one or more central processing units. Optionally, a memory 1320 may also be included. Wherein the memory 1320 stores computer instructions or programs, the processor 1310 may execute the computer instructions or programs stored in the memory 1320. When executed, the processor 1310 is configured to perform operations of the first electronic device other than the transceiving operation according to the embodiment of the present application, and the communication interface 1330 is configured to perform the transceiving operation of the first electronic device according to the embodiment of the present application. Alternatively, the first electronic device may not include the memory 1320, for example, the memory is located outside the first electronic device, where the processor 1310 is configured to perform operations of the first electronic device other than the transceiving operations of the first electronic device in the above embodiment, and the communication interface 1330 is configured to perform transceiving operations of the first electronic device in the embodiment of the present application when the computer instructions or the program stored in the external memory are executed.
In one possible embodiment, the electronic device in fig. 13 may be a second electronic device. The second electronic device may include: a processor 1310 and a communication interface 1330. Processor 1310 may be a baseband processor that may include one or more central processing units (central processing unit, CPUs) therein. The second electronic device may also be a component having a function of the second electronic device according to the embodiment of the present application, for example, in the case of a chip system, the communication interface 1330 may be an input/output interface of the chip system (for example, a baseband chip), and the processor may be a processor of the chip system, and may include one or more central processing units. Optionally, a memory 1320 may also be included. Wherein the memory 1320 stores computer instructions or programs, the processor 1310 may execute the computer instructions or programs stored in the memory 1320. When executed, the processor 1310 is configured to perform operations of the second electronic device other than the transceiving operation according to the embodiment of the present application, and the communication interface 1330 is configured to perform the transceiving operation of the second electronic device according to the embodiment of the present application. Alternatively, the second electronic device may not include the memory 1320, for example, the memory is located outside the second electronic device, where the processor 1310 is configured to perform operations of the second electronic device other than the transceiving operations in the above embodiment, and the communication interface 1330 is configured to perform transceiving operations of the second electronic device in the embodiment of the present application when the computer instructions or the program stored in the external memory are executed.
In one possible embodiment, the electronic device in fig. 13 may be a third electronic device. The third electronic device may include: a processor 1310 and a communication interface 1330. Processor 1310 may be a baseband processor that may include one or more central processing units (central processing unit, CPUs) therein. The third electronic device may also be a component having a function of the third electronic device according to the embodiment of the present application, for example, in the case of a chip system, the communication interface 1330 may be an input/output interface of the chip system (for example, a baseband chip), and the processor may be a processor of the chip system, and may include one or more central processing units. Optionally, a memory 1320 may also be included. Wherein the memory 1320 stores computer instructions or programs, the processor 1310 may execute the computer instructions or programs stored in the memory 1320. When executed, the processor 1310 is configured to perform operations of the third electronic device other than the transceiving operation according to the embodiment of the present application, and the communication interface 1330 is configured to perform the transceiving operation of the third electronic device according to the embodiment of the present application. Alternatively, the third electronic device may not include the memory 1320, for example, the memory is located outside the third electronic device, where the processor 1310 is configured to perform operations of the third electronic device other than the transceiving operations of the third electronic device in the above embodiment, and the communication interface 1330 is configured to perform transceiving operations of the third electronic device in the embodiment of the present application when the computer instructions or the program stored in the external memory are executed.
Embodiments of the present application also provide a computer storage medium for storing a computer program which, when run on a computer, causes the computer to perform a method as described in any one of the possible implementations of fig. 4 a-11 a.
Embodiments of the present application also provide a computer program product comprising instructions for storing a computer program for causing a computer to perform the method as described in any one of the possible implementations of fig. 4 a-11 a when the computer program is run on the computer.
It should be appreciated that the processor referred to in the embodiments of the present application may be a CPU, but may also be other general purpose processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), off-the-shelf programmable gate arrays (field programmable GATE ARRAY, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It should also be understood that the memory referred to in embodiments of the present application may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an erasable programmable ROM (erasable PROM), an electrically erasable programmable EPROM (EEPROM), or a flash memory. The volatile memory may be random access memory (random access memory, RAM) which acts as external cache memory. By way of example, and not limitation, many forms of RAM are available, such as static random access memory (STATIC RAM, SRAM), dynamic random access memory (DYNAMIC RAM, DRAM), synchronous Dynamic Random Access Memory (SDRAM), double data rate synchronous dynamic random access memory (double DATA RATE SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (ENHANCED SDRAM, ESDRAM), synchronous link dynamic random access memory (SYNCHLINK DRAM, SLDRAM), and direct memory bus random access memory (direct rambus RAM, DR RAM).
It should be noted that when the processor is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, the memory (storage module) is integrated into the processor.
It should be noted that the memory described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
It should be understood that, in various embodiments of the present application, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present application.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a specific implementation of the present application, but the scope of the embodiments of the present application is not limited thereto, and any person skilled in the art may easily think about changes or substitutions within the technical scope of the embodiments of the present application, and all changes and substitutions are included in the scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.

Claims (31)

1. A device to be charged, characterized in that the device to be charged comprises a first pin and a second pin, the first pin being a pin connected to a negative signal data line, the second pin being a pin connected to a positive signal data line, the device to be charged comprising a memory and a processor, wherein the memory is for storing computer program code, the computer program code comprising computer instructions which, when executed by the processor, cause the device to be charged to perform the steps of:
after establishing physical connection with power supply equipment, determining the power supply equipment as special charging interface (DCP) equipment;
Transmitting a first pulse signal through the first pin;
Detecting an electric signal of the power supply equipment through the second pin, and confirming that the power supply equipment supports a quick charging mode, wherein the electric signal is a signal sent by the power supply equipment after detecting the first pulse signal;
sending a first message through the first pin;
And receiving a second message through the second pin, wherein the second message is a response message of the first message, and the first message and the second message are used for setting the charging of the equipment to be charged.
2. The device to be charged according to claim 1, wherein the electrical signal is a high level signal.
3. The device to be charged according to claim 1, wherein,
The first message includes: a first identifier; the first identifier is used for indicating a receiver of the first message;
the second message includes: a second identifier; the second identity is used to indicate a recipient of the second message.
4. A device to be charged according to claim 3, characterized in that the recipient of the first message is the power supply device and the recipient of the second message is the device to be charged.
5. The device to be charged according to claim 1, characterized in that said steps further comprise:
And sending a first reset signal through the first pin, wherein the first reset signal is used for indicating a receiver of the first reset signal to reset, and the pulse width of the first reset signal is used for indicating the receiver of the first reset signal.
6. The device to be charged according to claim 5, wherein when the pulse width of the first reset signal is a first width, the receiving side of the first reset signal is the power supply device;
When the pulse width of the first reset signal is the second width, the receiving side of the first reset signal is a charging cable, wherein the charging cable is used for connecting the equipment to be charged and the power supply equipment.
7. The device to be charged according to claim 1, characterized in that said steps further comprise:
Before the first message is sent through the first pin, a first signal is sent through the first pin, the frequency of the first signal is a first frequency, and the first signal is used for indicating that the frequency of the first message is the first frequency.
8. The device to be charged according to claim 1, characterized in that said steps further comprise:
and before receiving the second message through the second pin, receiving a second signal through the second pin, wherein the frequency of the second signal is a second frequency, and the second signal is used for indicating that the frequency of the second message is the second frequency.
9. The device to be charged according to claim 1, characterized in that said steps further comprise:
Before the first message is sent through the first pin, a start signal is sent; the start signal is a low level signal;
after the first message is sent through the first pin, an end signal is sent; the end signal is a high level signal.
10. The device to be charged according to claim 1, characterized in that said steps further comprise:
Receiving a start signal before receiving the second message through the second pin; the start signal is a low level signal;
after receiving the second message through the second pin, receiving an end signal; the end signal is a high level signal.
11. The device to be charged according to any one of claims 1-10, characterized in that the device to be charged is in full duplex communication with the power supply device via the first pin and the second pin.
12. A power supply device comprising a first pin and a second pin, the first pin being a pin connected to a negative signal data line and the second pin being a pin connected to a positive signal data line, the power supply device comprising a memory and a processor, the memory for storing computer program code, the computer program code comprising computer instructions which, when executed by the processor, cause the power supply device to perform the steps of:
Receiving detection from equipment to be charged, wherein the detection is used for determining that the power supply equipment is a proprietary charging interface (DCP) equipment;
receiving a first pulse signal from the equipment to be charged through the first pin;
Responding to the first pulse signal, sending an electric signal to the equipment to be charged through the second pin, and confirming that the equipment to be charged is charged through a quick charging mode;
receiving a first message through a first pin;
and sending a second message through a second pin, wherein the second message is a response message of the first message, and the first message and the second message are used for setting the charging of the equipment to be charged.
13. The power supply apparatus of claim 12, wherein the electrical signal is a high level signal.
14. The power supply apparatus according to claim 12, wherein,
The first message includes: a first identifier; the first identifier is used for indicating a receiver of the first message;
the second message includes: a second identifier; the second identity is used to indicate a recipient of the second message.
15. The power supply apparatus of claim 14, wherein the recipient of the first message is the power supply apparatus; and the receiver of the second message is the equipment to be charged.
16. The power supply apparatus of claim 12, wherein the steps further comprise:
receiving a first reset signal through the first pin, wherein the pulse width of the first reset signal is used for indicating that the receiving side of the first reset signal is the power supply equipment;
And resetting according to the first reset signal.
17. The power supply apparatus of claim 12, wherein the steps further comprise:
Before the first message is received through the first pin, a first signal is received through the first pin, the frequency of the first signal is a first frequency, and the first signal is used for indicating that the frequency of the first message is the first frequency.
18. The power supply apparatus of claim 12, wherein the steps further comprise:
Before the second message is sent through the second pin, a second signal is sent through the second pin; the frequency of the second signal is a second frequency; the second signal is used to indicate that the frequency of the second message is the second frequency.
19. The power supply apparatus of claim 12, wherein the steps further comprise:
Before the second message is sent through the second pin, sending a start signal; the start signal is a low level signal;
after the second message is sent through the second pin, an end signal is sent; the end signal is a high level signal.
20. The power supply apparatus of claim 12, wherein the steps further comprise:
Receiving a start signal before receiving the first message through the first pin; the start signal is a low level signal;
After receiving the first message through the first pin, receiving an end signal; the end signal is a high level signal.
21. The power supply device of any one of claims 12-20, wherein the power supply device is in full duplex communication with the device to be charged via the first pin and the second pin.
22. A charging cable for connecting a device to be charged with a power supply, the charging cable comprising a first pin and a second pin, the charging cable comprising a memory and a processor, wherein the memory is for storing computer program code comprising computer instructions which, when executed by the processor, cause the charging cable to perform the steps of:
Receiving a first message through the first pin;
Sending a second message through the second pin, wherein the second message is a response message of the first message, and the first message and the second message are used for setting the charging of the equipment to be charged;
The steps further include: receiving a second reset signal through the first pin, wherein the pulse width of the second reset signal is used for indicating that the receiving side of the second reset signal is the charging cable; and resetting according to the second reset signal.
23. The charging cable of claim 22, wherein the first pin is a pin connected to a negative data signal line and the second pin is a pin connected to a positive data signal line.
24. The charging cable of claim 22, wherein the cable comprises a plurality of conductors,
The first message includes a first identification indicating a recipient of the first message;
the second message includes a second identification indicating a recipient of the second message.
25. The charging cable of claim 22, wherein the recipient of the first message is the charging cable and the recipient of the second message is the device to be charged.
26. The charging cable of claim 22, wherein the steps further include:
Before the first message is received through the first pin, a first signal is received through the first pin, the frequency of the first signal is a first frequency, and the first signal is used for indicating that the frequency of the first message is the first frequency.
27. The charging cable of claim 22, wherein the steps further include:
Before the second message is sent through the second pin, a second signal is sent through the second pin, the frequency of the second signal is a second frequency, and the second signal is used for indicating that the frequency of the second message is the second frequency.
28. The charging cable of claim 22, wherein the steps further include:
Before the first message is received through the first pin, receiving a start signal, wherein the start signal is a low-level signal;
after the first message is received through the first pin, an end signal is received, and the end signal is a high level signal.
29. The charging cable of claim 22, wherein the steps further include:
before the second message is sent through the second pin, a start signal is sent, and the start signal is a low-level signal;
and after the second message is sent through the second pin, sending an end signal, wherein the end signal is a high-level signal.
30. The charging cable according to any one of claims 22 to 29, wherein the charging cable is for connecting the device to be charged and the power supply device for full duplex communication.
31. A charging cable-based data transmission system, comprising:
The device to be charged according to any one of claims 1 to 11, the power supply device according to any one of claims 12 to 21 and the charging cable according to any one of claims 22 to 30.
CN202011175402.7A 2020-07-15 2020-10-28 Data transmission method and device Active CN113949116B (en)

Priority Applications (8)

Application Number Priority Date Filing Date Title
CN202211602263.0A CN115864582A (en) 2020-07-15 2021-07-15 Data transmission method based on charging cable and electronic equipment
EP21842808.4A EP4181341A4 (en) 2020-07-15 2021-07-15 Data transmission method employing charging cable, and electronic devices
CN202180003825.7A CN114631244A (en) 2020-07-15 2021-07-15 Data transmission method based on charging cable and electronic equipment
CN202210012459.8A CN114297127B (en) 2020-07-15 2021-07-15 Data transmission method based on charging cable and electronic equipment
PCT/CN2021/106599 WO2022012644A1 (en) 2020-07-15 2021-07-15 Data transmission method employing charging cable, and electronic devices
CN202210012219.8A CN114297126B (en) 2020-07-15 2021-07-15 Data transmission method based on charging cable and electronic equipment
CN202211613029.8A CN115912567A (en) 2020-07-15 2021-07-15 Data transmission method based on charging cable and electronic equipment
US18/014,529 US20230261477A1 (en) 2020-07-15 2021-07-15 Charging cable-based data transmission method and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010682894 2020-07-15
CN2020106828942 2020-07-15

Publications (2)

Publication Number Publication Date
CN113949116A CN113949116A (en) 2022-01-18
CN113949116B true CN113949116B (en) 2024-05-10

Family

ID=79327237

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011175402.7A Active CN113949116B (en) 2020-07-15 2020-10-28 Data transmission method and device

Country Status (1)

Country Link
CN (1) CN113949116B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117453441A (en) * 2022-04-07 2024-01-26 荣耀终端有限公司 Abnormality recovery method and device for electronic equipment
CN117335510A (en) * 2022-06-27 2024-01-02 Oppo广东移动通信有限公司 Communication detection method, device, equipment, system and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104967200A (en) * 2015-08-05 2015-10-07 青岛海信移动通信技术股份有限公司 Quick-charging method and mobile terminal
CN107508354A (en) * 2017-09-07 2017-12-22 维沃移动通信有限公司 A kind of charging method and mobile terminal
CN111404219A (en) * 2014-08-05 2020-07-10 德州仪器公司 Method for fast USB charging, electronic device and charger device
CN114297127B (en) * 2020-07-15 2022-11-01 华为技术有限公司 Data transmission method based on charging cable and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111404219A (en) * 2014-08-05 2020-07-10 德州仪器公司 Method for fast USB charging, electronic device and charger device
CN104967200A (en) * 2015-08-05 2015-10-07 青岛海信移动通信技术股份有限公司 Quick-charging method and mobile terminal
CN107508354A (en) * 2017-09-07 2017-12-22 维沃移动通信有限公司 A kind of charging method and mobile terminal
CN114297127B (en) * 2020-07-15 2022-11-01 华为技术有限公司 Data transmission method based on charging cable and electronic equipment

Also Published As

Publication number Publication date
CN113949116A (en) 2022-01-18

Similar Documents

Publication Publication Date Title
US10671135B2 (en) Intelligent mobile power supply and method for USB data communication therewith
US11121559B2 (en) Method and apparatus for charging a battery
CN114297126B (en) Data transmission method based on charging cable and electronic equipment
WO2022012644A1 (en) Data transmission method employing charging cable, and electronic devices
TWI630486B (en) Charging method, mobile terminal, and charging device
WO2016179817A1 (en) Quick charging method, power adapter and mobile terminal
CN113949116B (en) Data transmission method and device
EP2905859A1 (en) Charging and audio usage
US20190052105A1 (en) Method for automatically identifying apple and android devices
JP2015165764A5 (en)
CN107124012B (en) Charging method, device, charger, terminal and system
WO2017049549A1 (en) Mobile terminal, power supply adapter, and upgrading method thereof
CN114490491A (en) Data transmission method and device based on charging cable
WO2023197709A1 (en) Device identification method and related apparatus
CN207518016U (en) Wireless charging built-up circuit and device
CN216625389U (en) Wireless charging equipment
CN216530587U (en) Power supply connector for supplying power to master equipment and slave equipment
CN113489079B (en) Terminal device and charging system
CN113300423A (en) Connector and power supply control method applied to connector
CN221080951U (en) Full-compatible conversion module for converting USB-A port into Type-C port and charging datase:Sub>A line
RU145542U1 (en) DEVICE FOR MULTIPLATFORM DATA EXCHANGE AND / OR USER IDENTIFICATION
CN116088787B (en) Audio stream processing method and related device
CN111698668B (en) Wireless communication link establishment method and electronic device supporting same
WO2024093575A1 (en) Terminal device and charging control method
WO2024093575A9 (en) Terminal device and charging control method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant