Communication handshake method and device, electronic equipment, power supply equipment and storage medium

By designing multiple protocol modules and signal comparators in electronic devices and power supply devices, identifying and establishing communication connections of different charging protocols, the problems of complex design and low communication efficiency in the prior art are solved, and more efficient charging process compatibility is achieved.

CN119544731APending Publication Date: 2025-02-28BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311112152.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-30
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

When existing electronic devices are compatible with different high-power charging protocols, they are complex in design and low in communication efficiency, resulting in difficult identification and connection during charging.

Method used

Design an electronic device and power supply device, including multiple protocol modules, each with a unique range of charging protocols and handshake signal values. Through the transmit and receive submodules, the handshake signal transmitted by the charging bus is identified by using the signal comparator, thereby establishing a corresponding communication connection.

Benefits of technology

It improves the communication efficiency between electronic devices and power supply devices, simplifies design complexity, can effectively identify and connect multiple charging protocols, and improves the stability and compatibility of the charging process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

The invention provides a communication handshake method and device, electronic equipment, power supply equipment and a storage medium. The electronic equipment comprises N protocol modules, wherein any two protocol modules in the N protocol modules adopt different charging protocols; the second protocol module to the Nth protocol module in the N protocol modules comprise receiving sub-modules; the receiving sub-module is used for identifying a protocol handshake signal of a charging protocol used by the protocol module in a second handshake signal transmitted by the charging bus; and each protocol module in the second protocol module to the Nth protocol module is used for establishing communication connection with the power supply equipment according to a self-charging protocol when a second handshake signal of the self-charging protocol is identified. According to the embodiment of the invention, the receiving sub-module comprising at least one signal comparator can identify a plurality of charging protocols, thereby facilitating the improvement of the communication efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of display technology, and in particular to a communication handshake method and device, an electronic device, a power supply device, and a storage medium. Background Art

[0002] At present, with the rapid development of high-power charging technology, the charging power of electronic devices has also increased. Electronic devices can be connected to power supply equipment using a single-wire physical channel and charged at high power.

[0003] In order to be compatible with different high-power charging protocols, the electronic device is provided with multiple protocol modules, each module is provided with a transmitting submodule TX and a receiving submodule RX, resulting in a more complex design and low communication efficiency. Summary of the invention

[0004] The present disclosure provides a communication handshake method and device, an electronic device, a power supply device, and a storage medium to solve the above technical problems.

[0005] According to a first aspect of the present disclosure, an electronic device is provided, comprising: N protocol modules, any two of the N protocol modules adopt different charging protocols and the value ranges of the protocol handshake signals in the charging protocols are different; the second protocol module to the Nth protocol module in the N protocol modules include a transmitting submodule and a receiving submodule; the transmitting submodule is used to transmit a first handshake signal to a charging bus; the receiving submodule is used to identify the protocol handshake signal of the charging protocol used by the protocol module in the second handshake signal transmitted by the charging bus;

[0006] Each of the second protocol module to the Nth protocol module is used to establish a communication connection with the power supply device according to the own charging protocol when the second handshake signal of the own charging protocol is identified.

[0007] Optionally, the receiving submodule includes at least one signal comparator, and the signal comparator is used to identify a protocol handshake signal of a charging protocol used by a protocol module in the second handshake signal transmitted by the charging bus.

[0008] Optionally, the signal comparator is a window comparator, and the window comparator includes a first reference signal terminal, a second reference signal terminal and a handshake signal terminal;

[0009] The first reference signal end is used to receive a first reference signal, the second reference signal end is used to receive a second reference signal, and the handshake signal end is used to receive the second handshake signal;

[0010] The signal comparator is used to identify the second handshake signal within a target range; the maximum value of the target range is the second reference signal and the minimum value is the first reference signal.

[0011] Optionally, each protocol module from the second protocol module to the Nth protocol module further includes a trigger, the window comparator includes an enable terminal, and the trigger is electrically connected to the enable terminal of the window comparator;

[0012] The trigger is used to output an enabling control signal of a preset duration after detecting a trigger signal indicating that the first protocol module has established a physical connection;

[0013] The window comparator is used to output a recognition result of identifying the second handshake signal after receiving the enable control signal, wherein the recognition result includes a first recognition result of successfully identifying the second handshake signal or a second recognition result of failing to identify the second handshake signal.

[0014] Optionally, each protocol module from the second protocol module to the Nth protocol module further includes a processor; the processor is electrically connected to the at least one signal comparator; and the processor is used to determine the second handshake signal according to a preset protocol.

[0015] According to a second aspect of the present disclosure, a power supply device is provided, comprising: N protocol modules, any two of the N protocol modules adopt different charging protocols and the value ranges of the protocol handshake signals in the charging protocols are different; the second protocol module to the Nth protocol module in the N protocol modules include a transmitting submodule and a receiving submodule; the transmitting submodule is used to transmit a second handshake signal to a charging bus; the receiving submodule is used to identify the protocol handshake signal of the charging protocol used by the protocol module in the first handshake signal transmitted by the charging bus;

[0016] Each protocol module from the second protocol module to the Nth protocol module is used to establish a communication connection with the electronic device according to the self-charging protocol when the first handshake signal of the self-charging protocol is identified.

[0017] Optionally, the receiving submodule includes at least one signal comparator, and the signal comparator is used to identify a protocol handshake signal of a charging protocol used by a protocol module in the first handshake signal transmitted by the charging bus.

[0018] Optionally, the signal comparator is a window comparator, and the window comparator includes a first reference signal terminal, a second reference signal terminal and a handshake signal terminal;

[0019] The first reference signal end is used to receive a first reference signal, the second reference signal end is used to receive a second reference signal, and the handshake signal end is used to receive the second handshake signal;

[0020] The signal comparator is used to identify the first handshake signal within a target range; the maximum value of the target range is the second reference signal and the minimum value is the first reference signal.

[0021] Optionally, each protocol module from the second protocol module to the Nth protocol module further includes a trigger, the window comparator includes an enable terminal, and the trigger is electrically connected to the enable terminal of the window comparator;

[0022] The trigger is used to output an enabling control signal of a preset duration after detecting a trigger signal indicating that the first protocol module has established a physical connection;

[0023] The window comparator is used to output a recognition result of identifying the first handshake signal after receiving the enable control signal, wherein the recognition result includes a third recognition result of successfully identifying the first handshake signal or a fourth recognition result of failing to identify the first handshake signal.

[0024] Optionally, each protocol module from the second protocol module to the Nth protocol module further includes a processor; the processor is electrically connected to the at least one signal comparator; and the processor is used to determine the second handshake signal according to a preset protocol.

[0025] According to a third aspect of the present disclosure, a communication handshake method is provided, the method comprising:

[0026] In response to establishing a physical connection with a power supply device, outputting a first handshake signal to a charging bus, so that the charging bus transmits the first handshake signal to the power supply device;

[0027] In response to identifying the charging protocol corresponding to the second handshake signal transmitted by the charging bus, a communication connection is established with the charging power supply device according to the charging protocol.

[0028] Optionally, establishing a physical connection with an electronic device includes:

[0029] A first protocol module enabling an electronic device;

[0030] Get the potential on the charging bus;

[0031] When it is detected that the potential of the charging bus is pulled down to the second level and the communication connection is not established, it is determined that a physical connection is established with the power supply device.

[0032] Optionally, in response to identifying a charging protocol corresponding to the second handshake signal transmitted by the charging bus, establishing a communication connection with a charging power supply device according to the charging protocol includes:

[0033] Determining whether a second handshake signal is received within a preset time period;

[0034] In response to receiving a second handshake signal, determining a charging protocol corresponding to the second handshake signal;

[0035] In response to the electronic device supporting the charging protocol, a communication connection is established with the power supply device.

[0036] Optionally, determining a charging protocol corresponding to the second handshake signal includes:

[0037] determining at least one charging protocol corresponding to the second handshake signal;

[0038] A charging protocol with the highest priority is determined as the charging protocol corresponding to the second handshake signal.

[0039] Optionally, the method further comprises:

[0040] In response to not receiving the second handshake signal, shutting down the signal comparator;

[0041] A communication connection is established with the power supply device based on the first protocol module.

[0042] Optionally, the method further comprises:

[0043] In response to the electronic device not supporting the charging protocol, turning off the signal comparator;

[0044] A communication connection is established with the electronic device based on the first protocol module.

[0045] According to a fourth aspect of the present disclosure, a communication handshake method is provided, the method comprising:

[0046] In response to establishing a physical connection with the electronic device, a signal comparator of each protocol module is enabled within a preset time period; the signal comparator is used to identify a protocol handshake signal of a charging protocol used by the protocol module in the first handshake signal transmitted by the charging bus;

[0047] Acquire a first handshake signal transmitted by the charging bus;

[0048] In response to identifying the charging protocol corresponding to the first handshake signal, a second handshake signal is output according to the charging protocol to establish a communication connection with the electronic device.

[0049] Optionally, establishing a physical connection with an electronic device includes:

[0050] Enabling a first protocol module of a power supply device;

[0051] Get the potential on the charging bus;

[0052] When it is detected that the potential of the charging bus is pulled up to the first level and the communication connection is not established, it is determined that a physical connection is established with the electronic device.

[0053] Optionally, enabling a signal comparator of each protocol module within a preset time period includes:

[0054] In response to detecting that the first protocol module establishes a physical connection with the electronic device, the trigger of each protocol module from the second protocol module to the Nth protocol module outputs an enable control signal of a preset duration to enable the signal comparator of each protocol module, so that the signal comparator of each protocol module receives and identifies the first handshake signal transmitted by the charging bus.

[0055] Optionally, in response to identifying a charging protocol corresponding to the first handshake signal, outputting a second handshake signal according to the charging protocol to establish a communication connection with the electronic device includes:

[0056] Determining whether a first handshake signal is received within a preset time period;

[0057] In response to receiving a first handshake signal, determining a charging protocol corresponding to the first handshake signal;

[0058] In response to the power supply device supporting the charging protocol, a second handshake signal is output according to the charging protocol and the first protocol module is disconnected to establish a communication connection with the electronic device.

[0059] Optionally, determining a charging protocol corresponding to the first handshake signal includes:

[0060] determining at least one charging protocol corresponding to the first handshake signal;

[0061] A charging protocol with the highest priority is determined as the charging protocol corresponding to the first handshake signal.

[0062] Optionally, the method further comprises:

[0063] In response to not receiving the first handshake signal, shutting down the signal comparator;

[0064] A communication connection is established with the electronic device based on the first protocol module.

[0065] Optionally, the method further comprises:

[0066] In response to the power supply device not supporting the charging protocol, turning off the signal comparator;

[0067] A communication connection is established with the electronic device based on the first protocol module.

[0068] According to a fifth aspect of the present disclosure, a communication handshake device is provided, the device comprising:

[0069] A first handshake signal output module, configured to output a first handshake signal to a charging bus in response to establishing a physical connection with a power supply device, so that the charging bus transmits the first handshake signal to the power supply device;

[0070] The communication connection establishing module is used to establish a communication connection with the charging power supply device according to the charging protocol in response to identifying the charging protocol corresponding to the second handshake signal transmitted by the charging bus.

[0071] Optionally, the first handshake signal output module includes:

[0072] A first protocol module enabling submodule, used to enable a first protocol module of the electronic device;

[0073] A bus potential acquisition submodule, used to acquire the potential on the charging bus;

[0074] The physical connection establishment submodule is used to determine to establish a physical connection with the power supply device when it is detected that the potential of the charging bus is pulled down to the second level and no communication connection is established.

[0075] Optionally, the communication connection establishing module includes:

[0076] A determination submodule, used to determine whether a second handshake signal is received within a preset time period;

[0077] a charging protocol determination submodule, configured to determine, in response to receiving a second handshake signal, a charging protocol corresponding to the second handshake signal;

[0078] The communication connection establishing submodule is used to establish a communication connection with the power supply device in response to the electronic device supporting the charging protocol.

[0079] Optionally, the communication connection establishing module further includes:

[0080] a comparator shut-down submodule, configured to shut down the signal comparator in response to not receiving the second handshake signal;

[0081] The communication connection establishing submodule is further used to establish a communication connection with the power supply equipment based on the first protocol module.

[0082] Optionally, the device further comprises:

[0083] A comparator shut-down submodule, configured to shut down the signal comparator in response to the electronic device not supporting the charging protocol;

[0084] The communication connection establishing submodule is further used to establish a communication connection with the electronic device based on the first protocol module.

[0085] According to a sixth aspect of the present disclosure, a communication handshake device is provided, the device comprising:

[0086] A comparator enabling module, configured to enable the signal comparators of each protocol module within a preset time period in response to establishing a physical connection with the electronic device; the signal comparator is configured to identify the protocol handshake signal of the charging protocol used by the protocol module in the first handshake signal transmitted by the charging bus;

[0087] A first handshake signal acquisition module, used to acquire a first handshake signal transmitted by a charging bus;

[0088] The second handshake signal output module is used to output a second handshake signal according to the charging protocol in response to identifying the charging protocol corresponding to the first handshake signal, so as to establish a communication connection with the electronic device.

[0089] Optionally, the comparator enabling module includes:

[0090] A first protocol module enabling submodule, used to enable a first protocol module of the power supply device;

[0091] A bus potential acquisition submodule, used to acquire the potential on the charging bus;

[0092] The communication connection establishing submodule is used to determine to establish a physical connection with the electronic device when it is detected that the potential of the charging bus is pulled up to the first level and the communication connection is not established.

[0093] Optionally, the comparator enabling module further includes:

[0094] The enable signal output submodule is used for, in response to detecting that the first protocol module establishes a physical connection with the electronic device, the trigger of each protocol module from the second protocol module to the Nth protocol module outputs an enable control signal of a preset duration to enable the signal comparator of each protocol module, so that the signal comparator of each protocol module receives and identifies the first handshake signal transmitted by the charging bus.

[0095] Optionally, the second handshake signal output module includes:

[0096] A determination submodule, used to determine whether a first handshake signal is received within a preset time period;

[0097] a charging protocol determination submodule, configured to determine, in response to receiving a first handshake signal, a charging protocol corresponding to the first handshake signal;

[0098] The second handshake signal output submodule is used to output a second handshake signal according to the charging protocol and disconnect the first protocol module in response to the power supply device supporting the charging protocol, so as to establish a communication connection with the electronic device.

[0099] Optionally, the second handshake signal output module includes:

[0100] a comparator shut-down submodule, configured to shut down the signal comparator in response to failure to receive the first handshake signal;

[0101] The communication connection establishing submodule is used to establish a communication connection with the electronic device based on the first protocol module.

[0102] Optionally, the device further comprises:

[0103] A comparator shut-down submodule, configured to shut down the signal comparator in response to the power supply device not supporting the charging protocol;

[0104] The communication connection establishing submodule is used to establish a communication connection with the electronic device based on the first protocol module.

[0105] According to a seventh aspect of the present disclosure, there is provided an electronic device, including:

[0106] Processor and memory;

[0107] The memory is used to store a computer program executable by the processor;

[0108] The processor is configured to execute the computer program in the memory to implement the method as described in any one of the third aspects.

[0109] According to an eighth aspect of the present disclosure, there is provided a power supply device, including:

[0110] Processor and memory;

[0111] The memory is used to store a computer program executable by the processor;

[0112] The processor is configured to execute the computer program in the memory to implement the method as described in any one of the fourth aspects.

[0113] According to a ninth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, and when an executable computer program in the storage medium is executed by a processor, the method described in any one of the third aspect and the fourth aspect can be implemented.

[0114] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0115] The electronic device provided in this embodiment includes: N protocol modules, any two of the N protocol modules use different charging protocols and the value ranges of the protocol handshake signals in the charging protocols are different; the second protocol module to the Nth protocol module in the N protocol modules include a transmitting submodule and a receiving submodule; the transmitting submodule is used to transmit a first handshake signal to the charging bus; the receiving submodule includes at least one signal comparator, and the signal comparator is used to identify the protocol handshake signal of the charging protocol used by the protocol module in the second handshake signal transmitted by the charging bus; each protocol module from the second protocol module to the Nth protocol module is used to establish a communication connection with the power supply device according to the charging protocol when the second handshake signal of the charging protocol itself is identified. In this way, the receiving submodule including at least one signal comparator in this embodiment can identify multiple charging protocols, which is conducive to improving communication efficiency, and the design is simple and complex, and easy to implement.

[0116] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0117] Figure 1 The figure is a block diagram of a single DEMUX switching circuit according to an embodiment of the present disclosure.

[0118] Figure 2 A block diagram of a display panel including two DEMUX switching circuits according to an embodiment of the present disclosure is shown.

[0119] Figure 3 The present invention is a circuit diagram of a first DEMUX switching circuit and a second DEMUX switching circuit according to an embodiment of the present invention.

[0120] Figure 4 A block diagram of a display panel including two DEMUX switching circuits according to an embodiment of the present disclosure is shown.

[0121] Figure 5 The figure is a schematic diagram of the structure of a display panel according to an embodiment of the present disclosure.

[0122] Figure 6 The present invention is a block diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0123] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices consistent with some aspects of the present disclosure as detailed in the appended claims.

[0124] To solve the above technical problems, embodiments of the present disclosure provide a communication handshake method and apparatus, an electronic device, a power supply device, and a storage medium. When there is a charging requirement, the electronic device accesses the power supply device through a charging bus for charging. Figure 1 It is a schematic diagram of the architecture of the physical connection between an electronic device and a power supply device according to an embodiment of the present disclosure.

[0125] See Figure 1 , the electronic device includes N protocol modules, such as protocol module 1, protocol module 2,..., protocol module N. Among them, N is an integer greater than or equal to 2. The charging protocols adopted by any two of the N protocol modules are different, or in other words, a charging protocol is preset in each protocol module. Moreover, the value ranges of the protocol handshake signals in any two charging protocols are different. For example, the value range of the handshake signal of the first protocol is VL1~VH1, the value range of the handshake signal of the second protocol is VL2~VH2, the value range of the handshake signal of the third protocol is VL3~VH3, and the value range of the handshake signal of the Nth protocol is VLN~VHN. Among them, VL1<VH1<VL2, VL2<VH2<VL3, VL3<VH3<VL4,..., VLN-1<VHN. To increase the recognition of the protocol handshake signal, the signal levels of adjacent value ranges are as large as possible, for example, 0.5V~2V, which can be set according to specific scenarios and is not limited here.

[0126] In this embodiment, the second to Nth protocol modules among the N protocol modules include a transmitting sub-module TX and a receiving sub-module RX.

[0127] The transmitting sub-module TX is used to transmit a first handshake signal to the charging bus.

[0128] The receiving sub-module RX is used to identify the protocol handshake signal of the charging protocol used by the protocol module where the second handshake signal transmitted by the charging bus is located.

[0129] Each of the second to Nth protocol modules is used to establish a communication connection with the power supply device according to its own charging protocol when the second handshake signal of its own charging protocol is recognized.

[0130] It should be noted that the first protocol module among the N protocol modules can be implemented by using a transmitting sub-module TX and a receiving sub-module RX, or can be implemented by using the structure of the second to Nth protocol modules, or can be implemented by using the structure of the master-slave mode. In the case where the first protocol module can establish a physical connection and a communication connection based on the first communication protocol, the corresponding solution falls within the protection scope of the present disclosure.

[0131] In this way, the receiving submodule including at least one signal comparator in this embodiment can identify multiple charging protocols, which is beneficial to improving communication efficiency, and the design is simple and easy to implement.

[0132] Continue to see Figure 1 , the receiving submodule includes at least one signal comparator, which is used to identify the protocol handshake signal of the charging protocol used by the protocol module in the second handshake signal transmitted by the charging bus. In one example, the above-mentioned signal comparator is a window comparator. The window comparator includes: a first reference signal terminal ref1, a second reference signal terminal ref2 and a handshake signal terminal In. Among them, the first reference signal terminal ref1 is used to receive the first reference signal Vref1, the second reference signal terminal ref2 is used to receive the second reference signal Vref2, and the handshake signal terminal In is used to receive the second handshake signal Vin; the signal comparator is used to identify the second handshake signal within the target range; the maximum value of the target range is the second reference signal Vref2 and the minimum value is the first reference signal Vref1.

[0133] In other words, when the protocol handshake signal Vin received by the handshake signal terminal In of the window comparator is between the first reference signal Vref1 and the second reference signal Vref2, the window comparator outputs a first recognition result of successfully identifying the protocol handshake signal; when the protocol handshake signal Vin is less than the first reference signal Vref1 or the protocol handshake signal Vin is greater than the second reference signal Vref2, the window comparator outputs a second recognition result of failing to identify the protocol handshake signal. In an example, the first recognition result may be 1 or a high level, and the second recognition result may be 0 or a low level.

[0134] It should be noted that, considering that there are many window comparators (W1-WN) in the electronic device, the first reference signal terminal of each window comparator is written with a Vref1 signal, corresponding to the VL signal in the above embodiment; and the second reference signal terminal is written with a Vref2 signal, corresponding to the VL signal in the above embodiment. For example, the first reference signal terminal of the first protocol module, i.e., protocol module 1, is written with a Vref1 signal, corresponding to the VL1 signal in the above embodiment; and the second reference signal terminal is written with a Vref2 signal, corresponding to the VL2 signal in the above embodiment, and so on.

[0135] Continue to see Figure 1, each protocol module from the second protocol module to the Nth protocol module further includes a trigger (not shown in the figure), the window comparator includes an enable terminal EN, and the trigger is electrically connected to the enable terminal EN of the window comparator. The trigger is used to output an enable control signal of a preset duration (such as T1, which can be adjusted) after detecting a trigger signal representing that the first protocol module has established a physical connection; the window comparator is used to output a recognition result of identifying the second handshake signal after receiving the enable control signal, and the above recognition result includes a first recognition result of successfully identifying the second handshake signal or a second recognition result of failing to identify the second handshake signal.

[0136] In one embodiment, see Figure 1 , each protocol module from the second protocol module to the Nth protocol module further includes a processor CPU; the processor CPU is electrically connected to at least one signal comparator; the processor CPU is used to determine the second handshake signal according to the preset protocol. In other words, the processor can obtain the recognition result output by the signal comparator, and determine the information expressed by the protocol handshake signal according to the recognition result; and determine the response information according to the protocol handshake signal.

[0137] It should be noted that the number of signal comparators in each protocol module is one, and each of the N protocol modules can respectively identify a protocol handshake signal of a preset protocol; or, the number of signal comparators in each protocol module is multiple, and each of the N protocol modules can identify protocol handshake signals of multiple preset protocols, and can identify protocol handshake signals of up to N preset protocols.

[0138] Taking the number of signal comparators as an example, if there are three signal comparators, the signal value ranges that can be identified by the three signal comparators are adjacent, such as the value range VL1-VH1, the value range VL2-VH2 and the value range VL3-VH3. In this way, this example can identify the protocol handshake signal with a small signal level difference by adding signal comparators, thereby improving the recognition accuracy.

[0139] Continue to see Figure 1, the power supply device includes N protocol modules, such as protocol module 1, protocol module 2, ……, protocol module N. Wherein, N is an integer greater than or equal to 2. Any two of the N protocol modules adopt different charging protocols, or in other words, a charging protocol is preset in each protocol module. Moreover, the value ranges of the protocol handshake signals in any two charging protocols are different. For example, the value range of the handshake signal of the first protocol is VL1~VH1, the value range of the handshake signal of the second protocol is VL2~VH2, the value range of the handshake signal of the third protocol is VL3~VH3, and the value range of the handshake signal of the Nth protocol is VLN~VHN. Wherein, VL1<VH1<VL2, VL2<VH2<VL3, VL3<VH3<VL4, ……, VLN-1<VHN. To increase the recognition of the protocol handshake signal, the signal levels of adjacent value ranges are preferably as large as possible, for example, 0.5V~2V, which can be set according to the specific scenario and is not limited herein.

[0140] In this embodiment, the second to the Nth protocol modules of the N protocol modules of the power supply module include a transmitting sub-module TX and a receiving sub-module RX.

[0141] The transmitting sub-module TX is used to transmit a second handshake signal to the charging bus.

[0142] The receiving sub-module RX is used to identify the protocol handshake signal of the charging protocol used by the protocol module where the first handshake signal transmitted by the charging bus is located.

[0143] Each of the second to the Nth protocol modules is used to establish a communication connection with the power supply device according to its own charging protocol when the first handshake signal of its own charging protocol is recognized.

[0144] In an example, the receiving sub-module RX includes at least one signal comparator, and the signal comparator is used to identify the protocol handshake signal of the charging protocol used by the protocol module where the first handshake signal transmitted by the charging bus is located.

[0145] It should be noted that the first protocol module among the N protocol modules of the power supply device can be implemented by using a transmitting sub-module TX and a receiving sub-module RX, or can be implemented by using the structure of the second to the Nth protocol modules, or can be implemented by using the structure of the master-slave mode. In the case where the first protocol module can establish a physical connection and a communication connection based on the first communication protocol, the corresponding solution falls within the protection scope of the present disclosure.

[0146] In this way, the receiving sub-module including at least one signal comparator provided in this embodiment can identify multiple charging protocols, which is beneficial to improving the communication efficiency, and the design is simple and complex and easy to implement.

[0147] It should be noted that the signal comparator in the power supply device can be a window comparator, which can be referred to the description scheme of the above embodiment. In addition, the numbering principle of the window comparator in the power supply device is the same as the numbering principle of the window comparator in the electronic device, which will not be repeated here.

[0148] Continue to see Figure 1 , each protocol module in the power supply device except the first protocol module also includes a trigger (not shown in the figure), and the trigger is used to output an enable control signal of a preset duration after detecting a trigger signal indicating that the first protocol module has established a physical connection. At this time, the window comparator is used to output a recognition result of identifying the first handshake signal after receiving the enable control signal, and the recognition result includes a third recognition result of successfully identifying the first handshake signal or a fourth recognition result of failing to identify the first handshake signal. In an example, the third recognition result can be 1 or a high level, and the fourth recognition result can be 0 or a low level.

[0149] In one embodiment, see Figure 1 In the power supply device, each protocol module except the first protocol module also includes a processor CPU; the processor CPU is electrically connected to at least one signal comparator; the processor CPU is used to determine the first handshake signal according to the preset protocol. In other words, the processor can obtain the recognition result output by the signal comparator, and determine the information expressed by the protocol handshake signal according to the recognition result; and determine the response information according to the protocol handshake signal.

[0150] based on Figure 1 The electronic device exemplified in the present disclosure also provides a communication handshake method, see Figure 2 , including step 21 and step 22.

[0151] In step 21 , in response to establishing a physical connection with a power supply device, a first handshake signal is output to a charging bus, so that the charging bus transmits the first handshake signal to the power supply device.

[0152] In this step, when the electronic device is plugged into the charging bus, the communication interface of the electronic device can connect the pull-down resistor of the charging bus to the ground, and the power supply device can connect the pull-up resistor of the charging bus to the power supply. At the same time, the electronic device enables the first protocol module and obtains the potential on the charging bus. When it is detected that the potential of the charging bus is pulled down to the second level and no communication connection is established, the electronic device can determine to establish a physical connection with the power supply device.

[0153] In this step, the electronic device can respond to establishing a physical connection with the power supply device and can output a first handshake signal to the charging bus so that the charging bus transmits the first handshake signal to the power supply device. The power supply device can enable the first protocol module of the power supply device and obtain the potential on the charging bus; when it is detected that the potential of the charging bus is pulled up to the first level and no communication connection is established, it is determined to establish a physical connection with the electronic device; when it is detected that the potential of the charging bus is pulled up to the first level and no communication connection is established, the power supply device can determine to establish a physical connection with the electronic device. In response to establishing a physical connection with the electronic device, the power supply device can enable the signal comparator of each protocol module within a preset time length so that the signal comparator identifies the protocol handshake signal of the charging protocol used by the protocol module in the first handshake signal transmitted by the charging bus. Afterwards, the power supply device can respond to identifying the charging protocol corresponding to the first handshake signal and output a second handshake signal according to the charging protocol.

[0154] In step 22, in response to identifying the charging protocol corresponding to the second handshake signal transmitted by the charging bus, a communication connection is established with the charging power supply device according to the charging protocol.

[0155] In this step, the electronic device can determine whether the second handshake signal is received within a preset time length. In response to receiving the second handshake signal, the electronic device can determine the charging protocol corresponding to the second handshake signal. When it is determined that the second handshake signal corresponds to at least one charging protocol, the charging protocol with the highest priority can be determined as the charging protocol corresponding to the second handshake signal according to the preset priority order. In one example, when the second handshake signal is not received, the electronic device can turn off the signal comparator. Then, the electronic device can establish a communication connection with the power supply device based on the first protocol module.

[0156] In this embodiment, in response to the electronic device supporting the charging protocol, the electronic device can establish a communication connection with the power supply device. In another example, when the electronic device does not support the charging protocol, the electronic device can turn off the signal comparator. Then, the electronic device can establish a communication connection with the power supply device based on the first protocol module.

[0157] In this way, the electronic device in this embodiment can use the signal comparator to identify the second handshake signal after sending the first handshake signal, and can identify multiple charging protocols, which is beneficial to improving communication efficiency, and the design is simple and easy to implement.

[0158] based on Figure 1 The power supply device exemplified in the present disclosure also provides a communication handshake method, see Figure 3 , including steps 31 to 33.

[0159] In step 31, in response to establishing a physical connection with an electronic device, a signal comparator of each protocol module is enabled within a preset time period; the signal comparator is used to identify the protocol handshake signal of the charging protocol used by the protocol module in the first handshake signal transmitted by the charging bus.

[0160] In this step, the power supply device can establish a physical connection with the electronic device through the charging bus. The method of establishing the physical connection can refer to the content of step 21 and will not be repeated here.

[0161] In this step, after the physical connection is established, the triggers of each protocol module of the power supply device may be triggered to continuously output an enable control signal for a preset time period, thereby achieving the effect of enabling the signal comparator of each protocol module within the preset time period.

[0162] In step 32, a first handshake signal transmitted by the charging bus is acquired.

[0163] In this step, each signal comparator of each protocol module can receive a protocol handshake signal, ie, a first handshake signal, from the charging bus, and identify a protocol handshake signal of the charging protocol used by the protocol module in the first handshake signal transmitted by the charging bus.

[0164] In step 33, in response to identifying the charging protocol corresponding to the first handshake signal, a second handshake signal is output according to the charging protocol to establish a communication connection with the electronic device.

[0165] In this step, each protocol module of the power supply device determines whether the first handshake signal is received within a preset time. Then, after receiving the first handshake signal, each protocol module can determine the charging protocol corresponding to the first handshake signal. When it is determined that the first handshake signal corresponds to at least one charging protocol, the charging protocol with the highest priority can be determined as the charging protocol corresponding to the first handshake signal according to the preset priority order. Afterwards, when the power supply device supports the charging protocol, the electronic device can output a second handshake signal according to the charging protocol and disconnect the first protocol module to establish a communication connection with the electronic device.

[0166] In one example, in response to not receiving the first handshake signal, the power supply device may turn off the signal comparator and establish a communication connection with the electronic device based on the first protocol module.

[0167] In another example, in response to the power supply device not supporting the charging protocol, the power supply device may turn off the signal comparator and establish a communication connection with the electronic device based on the first protocol module.

[0168] In this way, the power supply device in this embodiment can use the signal comparator to identify the first handshake signal and can identify multiple charging protocols, which is beneficial to improving communication efficiency, and the design is simple and easy to implement.

[0169] Combination Figure 4 ,describe Figure 1 The communication handshake process between the power supply device and the electronic device includes:

[0170] After the communication interface of the electronic device is plugged into the charging bus, the electronic device can enable the first protocol module, and the power supply device can enable the first protocol module. The electronic device can determine whether a physical connection is established with the power supply device but no communication connection is established.

[0171] If the physical connection is not established, the process returns to continue enabling the first protocol module. Alternatively, if the physical connection and the communication connection are established, the first protocol module is directly used for communication.

[0172] If a physical connection is established, the electronic device can determine its own role, that is, a Source device or a Sink device. In this case, the electronic device is a Sink device.

[0173] If a physical connection is established but no communication connection is established, the power supply device, i.e., the Source device, enables the signal comparators of each protocol module. The electronic device sends a first handshake signal through the transmitting submodule according to the preset protocol, and the effect is as follows: Figure 5 As shown, Figure 5 The protocol handshake signals of the first protocol module and the second protocol module are exemplified in FIG.

[0174] During the waiting time, the signal comparators of the protocol modules of the power supply device can receive the first handshake signal sent by the electronic device. It is understandable that, considering that the electronic device includes multiple protocol modules, the first handshake signal can include protocol handshake signals of multiple protocols.

[0175] The power supply device may determine whether the first handshake signal is detected within the waiting time. If the first handshake signal is not detected, the power supply device may turn off the signal comparator and continue to establish a communication connection using the first protocol module.

[0176] If the first handshake signal is detected, the power supply device can determine the charging protocol corresponding to the first handshake signal and determine whether to support the charging protocol. If the power supply device does not support the charging protocol, the power supply device can turn off the signal comparator and continue to use the first protocol module to establish a communication connection.

[0177] If the power supply device supports the charging protocol, the power supply device may disconnect the first protocol module and establish communication using a protocol module corresponding to the charging protocol.

[0178] In this embodiment, the power supply device can use the signal comparator to identify multiple charging protocols, which has high compatibility and is conducive to improving communication efficiency.

[0179] Figure 6 6 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 600 may be a smart phone, a computer, a digital broadcast terminal, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0180] Reference Figure 6 The electronic device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , a communication component 616 , and an image acquisition component 618 .

[0181] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute computer programs. In addition, the processing component 602 may include one or more modules to facilitate interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602. In an example, the processor 620 may implement the scheme of the above-mentioned power supply control method.

[0182] The memory 604 is configured to store various types of data to support operations on the electronic device 600. Examples of such data include computer programs for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0183] The power supply component 606 provides power to various components of the electronic device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 600. The power supply component 606 may include a power supply chip, and the controller may communicate with the power supply chip to control the power supply chip to turn on or off the first switch device, so that the battery supplies power to the mainboard circuit or does not supply power.

[0184] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the target object. In some embodiments, the screen includes Figure 2 to Figure 5 The display panel shown is an example.

[0185] In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input information from a target object. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.

[0186] The audio component 610 is configured to output and / or input audio file information. For example, the audio component 610 includes a microphone (MIC), and when the electronic device 600 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive external audio file information. The received audio file information can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio file information.

[0187] The I / O interface 612 provides an interface between the processing component 602 and a peripheral interface module, such as a keyboard, a click wheel, a button, etc.

[0188] The sensor component 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor component 614 can detect the open / closed state of the electronic device 600, the relative positioning of components, such as the display screen and keypad of the electronic device 600, and the sensor component 614 can also detect the position change of the electronic device 600 or a component, the presence or absence of contact between the target object and the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and the temperature change of the electronic device 600. In this example, the sensor component 614 can include a magnetic sensor, a gyroscope, and a magnetic field sensor, and can also include an inertial sensor, an image sensor, etc., wherein the magnetic field sensor includes at least one of the following: a Hall sensor, a thin film magnetoresistive sensor, and a magnetic liquid acceleration sensor.

[0189] The communication component 616 is configured to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast information or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0190] In an exemplary embodiment, the electronic device 600 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.

[0191] In an exemplary embodiment, the present disclosure also provides a non-transitory computer-readable storage medium, and when an executable computer program in the storage medium is executed by a processor, the above-mentioned method can be implemented.

[0192] In an exemplary embodiment, a chip is also provided, the chip including a processor and an interface for reading a computer program through the interface to implement the above method. The chip may be a conventional CPU (central processing unit) chip, a GPU (graphics processing unit) chip, etc., or an acceleration chip dedicated to artificial intelligence technology, such as an AI (Artificial Intelligence) accelerator, etc.

[0193] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0194] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. An electronic device, characterized in that: include: N protocol modules, any two of the N protocol modules adopt different charging protocols and the value ranges of the protocol handshake signals in the charging protocols are different; The second protocol module to the Nth protocol module among the N protocol modules include a transmitting submodule and a receiving submodule; The transmitting submodule is used to transmit a first handshake signal to the charging bus; The receiving submodule is used to identify the protocol handshake signal of the charging protocol used by the protocol module in the second handshake signal transmitted by the charging bus; Each of the second protocol module to the Nth protocol module is used to establish a communication connection with the power supply device according to the own charging protocol when the second handshake signal of the own charging protocol is identified.

2. The electronic device according to claim 1, characterized in that: The receiving submodule includes at least one signal comparator, and the signal comparator is used to identify a protocol handshake signal of a charging protocol used by a protocol module in a second handshake signal transmitted by the charging bus.

3. The electronic device according to claim 2, characterized in that: The signal comparator is a window comparator, and the window comparator includes a first reference signal terminal, a second reference signal terminal and a handshake signal terminal; The first reference signal end is used to receive a first reference signal, the second reference signal end is used to receive a second reference signal, and the handshake signal end is used to receive the second handshake signal; The signal comparator is used to identify the second handshake signal within a target range; the maximum value of the target range is the second reference signal and the minimum value is the first reference signal.

4. The electronic device according to claim 3, characterized in that: Each of the second protocol module to the Nth protocol module further includes a trigger, the window comparator includes an enable terminal, and the trigger is electrically connected to the enable terminal of the window comparator; The trigger is used to output an enabling control signal of a preset duration after detecting a trigger signal indicating that the first protocol module has established a physical connection; The window comparator is used to output a recognition result of identifying the second handshake signal after receiving the enable control signal, wherein the recognition result includes a first recognition result of successfully identifying the second handshake signal or a second recognition result of failing to identify the second handshake signal.

5. The electronic device according to any one of claims 1 to 4, characterized in that: Each of the second protocol module to the Nth protocol module further includes a processor; the processor is electrically connected to the at least one signal comparator; and the processor is used to determine the second handshake signal according to a preset protocol.

6. A power supply device, characterized in that: include: N protocol modules, any two of the N protocol modules adopt different charging protocols and the value ranges of the protocol handshake signals in the charging protocols are different; The second protocol module to the Nth protocol module among the N protocol modules include a transmitting submodule and a receiving submodule; The transmitting submodule is used to transmit a second handshake signal to the charging bus; The receiving submodule is used to identify the protocol handshake signal of the charging protocol used by the protocol module in the first handshake signal transmitted by the charging bus; Each protocol module from the second protocol module to the Nth protocol module is used to establish a communication connection with the electronic device according to the self-charging protocol when the first handshake signal of the self-charging protocol is identified.

7. The power supply device according to claim 6, characterized in that: The receiving submodule includes at least one signal comparator, and the signal comparator is used to identify a protocol handshake signal of a charging protocol used by a protocol module in a first handshake signal transmitted by the charging bus.

8. The power supply device according to claim 7, characterized in that: The signal comparator is a window comparator, and the window comparator includes a first reference signal terminal, a second reference signal terminal and a handshake signal terminal; The first reference signal end is used to receive a first reference signal, the second reference signal end is used to receive a second reference signal, and the handshake signal end is used to receive the second handshake signal; The signal comparator is used to identify the first handshake signal within a target range; the maximum value of the target range is the second reference signal and the minimum value is the first reference signal.

9. The power supply device according to claim 8, characterized in that: Each of the second protocol module to the Nth protocol module further includes a trigger, the window comparator includes an enable terminal, and the trigger is electrically connected to the enable terminal of the window comparator; The trigger is used to output an enabling control signal of a preset duration after detecting a trigger signal indicating that the first protocol module has established a physical connection; The window comparator is used to output a recognition result of identifying the first handshake signal after receiving the enable control signal, wherein the recognition result includes a third recognition result of successfully identifying the first handshake signal or a fourth recognition result of failing to identify the first handshake signal.

10. The power supply device according to any one of claims 6 to 9, characterized in that: Each of the second protocol module to the Nth protocol module further includes a processor; the processor is electrically connected to the at least one signal comparator; and the processor is used to determine the second handshake signal according to a preset protocol.

11. A communication handshake method, characterized in that: Applied to the electronic device according to any one of claims 1 to 5, the method comprising: In response to establishing a physical connection with a power supply device, outputting a first handshake signal to a charging bus, so that the charging bus transmits the first handshake signal to the power supply device; In response to identifying the charging protocol corresponding to the second handshake signal transmitted by the charging bus, a communication connection is established with the charging power supply device according to the charging protocol.

12. The method according to claim 11, characterized in that Establish physical connections to electronic devices, including: A first protocol module enabling an electronic device; Get the potential on the charging bus; When it is detected that the potential of the charging bus is pulled down to the second level and the communication connection is not established, it is determined that a physical connection is established with the power supply device.

13. The method according to claim 11, characterized in that In response to identifying a charging protocol corresponding to the second handshake signal transmitted by the charging bus, establishing a communication connection with a charging power supply device according to the charging protocol, including: Determining whether a second handshake signal is received within a preset time period; In response to receiving a second handshake signal, determining a charging protocol corresponding to the second handshake signal; In response to the electronic device supporting the charging protocol, a communication connection is established with the power supply device.

14. The method according to claim 13, characterized in that Determining a charging protocol corresponding to the second handshake signal includes: determining at least one charging protocol corresponding to the second handshake signal; A charging protocol with the highest priority is determined as the charging protocol corresponding to the second handshake signal.

15. The method according to claim 13, characterized in that The method further comprises: In response to not receiving the second handshake signal, shutting down the signal comparator; A communication connection is established with the power supply device based on the first protocol module.

16. The method according to claim 13, characterized in that The method further comprises: In response to the electronic device not supporting the charging protocol, turning off the signal comparator; A communication connection is established with the electronic device based on the first protocol module.

17. A communication handshake method, characterized in that: Applied to the power supply device according to any one of claims 6 to 10, the method comprising: In response to establishing a physical connection with the electronic device, a signal comparator of each protocol module is enabled within a preset time period; the signal comparator is used to identify a protocol handshake signal of a charging protocol used by the protocol module in the first handshake signal transmitted by the charging bus; Acquire a first handshake signal transmitted by the charging bus; In response to identifying the charging protocol corresponding to the first handshake signal, a second handshake signal is output according to the charging protocol to establish a communication connection with the electronic device.

18. The method according to claim 17, characterized in that Establish physical connections to electronic devices, including: Enabling a first protocol module of a power supply device; Get the potential on the charging bus; When it is detected that the potential of the charging bus is pulled up to the first level and the communication connection is not established, it is determined that a physical connection is established with the electronic device.

19. The method according to claim 18, characterized in that Enables the signal comparator of each protocol module within a preset duration, including: In response to detecting that the first protocol module establishes a physical connection with the electronic device, the trigger of each protocol module from the second protocol module to the Nth protocol module outputs an enable control signal of a preset duration to enable the signal comparator of each protocol module, so that the signal comparator of each protocol module receives and identifies the first handshake signal transmitted by the charging bus.

20. The method according to claim 17, characterized in that In response to identifying a charging protocol corresponding to the first handshake signal, outputting a second handshake signal according to the charging protocol to establish a communication connection with the electronic device, including: Determining whether a first handshake signal is received within a preset time period; In response to receiving a first handshake signal, determining a charging protocol corresponding to the first handshake signal; In response to the power supply device supporting the charging protocol, a second handshake signal is output according to the charging protocol and the first protocol module is disconnected to establish a communication connection with the electronic device.

21. The method according to claim 20, characterized in that Determining a charging protocol corresponding to the first handshake signal includes: determining at least one charging protocol corresponding to the first handshake signal; A charging protocol with the highest priority is determined as the charging protocol corresponding to the first handshake signal.

22. The method according to claim 20, characterized in that The method further comprises: In response to not receiving the first handshake signal, shutting down the signal comparator; A communication connection is established with the electronic device based on the first protocol module.

23. The method according to claim 20, characterized in that The method further comprises: In response to the power supply device not supporting the charging protocol, turning off the signal comparator; A communication connection is established with the electronic device based on the first protocol module.

24. A communication handshake device, characterized in that: Applicable to the electronic device according to any one of claims 1 to 5, the device comprising: A first handshake signal output module, configured to output a first handshake signal to a charging bus in response to establishing a physical connection with a power supply device, so that the charging bus transmits the first handshake signal to the power supply device; The communication connection establishing module is used to establish a communication connection with the charging power supply device according to the charging protocol in response to identifying the charging protocol corresponding to the second handshake signal transmitted by the charging bus.

25. A communication handshake device, characterized in that: Applicable to the power supply equipment according to any one of claims 6 to 10, the device comprising: A comparator enabling module, configured to enable the signal comparators of each protocol module within a preset time period in response to establishing a physical connection with the electronic device; the signal comparator is configured to identify the protocol handshake signal of the charging protocol used by the protocol module in the first handshake signal transmitted by the charging bus; A first handshake signal acquisition module, used to acquire a first handshake signal transmitted by a charging bus; The second handshake signal output module is used to output a second handshake signal according to the charging protocol in response to identifying the charging protocol corresponding to the first handshake signal, so as to establish a communication connection with the electronic device.

26. An electronic device, characterized in that: include: Processor and memory; The memory is used to store a computer program executable by the processor; The processor is configured to execute the computer program in the memory to implement the method according to any one of claims 11 to 16.

27. A power supply device, characterized in that: include: Processor and memory; The memory is used to store a computer program executable by the processor; The processor is configured to execute the computer program in the memory to implement the method according to any one of claims 17 to 23.

28. A non-transitory computer-readable storage medium, characterized in that: When the executable computer program in the storage medium is executed by a processor, the method according to any one of claims 11 to 16 or 17 to 23 can be implemented.