Charging prompting method and device, electronic equipment and storage medium

By detecting the protocol type supported by the charging adapter and displaying the target charging power, the problem of protocol mismatch between the charging device and the charging adapter is solved, improving charging efficiency and user experience.

CN118554560APending Publication Date: 2024-08-27BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310208174.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-27
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

When the charging protocols supported by the charging device and the charging adapter are different, the charging efficiency is low, affecting the charging effect, and it is difficult for users to identify the target charging power of the adapter, resulting in frequent charging mismatches.

Method used

By detecting multiple protocol types supported by the charging adapter, the target protocol type is determined, and the target charging power is displayed on the charging interface, prompting the user to select a suitable charging adapter to improve charging efficiency.

Benefits of technology

It effectively reduces the mismatch between charging equipment and charging adapter protocols, improves charging efficiency, and improves user experience and customer satisfaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118554560A
    Figure CN118554560A
Patent Text Reader

Abstract

The invention provides a charging prompting method and device, electronic equipment and a storage medium, and the method comprises the steps: determining the target charging power suitable for a charging adapter according to the target protocol type suitable for the charging adapter, and displaying the target charging power suitable for the charging adapter on a charging interface. After the target charging power of the charging adapter is determined, the target charging power is displayed on the charging interface, so that a user is reminded of the target charging power of the charging adapter which is being used, and the user can conveniently distinguish whether the target charging power of the charging adapter conforms to the expectation or not; therefore, the situation that the electronic equipment is not matched with the charging adapter protocol is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the continuous development of battery charging technology, charging technology is being updated faster and faster. When the charging protocol supported by the charged electronic device and the charging adapter is the same, the charging efficiency is the highest.

[0003] However, in actual use, the charging protocols supported by the electronic device being charged and the charging adapter are often different. In this case, the charging efficiency of the electronic device will be relatively low, affecting the charging effect. Summary of the invention

[0004] A first aspect of the present invention is to provide a charging reminder method.

[0005] A second aspect of the present invention is to provide a charging reminder device.

[0006] A third aspect of the present invention is to provide an electronic device.

[0007] A fourth aspect of the present invention is to provide a non-transitory computer-readable storage medium storing computer instructions.

[0008] A fifth aspect of the present invention is to provide a computer program product.

[0009] The first embodiment of the present invention provides a charging reminder method, comprising:

[0010] Determining a target charging power applicable to the charging adapter according to a target protocol type applicable to the charging adapter;

[0011] The target charging power applicable to the charging adapter is displayed on the charging interface.

[0012] In some possible implementations, determining a target charging power applicable to the charging adapter according to a target protocol type applicable to the charging adapter includes:

[0013] According to the order of the multiple protocol types, sequentially detecting whether the charging adapter supports at least one of the protocol types;

[0014] The target charging power applicable to the charging adapter is determined according to the charging power supported by the target protocol type, wherein the target protocol type is the protocol type ranked last among the protocol types supported by the charging adapter.

[0015] In some possible implementations, determining the target charging power applicable to the charging adapter according to the charging power supported by the target protocol type includes:

[0016] In the case where the target protocol supports multiple charging powers, the charging power that matches the output voltage of the output power line of the charging adapter among the multiple charging powers supported by the target protocol is used as the target charging power.

[0017] In some possible implementations, determining the target charging power applicable to the charging adapter according to the charging power supported by the target protocol type includes:

[0018] When the target protocol supports only one type of charging power, the charging power supported by the target protocol is used as the target charging power.

[0019] In some possible implementations, sequentially detecting whether the charging adapter supports each protocol type according to the order of the multiple protocol types includes:

[0020] Applying a first voltage to the positive signal data line connected to the charging adapter;

[0021] When the positive signal data line is loaded with the first voltage, detecting whether the voltage of the negative signal data line connected to the charging adapter is a set second voltage;

[0022] If the voltage of the negative signal data line is not the set second voltage, it is determined that the charging adapter supports the SDP protocol.

[0023] In some possible implementations, after detecting whether the voltage of the negative signal data line connected to the charging adapter is a set second voltage when the positive signal data line is loaded with the first voltage, the method further includes:

[0024] If the voltage of the negative signal data line is the set second voltage, the voltage of the positive signal data line is adjusted to a logic high level;

[0025] In the case where the positive signal data line is loaded with the logic high level, detecting whether the voltage of the negative signal data line is the logic high level;

[0026] When the voltage of the negative signal data line is at the logic high level, determining that the charging adapter supports the DCP protocol;

[0027] When the voltage of the negative signal data line is not at the logic high level, it is determined that the charging adapter supports the CDP protocol.

[0028] In some possible implementations, sequentially detecting whether the charging adapter supports each protocol type according to the order of the multiple protocol types includes:

[0029] When it is determined that the charging adapter supports the CDP protocol, applying the first voltage to the positive signal data line of the charging adapter;

[0030] When the positive signal data line is loaded with a first voltage and maintained for a target time, detecting the voltage of the negative signal data line;

[0031] When a voltage drop of the negative signal data line is detected, determining that the charging adapter supports the QC2.0 protocol;

[0032] When it is detected that the voltage of the negative signal data line does not drop, it is determined that the charging adapter does not support the QC2.0 protocol.

[0033] In some possible implementations, sequentially detecting whether the charging adapter supports each protocol type according to the order of the multiple protocol types includes:

[0034] On the basis of determining that the charging adapter supports the QC2.0 protocol, applying a voltage regulation pulse to a positive signal data line and / or a negative signal data line connected to the charging adapter;

[0035] When it is detected that the output voltage of the output power line of the charging adapter matches the voltage regulation pulse, determining that the charging adapter supports the QC3.0 protocol;

[0036] When it is detected that the output voltage of the output power line of the charging adapter does not match the voltage regulation pulse, it is determined that the charging adapter does not support the QC3.0 protocol.

[0037] In some possible implementations, sequentially detecting whether the charging adapter supports each protocol type according to the order of the multiple protocol types includes:

[0038] Based on determining that the charging adapter supports the QC3.0 protocol, sending a handshake signal to the charging adapter device through the positive signal data line and / or the negative signal data line of the charging adapter;

[0039] In the case of monitoring that the handshake with the charging adapter device is successful, determining that the charging adapter supports the QC3.5 protocol;

[0040] When a handshake failure with the charging adapter is detected, it is determined that the charging adapter does not support the QC3.5 protocol.

[0041] In some possible implementations, displaying the target charging power applicable to the charging adapter on the charging interface includes:

[0042] Whenever a protocol type supported by the charging adapter is detected, the corresponding charging power is updated and displayed on the charging interface according to the most recently detected protocol type supported by the charging adapter, until the target protocol type ranked last among the protocol types supported by the charging adapter is detected, and the corresponding target charging power is updated and displayed on the charging interface.

[0043] In some possible implementations, displaying the target charging power applicable to the charging adapter on the charging interface includes:

[0044] When it is detected that the charging adapter supports the target protocol type ranked last among the protocol types, the corresponding target charging power is displayed on the charging interface.

[0045] To achieve the above-mentioned purpose, a second embodiment of the present invention provides a charging reminder device, comprising:

[0046] A determination module, used to determine a target charging power applicable to the charging adapter according to a target protocol type applicable to the charging adapter;

[0047] The display module is used to display the target charging power applicable to the charging adapter on the charging interface.

[0048] To achieve the above object, a third aspect of the present invention provides an electronic device, including:

[0049] at least one processor; and

[0050] a memory communicatively connected to the at least one processor; wherein,

[0051] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the method described in the embodiment of the first aspect.

[0052] In order to achieve the above-mentioned purpose, the fourth aspect of the present invention proposes a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method described in the first aspect.

[0053] In order to achieve the above-mentioned purpose, a fifth aspect of the present invention provides a computer program product, including a computer program, which implements the method described in the first aspect when executed by a processor.

[0054] The embodiments of the present invention provide a charging reminder method, device, electronic device and storage medium, which determine the target charging power applicable to the charging adapter according to the target protocol type applicable to the charging adapter, and display the target charging power applicable to the charging adapter on the charging interface. After determining the target charging power of the charging adapter, it is displayed on the charging interface, thereby prompting the user to the target charging power of the charging adapter being used, making it convenient for the user to identify whether the target charging power of the charging adapter is consistent with expectations, thereby reducing the occurrence of mismatches between the electronic device and the charging adapter protocol.

[0055] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0057] Figure 1 A schematic diagram of a charging reminder method provided by an embodiment of the present invention;

[0058] Figure 2 A schematic diagram of a flow chart of another charging reminder method provided by an embodiment of the present invention;

[0059] Figure 3 A possible display diagram is shown;

[0060] Figure 4 A possible detection flow chart is shown below;

[0061] Figure 5 A schematic diagram of the structure of a charging reminder device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0062] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0063] If the charging protocols supported by the electronic device being charged and the charging adapter are different, the charging efficiency will be relatively low, affecting the charging effect. However, in actual use, users often do not pay attention to the difference between the charging protocols supported by the electronic device and the charging adapter, resulting in the possibility that the charging protocols supported by the electronic device being charged and the charging adapter are different.

[0064] When users perceive that the charging efficiency is low, more complaints will be made and customer satisfaction will decrease.

[0065] In order to avoid such complaints and decreased satisfaction, the embodiments of the present disclosure provide a charging reminder, device, electronic device and storage medium for displaying the target charging power applicable to the charging adapter during the charging process, so as to prompt the user to select a suitable charging adapter to increase the charging power.

[0066] The following describes a charging reminder, a device, an electronic device, and a storage medium according to embodiments of the present invention with reference to the accompanying drawings.

[0067] Figure 1 The flowchart of a charging reminder method provided by an embodiment of the present invention is shown in FIG. The method provided by this embodiment can be executed by the electronic device being charged. After the electronic device detects that it is electrically connected to the charging adapter, it can start to execute the method provided by this embodiment.

[0068] Among them, electronic equipment refers to equipment composed of electronic components such as integrated circuits, transistors, and electron tubes. Electronic equipment may include mobile phones. Among them, mobile phones may also be called terminal equipment (terminal), user equipment (userequipment, UE), mobile station (mobile station, MS), mobile terminal equipment (mobile terminal, MT), etc. Electronic equipment may also be vehicle-mounted equipment with communication functions, wearable devices, tablet computers (Pad), computers with wireless transceiver functions, virtual reality (virtual reality, VR) terminal equipment, augmented reality (augmented reality, AR) terminal equipment, wireless terminal equipment in industrial control (industrial control), wireless terminal equipment in self-driving, wireless terminal equipment in remote medical surgery, wireless terminal equipment in smart grid (smart grid), wireless terminal equipment in transportation safety (transportation safety), wireless terminal equipment in smart city (smart city), wireless terminal equipment in smart home (smart home), etc. The embodiments of the present application do not limit the specific technology and specific equipment form adopted by the electronic equipment.

[0069] like Figure 1 As shown, the charging reminder method may include the following steps:

[0070] Step 101: Determine a target charging power applicable to the charging adapter according to a target protocol type applicable to the charging adapter.

[0071] The target protocol type may be a protocol type applicable to the charging adapter during the charging process of the electronic device executing the method.

[0072] The target charging power may be a maximum charging power or an average power applicable to the charging adapter during the charging process of the electronic device executing the method.

[0073] It should be noted that, in order to extend the life of the charged battery, the electrical parameters are usually regulated during the charging process, that is, the electrical parameters may change during the charging process. Therefore, the charging power applicable to the charging adapter during the charging process of the electronic device executing this method varies within a certain range. For simplicity, the maximum charging power or average power can be taken, that is, the target charging power can be the maximum charging power or average power applicable during the charging process of the electronic device executing this method.

[0074] In one possible scenario, the charging adapter may support multiple protocol types, that is, the charging adapter has multiple protocol types built in. Based on this, the target protocol type is the protocol type applicable to the charging adapter in the process of charging the electronic device executing this method among the multiple protocol types supported. The protocol types supported by the charging adapter can be detected sequentially according to the sorting of the multiple protocol types. The protocol type ranked last among the supported protocol types is used as the target protocol type, that is, the protocol type actually adopted by the electronic device executing this method during this charging process. Among them, the sorting of the multiple protocol types can be sorted according to the possibility of execution, and / or, sorted according to the order of protocol updates. In some possible implementations, it is not necessary to detect all the multiple protocol types. After the detection of the top-ranked protocol types is completed, it can be determined whether to perform subsequent protocol detection based on the detection results.

[0075] In another possible scenario, the charging adapter can support only one protocol type, that is, the charging adapter has one protocol type built in. Based on this, the target protocol type is a supported protocol type, and is also the protocol type applicable to the charging adapter during the charging process of the electronic device executing the method.

[0076] Step 102: Display the target charging power applicable to the charging adapter on the charging interface.

[0077] Optionally, when the electronic device detects that it is connected to a charging adapter, it can display a charging interface in the form of a pop-up window. The charging interface will display a charging icon and charging-related prompt information. In this embodiment, the prompt information displayed on the charging interface includes the target charging power mentioned above. By displaying the target charging power on the charging interface, the user can know the maximum charging power or average charging power applicable to the charging adapter in the process of charging the electronic device executing this method. Avoid the decrease in charging efficiency due to the user using an inappropriate charging adapter for charging.

[0078] As a possible implementation method, when there are multiple protocol types that need to be detected, each time a protocol type supported by the charging adapter is detected, the corresponding charging power is updated and displayed on the charging interface based on the most recently detected protocol type supported by the charging adapter, until the target protocol type ranked last among the protocol types supported by the charging adapter is detected, and the corresponding target charging power is updated and displayed on the charging interface.

[0079] As another possible implementation, when there are multiple protocol types to be detected, the corresponding target charging power is displayed on the charging interface only when the last target protocol type in the protocol types supported by the charging adapter is detected.

[0080] Furthermore, in some possible scenarios, the prompt information displayed in the charging interface may also include the charging progress. By displaying the charging progress in the charging interface, the user can estimate the amount of electricity that has been charged in the battery of the electronic device. And / or,

[0081] As a possible implementation, the charging icon displayed in the charging interface can be adjusted accordingly according to the target protocol type mentioned above. Pre-configure icons corresponding to different protocol types. According to the above determination of the target protocol type, select the icon corresponding to the target protocol type from the pre-configured icons and display it in the charging interface.

[0082] In this embodiment, the target charging power applicable to the charging adapter is determined according to the target protocol type applicable to the charging adapter, and the target charging power applicable to the charging adapter is displayed on the charging interface. After the target charging power of the charging adapter is determined, it is displayed on the charging interface, thereby prompting the user to the target charging power of the charging adapter being used, making it convenient for the user to identify whether the target charging power of the charging adapter is consistent with expectations, thereby reducing the occurrence of mismatches between the electronic device and the charging adapter protocol.

[0083] For example, when a brand A mobile phone uses a brand A charger, if the brand A charger supports a private fast charging protocol, the brand A mobile phone can be charged through the private fast charging protocol and display the corresponding charging power. When a brand A mobile phone uses a brand B charger, and the brand B charger does not support the brand A mobile phone's private fast charging protocol, the brand A mobile phone can determine the public charging protocol applicable to the brand B charger through the method of the embodiment of the present disclosure, so as to charge through the public charging protocol and display the charging power.

[0084] This embodiment provides another charging reminder method. Figure 2 This is a flow chart of another charging reminder method provided by an embodiment of the present invention. The method provided by this embodiment can be executed by the electronic device being charged. After the electronic device detects that it is electrically connected to the charging adapter, it can start to execute the method provided by this embodiment.

[0085] like Figure 2 As shown, the charging reminder method may include the following steps:

[0086] Step 201 , sequentially detecting whether the charging adapter supports at least one protocol type according to a preset order of multiple protocol types.

[0087] The multiple protocol types may include one or more of the following:

[0088] Standard Downstream Port (SDP);

[0089] Dedicated Charging Port (DCP);

[0090] Charging Downstream Port (CDP);

[0091] As well as QC2.0, QC3.0 and QC3.5.

[0092] Optionally, the order of multiple protocol types can be: SDP, CDP, DCP, QC2.0, QC3.0, QC3.5. That is, first detect whether the charging adapter supports SDP, and then further detect whether the charging adapter supports CDP and DCP. Further, detect whether the charging adapter supports the QC protocol, from QC2.0 to QC3.5 in sequence. It can be understood that according to the above order, the public charging protocol supported by the charging adapter can be quickly confirmed, thereby completing the protocol identification and charging faster. Of course, the present disclosure does not limit the order of the protocols.

[0093] It should be noted that the preset multiple protocol types are protocol types supported by the electronic device being charged, that is, multiple protocol types built into the electronic device.

[0094] In some scenarios, when the preset multiple protocol types also include the PPS protocol, the PPS protocol can be sorted before the SDP or at any position after the SDP, which is not limited in this embodiment.

[0095] Step 202: Determine the target charging power applicable to the charging adapter according to the charging power supported by the target protocol type, wherein the target protocol type is the last protocol type in the protocol types supported by the charging adapter.

[0096] Optionally, the protocol types supported by the charging adapter can be detected sequentially according to the order of the multiple protocol types. The protocol type ranked last among the supported protocol types is used as the target protocol type, that is, the protocol type actually adopted by the electronic device executing this method during the current charging process. Among them, the order of the multiple protocol types can be sorted according to the possibility of execution, and / or, according to the order of protocol updates. In some possible implementations, it is not necessary to detect all the multiple protocol types. After the detection of the top-ranked protocol types is completed, it can be determined whether to perform subsequent protocol detection based on the detection results.

[0097] Among them, the update and replacement order of the aforementioned protocol types, that is, the research and development time is arranged from early to late as follows: SDP, CDP, DCP, QC2.0, QC3.0, QC3.5.

[0098] Optionally, when the target protocol supports multiple charging powers, the charging power that matches the output voltage of the output power line of the charging adapter among the maximum charging powers supported by the target protocol is used as the target charging power. When the target protocol supports only one charging power, the charging power supported by the target protocol is used as the target charging power.

[0099] It should be noted that there are three possible charging schemes in the QC3.5 protocol, and each scheme corresponds to a different upper limit of charging power. The multiple charging powers supported by the target protocol mentioned in this embodiment refer to the upper limit of charging power corresponding to each scheme. Similarly, a charging power supported by the target protocol is a charging power upper limit supported by the target protocol.

[0100] In a possible scenario, the target protocol type is the QC3.5 protocol, and the QC3.5 protocol supports at least three charging powers, for example, 18 W, 27 W, and 40 W. The target charging power can be determined according to the output voltage of the output power line of the charging adapter.

[0101] For example, an output voltage of 7V means that the target charging power of the charging adapter can be 18W, an output voltage of 8V means that the charging power of the charging adapter can be 27W, and an output voltage of 9V means that the charging power of the charging adapter can be 40W.

[0102] In another possible scenario, the target protocol type is one of SDP, CDP, DCP, QC2.0 and QC3.0. Since the maximum charging power supported by the target protocol in this scenario is only one, the maximum charging power supported by the target protocol is used as the target charging power.

[0103] For example, if the target protocol type is SDP, the corresponding target charging power is 2.5W;

[0104] The target protocol type is CDP, and the corresponding target charging power is 5W;

[0105] The target protocol type is DCP, and the corresponding target charging power is 10W;

[0106] The target protocol type is QC2.0, and the corresponding target charging power is 18W;

[0107] The target protocol type is QC3.0, and the corresponding target charging power is 27W.

[0108] Step 203: Display the target charging power applicable to the charging adapter on the charging interface.

[0109] It should be noted that after receiving the output voltage of the output power line of the charging adapter, the electronic device based on the QC3.5 protocol needs to send pulses through the positive signal data line and the negative signal data line in sequence as feedback. At, before or after the feedback, the electronic device can display the target charging power applicable to the charging adapter on the charging interface.

[0110] Figure 3 A possible display diagram is shown in FIG. Figure 3 As shown, the charging progress is displayed on the charging interface, and the target charging power is displayed below the charging progress.

[0111] In this embodiment, in order to illustrate the step of detecting the protocol type supported by the charging adapter, that is, step 201, a possible detection process is also provided, including:

[0112] First, check whether the charging adapter supports SDP, CDP and DCP.

[0113] Optionally, Figure 4 A possible detection flow chart is shown in Figure 4 As shown, the following steps are included:

[0114] Step S1, applying a first voltage (eg, 0.6V) to a positive signal data line (D+) connected to a charging adapter.

[0115] Step S2, when the positive signal data line is loaded with the first voltage, detecting whether the voltage of the negative signal data line (D-) connected to the charging adapter is a set second voltage (eg, 0.6V).

[0116] Step S3: If the voltage of the negative signal data line is not the set second voltage, it is determined that the charging adapter supports the SDP protocol.

[0117] If the voltage of the negative signal data line is the set second voltage, it is necessary to further detect whether the charging adapter supports CDP and DCP, that is, to execute step S4:

[0118] Step S4, raising the voltage of the positive signal data line to a logic high level.

[0119] Step S5, when the positive signal data line is loaded with a logic high level, detecting whether the voltage of the negative signal data line is a logic high level.

[0120] Step S6: when the voltage of the negative signal data line is at the logic high level, determining that the charging adapter supports the DCP protocol.

[0121] Step S7: when the voltage of the negative signal data line is not at the logic high level, determining that the charging adapter supports the CDP protocol.

[0122] Then, check whether the charging adapter supports the QC protocol, and check in order from QC2.0 to QC3.5.

[0123] Optionally, a first voltage is applied to the positive signal data line connected to the charging adapter. After the positive signal data line is loaded with the first voltage (e.g., 0.6V) and maintained for a target duration (e.g., 1s), the voltage of the negative signal data line is detected. When the voltage of the negative signal data line is detected to drop (e.g., from 0.6V to 0), it is determined that the charging adapter supports the QC2.0 protocol. Otherwise, subsequent testing is stopped to determine that the charging adapter does not support the QC protocol.

[0124] On the basis of determining that the charging adapter supports the QC2.0 protocol, a voltage regulation pulse is applied to the positive signal data line and / or the negative signal data line connected to the charging adapter. When it is detected that the output voltage of the output power line of the charging adapter matches the voltage regulation pulse, it is determined that the charging adapter supports the QC3.0 protocol. Otherwise, the subsequent test is stopped to determine that the charging adapter supports QC2.0 but does not support subsequent QC protocols.

[0125] On the basis of determining that the charging adapter supports the QC3.0 protocol, the charging adapter shakes hands with the charging adapter based on the QC3.5 protocol and sends a handshake signal. In the case of monitoring that the handshake with the charging adapter is successful, it is determined that the charging adapter supports the QC3.5 protocol. In the case of monitoring that the handshake with the charging adapter fails, stop subsequent testing and determine that the charging adapter supports QC3.0 but does not support subsequent QC protocols.

[0126] In this embodiment, the target charging power applicable to the charging adapter is determined according to the target protocol type applicable to the charging adapter, and the target charging power applicable to the charging adapter is displayed on the charging interface. After the target charging power of the charging adapter is determined, it is displayed on the charging interface, thereby prompting the user to the target charging power of the charging adapter being used, making it convenient for the user to identify whether the target charging power of the charging adapter is consistent with expectations, thereby reducing the occurrence of mismatches between the electronic device and the charging adapter protocol.

[0127] In order to implement the above embodiment, the present invention also provides a charging reminder device.

[0128] Figure 5 A schematic diagram of the structure of a charging reminder device provided by an embodiment of the present invention.

[0129] like Figure 5 As shown, the charging reminder device includes: a determination module 51 and a display module 52.

[0130] The determination module 51 is used to determine a target charging power applicable to the charging adapter according to a target protocol type applicable to the charging adapter.

[0131] The display module 52 is used to display the target charging power applicable to the charging adapter on the charging interface.

[0132] As a possible implementation method, when there are multiple protocol types that need to be detected, the display module 52 updates and displays the corresponding charging power on the charging interface each time a protocol type supported by the charging adapter is detected based on the most recently detected protocol type supported by the charging adapter, until the target protocol type ranked last among the protocol types supported by the charging adapter is detected, and the corresponding target charging power is updated and displayed on the charging interface.

[0133] As another possible implementation, when there are multiple protocol types to be detected, the display module 52 displays the corresponding target charging power on the charging interface only when the last target protocol type in the protocol types supported by the charging adapter is detected.

[0134] Furthermore, in a possible implementation of the embodiment of the present invention, the determining module 51 includes:

[0135] The detection unit is used to detect whether the charging adapter supports at least one of the protocol types according to the order of the multiple protocol types.

[0136] A determination unit is used to determine the target charging power applicable to the charging adapter according to the charging power supported by the target protocol type, wherein the target protocol type is the protocol type ranked last among the protocol types supported by the charging adapter.

[0137] Furthermore, in a possible implementation, a unit is determined to:

[0138] In the case where the target protocol supports multiple charging powers, the charging power that matches the output voltage of the output power line of the charging adapter among the multiple charging powers supported by the target protocol is used as the target charging power.

[0139] It should be noted that there are three possible charging schemes in the QC3.5 protocol, and each scheme corresponds to a different upper limit of charging power. The multiple charging powers supported by the target protocol mentioned in this embodiment refer to the upper limit of charging power corresponding to each scheme.

[0140] Furthermore, in another possible implementation, a unit is determined to:

[0141] When the target protocol supports only one type of charging power, the charging power supported by the target protocol is used as the target charging power.

[0142] Optionally, the detection unit is specifically used to: load a first voltage to the positive signal data line connected to the charging adapter; when the first voltage is loaded on the positive signal data line, detect whether the voltage of the negative signal data line connected to the charging adapter is a set second voltage; if the voltage of the negative signal data line is not the set second voltage, determine that the charging adapter supports the SDP protocol. If the voltage of the negative signal data line is the set second voltage, adjust the voltage of the positive signal data line to a logic high level; when the logic high level is loaded on the positive signal data line, detect whether the voltage of the negative signal data line is the logic high level; when the voltage of the negative signal data line is the logic high level, determine that the charging adapter supports the DCP protocol; when the voltage of the negative signal data line is not the logic high level, determine that the charging adapter supports the CDP protocol.

[0143] Optionally, the detection unit is specifically used to: when it is determined that the charging adapter supports the CDP protocol, load the first voltage to the positive signal data line of the charging adapter; when the first voltage is loaded on the positive signal data line and maintained for a target time, detect the voltage of the negative signal data line; when it is detected that the voltage of the negative signal data line drops, determine that the charging adapter supports the QC2.0 protocol; when it is detected that the voltage of the negative signal data line does not drop, determine that the charging adapter does not support the QC2.0 protocol.

[0144] Optionally, the detection unit is specifically used to: on the basis of determining that the charging adapter supports the QC2.0 protocol, load a voltage regulation pulse to the positive signal data line and / or the negative signal data line connected to the charging adapter; when it is detected that the output voltage of the output power line of the charging adapter matches the voltage regulation pulse, determine that the charging adapter supports the QC3.0 protocol; when it is detected that the output voltage of the output power line of the charging adapter does not match the voltage regulation pulse, determine that the charging adapter does not support the QC3.0 protocol.

[0145] Optionally, the detection unit is specifically used to: on the basis of determining that the charging adapter supports the QC3.0 protocol, send a handshake signal to the charging adapter device through the positive signal data line and / or the negative signal data line of the charging adapter; when monitoring that the handshake with the charging adapter device is successful, determine that the charging adapter supports the QC3.5 protocol; when monitoring that the handshake with the charging adapter device fails, determine that the charging adapter does not support the QC3.5 protocol.

[0146] In this embodiment, the target charging power applicable to the charging adapter is determined according to the target protocol type applicable to the charging adapter, and the target charging power applicable to the charging adapter is displayed on the charging interface. After the target charging power of the charging adapter is determined, it is displayed on the charging interface, thereby prompting the user to the target charging power of the charging adapter being used, making it convenient for the user to identify whether the target charging power of the charging adapter is consistent with expectations, thereby reducing the occurrence of mismatches between the electronic device and the charging adapter protocol.

[0147] It should be noted that the above explanation of the method embodiment is also applicable to the device of this embodiment, and will not be repeated here.

[0148] In order to implement the above embodiment, the present invention further provides an electronic device, including:

[0149] at least one processor; and

[0150] a memory communicatively connected to the at least one processor; wherein,

[0151] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the aforementioned method.

[0152] In order to implement the above embodiment, the present invention further proposes a non-transitory computer-readable storage medium storing computer instructions, where the computer instructions are used to enable a computer to execute the above method.

[0153] In order to implement the above embodiments, the present invention further provides a computer program product, and when the computer program is executed by a processor, the above methods are implemented.

[0154] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0155] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0156] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.

[0157] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0158] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0159] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0160] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0161] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.

Claims

1. A charging reminder method, It is characterized in that include: Determining a target charging power applicable to the charging adapter according to a target protocol type applicable to the charging adapter; The target charging power applicable to the charging adapter is displayed on the charging interface.

2. The method according to claim 1, It is characterized in that The determining, according to the target protocol type applicable to the charging adapter, a target charging power applicable to the charging adapter includes: According to the order of the multiple protocol types, detecting whether the charging adapter supports at least one of the protocol types; The target charging power applicable to the charging adapter is determined according to the charging power supported by the target protocol type, wherein the target protocol type is the protocol type ranked last among the protocol types supported by the charging adapter.

3. The method according to claim 2, It is characterized in that The determining, according to the charging power supported by the target protocol type, the target charging power applicable to the charging adapter includes: In the case where the target protocol supports multiple charging powers, the charging power that matches the output voltage of the output power line of the charging adapter among the multiple charging powers supported by the target protocol is used as the target charging power.

4. The method according to claim 2, It is characterized in that The determining, according to the charging power supported by the target protocol type, the target charging power applicable to the charging adapter includes: When the target protocol supports only one type of charging power, the charging power supported by the target protocol is used as the target charging power.

5. The method according to claim 2, It is characterized in that The step of sequentially detecting whether the charging adapter supports each of the protocol types according to the order of the multiple protocol types includes: Applying a first voltage to a positive signal data line connected to the charging adapter; When the positive signal data line is loaded with the first voltage, detecting whether the voltage of the negative signal data line connected to the charging adapter is a set second voltage; If the voltage of the negative signal data line is not the set second voltage, it is determined that the charging adapter supports the SDP protocol.

6. The method according to claim 5, It is characterized in that After detecting whether the voltage of the negative signal data line connected to the charging adapter is a set second voltage when the positive signal data line is loaded with the first voltage, the method further includes: If the voltage of the negative signal data line is the set second voltage, the voltage of the positive signal data line is adjusted to a logic high level; In the case where the positive signal data line is loaded with the logic high level, detecting whether the voltage of the negative signal data line is the logic high level; When the voltage of the negative signal data line is at the logic high level, determining that the charging adapter supports the DCP protocol; When the voltage of the negative signal data line is not at the logic high level, it is determined that the charging adapter supports the CDP protocol.

7. The method according to claim 2, It is characterized in that The step of sequentially detecting whether the charging adapter supports each of the protocol types according to the order of the multiple protocol types includes: When it is determined that the charging adapter supports the CDP protocol, applying the first voltage to the positive signal data line of the charging adapter; When the positive signal data line is loaded with a first voltage and maintained for a target time, detecting the voltage of the negative signal data line; When a voltage drop of the negative signal data line is detected, determining that the charging adapter supports the QC2.0 protocol; When it is detected that the voltage of the negative signal data line does not drop, it is determined that the charging adapter does not support the QC2.0 protocol.

8. The method according to claim 2, It is characterized in that The step of sequentially detecting whether the charging adapter supports each of the protocol types according to the order of the multiple protocol types includes: On the basis of determining that the charging adapter supports the QC2.0 protocol, applying a voltage regulation pulse to a positive signal data line and / or a negative signal data line connected to the charging adapter; When it is detected that the output voltage of the output power line of the charging adapter matches the voltage regulation pulse, determining that the charging adapter supports the QC3.0 protocol; When it is detected that the output voltage of the output power line of the charging adapter does not match the voltage regulation pulse, it is determined that the charging adapter does not support the QC3.0 protocol.

9. The method according to claim 2, It is characterized in that The step of sequentially detecting whether the charging adapter supports each of the protocol types according to the order of the multiple protocol types includes: Based on determining that the charging adapter supports the QC3.0 protocol, sending a handshake signal to the charging adapter device through the positive signal data line and / or the negative signal data line of the charging adapter; In the case of monitoring that the handshake with the charging adapter device is successful, determining that the charging adapter supports the QC3.5 protocol; When a handshake failure with the charging adapter is detected, it is determined that the charging adapter does not support the QC3.5 protocol.

10. The method according to any one of claims 1 to 9, It is characterized in that The displaying of the target charging power applicable to the charging adapter on the charging interface includes: Whenever a protocol type supported by the charging adapter is detected, the corresponding charging power is updated and displayed on the charging interface according to the most recently detected protocol type supported by the charging adapter, until the target protocol type ranked last among the protocol types supported by the charging adapter is detected, and the corresponding target charging power is updated and displayed on the charging interface.

11. The method according to any one of claims 1 to 9, It is characterized in that The displaying of the target charging power applicable to the charging adapter on the charging interface includes: When it is detected that the charging adapter supports the target protocol type ranked last among the protocol types, the corresponding target charging power is displayed on the charging interface.

12. A charging reminder device, It is characterized in that The device comprises: A determination module, used to determine a target charging power applicable to the charging adapter according to a target protocol type applicable to the charging adapter; The display module is used to display the target charging power applicable to the charging adapter on the charging interface.

13. An electronic device, It is characterized in that at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 11.

14. A non-transitory computer-readable storage medium storing computer instructions, It is characterized in that The computer instructions are used to make a computer execute the method according to any one of claims 1 to 11.