Charging method, device, equipment and medium

By using active handshake signals to identify roles between mobile devices, the problem of difficult to identify device roles in the prior art has been solved, resulting in unsmooth charging, and the efficiency and reliability of wired reverse charging are achieved.

CN120033785APending Publication Date: 2025-05-23BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202311559516.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-21
Publication Date
2025-05-23

AI Technical Summary

Technical Problem

When the prior art realizes wired reverse charging, it is difficult to effectively identify the roles between mobile devices, resulting in a poor charging process.

Method used

A role recognition is realized between mobile devices through an active handshake signal. The specific steps include the first mobile device sending a handshake signal in the power supply mode, and after receiving the response signal, it charges the second mobile device through a specific protocol.

Benefits of technology

In the case of wired connection, it realizes the recognition of the device role through active handshake, so as to smoothly perform wired reverse charging, improving the efficiency and reliability of the charging process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120033785A_ABST
    Figure CN120033785A_ABST
Patent Text Reader

Abstract

The invention provides a charging method and device, equipment and a medium, and the method comprises the steps: responding to a condition that first mobile equipment works in a power supply mode, transmitting a first handshake signal to second mobile equipment, and enabling the first mobile equipment and the second mobile equipment to be in wired connection; and charging the second mobile device through the first protocol in response to the received first handshake response signal sent by the second mobile device. According to the scheme provided by the invention, role identification can be realized between two mobile devices in an active handshake mode, so that wired reverse charging is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of charging technology, and in particular to a charging method, device, equipment and medium. Background Art

[0002] In recent years, with the popularity of mobile devices and the continuous increase in the functions of mobile devices, wired reverse charging as a new charging technology is gradually gaining attention. Through wired reverse charging technology, one mobile device can be used as a power source to charge another mobile device, providing users with a more convenient and flexible charging solution. Summary of the invention

[0003] In view of this, the present disclosure provides a charging method, device, equipment and medium.

[0004] According to a first aspect of an embodiment of the present disclosure, a charging method is provided, the method comprising:

[0005] In response to the first mobile device operating in a power supply mode, sending a first handshake signal to a second mobile device, wherein the first mobile device and the second mobile device are connected by a wire;

[0006] In response to receiving the first handshake response signal sent by the second mobile device, the second mobile device is charged using the first protocol.

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

[0008] In the embodiment of the present disclosure, when there is a wired connection between the first mobile device and the second mobile device, in response to the first mobile device operating in the power supply mode, the first handshake signal is sent to the second mobile device, so that in response to receiving the first handshake response signal sent by the second mobile device, the second mobile device can be charged through the first protocol. Through the solution provided by the embodiment of the present disclosure, role identification can be achieved between the two mobile devices by active handshake, thereby achieving wired reverse charging.

[0009] According to a second aspect of an embodiment of the present disclosure, a charging method is provided, the method comprising:

[0010] In response to the second mobile device operating in a charging mode, receiving a first handshake signal sent by the first mobile device, wherein the first mobile device and the second mobile device are connected by a wire;

[0011] In response to the first handshake signal, sending a first handshake response signal to the first mobile device based on the first protocol;

[0012] Upon receiving a connection established between a first mobile device and a second mobile device via a first protocol, receive the power transmitted by the first mobile device for charging.

[0013] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

[0014] In the embodiments of the present disclosure, when the connection between the first mobile device and the second mobile device is a wired connection, in response to the second mobile device operating in a charging mode, receive a first handshake signal sent by the first mobile device. Thus, in response to the first handshake signal, send a first handshake response signal to the first mobile device based on the first protocol. Furthermore, in response to the connection established between the first mobile device and the second mobile device via the first protocol, receive the power transmitted by the first mobile device for charging. Through the solution provided by the embodiments of the present disclosure, role recognition can be achieved between two mobile devices through an active handshake method, thereby realizing wired reverse charging.

[0015] According to a third aspect of the embodiments of the present disclosure, a charging device is provided, and the device includes:

[0016] A sending module, configured to send a first handshake signal to a second mobile device in response to the first mobile device operating in a power supply mode, where the first mobile device and the second mobile device are in a wired connection;

[0017] A charging module, configured to charge the second mobile device via the first protocol in response to receiving a first handshake response signal sent by the second mobile device.

[0018] According to a fourth aspect of the embodiments of the present disclosure, a charging device is provided, and the device includes:

[0019] A receiving module, configured to receive a first handshake signal sent by a first mobile device in response to the second mobile device operating in a charging mode, where the first mobile device and the second mobile device are in a wired connection;

[0020] A sending module, configured to send a first handshake response signal to the first mobile device based on the first protocol in response to the first handshake signal;

[0021] The receiving module is further configured to receive the power transmitted by the first mobile device for charging in response to the connection established between the first mobile device and the second mobile device via the first protocol.

[0022] According to a fifth aspect of the embodiments of the present disclosure, a first mobile device is provided, including:

[0023] A processor;

[0024] A memory for storing processor-executable instructions;

[0025] The processor is configured as follows:

[0026] In response to the first mobile device operating in a power supply mode, sending a first handshake signal to a second mobile device, wherein the first mobile device and the second mobile device are connected by a wire;

[0027] In response to receiving the first handshake response signal sent by the second mobile device, the second mobile device is charged using the first protocol.

[0028] According to a sixth aspect of an embodiment of the present disclosure, a second mobile device is provided, including:

[0029] processor;

[0030] a memory for storing processor-executable instructions;

[0031] The processor is configured as follows:

[0032] In response to the second mobile device operating in a charging mode, receiving a first handshake signal sent by the first mobile device, wherein the first mobile device and the second mobile device are connected by a wire;

[0033] In response to the first handshake signal, sending a first handshake response signal to the first mobile device based on the first protocol;

[0034] In response to the first mobile device and the second mobile device establishing a connection through the first protocol, the power transmitted by the first mobile device is received for charging.

[0035] According to a seventh aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the steps of the charging method provided in the first aspect are implemented.

[0036] According to an eighth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the steps of the charging method provided in the second aspect are implemented.

[0037] 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

[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0039] Figure 1 is a flow chart of a charging method according to an exemplary embodiment of the present disclosure;

[0040] Figure 2 is a flow chart of a charging method according to an exemplary embodiment of the present disclosure;

[0041] Figure 3 is a flow chart of a charging method according to an exemplary embodiment of the present disclosure;

[0042] Figure 4 is a flow chart of a charging method according to an exemplary embodiment of the present disclosure;

[0043] Figure 5 is an interactive flow chart of a charging method according to an exemplary embodiment of the present disclosure;

[0044] Figure 6 is a waveform diagram of a handshake signal according to an exemplary embodiment of the present disclosure;

[0045] Figure 7 is a schematic diagram showing a principle of a mode switching process according to an exemplary embodiment of the present disclosure;

[0046] Figure 8 is a working logic diagram of a power supply device according to an exemplary embodiment of the present disclosure;

[0047] Fig. 9 is a working logic diagram of a charging device according to an exemplary embodiment of the present disclosure;

[0048] Fig.10 is a block diagram of a charging device according to an exemplary embodiment of the present disclosure;

[0049] Fig.11 is a block diagram of a charging device according to an exemplary embodiment of the present disclosure;

[0050] Fig.12 is a structural schematic diagram of a first mobile device according to an exemplary embodiment of the present disclosure;

[0051] Fig.13 It is a structural schematic diagram of a second mobile device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0052] 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 and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0053] The terms used in this disclosure are for the purpose of describing particular embodiments only and are not intended to limit the disclosure. The singular forms "a", "the", and "said" used in this disclosure and the appended claims are also intended to include the plural forms unless the context clearly dictates otherwise. It should also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.

[0054] It should be understood that although the terms first, second, third, etc. may be used in this disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of this disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "when" or "while" or "in response to a determination".

[0055] In the related art, when implementing power transmission between two mobile devices through the wired reverse charging technology, it is necessary to first determine the respective roles of the two mobile devices, that is, to determine which mobile device is the power supply party and which mobile device is the charging party, so that the power of the power supply party can be transmitted to the charging party according to the determined roles to achieve the charging of the charging party. Among them, how to determine the role of the mobile device in the wired reverse charging process plays an important role in the implementation of the wired reverse charging.

[0056] This disclosure proposes a charging method to achieve role recognition between two mobile devices that are defaulted to the charging mode through an active handshake method to ensure the smooth implementation of the wired reverse charging process.

[0057] Optionally, the charging method provided by this disclosure can achieve role recognition of various types of mobile devices. For example, the mobile device can be a smart phone, a smart watch, a power bank, a headset, a capacitive pen, a tablet computer, a computer, a smart electric vehicle, etc., but not limited thereto. This disclosure does not limit the device type of the mobile device.

[0058] For example, through the charging method provided by this disclosure, it can be used to achieve role recognition between a smart phone and a headset. Optionally, after establishing a wired connection between the smart phone and the headset, the smart phone can be controlled to work in the power supply mode, and the headset can be controlled to work in the charging mode, so that the role recognition between the smart phone and the headset can be achieved through an active handshake method.

[0059] For another example, the charging method provided by the present disclosure can be used to realize role recognition between a smartphone and a power bank. Optionally, after a wired connection is established between the smartphone and the power bank, the smartphone can be controlled to work in a power supply mode and the power bank can be controlled to work in a charging mode, so that the role recognition between the smartphone and the power bank can be realized by an active handshake.

[0060] Optionally, the charging method provided by the present disclosure can be used to realize charging between two mobile devices in a fast charging scenario, but is not limited to this. The charging method provided by the present disclosure can also be used to realize charging between mobile devices in more wired charging scenarios.

[0061] After introducing the application scenarios of the present disclosure, the charging method provided by the present disclosure is described in detail.

[0062] See also Figure 1 , Figure 1 is a flow chart of a charging method according to an exemplary embodiment of the present disclosure. Figure 1 As shown, the method may be executed by a first mobile device, and the method may include the following steps:

[0063] Step 101: In response to a first mobile device operating in a power supply mode, a first handshake signal is sent to a second mobile device, wherein the first mobile device and the second mobile device are connected by wire.

[0064] Optionally, the first mobile device and the second mobile device may both be smart phones, smart watches, power banks, headphones, capacitive pens, etc., but are not limited thereto. The present disclosure does not limit the device types of the first mobile device and the second mobile device.

[0065] It should be noted that the first mobile device may be connected to the second mobile device via a data cable, so that the first mobile device and the second mobile device are connected by wire.

[0066] In one embodiment, both the first mobile device and the second mobile device may be dual role power (DRP) devices, that is, the first mobile device and the second mobile device may not only supply power to other mobile devices, but also receive power provided by other mobile devices to charge themselves. For example, the first mobile device may operate in a power supply (Source) mode so that the first mobile device may supply power to other mobile devices, and the second mobile device may operate in a charging (Sink) mode so that the second mobile device may receive power provided by other devices to charge. It is to be understood that the present disclosure does not limit the first mobile device and the second mobile device to both being dual role power devices, and the power supply device may be a dual role power device, while the charging device receiving power may be a single charging mode device.

[0067] It should be noted that the power supply mode and the charging mode are only states of the mobile device. When the mobile device is working in the power supply mode, the mobile device can provide power to the outside, but it does not mean that the mobile device is powering other devices; similarly, when the mobile device is working in the charging mode, the mobile device can receive power provided by other devices, but it does not mean that the mobile device is receiving power provided by other devices.

[0068] It should be noted that when the first mobile device operates in the power supply mode, the first mobile device can provide an active handshake function, that is, when the first mobile device operates in the power supply mode, the first mobile device can actively send a first handshake signal to the second mobile device.

[0069] In some embodiments, the first mobile device may be configured with a transceiver, and when the first mobile device operates in a power supply mode, the transceiver of the first mobile device may be configured as a transmitter (Transmit, Tx). Therefore, in a possible implementation, the first mobile device may send the first handshake signal via Tx. In one embodiment, the first mobile device may send the first handshake signal via a Type-C interface.

[0070] Step 102: In response to receiving a first handshake response signal sent by the second mobile device, charging the second mobile device through a first protocol.

[0071] It should be noted that the second mobile device can send a first handshake response signal to the second mobile device based on the first protocol. When the first mobile device receives the first handshake response signal sent by the second mobile device, it can determine that the handshake with the second mobile device has been successful, and thus can continue to communicate with the second mobile device through the first protocol to charge the second mobile device through the first protocol.

[0072] It should be noted that after receiving the first handshake signal sent by the second mobile device based on the first protocol, the first mobile device can establish a communication connection with the second mobile device through the first protocol, so that charging and a series of subsequent communication processes can be performed through the established communication connection.

[0073] Among them, the process of establishing a communication connection under different protocols is different. According to the type of the first protocol used, the connection can be established according to the communication process agreed upon in the first protocol. The present disclosure does not limit the specific implementation method of establishing the communication connection.

[0074] In the embodiment of the present disclosure, when there is a wired connection between the first mobile device and the second mobile device, in response to the first mobile device operating in the power supply mode, the first handshake signal is sent to the second mobile device, so that in response to receiving the first handshake response signal sent by the second mobile device, the second mobile device can be charged through the first protocol. Through the solution provided by the embodiment of the present disclosure, role identification can be achieved between the two mobile devices by active handshake, thereby achieving wired reverse charging.

[0075] After introducing the above basic implementation process, various optional embodiments of the present disclosure and the specific implementation of the charging method provided by the present disclosure on the first mobile device side are further described below.

[0076] It should be noted that, for a DRP device that supports both the charging mode and the power supply mode, it has the ability to send the first handshake signal only when it works in the power supply mode.

[0077] In one embodiment of the present invention, before step 101, the following steps may also be included:

[0078] Step 100A: Obtain the working mode of the first mobile device.

[0079] The working mode of the first mobile equipment may include a charging mode and a power supply mode.

[0080] Step 100B: According to the working mode of the first mobile device, control the first mobile device to work in a power supply mode.

[0081] In some embodiments, when the working mode of the first mobile device is the power supply mode, maintaining the working mode of the first mobile device can achieve controlling the first mobile device to work in the power supply mode.

[0082] In some other embodiments, when the working mode of the first mobile device is the charging mode, the working mode of the first mobile device can be controlled to switch from the charging mode to the power supply mode in response to the first operation.

[0083] There are many possible implementation methods for implementing the working mode switching of the first mobile device through the first operation, and two exemplary implementation methods are described below.

[0084] In one possible implementation, the first mobile device can display a mode switching prompt interface, and the user can perform a first operation in the mode switching prompt interface. The first mobile device can respond to the first operation in the scope mode switching prompt interface to control the working mode of the first mobile device to switch from the charging mode to the power supply mode.

[0085] Among them, the mode switching prompt interface can be a prompt pop-up window. For example, the first mobile device can display a prompt pop-up window on the visual interface to inquire whether to switch the mode of the first mobile device through the prompt pop-up window. Optionally, a confirmation option and a cancel option can be provided in the prompt pop-up window. The user can trigger the confirmation option to feedback to the first mobile device to confirm the mode switch. The above-mentioned operation of confirming the mode switch of the first mobile device (that is, the triggering operation of the confirmation option) is the first operation. The first mobile device can respond to the user's first operation and switch itself from the charging mode to the power supply mode.

[0086] In an optional implementation, a first virtual control may be configured in the visual interface of the first mobile device, and the user may trigger the first virtual control to call up the display of the mode switching prompt interface. For example, the user may call up the display of the status bar by a pull-down operation, and the first virtual control may be displayed in the status bar. The user may trigger the first virtual control displayed in the status bar, and the first mobile device may respond to the user's triggering operation on the first virtual control and display the mode switching prompt interface.

[0087] Alternatively, after establishing a wired connection with the second mobile device, the first mobile device may obtain the power levels of itself and the second mobile device, and display a mode switching prompt interface when the power levels of itself and the second mobile device meet the first condition.

[0088] The first condition may be that the power of the first mobile device is greater than the power of the second mobile device; or the first condition may be that the power of the first mobile device is greater than the power of the second mobile device and the power difference between the first mobile device and the second mobile device is greater than a first threshold, etc. The present disclosure does not limit the specific content of the first condition. Optionally, the first threshold may be any value, and the present disclosure does not limit the value of the first threshold.

[0089] In an optional implementation, when a wired connection is established between the first mobile device and the second mobile device, and the first mobile device detects that the power level of the first mobile device and the power level of the second mobile device satisfy a first condition, the first mobile device can directly control its own working mode to switch from the charging mode to the power supply mode without manual confirmation by the user.

[0090] In another possible implementation, a mode switching control may be set on the first mobile device, and the user may perform a first operation on the mode switching control. The first mobile device may respond to the first operation on the mode switching control to control the working mode of the first mobile device to switch from the charging mode to the power supply mode.

[0091] For example, a physical button specifically used for mode switching can be configured on the first mobile device. The user can trigger the dedicated physical button configured on the first mobile device, and the first mobile device can switch itself from the charging mode to the power supply mode in response to the user's triggering operation of the physical button.

[0092] Alternatively, a virtual button (such as a virtual switch) specifically used for mode switching can be configured on the visual interface of the first mobile device, and the user can trigger the virtual button in the visual interface. The first mobile device can respond to the user's triggering operation of the virtual button and switch itself from the charging mode to the power supply mode.

[0093] It should be noted that the above are only two exemplary methods of switching the first mobile device from the charging mode to the power supply mode, and do not constitute a limitation of the present disclosure. In more possible implementation methods, other methods can also be used to achieve the mode switching of the first mobile device, and the present disclosure does not limit the specific method.

[0094] It should be noted that for a DRP device to be actively powered, it is necessary to ensure that it is not currently connected to a power source. Therefore, when controlling the first mobile device to operate in a power supply mode according to the acquired operating mode of the first mobile device, it is necessary to ensure that the first pin of the first mobile device is not powered. The first pin may be a Vbus pin.

[0095] That is, the first mobile device can be controlled to operate in the power supply mode only when the first pin of the first mobile device is not powered on (that is, the first mobile device has no Vbus powered on).

[0096] In addition, it should be noted that the wired connection between the first mobile device and the second mobile device can be established before or after the first mobile device is controlled to operate in the power supply mode, and this disclosure does not limit this.

[0097] After the first mobile device is controlled to work in the power supply mode through the above embodiment, step 101 may be performed to send a first handshake signal to the second mobile device in response to the first mobile device working in the power supply mode.

[0098] In some embodiments, for step 101, in response to the first mobile device operating in the power supply mode, a first handshake signal may be sent to the second mobile device via a first protocol.

[0099] The first protocol may be a Universal Fast Charging Specification (UFCS) protocol, but is not limited thereto, and the first protocol may also be other types of protocols. Taking the first protocol as the UFCS fast charging protocol as an example, the first handshake signal may be a UFCS handshake signal.

[0100] It should be noted that the second mobile device in the charging mode can monitor the handshake signal sent by the first mobile device in real time, so as to provide feedback in time after monitoring the handshake signal.

[0101] In an optional implementation, a monitoring switch for turning the monitoring function on and off may be provided on the mobile device. When the monitoring switch is in the on state, the mobile device may monitor the handshake signal in real time, and when the monitoring switch is in the off state, the mobile device does not need to monitor the handshake signal in real time.

[0102] Based on the above settings, in a possible implementation, before sending the first handshake signal to the second mobile device, the first mobile device may also send an indication signal to the second mobile device, where the indication signal is used to instruct the second mobile device to start monitoring the handshake signal. When the second mobile device receives the indication signal, it may set the monitoring switch to an on state so as to monitor the first handshake signal sent by the first mobile device in real time and provide feedback on the first handshake signal sent by the first mobile device in a timely manner.

[0103] In an optional implementation, the first mobile device may send an indication signal via Tx. The indication signal may be a high level, but is not limited thereto, and the indication signal may also be other types of signals. Taking the indication signal as a high level as an example, when the first mobile device is operating in a power supply mode, the first mobile device may send a high level to a second mobile device with which the first mobile device has established a wired connection, so as to instruct the second mobile device to start monitoring the handshake signal.

[0104] In one implementation, the first mobile device may send a user interaction signal via a DP pin in the Type-C interface.

[0105] In an optional implementation, the first mobile device may first send an indication signal to the second mobile device, and after the indication signal is sent, the first mobile device immediately sends the first handshake signal to the second mobile device. Alternatively, the first mobile device may send the indication signal and the first handshake signal to the second mobile device at the same time, which is not limited in the present disclosure.

[0106] It should be noted that after sending the first handshake signal to the second mobile device through step 101, you can wait for the second mobile device to respond based on the first handshake signal, so that through step 102, in response to receiving the first handshake response signal sent by the second mobile device, you can charge the second mobile device through the first protocol.

[0107] In some embodiments, for step 102, in response to receiving the first handshake response signal sent by the second mobile device, charging the second mobile device through the first protocol can be implemented by the following steps:

[0108] Step 1021: In response to receiving a first handshake response signal sent by a second mobile device, controlling a first pin of a first mobile device to power on.

[0109] Optionally, the first pin of the first mobile device and the second pin of the second mobile device may be controlled to be connected via a data line, so that the first mobile device can establish a mobile connection with the second mobile device. The first pin and the second pin may both be Vbus pins.

[0110] It should be noted that, when the first pin of the first mobile device is powered on, the second pin connected to the first pin via the data line will be automatically powered on.

[0111] In addition, it should be noted that the first mobile device will power on the first pin only when it receives the first handshake response signal from the second mobile device. The pin is not powered before receiving the first handshake response signal, thereby reducing the problem of port corrosion caused by the powered pin.

[0112] Step 1022: In response to the first pin being powered on, communicate with the second mobile device through the first protocol, and charge the second mobile device through the first protocol.

[0113] After the first pin is powered on, the first mobile device can continue to communicate with the second mobile device through the first protocol, so as to charge the second mobile device through the first protocol.

[0114] In more possible implementations, in response to the first mobile device and the second mobile device being disconnected, the first pin of the first mobile device is controlled to be powered off.

[0115] It should be noted that, by controlling the first pin of the first mobile device to power off when the wired connection between the first mobile device and the second mobile device is disconnected, the first pin of the first mobile device is not powered when no external power is supplied, and the port of the first mobile device is not powered when the first mobile device is not charging other devices, so that no leakage occurs and the problem of port corrosion does not occur.

[0116] The above embodiment is described by taking the reception of the first handshake response signal sent by the second mobile device based on the first protocol as an example. In more possible implementations, the first mobile device may not receive the first handshake response signal sent by the second mobile device based on the first protocol.

[0117] In some embodiments, a first preset time period may be configured for the first mobile device, and in response to not receiving a first handshake response signal sent by the second mobile device within the first preset time period, the first mobile device may charge the second mobile device via a second protocol. The second protocol may be any protocol, and it is only necessary to ensure that the first protocol is different from the second protocol.

[0118] In an optional implementation, the first preset duration can be any duration, and the present disclosure does not limit the specific duration of the first preset duration. Of course, it is understandable that in order to ensure efficient connection between devices, the first preset duration can be limited to a certain range.

[0119] In some embodiments, a second preset time period may be configured for the first mobile device, and the first mobile device may wait for a reply from the second mobile device based on the first protocol within the second preset time period.

[0120] In one possible implementation, in response to not receiving the first handshake response signal sent by the second mobile device within the second preset time period, the first mobile device may send the first handshake signal to the second mobile device once every third preset time period until a preset condition is met.

[0121] That is, if the first handshake response signal from the second mobile device is not received within the second preset time period, the first mobile device may periodically send the first handshake signal until the preset condition is met.

[0122] In more possible implementations, if the first handshake response signal from the second mobile device is not received within the second preset time period, the first mobile device may periodically send an indication signal and a first handshake signal until a preset condition is met.

[0123] It should be noted that, no matter whether the first handshake signal is sent periodically or the indication signal and the first handshake signal are sent periodically, the sending period may be the third preset duration.

[0124] Among them, the second preset time length and the third preset time length can be any time length, and the present disclosure does not limit the specific time length of the second preset time length.

[0125] It can be understood that the arbitrary duration described in the present disclosure means that an appropriate duration can be arbitrarily selected within a reasonable range, and the present disclosure does not limit the specific duration.

[0126] In an optional implementation, the preset condition may be at least one of the following: the total duration of sending the first handshake signal reaches a fourth preset duration; the first mobile device switches from a power supply mode to a charging mode; a handshake response signal from the second mobile device is received. The fourth preset duration may be any duration, and the present disclosure does not limit the specific duration of the fourth preset duration.

[0127] For example, the charging method provided in the above embodiment can be referred to Figure 2 , Figure 2 is a flow chart of a charging method according to an exemplary embodiment of the present disclosure. Figure 2 As shown, for a first mobile device in charging mode, the first mobile device can switch from charging mode to power supply mode. After the mode switch is completed, the first mobile device can actively send an indication signal and a first handshake signal to the second mobile device that is still in the default charging mode through Tx, thereby waiting for a reply from the second mobile device. If the first mobile device receives the first handshake response signal replied by the second mobile device within the second preset time, it can be determined that the handshake is completed, so that the subsequent charging process can be entered; if the first mobile device does not receive the second handshake signal replied by the second mobile device within the first preset time, the first mobile device can periodically send an indication signal and a first handshake signal until a reply from the second mobile device is received or the first mobile device actively exits the power supply mode.

[0128] It should be noted that when the first mobile device is operating in the power supply mode, the first mobile device can turn off the Type-C communication. Further, in response to not receiving the first handshake response signal sent by the second mobile device within the sixth preset time, the first mobile device can turn on the Type-C communication. It can be understood that the Type-C communication here is a protocol communication different from the first protocol.

[0129] Among them, the sixth preset time length can be any time length, and the present disclosure does not limit the specific time length of the sixth preset time length.

[0130] The above embodiment mainly introduces a series of processing procedures when the first mobile equipment operates in the power supply mode. In more possible implementations, the first mobile equipment may also switch from the power supply mode to the charging mode.

[0131] In a possible implementation, in response to the disconnection between the first mobile device and the second mobile device, the first mobile device may be controlled to switch from a power supply mode to a charging mode.

[0132] For example, when the first mobile device detects that the wired connection between the first mobile device and the second mobile device is disconnected, the first mobile device may automatically switch from the power supply mode to the charging mode.

[0133] In another possible implementation, in response to the first mobile device and the second mobile device being disconnected and the first mobile device not establishing a connection with other devices within a fifth preset time period, the first mobile device may be controlled to switch from a power supply mode to a charging mode.

[0134] That is, when the first mobile device detects that the wired connection between it and the second mobile device is disconnected, the first mobile device may not switch modes immediately, but automatically switch from the power supply mode to the charging mode when it fails to establish a connection with the other device within the fifth preset time period, thereby satisfying the user's need to reconnect in a short time and improving the efficiency of reconnection in a short time.

[0135] Among them, the fifth preset time length can be any time length, and the present disclosure does not limit the specific time length of the fifth preset time length.

[0136] By waiting for a period of time (i.e., the fifth preset time period) before performing a mode switch when the wired connection between the first mobile device and the second mobile device is disconnected, it is not necessary to perform a mode switch again after the first mobile device re-establishes a connection with other mobile devices (which may be the second mobile device or other mobile devices) within the fifth preset time period, thereby avoiding frequent mode switching and reducing the power consumption of the first mobile device.

[0137] In another possible implementation, in response to the second operation, the first mobile device may be controlled to switch from the power supply mode to the charging mode.

[0138] The second operation may include at least one of the following: receiving a mode switching instruction; detecting that the first mobile device is operating in a charging state; and detecting that a first pin of the first mobile device is powered on by another device.

[0139] In an optional implementation, the mode switching instruction may have multiple triggering modes, and several exemplary triggering modes are introduced below.

[0140] In a possible implementation, a mode switching operation can be performed in a mode switching prompt interface provided by the first mobile device to trigger a mode switching instruction. The specific display style of the mode switching prompt interface can be found in the above embodiment and will not be described in detail here.

[0141] In an optional implementation, there may be multiple ways to invoke the display of the mode switching prompt interface.

[0142] For example, the display of the mode switching prompt interface may be activated by configuring a first virtual control in the visual interface of the first mobile device. The specific implementation method may refer to the above embodiment and will not be described in detail here.

[0143] Alternatively, the first mobile device may automatically bring up the mode switching prompt interface when the power levels of the first mobile device and the second mobile device satisfy the second condition.

[0144] The second condition may be that the power of the first mobile device is less than the power of the second mobile device; or the first condition may be that the power of the first mobile device is less than the power of the second mobile device and the power difference between the first mobile device and the second mobile device is greater than a second threshold, etc. The present disclosure does not limit the specific content of the second condition. Optionally, the second threshold may be any value, and the present disclosure does not limit the value of the second threshold.

[0145] In an optional implementation, when the first mobile device detects that the power levels of the first mobile device and the second mobile device satisfy the second condition, the first mobile device may also directly control its own working mode to switch from the power supply mode to the charging mode without manual confirmation by the user.

[0146] In another possible implementation, a mode switching control may be set on the first mobile device, and the user may trigger the mode switching control to trigger a mode switching operation. The first mobile device may respond to the mode switching operation and control the working mode of the first mobile device to switch from the power supply mode to the charging mode.

[0147] Among them, the mode switching control can be a physical button or a virtual button (virtual switch). The process of realizing mode switching through physical buttons and virtual buttons can be referred to the above embodiment and will not be repeated here.

[0148] In an optional implementation, when it is detected that the first mobile device is in a charging state, the first mobile device is controlled to switch from a power supply mode to a charging mode. Alternatively, when it is detected that the first pin of the first mobile device is powered by another device, the first mobile device is controlled to switch from a power supply mode to a charging mode.

[0149] The above are only several exemplary methods of controlling the first mobile device to switch from the power supply mode to the charging mode, and do not constitute a limitation on the implementation of the present disclosure. In more possible implementations, other methods may be used to achieve the switching from the power supply mode to the charging mode.

[0150] After the first mobile device switches back to the charging mode, other mobile devices can charge the first mobile device.

[0151] In some embodiments, in response to the first mobile device operating in charging mode, the first mobile device can monitor a second handshake signal sent by a second mobile device, wherein the first mobile device and the second mobile device are connected by a wire; in response to the second handshake signal, send a second handshake response signal to the second mobile device, wherein the second handshake response signal is used to indicate that the first mobile device supports the first protocol; in response to the first mobile device and the second mobile device establishing a connection through the first protocol, receive power transmitted by the second mobile device for charging.

[0152] The first mobile device may be provided with a receiving detection circuit so that the handshake signal sent by other mobile devices can be monitored through the receiving detection circuit.

[0153] In an optional implementation, when the first mobile device operates in a charging mode, the transceiver implemented as a transmitting end can implement the function of a receiving end to be used as a receiving detection circuit.

[0154] In some embodiments, in response to the first mobile device operating in the charging mode, monitoring the second handshake signal sent by the second mobile device can be implemented as follows:

[0155] In response to the first mobile device operating in the charging mode, a second handshake signal sent by the second mobile device is monitored by the receiving detection circuit.

[0156] It should be noted that a series of functions of the mobile device working in the charging mode will be described in detail in the following embodiments and will not be repeated here.

[0157] After introducing the implementation process on the first mobile device side, the implementation process on the second mobile device side as the opposite side will be introduced below.

[0158] See also Figure 3 , Figure 3 is a flow chart of a charging method according to an exemplary embodiment of the present disclosure. Figure 3 As shown, the method may be performed by a second mobile device, and the method may include the following steps:

[0159] Step 301: In response to a second mobile device operating in a charging mode, receiving a first handshake signal sent by a first mobile device, wherein the first mobile device and the second mobile device are connected by a wire.

[0160] Optionally, the first mobile device and the second mobile device may both be smart phones, smart watches, power banks, headphones, capacitive pens, etc., but are not limited thereto. The present disclosure does not limit the device types of the first mobile device and the second mobile device.

[0161] It should be noted that the second mobile device can be connected to the first mobile device via a data cable to establish a wired connection with the first mobile device.

[0162] The first mobile device and the second mobile device are both DRP devices, that is, the first mobile device and the second mobile device can both supply power to the other mobile device and receive power from the other mobile device to charge themselves. For example, the first mobile device can work in the power supply mode so that the first mobile device can supply power to the other mobile device, and the second mobile device can work in the charging mode so that the second mobile device can receive power from the other device to charge itself. For an introduction to the charging mode and the power supply mode, please refer to Figure 1 The corresponding embodiments will not be described in detail here.

[0163] It should be noted that when the second mobile device operates in charging mode, the second mobile device can provide a function of monitoring the handshake signal, that is, when the second mobile device operates in charging mode, the second mobile device can monitor the first handshake signal sent by the first mobile device.

[0164] Step 302: In response to the first handshake signal, send a first handshake response signal to the first mobile device based on the first protocol.

[0165] The first protocol may be any type of protocol, and the present disclosure does not limit the specific type of the first protocol. For example, the first protocol may be the UFCS protocol.

[0166] Step 303: In response to the first mobile device and the second mobile device establishing a connection through the first protocol, receiving power transmitted by the first mobile device for charging.

[0167] It should be noted that after receiving the first handshake signal sent by the second mobile device based on the first protocol, the first mobile device can establish a communication connection with the second mobile device through the first protocol, so that the second mobile device can receive power through the established connection.

[0168] Among them, the process of establishing a communication connection under different protocols is different. According to the type of the first protocol used, the connection can be established according to the communication process agreed upon in the first protocol. The present disclosure does not limit the specific implementation method of establishing the communication connection.

[0169] In the case where the first mobile device and the second mobile device are wired connected, in response to the second mobile device operating in charging mode, the embodiment of the present disclosure receives the first handshake signal sent by the first mobile device, thereby responding to the first handshake signal and sending a first handshake response signal to the first mobile device based on the first protocol, and then responding to the first mobile device and the second mobile device establishing a connection through the first protocol, receiving the power transmitted by the first mobile device for charging. Through the solution provided by the embodiment of the present disclosure, role identification can be achieved between the two mobile devices by active handshake, thereby achieving wired reverse charging.

[0170] After introducing the above basic implementation process, various optional embodiments of the present disclosure and the specific implementation of the charging method provided by the present disclosure on the second mobile device side are further described below.

[0171] It should be noted that for a DRP device that supports both charging mode and power supply mode, it has the ability to monitor handshake signals sent by other mobile devices only when it works in charging mode.

[0172] Therefore, before step 301, the following steps may also be included:

[0173] Step 300A: Obtain the working mode of the second mobile device.

[0174] The working mode of the second mobile equipment may include a charging mode and a power supply mode.

[0175] Step 300B: Control the second mobile device to operate in a charging mode according to the operating mode of the second mobile device.

[0176] In some embodiments, when the working mode of the second mobile device is the charging mode, the working mode of the second mobile device is maintained, so that the second mobile device can be controlled to work in the charging mode.

[0177] In other embodiments, when the working mode of the second mobile device is the power supply mode, the working mode of the second mobile device can be controlled to switch from the power supply mode to the charging mode in response to the third operation.

[0178] There are many possible implementations for implementing the working mode switching of the second mobile equipment through the third operation, and two exemplary implementations are described below.

[0179] In one possible implementation, the second mobile device can display a mode switching prompt interface, and the user can perform a third operation in the mode switching prompt interface. The second mobile device can respond to the third operation of the scope mode switching prompt interface to control the working mode of the second mobile device to switch from charging mode to power supply mode.

[0180] Among them, the mode switching prompt interface can be a prompt pop-up window. For example, the second mobile device can display a prompt pop-up window on the visual interface to ask whether to switch the mode of the second mobile device through the prompt pop-up window. Optionally, a confirmation option and a cancel option can be provided in the prompt pop-up window. The user can trigger the confirmation option to feedback to the second mobile device to confirm the mode switch. The above-mentioned confirmation operation for switching the mode of the second mobile device (that is, the triggering operation of the confirmation option) is the third operation. The second mobile device can respond to the user's third operation and switch itself from the power supply mode to the charging mode.

[0181] Optionally, a second virtual control may be configured in the visual interface of the second mobile device, and the user may trigger the second virtual control to call up the display of the mode switching prompt interface. For example, the user may call up the display of the status bar by a pull-down operation, and the second virtual control may be displayed in the status bar. The user may trigger the second virtual control displayed in the status bar, and the second mobile device may respond to the user's triggering operation on the second virtual control and display the mode switching prompt interface.

[0182] Alternatively, after establishing a wired connection with the first mobile device, the second mobile device may obtain the power levels of itself and the first mobile device, and display a mode switching prompt interface when the power levels of itself and the first mobile device meet the third condition.

[0183] The third condition may be that the power of the second mobile device is less than that of the first mobile device; or the third condition may be that the power of the second mobile device is less than that of the first mobile device and the power difference between the first mobile device and the second mobile device is greater than a third threshold, etc. The present disclosure does not limit the specific content of the third condition. Optionally, the third threshold may be any value, and the present disclosure does not limit the value of the third threshold.

[0184] Optionally, when the second mobile device establishes a wired connection with the first mobile device and the second mobile device detects that its own power level and the power level of the first mobile device meet the third condition, the second mobile device can directly control its own working mode to switch from the power supply mode to the charging mode without manual confirmation by the user.

[0185] In another possible implementation, a mode switching control may be set on the second mobile device, and the user may perform a third operation on the mode switching control. The second mobile device may respond to the third operation on the mode switching control to control the working mode of the second mobile device to switch from the power supply mode to the charging mode.

[0186] For example, a physical button specifically used for mode switching can be configured on the second mobile device. The user can trigger the dedicated physical button configured on the second mobile device, and the second mobile device can switch itself from the power supply mode to the charging mode in response to the user's triggering operation of the physical button.

[0187] Alternatively, a virtual button (such as a virtual switch) specifically used for mode switching can be configured on the visual interface of the second mobile device, and the user can trigger the virtual button in the visual interface. The second mobile device can respond to the user's triggering operation of the virtual button and switch itself from the power supply mode to the charging mode.

[0188] It should be noted that the above are only two exemplary methods of switching the second mobile device from the power supply mode to the charging mode, and do not constitute a limitation of the present disclosure. In more possible implementation methods, other methods can also be used to achieve the mode switching of the second mobile device. The present disclosure does not limit the specific method.

[0189] It should be noted that for a DRP device to be charged by wired reverse charging, it is necessary to ensure that it is not currently connected to a power source. Therefore, when controlling the second mobile device to operate in a charging mode according to the acquired operating mode of the second mobile device, it is necessary to ensure that the second pin of the second mobile device is not powered on. The second pin may be a Vbus pin.

[0190] That is, the second mobile device can be controlled to operate in the charging mode only when the second pin of the second mobile device is not powered on (that is, the second mobile device has no Vbus powered on).

[0191] In addition, it should be noted that the wired connection between the second mobile device and the first mobile device can be established before or after the second mobile device is controlled to operate in the charging mode, and this disclosure does not limit this.

[0192] When the second mobile device operates in the charging mode through the above embodiment, the second mobile device may monitor the handshake signal sent by other mobile devices.

[0193] The second mobile device may be provided with a receiving detection circuit, so that the second mobile device can monitor the handshake signal through the receiving detection circuit, and further monitor the handshake signal through the receiving detection circuit.

[0194] That is, for step 302, in response to the second mobile device operating in the charging mode, when receiving the first handshake signal sent by the first mobile device, it can be implemented in the following manner:

[0195] In response to the second mobile device operating in the charging mode, the first handshake signal sent by the first mobile device is monitored by the receiving detection circuit.

[0196] Among them, the introduction of the receiving detection circuit can be found in Figure 1 The corresponding embodiments will not be described in detail here.

[0197] In some embodiments, a monitoring switch for turning the monitoring function on and off can also be set on the second mobile device. When the monitoring switch is in the on state, the second mobile device can monitor the handshake signal in real time, and when the monitoring switch is in the off state, the second mobile device does not need to monitor the handshake signal in real time.

[0198] Based on the above settings, in one possible implementation, a first mobile device can send an indication signal to a second mobile device, where the indication signal is used to instruct the second mobile device to start monitoring a handshake signal; the second mobile device can receive the indication signal sent by the first mobile device, and then start monitoring the first handshake signal sent by the first mobile device in response to receiving the indication signal.

[0199] Through the above configuration, the second mobile device can monitor the handshake signal only after receiving the indication signal, without having to monitor the handshake signal all the time, thereby effectively reducing power consumption during the handshake process.

[0200] Optionally, if the first handshake signal sent by the first mobile device is not received for a long time, the second mobile device may stop monitoring the handshake signal to avoid excessive power consumption caused by continuous monitoring of the handshake signal.

[0201] For example, if the second mobile device does not receive the first handshake signal sent by the first mobile device within the eighth preset time, it can stop monitoring the first handshake signal sent by the first mobile device. The eighth preset time can be any time, and the present disclosure does not limit the specific time of the third preset time.

[0202] Optionally, the second mobile device may switch the monitoring switch to an off state to stop monitoring the first handshake signal sent by the first mobile device.

[0203] It should be noted that after receiving the first handshake signal sent by the first mobile device, the second mobile device can respond to the first handshake signal and send a first handshake response signal to the first mobile device based on the first protocol in step 302 .

[0204] In some embodiments, for step 302, in response to the first handshake signal, sending the first handshake response signal to the first mobile device based on the first protocol can be implemented as follows:

[0205] In response to the first handshake signal, a first handshake response signal is sent to the first mobile device within a seventh preset duration based on the first protocol.

[0206] Wherein, the seventh preset duration can be a value less than the first preset duration and the second preset duration, so as to ensure that the first mobile device and the second mobile device can achieve handshake based on the first protocol.

[0207] After receiving the first handshake response signal sent by the second mobile device, the first mobile device can establish a connection with the second mobile device through the first protocol, so that the second mobile device can, through step 303, in response to the connection established between the first mobile device and the second mobile device through the first protocol, receive the power transmitted by the first mobile device for charging.

[0208] In some embodiments, for step 303, when receiving the power transmitted by the first mobile device for charging in response to the connection established between the first mobile device and the second mobile device through the first protocol, it can be implemented through the following steps:

[0209] Step 3031: In response to the power-on of the second pin of the second mobile device, communicate with the first mobile device through the first protocol.

[0210] It should be noted that the process of the power-on of the second pin of the second mobile device can refer to Figure 1 the corresponding embodiments, which will not be elaborated here.

[0211] Step 3032: In response to the connection established between the first mobile device and the second mobile device through the first protocol, receive the power transmitted by the first mobile device for charging.

[0212] For example, the charging method provided in the above embodiments can refer to Figure 4 , Figure 4 is a flowchart of a charging method shown by the present disclosure according to an exemplary embodiment. As Figure 4 shown, for the second mobile device that is default in the charging mode, the second mobile device can, when detecting the indication signal, start monitoring the handshake signal, so that it can, when detecting the handshake signal, reply with the corresponding handshake reply signal to enter the subsequent charging process.

[0213] The above embodiments mainly introduce a series of processing procedures when the second mobile device works in the charging mode. In more possible implementation manners, the second mobile device can also work in the power supply mode.

[0214] In some embodiments, in response to the second mobile device operating in the power supply mode, the second mobile device can send a second handshake signal to the first mobile device, so that the first mobile device can receive the second handshake signal and respond based on the second handshake signal, wherein the first mobile device and the second mobile device are connected by a wire; the second mobile device can charge the first mobile device through the first protocol in response to receiving the second handshake response signal sent by the first mobile device.

[0215] The series of processing procedures when the second mobile equipment works in the power supply mode are the same as the series of processing procedures when the first mobile equipment works in the power supply mode, and will not be described in detail here.

[0216] The interactive process of the charging method provided in the present disclosure can be found in Figure 5 , Figure 5 is an interactive flow chart of a charging method according to an exemplary embodiment of the present disclosure, such as Figure 5 As shown, the method may include:

[0217] Step 501: In response to a first mobile device operating in a power supply mode, the first mobile device sends a first handshake signal to a second mobile device.

[0218] The first mobile device and the second mobile device are connected via a wire.

[0219] It should be noted that the first mobile device and the second mobile device may be connected via a data cable to ensure a wired connection between the first mobile device and the second mobile device.

[0220] The first mobile device may be a DRP device, that is, the first mobile device can work in both charging mode and power supply mode. Only when the first mobile device works in power supply mode can the first handshake signal be sent to the second mobile device. Therefore, before sending the first handshake signal to the second mobile device, the first mobile device must be controlled to work in power supply mode according to its current working mode. For the specific implementation process, please refer to Figure 1 The corresponding embodiments will not be described in detail here.

[0221] Furthermore, it is necessary to control the first mobile device to work in a power supply mode when the first pin of the first mobile device is not powered on. For details, see Figure 1 The corresponding embodiments will not be described in detail here.

[0222] The first handshake signal may be an active handshake signal based on the first protocol, see Figure 6 , Figure 6 is a waveform diagram of a handshake signal according to an exemplary embodiment of the present disclosure, such as Figure 6As shown, it can be used as Figure 6 The signal shown in waveform A is used as the first handshake signal.

[0223] Step 502: In response to the second mobile device operating in a charging mode, the second mobile device receives a first handshake signal sent by the first mobile device.

[0224] The second mobile device may be a DRP device, that is, the second mobile device can work in both charging mode and power supply mode. When the second mobile device works in charging mode, it can receive the first handshake signal sent by the first mobile device. Therefore, before receiving the first handshake signal sent by the first mobile device, the second mobile device should be controlled to work in charging mode according to the current working mode of the second mobile device. For the specific implementation process, please refer to Figure 3 The corresponding embodiments will not be described in detail here.

[0225] Furthermore, it is necessary to control the second mobile device to work in a charging mode when the second pin of the second mobile device is not powered on. For details, see Figure 3 The corresponding embodiments will not be described in detail here.

[0226] Step 503: In response to the first handshake signal, the second mobile device sends a first handshake response signal to the first mobile device based on the first protocol.

[0227] Optionally, the second mobile device in the charging mode can actively monitor the first handshake signal sent by the first mobile device. For example, the second mobile device can actively monitor the first handshake signal sent by the first mobile device through a receiving detection circuit (ie, Rx).

[0228] See also Figure 7 , Figure 7 is a schematic diagram showing a mode switching process according to an exemplary embodiment of the present disclosure. Figure 7 As shown, the first mobile device can switch from the default charging mode to the power supply mode, so as to actively send the handshake signal through Tx in the power supply mode; the second mobile device can maintain the default charging mode, so as to actively monitor the handshake signal through Rx in the charging mode.

[0229] Optionally, a monitoring switch for turning the monitoring function on and off can be set on the mobile device. When the monitoring switch is on, the mobile device can monitor the handshake signal in real time, and when the monitoring switch is off, the mobile device does not need to monitor the handshake signal in real time.

[0230] Based on the above settings, in a possible implementation, before sending the first handshake signal to the second mobile device, the first mobile device may also send an indication signal to the second mobile device, where the indication signal is used to instruct the second mobile device to start monitoring the first handshake signal. When the second mobile device receives the indication signal, it may set the monitoring switch to an on state so as to monitor the first handshake signal sent by the first mobile device in real time and provide feedback on the first handshake signal sent by the first mobile device in a timely manner.

[0231] The indication signal may be a high level signal, but is not limited thereto, and the indication signal may also be other types of signals.

[0232] Taking the indication signal as a high level as an example, when switching from the charging mode to the power supply mode, the first mobile device can send a high level to the second mobile device with which it has established a wired connection, to instruct the second mobile device to start monitoring the handshake signal.

[0233] Optionally, the first mobile device may first send an indication signal to the second mobile device, and after the indication signal is sent, the first mobile device may immediately send a first handshake signal to the second mobile device. Alternatively, the first mobile device may simultaneously send an indication signal and a first handshake signal to the second mobile device, which is not limited in the present disclosure.

[0234] In some embodiments, the second mobile device may set the monitoring switch to an on state in response to the received indication signal, so that the second mobile device may start to monitor the first handshake signal sent by the first mobile device.

[0235] In one possible implementation, the second mobile device may, in response to monitoring the first handshake signal, send a first handshake response signal to the first mobile device based on the first protocol within a seventh preset time period, so that the first handshake response signal sent by the second mobile device is received within the seventh preset time period, and the seventh preset time period is less than the waiting time pre-configured for the first mobile device (including the first preset time period and the second preset time period) to ensure that a handshake can be achieved between the first mobile device and the second mobile device based on the first protocol.

[0236] Still like Figure 6 Take the waveform diagram of the handshake signal shown in FIG. Figure 6 As shown, it can be used as Figure 6 The signal shown in waveform B is used as the first handshake response signal.

[0237] Optionally, if the first handshake signal sent by the first mobile device is not received for a long time, the second mobile device may stop monitoring the handshake signal to avoid excessive power consumption caused by continuous monitoring of the handshake signal.

[0238] For example, if the second mobile device does not receive the first handshake signal sent by the first mobile device within the eighth preset time period, the second mobile device may stop monitoring the first handshake signal sent by the first mobile device.

[0239] Optionally, the second mobile device may switch the monitoring switch to an off state to stop monitoring the first handshake signal sent by the first mobile device.

[0240] Step 504: In response to receiving the first handshake response signal sent by the second mobile device, the first mobile device establishes a connection with the second mobile device through the first protocol, and charges the second mobile device through the first protocol.

[0241] In some embodiments, in response to receiving a first handshake response signal sent by a second mobile device, the first pin of the first mobile device can be controlled to be powered on; in response to the first pin being powered on, the second mobile device can be communicated with through the first protocol, and the second mobile device can be charged through the first protocol. For the specific implementation process, please refer to Figure 1 The corresponding embodiments will not be described in detail here.

[0242] In more possible implementations, in response to the disconnection between the first mobile device and the second mobile device, the first pin of the first mobile device may be controlled to be powered off.

[0243] In some embodiments, a waiting time (such as a first preset time and a second preset time) can be configured for the first mobile device so that the first mobile device can wait for a reply from the second mobile device within the waiting time, and can take corresponding actions based on the reply from the second mobile device within the waiting time.

[0244] For example, a first preset time period may be configured for the first mobile device, and in response to not receiving a first handshake response signal sent by the second mobile device within the first preset time period, the first mobile device may charge the second mobile device via a second protocol, wherein the second protocol may be any protocol different from the first protocol.

[0245] For another example, a second preset time period may be configured for the first mobile device, and the first mobile device may wait for a reply from the second mobile device based on the first protocol within the second preset time period.

[0246] In one possible implementation, in response to not receiving the first handshake response signal sent by the second mobile device within the second preset time period, the first mobile device may send the first handshake signal to the second mobile device once every third preset time period until a preset condition is met.

[0247] That is, if the first handshake response signal from the second mobile device is not received within the second preset time period, the first mobile device may periodically send the first handshake signal until the preset condition is met.

[0248] In more possible implementations, if the first handshake response signal from the second mobile device is not received within the second preset time period, the first mobile device may periodically send an indication signal and a first handshake signal until a preset condition is met.

[0249] It should be noted that, no matter whether the first handshake signal is sent periodically or the indication signal and the first handshake signal are sent periodically, the sending period may be the third preset duration.

[0250] Among them, the second preset time length and the third preset time length can be any time length, and the present disclosure does not limit the specific time length of the second preset time length.

[0251] Optionally, the preset condition may be at least one of the following: the total duration of sending the first handshake signal reaches a fourth preset duration; the first mobile device switches from a power supply mode to a charging mode; a handshake response signal from the second mobile device is received. The fourth preset duration may be any duration, and the present disclosure does not limit the specific duration of the fourth preset duration.

[0252] It should be noted that when the first mobile device is operating in the power supply mode, the first mobile device can turn off the Type-C communication. Further, in response to not receiving the first handshake response signal sent by the second mobile device within the sixth preset time, the first mobile device can turn on the Type-C communication.

[0253] Step 505: In response to the first mobile device and the second mobile device establishing a connection through the first protocol, the second mobile device receives power transmitted by the first mobile device for charging.

[0254] In some embodiments, in response to the second pin of the second mobile device being powered on, the second mobile device communicates with the first mobile device via the first protocol; in response to the first mobile device and the second mobile device establishing a connection via the first protocol, the second mobile device receives power transmitted by the first mobile device for charging.

[0255] The above embodiment mainly introduces a series of processing procedures when the first mobile device operates in the power supply mode. In more possible implementations, when the first mobile device charges the second mobile device, the first mobile device may also switch from the power supply mode to the charging mode.

[0256] In a possible implementation, in response to the disconnection between the first mobile device and the second mobile device, the first mobile device may be controlled to switch from a power supply mode to a charging mode.

[0257] For example, when the first mobile device detects that the wired connection between the first mobile device and the second mobile device is disconnected, the first mobile device may automatically switch from the power supply mode to the charging mode.

[0258] In another possible implementation, in response to the first mobile device and the second mobile device being disconnected and the first mobile device not establishing a connection with other devices within a fifth preset time period, the first mobile device may be controlled to switch from a power supply mode to a charging mode.

[0259] In another possible implementation, in response to the second operation, the first mobile device may be controlled to switch from the power supply mode to the charging mode.

[0260] The second operation may include at least one of the following: receiving a mode switching instruction; detecting that the first mobile device is operating in a charging state; and detecting that a first pin of the first mobile device is powered on by another device.

[0261] It should be noted that the specific implementation process of controlling the first mobile device to switch from the power supply mode to the charging mode in response to the second operation can be found in Figure 1 The corresponding embodiments will not be described in detail here.

[0262] After the first mobile device switches back to the charging mode, other mobile devices can charge the first mobile device.

[0263] In some embodiments, in the case where there is a wired connection between the first mobile device and the second mobile device, in response to the second mobile device operating in the power supply mode, the second mobile device can send a second handshake signal to the first mobile device; in response to the first mobile device operating in the charging mode, the first mobile device can receive the second handshake signal sent by the second mobile device; in response to the second handshake signal, the first mobile device can send a second handshake response signal to the second mobile device, wherein the second handshake response signal is used to indicate that the second mobile device supports the first protocol; and in response to the first mobile device and the second mobile device establishing a connection through the first protocol, the first mobile device can receive power transmitted by the second mobile device for charging.

[0264] Through the solution provided by the embodiment of the present disclosure, wired reverse charging between two DRP devices can be achieved, and the solution can be implemented independently without relying on other protocols; moreover, when role identification is performed through the solution provided by the embodiment of the present disclosure, the port is not powered, will not cause corrosion problems, and will not cause leakage when the active charging function is not turned on, thereby improving the safety of the charging process.

[0265] It should be noted that the mobile device can actively select the power supply mode to become a power supply device and actively supply power to the outside. A dual-role detection circuit (including a sending detection circuit and a receiving detection circuit) can be set in the UFCS device. When the UFCS device starts the power supply mode, the UFCS device can act as a power supply device and actively send a UFCS handshake signal through the detection circuit. The receiving detection circuit in the power supply device is turned on by default, and the monitoring switch is turned on when a signal is detected. After the power supply device sends the handshake signal, it waits for the charging device to detect and reply.

[0266] After the UFCS dual-role device detects the insertion, it must shut down the TypeC module within the Twait time until Twait times out or the device detects Vbus. If the UFCS dual-role device does not actively choose to enter the power supply mode and the Vbus is out of power, after the UFCS dual-role device detects the connection, after the Trouse time the device actively asks whether to enter the UFCS power supply mode. After the insertion, if the VBUS is detected to be powered, the TypeC module is enabled. The sooner the better. For the working logic, see Figure 8 , Figure 8 The figure is a schematic diagram of the working logic of a power supply device according to an exemplary embodiment of the present disclosure.

[0267] In addition, it should be noted that the UFCS dual-role device is in charging mode by default. In charging mode, RX is in detection mode on the DP channel to detect whether a handshake signal is received. In the absence of Vbus power-on, if a handshake signal is received, a confirmation message is sent within the Trespond time to inform the power supply device that it supports UFCS. After that, the charging device waits for VBUS to be powered on in Tvbuson, and enters the normal UFCS communication process after detecting that Vbus is powered on. If the charging device does not detect that Vbus is powered on within the specified time, it exits the UFCS charging mode. For the process, see Fig. 9 , Fig. 9 It is a schematic diagram of the working logic of a charging device according to an exemplary embodiment of the present disclosure.

[0268] For the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present disclosure is not limited by the described order of actions, because according to the present disclosure, certain steps can be performed in other orders or simultaneously.

[0269] Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present disclosure.

[0270] Corresponding to the aforementioned application function implementation method embodiment, the present disclosure also provides an application function implementation device and a corresponding mobile device embodiment.

[0271] See Fig.10 , Fig.10 which is a block diagram of a charging device shown by the present disclosure according to an exemplary embodiment. As shown in Fig.10 , the device can be applied to a first mobile device and can include:

[0272] A sending module 1001, configured to send a first handshake signal to a second mobile device in response to the first mobile device operating in a power supply mode, wherein there is a wired connection between the first mobile device and the second mobile device;

[0273] A charging module 1002, configured to charge the second mobile device through a first protocol in response to receiving a first handshake response signal sent by the second mobile device.

[0274] In some embodiments, the device further includes:

[0275] An obtaining module, configured to obtain the operating mode of the first mobile device;

[0276] A control module, configured to control the first mobile device to operate in a power supply mode according to the operating mode of the first mobile device.

[0277] In some embodiments, the operating mode is a charging mode. When the control module is configured to control the first mobile device to operate in a power supply mode according to the operating mode of the first mobile device, it is configured to:

[0278] In response to a first operation, control the operating mode of the first mobile device to switch from the charging mode to the power supply mode.

[0279] In some embodiments, when the control module is configured to control the operating mode of the first mobile device to switch from the charging mode to the power supply mode in response to a first operation, it is configured to:

[0280] Display a mode switching prompt interface, and in response to a first operation on the mode switching prompt interface, control the operating mode of the first mobile device to switch from the charging mode to the power supply mode;

[0281] Or;

[0282] In response to a first operation on the mode switching control, control the operating mode of the first mobile device to switch from the charging mode to the power supply mode.

[0283] In some embodiments, when the sending module 1001 is configured to send a first handshake signal to a second mobile device in response to the first mobile device operating in a power supply mode, it is configured to:

[0284] In response to the first mobile device operating in a power supply mode, send a first handshake signal to the second mobile device through a first protocol.

[0285] In some embodiments, the charging module 1002, when used to charge the second mobile device through the first protocol in response to receiving the first handshake response signal sent by the second mobile device, is used to:

[0286] In response to receiving a first handshake response signal sent by the second mobile device, controlling the first pin of the first mobile device to power on;

[0287] In response to the first pin being powered on, communicating with the second mobile device through the first protocol, and charging the second mobile device through the first protocol.

[0288] In some embodiments, the control module is further configured to control the first pin of the first mobile device to power off in response to disconnection between the first mobile device and the second mobile device.

[0289] In some embodiments, the control module is further configured to control the first pin of the first mobile device to power off in response to the first mobile device exiting the power supply mode.

[0290] In some embodiments, the charging module 1002 is further configured to charge the second mobile device through a second protocol in response to not receiving a first handshake response signal sent by the second mobile device within a first preset time period.

[0291] In some embodiments, the sending module 1001 is further configured to, in response to not receiving the first handshake response signal sent by the second mobile device within the second preset time period, send the first handshake signal to the second mobile device once every third preset time period until a preset condition is met;

[0292] The preconditions include at least one of the following:

[0293] The total duration of sending the first handshake signal reaches a fourth preset duration;

[0294] The first mobile device switches from the power supply mode to the charging mode;

[0295] A handshake response signal replied by the second mobile equipment is received.

[0296] In some embodiments, the control module is further configured to shut down Type-C communication in response to the first mobile device operating in a power supply mode.

[0297] In some embodiments, the control module is further configured to start Type-C communication in response to not receiving the first handshake response signal sent by the second mobile device within a sixth preset time period.

[0298] In some embodiments, the control module is further configured to:

[0299] In response to the disconnection between the first mobile device and the second mobile device, controlling the first mobile device to switch from a power supply mode to a charging mode;

[0300] In response to the first mobile device and the second mobile device being disconnected, and the first mobile device not establishing a connection with other devices within a fifth preset time period, controlling the first mobile device to switch from a power supply mode to a charging mode;

[0301] In response to the second operation, the first mobile device is controlled to switch from the power supply mode to the charging mode.

[0302] In some embodiments, the second operation includes at least one of the following:

[0303] A mode switching instruction is received;

[0304] Detecting that the first mobile device is operating in a charging state;

[0305] It is detected that a first pin of the first mobile device is powered on by another device.

[0306] In some embodiments, the apparatus further comprises:

[0307] A monitoring module, configured to monitor a second handshake signal sent by a second mobile device in response to the first mobile device operating in a charging mode, wherein the first mobile device and the second mobile device are connected by a wire;

[0308] The sending module 1001 is further configured to send a second handshake response signal to the second mobile device in response to the second handshake signal, wherein the second handshake response signal is used to indicate that the first mobile device supports the first protocol;

[0309] The device also includes:

[0310] The receiving module is used for receiving power transmitted by the second mobile device for charging in response to the first mobile device and the second mobile device establishing a connection through the first protocol.

[0311] In some embodiments, the first mobile device is provided with a receiving detection circuit;

[0312] The monitoring module, when used to monitor the second handshake signal sent by the second mobile device in response to the first mobile device operating in the charging mode, is used to:

[0313] In response to the first mobile device operating in the charging mode, a second handshake signal sent by the second mobile device is monitored by the receiving detection circuit.

[0314] See also Fig.11 , Fig.11 is a block diagram of a charging device according to an exemplary embodiment of the present disclosure, such as Fig.11As shown, the device can be applied to a second mobile device, and the device may include:

[0315] A receiving module 1101, configured to receive a first handshake signal sent by a first mobile device in response to the second mobile device operating in a charging mode, where there is a wired connection between the first mobile device and the second mobile device;

[0316] A sending module 1102, configured to send a first handshake response signal to the first mobile device based on a first protocol in response to the first handshake signal;

[0317] The receiving module 1101 is further configured to receive the power transmitted by the first mobile device for charging in response to the first mobile device and the second mobile device establishing a connection through the first protocol.

[0318] In some embodiments, the device further includes:

[0319] An obtaining module, configured to obtain the operating mode of the second mobile device;

[0320] A control module, configured to control the second mobile device to operate in a charging mode according to the operating mode of the second mobile device.

[0321] In some embodiments, the operating mode is a power supply mode. When the control module is configured to control the second mobile device to operate in a charging mode according to the operating mode of the second mobile device, it is configured to:

[0322] In response to a third operation, control the operating mode of the second mobile device to switch from the power supply mode to the charging mode.

[0323] In some embodiments, when the receiving module 1101 is configured to receive the power transmitted by the first mobile device for charging in response to the first mobile device and the second mobile device establishing a connection through the first protocol, it is configured to:

[0324] In response to the second pin of the second mobile device being powered on, communicate with the first mobile device through the first protocol;

[0325] In response to the first mobile device and the second mobile device establishing a connection through the first protocol, receive the power transmitted by the first mobile device for charging.

[0326] In some embodiments, when the sending module 1102 is configured to send a first handshake response signal to the first mobile device based on the first protocol in response to the first handshake signal, it is configured to:

[0327] In response to the first handshake signal, send a first handshake response signal to the first mobile device based on the first protocol within a seventh preset duration.

[0328] In some embodiments, the second mobile device is provided with a receiving detection circuit;

[0329] The receiving module 1101, when used to receive a first handshake signal sent by the first mobile device in response to the second mobile device operating in the charging mode, is used to:

[0330] In response to the second mobile device operating in the charging mode, the first handshake signal sent by the first mobile device is monitored by the receiving detection circuit.

[0331] In some embodiments, the sending module 1102 is further configured to send a second handshake signal to the first mobile device in response to the second mobile device operating in the power supply mode, wherein the first mobile device and the second mobile device are connected by a wire;

[0332] The device also includes:

[0333] The charging module is used to charge the first mobile device through the first protocol in response to receiving the second handshake response signal sent by the first mobile device.

[0334] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed scheme. A person of ordinary skill in the art can understand and implement it without paying creative labor.

[0335] The embodiment of the present disclosure further provides a first mobile device, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to perform the following steps:

[0336] In response to the first mobile device operating in a power supply mode, sending a first handshake signal to a second mobile device, wherein the first mobile device and the second mobile device are connected by a wire;

[0337] In response to receiving the first handshake response signal sent by the second mobile device, the second mobile device is charged using the first protocol.

[0338] See also Fig.12 , Fig.121 is a schematic diagram of a structure of a first mobile device according to an exemplary embodiment of the present disclosure. For example, the first mobile device 1200 may be a user device, which may specifically be a mobile phone, a computer, a digital broadcast terminal, a message transceiver device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, a wearable device such as a smart watch, a smart glasses, a smart bracelet, a smart running shoe, etc.

[0339] Reference Fig.12 , the first mobile device 1200 may include one or more of the following components: a processing component 1202 , a memory 1204 , a power component 1206 , a multimedia component 1208 , an audio component 1210 , an input / output (I / O) interface 1212 , a sensor component 1214 , and a communication component 1216 .

[0340] The processing component 1202 generally controls the overall operation of the first mobile device 1200, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1202 may include one or more processors 1220 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 1202 may include one or more modules to facilitate the interaction between the processing component 1202 and other components. For example, the processing component 1202 may include a multimedia module to facilitate the interaction between the multimedia component 1208 and the processing component 1202.

[0341] The memory 1204 is configured to store various types of data to support the operation of the first mobile device 1200. Examples of such data include instructions for any application or method operating on the first mobile device 1200, contact data, phone book data, messages, pictures, videos, etc. The memory 1204 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.

[0342] The power component 1206 provides power to various components of the first mobile device 1200. The power component 1206 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the first mobile device 1200.

[0343] The multimedia component 1208 includes a screen that provides an output interface between the first mobile device 1200 and the user. 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 signals from the user. 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 the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1208 includes a front camera and / or a rear camera. When the first mobile device 1200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0344] The audio component 1210 is configured to output and / or input audio signals. For example, the audio component 1210 includes a microphone (MIC), and when the first mobile device 1200 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1204 or sent via the communication component 1216. In some embodiments, the audio component 1210 also includes a speaker for outputting audio signals.

[0345] I / O interface 1212 provides an interface between processing component 1202 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0346] The sensor assembly 1214 includes one or more sensors for providing various aspects of status assessment for the first mobile device 1200. For example, the sensor assembly 1214 can detect the open / closed state of the first mobile device 1200, the relative positioning of components, such as the display and keypad of the first mobile device 1200, the sensor assembly 1214 can also detect the position change of the first mobile device 1200 or a component of the first mobile device 1200, the presence or absence of user contact with the first mobile device 1200, the orientation or acceleration / deceleration of the first mobile device 1200, and the temperature change of the first mobile device 1200. The sensor assembly 1214 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1214 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1214 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0347] The communication component 1216 is configured to facilitate wired or wireless communication between the first mobile device 1200 and other devices. The first mobile device 1200 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G LTE, 5GNR or a combination thereof. In an exemplary embodiment, the communication component 1216 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the above-mentioned communication component 1216 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.

[0348] In an exemplary embodiment, the first mobile device 1200 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 to perform the above method.

[0349] In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided, such as a memory 1204 including instructions, which, when executed by a processor 1220 of a first mobile device 1200, enables the first mobile device 1200 to perform a charging method, the method comprising:

[0350] In response to the second mobile device operating in a charging mode, receiving a first handshake signal sent by the first mobile device, wherein the first mobile device and the second mobile device are connected by a wire;

[0351] In response to the first handshake signal, sending a first handshake response signal to the first mobile device based on the first protocol;

[0352] In response to the first mobile device and the second mobile device establishing a connection through the first protocol, the power transmitted by the first mobile device is received for charging.

[0353] The non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

[0354] The embodiment of the present disclosure further provides a second mobile device, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to perform the following steps:

[0355] When the second mobile device in the charging mode has established a wired connection with the first mobile device in the power supply mode, monitoring a first handshake signal sent by the first mobile device;

[0356] In response to receiving the first handshake signal sent by the first mobile device, sending a second handshake signal to the first mobile device;

[0357] The first mobile device is used to transmit power to the second mobile device in response to receiving the second handshake signal, so as to charge the second mobile device.

[0358] See also Fig.13 , Fig.13 1 is a schematic diagram of a second mobile device according to an exemplary embodiment of the present disclosure. For example, the second mobile device 1300 may be a user device, which may specifically be a mobile phone, a computer, a digital broadcast terminal, a message transceiver device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, a wearable device such as a smart watch, a smart glasses, a smart bracelet, a smart running shoe, etc.

[0359] Reference Fig.13 The second mobile device 1300 may include one or more of the following components: a processing component 1302 , a memory 1304 , a power component 1306 , a multimedia component 1308 , an audio component 1310 , an input / output (I / O) interface 1312 , a sensor component 1314 , and a communication component 1316 .

[0360] The processing component 1302 generally controls the overall operation of the second mobile device 1300, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1302 may include one or more processors 1320 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 1302 may include one or more modules to facilitate the interaction between the processing component 1302 and other components. For example, the processing component 1302 may include a multimedia module to facilitate the interaction between the multimedia component 1308 and the processing component 1302.

[0361] The memory 1304 is configured to store various types of data to support operations on the second mobile device 1300. Examples of such data include instructions for any application or method operating on the second mobile device 1300, contact data, phone book data, messages, pictures, videos, etc. The memory 1304 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.

[0362] The power component 1306 provides power to various components of the second mobile device 1300. The power component 1306 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the second mobile device 1300.

[0363] The multimedia component 1308 includes a screen that provides an output interface between the second mobile device 1300 and the user. 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 signals from the user. 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 the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1308 includes a front camera and / or a rear camera. When the second mobile device 1300 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0364] The audio component 1310 is configured to output and / or input audio signals. For example, the audio component 1310 includes a microphone (MIC), and when the second mobile device 1300 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1304 or sent via the communication component 1316. In some embodiments, the audio component 1310 also includes a speaker for outputting audio signals.

[0365] I / O interface 1312 provides an interface between processing component 1302 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0366] The sensor assembly 1314 includes one or more sensors for providing various aspects of status assessment for the second mobile device 1300. For example, the sensor assembly 1314 can detect the open / closed state of the second mobile device 1300, the relative positioning of components, such as the display and keypad of the second mobile device 1300, the sensor assembly 1314 can also detect the position change of the second mobile device 1300 or a component of the second mobile device 1300, the presence or absence of user contact with the second mobile device 1300, the orientation or acceleration / deceleration of the second mobile device 1300, and the temperature change of the second mobile device 1300. The sensor assembly 1314 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1314 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1314 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0367] The communication component 1316 is configured to facilitate wired or wireless communication between the second mobile device 1300 and other devices. The second mobile device 1300 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G LTE, 5GNR or a combination thereof. In an exemplary embodiment, the communication component 1316 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the above-mentioned communication component 1316 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.

[0368] In an exemplary embodiment, the second mobile device 1300 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 to perform the above method.

[0369] In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided, such as a memory 1304 including instructions, which, when executed by a processor 1320 of a second mobile device 1300, enables the second mobile device 1300 to perform a charging method, the method comprising:

[0370] When the second mobile device in the charging mode has established a wired connection with the first mobile device in the power supply mode, monitoring a first handshake signal sent by the first mobile device;

[0371] In response to receiving the first handshake signal sent by the first mobile device, sending a second handshake signal to the first mobile device;

[0372] The first mobile device is used to transmit power to the second mobile device in response to receiving the second handshake signal, so as to charge the second mobile device.

[0373] The non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

[0374] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure 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.

[0375] 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. A charging method, It is characterized in that The method comprises: In response to the first mobile device operating in a power supply mode, sending a first handshake signal to a second mobile device, wherein the first mobile device and the second mobile device are connected by a wire; In response to receiving the first handshake response signal sent by the second mobile device, the second mobile device is charged using the first protocol.

2. The method according to claim 1, It is characterized in that The method further comprises: Acquire the working mode of the first mobile device; According to the working mode of the first mobile equipment, the first mobile equipment is controlled to work in a power supply mode.

3. The method according to claim 2, It is characterized in that The working mode is a charging mode, and controlling the first mobile device to work in a power supply mode according to the working mode of the first mobile device includes: In response to the first operation, the working mode of the first mobile device is controlled to switch from the charging mode to the power supply mode.

4. The method according to claim 3, It is characterized in that In response to the first operation, controlling the working mode of the first mobile device to switch from the charging mode to the power supply mode includes: displaying a mode switching prompt interface, and in response to the first operation acting on the mode switching prompt interface, controlling the working mode of the first mobile device to switch from a charging mode to a power supply mode; or; In response to the first operation acting on the mode switching control, the working mode of the first mobile device is controlled to switch from the charging mode to the power supply mode.

5. The method according to claim 1, It is characterized in that In response to the first mobile device operating in the power supply mode, sending a first handshake signal to the second mobile device includes: In response to the first mobile device operating in the power supply mode, a first handshake signal is sent to the second mobile device through the first protocol.

6. The method according to claim 1, It is characterized in that In response to receiving the first handshake response signal sent by the second mobile device, charging the second mobile device through the first protocol includes: In response to receiving a first handshake response signal sent by the second mobile device, controlling a first pin of the first mobile device to power on; In response to the first pin being powered on, communicating with the second mobile device through the first protocol, and charging the second mobile device through the first protocol.

7. The method according to claim 1 or 6, It is characterized in that The method further comprises: In response to the first mobile device and the second mobile device being disconnected, a first pin of the first mobile device is controlled to be powered off.

8. The method according to claim 1, It is characterized in that The method further comprises: In response to the first mobile device exiting the power supply mode, controlling the first pin of the first mobile device to power off.

9. The method according to claim 1, It is characterized in that The method further comprises: In response to not receiving the first handshake response signal sent by the second mobile device within a first preset time period, charging the second mobile device through a second protocol.

10. The method according to claim 1, It is characterized in that The method further comprises: In response to not receiving the first handshake response signal sent by the second mobile device within a second preset time period, sending the first handshake signal to the second mobile device once every third preset time period until a preset condition is met; The preset condition includes at least one of the following: The total duration of sending the first handshake signal reaches a fourth preset duration; The first mobile device switches from the power supply mode back to the charging mode; A handshake response signal replied by the second mobile equipment is received.

11. The method according to claim 1, It is characterized in that The method further comprises: In response to the first mobile device operating in the power supply mode, Type-C communication is turned off.

12. The method according to claim 11, It is characterized in that The method further comprises: In response to not receiving the first handshake response signal sent by the second mobile equipment within a sixth preset time period, starting the Type-C communication.

13. The method according to claim 1, It is characterized in that The method further comprises at least one of the following: In response to the first mobile device and the second mobile device being disconnected, controlling the first mobile device to switch from a power supply mode to a charging mode; In response to the first mobile device and the second mobile device being disconnected, and the first mobile device not establishing a connection with other devices within a fifth preset time period, controlling the first mobile device to switch from a power supply mode to a charging mode; In response to the second operation, the first mobile device is controlled to switch from the power supply mode to the charging mode.

14. The method according to claim 13, It is characterized in that The second operation includes at least one of the following: A mode switching instruction is received; detecting that the first mobile device is operating in a charging state; It is detected that a first pin of the first mobile device is powered on by another device.

15. The method according to claim 1, It is characterized in that The method further comprises: In response to the first mobile device operating in a charging mode, monitoring a second handshake signal sent by the second mobile device, wherein the first mobile device and the second mobile device are connected by a wire; In response to the second handshake signal, sending a second handshake response signal to the second mobile device, wherein the second handshake response signal is used to indicate that the first mobile device supports the first protocol; In response to the first mobile device and the second mobile device establishing a connection through the first protocol, the power transmitted by the second mobile device is received for charging.

16. The method according to claim 15, It is characterized in that The first mobile device is provided with a receiving detection circuit; In response to the first mobile device operating in the charging mode, monitoring the second handshake signal sent by the second mobile device includes: In response to the first mobile device operating in a charging mode, the receiving detection circuit monitors a second handshake signal sent by the second mobile device.

17. A charging method, It is characterized in that The method comprises: In response to the second mobile device operating in a charging mode, receiving a first handshake signal sent by a first mobile device, wherein the first mobile device and the second mobile device are connected by a wire; In response to the first handshake signal, sending a first handshake response signal to the first mobile device based on a first protocol; In response to the first mobile device and the second mobile device establishing a connection through the first protocol, power transmitted by the first mobile device is received for charging.

18. The method according to claim 17, It is characterized in that The method further comprises: Acquire the working mode of the second mobile device; According to the working mode of the second mobile equipment, the second mobile equipment is controlled to work in a charging mode.

19. The method according to claim 18, It is characterized in that The working mode is a power supply mode, and controlling the second mobile device to work in a charging mode according to the working mode of the second mobile device includes: In response to the third operation, the working mode of the second mobile device is controlled to switch from the power supply mode to the charging mode.

20. The method according to claim 17, It is characterized in that In response to the first mobile device and the second mobile device establishing a connection through the first protocol, receiving power transmitted by the first mobile device for charging, comprises: In response to the second pin of the second mobile device being powered on, communicating with the first mobile device via the first protocol; In response to the first mobile device and the second mobile device establishing a connection through the first protocol, power transmitted by the first mobile device is received for charging.

21. The charging method according to claim 17, It is characterized in that In response to the first handshake signal, sending a first handshake response signal to the first mobile device based on a first protocol includes: In response to the first handshake signal, a first handshake response signal is sent to the first mobile device within a seventh preset time period based on a first protocol.

22. The method according to claim 17, It is characterized in that The second mobile device is provided with a receiving detection circuit; The step of receiving a first handshake signal sent by the first mobile device in response to the second mobile device operating in the charging mode includes: In response to the second mobile device operating in the charging mode, the receiving detection circuit monitors a first handshake signal sent by the first mobile device.

23. The charging method according to claim 17, It is characterized in that The method further comprises: In response to the second mobile device operating in the power supply mode, sending a second handshake signal to the first mobile device, wherein the first mobile device and the second mobile device are connected by wire; In response to receiving the second handshake response signal sent by the first mobile device, the first mobile device is charged using a first protocol.

24. A charging device, It is characterized in that The device comprises: a sending module, configured to send a first handshake signal to a second mobile device in response to the first mobile device operating in a power supply mode, wherein the first mobile device and the second mobile device are connected by a wire; The charging module is configured to charge the second mobile device through a first protocol in response to receiving a first handshake response signal sent by the second mobile device.

25. A charging device, It is characterized in that The device comprises: a receiving module, configured to receive a first handshake signal sent by a first mobile device in response to the second mobile device operating in a charging mode, wherein the first mobile device and the second mobile device are connected by a wire; A sending module, configured to send a first handshake response signal to the first mobile device based on a first protocol in response to the first handshake signal; The receiving module is further configured to receive power transmitted by the first mobile device for charging in response to the first mobile device and the second mobile device establishing a connection through the first protocol.

26. A first mobile device, It is characterized in that include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: In response to the first mobile device operating in a power supply mode, sending a first handshake signal to a second mobile device, wherein the first mobile device and the second mobile device are connected by a wire; In response to receiving the first handshake response signal sent by the second mobile device, the second mobile device is charged using the first protocol.

27. A second mobile device, It is characterized in that include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: In response to the second mobile device operating in a charging mode, receiving a first handshake signal sent by a first mobile device, wherein the first mobile device and the second mobile device are connected by a wire; In response to the first handshake signal, sending a first handshake response signal to the first mobile device based on a first protocol; In response to the first mobile device and the second mobile device establishing a connection through the first protocol, power transmitted by the first mobile device is received for charging.

28. A non-transitory computer-readable storage medium having stored thereon a computer program, It is characterized in that When the program is executed by a processor, the charging method described in any one of claims 1 to 16 or 17 to 23 is implemented.

Citation Information

Patent Citations

  • Mobile phone emergency charging method and mobile phones

    CN103873683A

  • Terminal and charging method between terminals

    CN108964187A

  • Charging method, related device and charging system

    CN113572239A

  • Charging method and device and electronic equipment

    CN115986887A

  • Bi-directional power transfer

    US20170060207A1