CN110556884B - Charging management method, device, medium and electronic equipment applying method - Google Patents

Charging management method, device, medium and electronic equipment applying method Download PDF

Info

Publication number
CN110556884B
CN110556884B CN201810558787.1A CN201810558787A CN110556884B CN 110556884 B CN110556884 B CN 110556884B CN 201810558787 A CN201810558787 A CN 201810558787A CN 110556884 B CN110556884 B CN 110556884B
Authority
CN
China
Prior art keywords
port
charging
charger
type
pin
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810558787.1A
Other languages
Chinese (zh)
Other versions
CN110556884A (en
Inventor
李路路
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810558787.1A priority Critical patent/CN110556884B/en
Publication of CN110556884A publication Critical patent/CN110556884A/en
Application granted granted Critical
Publication of CN110556884B publication Critical patent/CN110556884B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

According to the charging management method, the charging management device, the charging management medium and the electronic equipment applying the charging management method, when the condition that the charger is connected with the electronic equipment is checked, the type of the port of the charger connected with the electronic equipment is judged, the judgment result is generated, charging information is generated according to the judgment result in the charging process, the charging information is stored, and when the charging information needs to be output, the charging information is output by the electronic equipment, so that a user and a maintenance worker know the charging history when the charging fault occurs to accurately analyze the charging fault.

Description

Charging management method, device, medium and electronic equipment applying method
Technical Field
The present application relates to the field of electronic device technologies, and in particular, to a charging management method, apparatus, medium, and electronic device using the method.
Background
Mobile intelligent electronic devices such as smart phones and tablet computers have become indispensable tools for our daily life, charging electronic devices is an indispensable link for ensuring the operation of electronic devices, however, the matching relationship of electronic devices is not one-to-one, users can adopt a plurality of chargers to charge electronic devices, but although charging can be completed by different chargers, the influence and damage caused to electronic devices when different chargers are used for charging electronic devices are different, therefore, how to let users and maintenance personnel know the charging history to accurately analyze charging faults when charging faults occur to electronic devices is a problem to be solved urgently at present.
Disclosure of Invention
The embodiment of the application provides a charging management method, a charging management device, a charging management medium and electronic equipment applying the method, so that when the charging fault occurs to the electronic equipment, a user and a maintenance worker can know the charging history to accurately analyze the charging fault.
A charge management method for an electronic device, comprising:
judging the type of a port of a charger connected to the electronic equipment, and generating a judgment result;
generating charging information according to the judgment result;
storing the charging information; and
and outputting the charging information.
A charge management device, comprising:
the judging type module is used for judging the type of a port of a charger connected to the electronic equipment and generating a judging result;
the generating module is used for generating charging information according to the judgment result;
the storage module is used for storing the charging information;
and the output module is used for outputting the charging information.
An electronic device, comprising:
a memory, the processor to store instructions and data; and
the processor is used for executing the charging management method.
A medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform a charging management method according to embodiments of the present application.
According to the charging management method, the charging management device, the charging management medium and the electronic equipment applying the charging management method, when the condition that the charger is connected with the electronic equipment is checked, the type of the port of the charger connected with the electronic equipment is judged, the judgment result is generated, charging information is generated according to the judgment result in the charging process, the charging information is stored, and when the charging information needs to be output, the charging information is output by the electronic equipment, so that a user and a maintenance worker know the charging history when the charging fault occurs to accurately analyze the charging fault.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a usage state diagram of an electronic device according to an embodiment of the present application.
Fig. 2 is a schematic flowchart of a charging management method according to an embodiment of the present disclosure.
Fig. 3 is another schematic flow chart of a charging management method according to an embodiment of the present disclosure.
Fig. 4 is a schematic structural diagram of a charging management device according to an embodiment of the present disclosure.
Fig. 5 is a state diagram of the charge management device shown in fig. 4.
Fig. 6 is a schematic structural diagram of another charging management device according to an embodiment of the present application.
Fig. 7 is a state diagram of the charge management device shown in fig. 6.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 9 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
DETAILED DESCRIPTION OF EMBODIMENT (S) OF INVENTION
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present application, it is to be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," and the like are used in the orientations and positional relationships indicated in the drawings for convenience in describing the present application and for simplicity in description, and are not intended to indicate or imply that the referenced devices or elements must have a particular orientation, be constructed in a particular orientation, and be operated in a particular manner, and are not to be construed as limiting the present application. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In the description of the present application, it is to be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; may be mechanically connected, may be electrically connected or may be in communication with each other; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
In this application, unless expressly stated or limited otherwise, the first feature "on" or "under" the second feature may comprise direct contact of the first and second features, or may comprise contact of the first and second features not directly but through another feature in between. Also, the first feature being "on," "above" and "over" the second feature includes the first feature being directly on and obliquely above the second feature, or merely indicating that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature includes the first feature being directly under and obliquely below the second feature, or simply meaning that the first feature is at a lesser elevation than the second feature.
The following disclosure provides many different embodiments, or examples, for implementing different features of the application. In order to simplify the disclosure of the present application, specific example components and arrangements are described below. Of course, they are merely examples and are not intended to limit the present application. Moreover, the present application may repeat reference numerals and/or letters in the various examples, which have been repeated for purposes of simplicity and clarity and do not in themselves dictate a relationship between the various embodiments and/or arrangements discussed. In addition, examples of various specific processes and materials are provided herein, but one of ordinary skill in the art may recognize applications of other processes and/or use of other materials.
Referring to the drawings, wherein like reference numbers refer to like elements throughout, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
While the principles of the application have been described in the foregoing text, it is not meant to be limiting and those of skill in the art will appreciate that various steps and operations described below may be implemented in hardware. The principles of the present application may be employed in numerous other general-purpose or special-purpose computing, communication environments or configurations.
The charging management method provided by the application is mainly applied to electronic equipment, such as: the mobile terminal comprises intelligent mobile electronic equipment such as a bracelet, a smart phone, a tablet computer based on an apple system or an android system, or a notebook computer based on a Windows or Linux system.
Referring to fig. 1, fig. 1 is a usage state diagram of an electronic device according to an embodiment of the present disclosure.
The electronic device 300 applying the charging management method is mainly used for: the type of the port of the charger connected to the electronic device 300 is judged, a judgment result is generated, charging information is generated according to the judgment result, the charging information is stored, and the charging information is output, so that a user and a maintenance worker can know the charging history when the electronic device 300 has a charging fault to accurately analyze the charging fault.
Referring to fig. 2, fig. 2 is a schematic flow chart of a charging management method according to an embodiment of the present disclosure.
The charging management method provided by the embodiment of the application is applied to the electronic equipment, and the specific process can be as follows:
101: and judging the type of a port of a charger connected to the electronic equipment to generate a judgment result.
The charger comprises a USB connector, wherein the USB connector comprises a voltage pin (VBUS pin), a grounding pin (GND pin), a data pin USB _ D + (D + pin) and a data pin USB _ D- (D-pin). When the charger is connected to the electronic device 300, the VBSU pin, the GND pin, the D + pin, and the D-pin are coupled to a connection terminal of a USB interface of the electronic device 300, so as to charge the electronic device 300.
The types of ports of the charger include a non-Standard Charging Port, a Standard Downstream Port (SDP), a Dedicated Charging Port (Dedicated Charging Port), and a Charging Downstream Port (CDP).
And the D + pin and the D-pin of the non-standard charging port are arranged in a suspended mode. And the D + pin and the D-pin of the standard downlink port are both arranged in a grounding mode. And the D + pin and the D-pin of the special charging port are both short-circuited and are not grounded. And the D-pin of the charging downlink port is arranged in a suspended mode, and the D + pin is arranged in a grounded mode.
The judgment result is that the type of the port of the charger is a non-standard charging port, the type of the port of the charger is a standard downlink port, the type of the port of the charger is a special charging port or the type of the port of the charger is a charging downlink port.
102: and generating charging information according to the judgment result.
Wherein the charging information includes the determination result. The judgment result is that the type of the port of the charger is a non-standard charging port, the type of the port of the charger is a standard downlink port, the type of the port of the charger is a special charging port or the type of the port of the charger is a charging downlink port.
103: and storing the charging information.
The charging information is stored, so that when the charging fault occurs in the electronic device 300, a user and a maintenance person can know the charging history to accurately analyze the charging fault.
104: and outputting the charging information.
When the charging fault occurs to the electronic device 300, the charging information may be output by operating on the electronic device 300, the charging information may be displayed on the screen of the electronic device 300, or sent to other devices by using wireless communication, or the charging information may be output by operating on the electronic device 300 or other devices by connecting the electronic device 300 with other devices, and the charging information may be displayed on the screen of the electronic device 300 or the screens of other devices.
Referring to fig. 3, fig. 3 is another schematic flow chart of a charging management method according to an embodiment of the present disclosure.
The type of the port of the charger connected to the electronic device 300 is determined, a determination result is generated, charging information is generated according to the determination result, and the charging information is stored and output as described above, which is not described herein again.
Before the determining the type of the port of the charger connected to the electronic device 300 and generating the determination result, the method may include:
101 a: and judging whether the electronic equipment 300 is connected with a charger.
When the electronic device 300 is connected to a charger, the determining of the type of the port of the charger connected to the electronic device 300 is performed, and a determination result is generated; when the electronic device 300 is not connected to a charger, the determination of whether the electronic device 300 is connected to the charger is repeatedly performed.
The determining the type of the port of the charger connected to the electronic device 300 and generating the determination result may include:
1011: and judging whether the type of the port of the charger is a non-standard charger port.
In the step of judging whether the type of the port of the charger is a non-standard charger port, because the D + pin and the D-pin of the non-standard charging port are both arranged in a suspended mode and the D-pin has no pull-down resistor, the voltage of the D-pin is 3.6 volts and is far greater than the reference voltage by 0.4 volts. Therefore, whether the type of the port of the charger is a non-standard charger port can be obtained by judging the voltage of the D-pin, wherein when the voltage of the D-pin is greater than the reference voltage by 0.4V, the type of the port of the charger is the non-standard charger port; when the voltage of the D-pin is greater than the reference voltage by 0.4 volts, the type of port of the charger is not a non-standard charger port.
And when the type of the port of the charger is a non-standard charger port, the judgment result is that the type of the port of the charger is the non-standard charger port, and the charging information is generated according to the judgment result. And when the type of the port of the charger is not a non-standard charger port, judging whether the type of the port of the charger is a standard downlink port or not.
1012: and judging whether the type of the port of the charger is a standard downlink port or not.
In the step of judging whether the type of the port of the charger is a standard downlink port, because the D + pin and the D-pin are both grounded, the pull-up power supply VDP _ SRC of the D + pin and the pull-down power supply IDM _ SINK of the D-pin are turned on, and the voltage of the D-pin is less than the reference voltage by 0.4 v. Therefore, whether the type of the port of the charger is a standard downlink port or not can be obtained by judging the voltage of the D-pin when the pull-up power supply VDP _ SRC of the D + pin is turned on and the pull-down power supply IDM _ SINK of the D-pin is turned on, wherein when the voltage of the D-pin is less than the reference voltage 0.4V, the type of the port of the charger is the standard downlink port; when the voltage of the D-pin is greater than the reference voltage by 0.4V, the type of the port of the charger is not a standard downstream port.
And when the type of the port of the charger is a standard downlink port, the judgment result shows that the type of the port of the charger is the standard downlink port, and the charging information is generated according to the judgment result. And when the type of the port of the charger is not the standard downlink port, judging whether the type of the port of the charger is a special charging port or a charging downlink port.
1013: and judging whether the type of the port of the charger is a special charging port or a charging downlink port.
In the step of judging whether the type of the port of the charger is a special charging port or a charging downlink port, both a D + pin and a D-pin of the special charging port are short-circuited and are not grounded. The D-pin of the charging downlink port is arranged in a suspended mode, and the D + pin is arranged in a grounded mode, so that a pull-down power supply IDP _ SINK of the D + pin is turned on, a pull-up power supply VDM _ SRC of the D-pin is turned on, and when the voltage of the D-pin is larger than the reference voltage by 0.4V, the type of the port of the charger is a special charging port; when the voltage of the D-pin is less than the reference voltage by 0.4V, the type of the port of the charger is a charging downstream port. Therefore, when a pull-down power supply IDP _ SINK of a D + pin is turned on and a pull-up power supply VDM _ SRC of a D-pin is turned on, the type of the port of the charger is judged to be a special charging port or a charging downlink port by judging the voltage of the D-pin, wherein when the voltage of the D-pin is greater than the reference voltage by 0.4V, the type of the port of the charger is the special charging port; when the voltage of the D-pin is less than the reference voltage by 0.4V, the type of the port of the charger is a charging downstream port.
And when the type of the port of the charger is a special charging port, determining that the type of the port of the charger is the special charging port according to the determination result, and executing the generation of the charging information according to the determination result. And when the type of the port of the charger is a charging downlink port, the judgment result shows that the type of the port of the charger is the charging downlink port, and the charging information is generated according to the judgment result.
The method further includes the steps of, between the judging the type of the port of the charger connected to the electronic device 300, generating a judgment result and generating charging information according to the judgment result:
102 a: and acquiring charging additional information, wherein the charging additional information comprises a charging current value acquired according to a preset time interval.
And the charging information is generated according to the judgment result, namely the charging information is generated according to the judgment result and the charging additional information.
And the charging current value acquired according to the preset time interval is the current value of the VBUS pin acquired according to the preset time interval. The preset time interval may be 0.25 seconds, 0.5 seconds, 1 second, 2 seconds, 10 seconds, etc.
The charging additional information may further include a charging start time. The charging start time is the time when the charger is connected to the electronic device 300.
The charging additional information may further include a charging suspension time. The charge suspension time is a time when the charger is detached from the electronic device 300.
The charging additional information may further include a total charging time period. The total charging time period is a time period from when the charger is connected to the electronic device 300 until the charger is detached from the electronic device 300.
The charging additional information may further include a temperature value of the charging chip acquired according to a preset time interval. The charging current value obtained according to the preset time interval is the current value of the VBUS pin collected according to the preset time interval. The temperature value of the charging chip obtained according to the preset time interval is the temperature value of the charging chip collected by the temperature sensor 307 according to the preset time interval. The preset time interval may be 0.25 seconds, 0.5 seconds, 1 second, 2 seconds, 10 seconds, etc.
Between storing the charging information and outputting the charging information, further comprising:
104 a: and judging whether an output instruction is received or not.
And if an output instruction is received, executing the charging information output, and if the output instruction is not received, continuing to execute the charging information generated according to the judgment result.
The output instruction may be an output instruction issued by operating the electronic device 300 or operating another device connected to the electronic device 300.
According to the charging management method provided by the embodiment of the application, when the charger is checked to be connected with the electronic equipment, the type of the port of the charger connected with the electronic equipment is judged, a judgment result is generated, in the charging process, charging information is generated according to the judgment result, the charging information is stored, and when the charging information needs to be output, the charging information is output by the electronic equipment, so that a user and a maintenance worker can know the charging history when the charging fault occurs to accurately analyze the charging fault.
Referring to fig. 4-5, fig. 4 is a schematic structural diagram of a charging management device according to an embodiment of the present disclosure, and fig. 5 is a usage state diagram of the charging management device shown in fig. 4.
The charging management device 200 includes a determination type module 201, a generation module 202, a storage module 203, and an output module 204.
The type determining module 201 is configured to determine a type of a port of a charger connected to the electronic device 300, and generate a determination result.
The charger comprises a USB connector, wherein the USB connector comprises a voltage pin (VBUS pin), a grounding pin (GND pin), a data pin USB _ D + (D + pin) and a data pin USB _ D- (D-pin). When the charger is connected to the electronic device 300, the VBSU pin, the GND pin, the D + pin, and the D-pin are coupled to a connection terminal of a USB interface of the electronic device 300, so as to charge the electronic device 300. The charger charges the electronic device 300 through the charging module 205 of the electronic device 300.
The types of ports of the charger include a non-Standard Charging Port, a Standard Downstream Port (SDP), a Dedicated Charging Port (Dedicated Charging Port), and a Charging Downstream Port (CDP).
And the D + pin and the D-pin of the non-standard charging port are arranged in a suspended mode. And the D + pin and the D-pin of the standard downlink port are both arranged in a grounding mode. And the D + pin and the D-pin of the special charging port are both short-circuited and are not grounded. And the D-pin of the charging downlink port is arranged in a suspended mode, and the D + pin is arranged in a grounded mode.
The judgment result is that the type of the port of the charger is a non-standard charging port, the type of the port of the charger is a standard downlink port, the type of the port of the charger is a special charging port or the type of the port of the charger is a charging downlink port.
The generating module 202 is configured to generate charging information according to the determination result.
Wherein the charging information includes the determination result. The judgment result is that the type of the port of the charger is a non-standard charging port, the type of the port of the charger is a standard downlink port, the type of the port of the charger is a special charging port or the type of the port of the charger is a charging downlink port.
The storage module 203 is configured to store the charging information.
The charging information is stored, so that when the charging fault occurs in the electronic device 300, a user and a maintenance person can know the charging history to accurately analyze the charging fault.
The output module 204 is configured to output the charging information.
When the charging fault occurs to the electronic device 300, the charging information may be output by operating on the electronic device 300, the charging information may be displayed on the screen of the electronic device 300, or sent to other devices by using wireless communication, or the charging information may be output by operating on the electronic device 300 or other devices by connecting the electronic device 300 with other devices, and the charging information may be displayed on the screen of the electronic device 300 or the screens of other devices.
Please refer to fig. 6-7. Fig. 6 is a schematic structural diagram of another charging management device according to an embodiment of the present application. Fig. 7 is a state diagram of the charge management device shown in fig. 6.
The type determining module 201, the generating module 202, the storing module 203 and the outputting module 204 are as described above, and are not described herein again.
The charging management device 200 further includes a determination connection module 201 a. The connection judging module 201a is configured to judge whether the electronic device 300 is connected to a charger before the judgment result is generated according to the type of the port of the charger connected to the electronic device 300. When the electronic device 300 is connected to a charger, the determining of the type of the port of the charger connected to the electronic device 300 is performed to generate a determination result, and when the electronic device 300 is not connected to the charger, the determining of whether the electronic device 300 is connected to the charger is repeatedly performed.
The type judging module 201 includes a first judging unit 2011, a second judging unit 2012 and a third judging unit 2013.
The first determining unit 2011 is configured to determine whether the type of the port of the charger is a non-standard charger port.
In the step of judging whether the type of the port of the charger is a non-standard charger port, because the D + pin and the D-pin of the non-standard charging port are both arranged in a suspended mode and the D-pin has no pull-down resistor, the voltage of the D-pin is 3.6 volts and is far greater than the reference voltage by 0.4 volts. Therefore, whether the type of the port of the charger is a non-standard charger port can be obtained by judging the voltage of the D-pin, wherein when the voltage of the D-pin is greater than the reference voltage by 0.4V, the type of the port of the charger is the non-standard charger port; when the voltage of the D-pin is greater than the reference voltage by 0.4 volts, the type of port of the charger is not a non-standard charger port.
And when the type of the port of the charger is a non-standard charger port, the judgment result is that the type of the port of the charger is the non-standard charger port, and the charging information is generated according to the judgment result. And when the type of the port of the charger is not a non-standard charger port, judging whether the type of the port of the charger is a standard downlink port or not.
The second determining unit 2012 is configured to determine whether the type of the port of the charger is a standard downlink port.
In the step of judging whether the type of the port of the charger is a standard downlink port, because the D + pin and the D-pin are both grounded, the pull-up power supply VDP _ SRC of the D + pin and the pull-down power supply IDM _ SINK of the D-pin are turned on, and the voltage of the D-pin is less than the reference voltage by 0.4 v. Therefore, whether the type of the port of the charger is a standard downlink port or not can be obtained by judging the voltage of the D-pin when the pull-up power supply VDP _ SRC of the D + pin is turned on and the pull-down power supply IDM _ SINK of the D-pin is turned on, wherein when the voltage of the D-pin is less than the reference voltage 0.4V, the type of the port of the charger is the standard downlink port; when the voltage of the D-pin is greater than the reference voltage by 0.4V, the type of the port of the charger is not a standard downstream port.
And when the type of the port of the charger is a standard downlink port, the judgment result shows that the type of the port of the charger is the standard downlink port, and the charging information is generated according to the judgment result. And when the type of the port of the charger is not the standard downlink port, judging whether the type of the port of the charger is a special charging port or a charging downlink port.
The third determining unit 2013 is configured to determine whether the type of the port of the charger is a dedicated charging port or a charging downlink port.
In the step of judging whether the type of the port of the charger is a special charging port or a charging downlink port, both a D + pin and a D-pin of the special charging port are short-circuited and are not grounded. The D-pin of the charging downlink port is arranged in a suspended mode, and the D + pin is arranged in a grounded mode, so that a pull-down power supply IDP _ SINK of the D + pin is turned on, a pull-up power supply VDM _ SRC of the D-pin is turned on, and when the voltage of the D-pin is larger than the reference voltage by 0.4V, the type of the port of the charger is a special charging port; when the voltage of the D-pin is less than the reference voltage by 0.4V, the type of the port of the charger is a charging downstream port. Therefore, when a pull-down power supply IDP _ SINK of a D + pin is turned on and a pull-up power supply VDM _ SRC of a D-pin is turned on, the type of the port of the charger is judged to be a special charging port or a charging downlink port by judging the voltage of the D-pin, wherein when the voltage of the D-pin is greater than the reference voltage by 0.4V, the type of the port of the charger is the special charging port; when the voltage of the D-pin is less than the reference voltage by 0.4V, the type of the port of the charger is a charging downstream port.
And when the type of the port of the charger is a special charging port, determining that the type of the port of the charger is the special charging port according to the determination result, and executing the generation of the charging information according to the determination result. And when the type of the port of the charger is a charging downlink port, the judgment result shows that the type of the port of the charger is the charging downlink port, and the charging information is generated according to the judgment result.
The charging management device 200 further includes an acquisition module 202 a. The collecting module 202a is configured to collect charging additional information between the determination of the type of the port of the charger connected to the electronic device 300, the generation of the determination result, and the generation of charging information according to the determination result. And obtaining the charging current value according to a preset time interval.
And the charging information is generated according to the judgment result, namely the charging information is generated according to the judgment result and the charging additional information.
And the charging current value acquired according to the preset time interval is the current value of the VBUS pin acquired according to the preset time interval. The preset time interval may be 0.25 seconds, 0.5 seconds, 1 second, 2 seconds, 10 seconds, etc.
The charging additional information may further include a charging start time. The charging start time is the time when the charger is connected to the electronic device 300.
The charging additional information may further include a charging suspension time. The charge suspension time is a time when the charger is detached from the electronic device 300.
The charging additional information may further include a total charging time period. The total charging time period is a time period from when the charger is connected to the electronic device 300 until the charger is detached from the electronic device 300.
The charging additional information may further include a temperature value of the charging chip acquired according to a preset time interval. The charging current value obtained according to the preset time interval is the current value of the VBUS pin collected according to the preset time interval. The temperature value of the charging chip obtained according to the preset time interval is the temperature value of the charging chip collected by the temperature sensor 307 according to the preset time interval. The preset time interval may be 0.25 seconds, 0.5 seconds, 1 second, 2 seconds, 10 seconds, etc.
The charging management device 200 further includes a determination output module 204 a. The judgment output module 204a is configured to judge whether an output instruction is received between the storing of the charging information and the outputting of the charging information.
And if an output instruction is received, executing the charging information output, and if the output instruction is not received, continuing to execute the charging information generated according to the judgment result.
The output instruction may be an output instruction issued by operating the electronic device 300 or operating another device connected to the electronic device 300.
The charging management device that this application embodiment provided, when examining the charger and connecting electronic equipment, judge connect in the type of the port of electronic equipment's charger generates the judged result, in the charging process, according to the judged result generates the information of charging, stores the information of charging, when the information of charging is exported to needs, electronic equipment exports the information of charging to make user and maintenance personal know the history of charging with accurate analysis charging fault when electronic equipment appears charging fault.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
The electronic device 300 comprises a processor 301 and a memory 302.
The processor 301 is a control center of the electronic device 300, connects various parts of the whole electronic device 300 by using various interfaces and lines, performs various functions of the electronic device 300 and processes data by running or loading an application program stored in the memory 302, and calling data stored in the memory 302, thereby monitoring the electronic device 300 as a whole.
In this embodiment, the processor 301 in the electronic device 300 loads instructions corresponding to processes of one or more application programs into the memory 302 according to the following steps, and the processor 301 runs the application programs stored in the memory 302, thereby implementing various functions:
judging the type of a port of a charger connected to the electronic device 300, and generating a judgment result;
generating charging information according to the judgment result;
storing the charging information; and
and outputting the charging information.
In some embodiments, the processor 301 may further perform:
before the determining the type of the port of the charger connected to the electronic device 300 and generating the determination result, the method further includes: judging whether the electronic device 300 is connected with a charger, wherein when the electronic device 300 is connected with the charger, the judgment is performed to judge the type of a port of the charger connected with the electronic device 300, a judgment result is generated, and when the electronic device 300 is not connected with the charger, the judgment is repeatedly performed to judge whether the electronic device 300 is connected with the charger.
In some embodiments, the processor 301 may further perform:
the determining the type of the port of the charger connected to the electronic device 300, and generating the determination result includes:
judging whether the type of the port of the charger is a non-standard charger port;
judging whether the type of the port of the charger is a standard downlink port or not;
and judging whether the type of the port of the charger is a special charging port or a charging downlink port.
In some embodiments, the processor 301 may further perform:
in the step of judging whether the type of the port of the charger is a non-standard charger port or not, if so, judging that the type of the port of the charger is the non-standard charger port, and executing the step of generating charging information according to the judgment result; and if not, executing and judging whether the type of the port of the charger is a standard downlink port or not.
In some embodiments, the processor 301 may further perform:
in the step of judging whether the type of the port of the charger is a standard downlink port, if so, judging that the type of the port of the charger is the standard downlink port, and executing the step of generating charging information according to the judgment result; if not, judging whether the type of the port of the charger is a special charging port or a charging downlink port.
In some embodiments, the processor 301 may further perform:
in the judging whether the type of the port of the charger is a special charging port or a charging downlink port, if the type of the port of the charger is the special charging port, the judging result is that the type of the port of the charger is the special charging port, and the charging information is generated according to the judging result; and if the port is the charging downlink port, the judgment result shows that the type of the port of the charger is the charging downlink port, and the charging information is generated according to the judgment result.
In some embodiments, the processor 301 may further perform:
the method further includes the steps of, between the judging the type of the port of the charger connected to the electronic device 300, generating a judgment result and generating charging information according to the judgment result:
and acquiring charging additional information, wherein the charging additional information comprises a charging current value acquired according to a preset time interval.
In some embodiments, the processor 301 may further perform:
the step of generating charging information according to the judgment result is as follows: and generating charging information according to the judgment result and the charging additional information.
In some embodiments, the processor 301 may further perform:
between storing the charging information and outputting the charging information, further comprising: and judging whether an output instruction is received or not, if so, executing the output of the charging information, and if not, continuing to execute the generation of the charging information according to the judgment result.
The memory 302 may be used to store applications and data. The memory 302 stores programs containing instructions executable in the processor 301. The programs may constitute various functional modules. The processor 301 executes various functional applications and data processing by executing programs stored in the memory 302.
In some embodiments, as shown in fig. 9, the electronic device 300 further comprises: radio frequency circuit 303, control circuit 304, input unit 305, audio circuit 306, sensor 307, power supply 308, and display 309. The processor 301 is electrically connected to the rf circuit 303, the control circuit 304, the input unit 305, the audio circuit 306, the sensor 307, the power source 308, and the display 309, respectively.
The radio frequency circuit 303 is used for transceiving radio frequency signals to communicate with a server or other electronic devices 300 through a wireless communication network.
The control circuit 304 is electrically connected to the display screen 309, and is configured to control the display screen 309 to display information.
The input unit 305 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint), and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
Audio circuitry 306 may provide an audio interface between the user and the terminal through a speaker, microphone.
The sensor 307 is used to collect external environmental information. The sensors 307 may include one or more of temperature sensors 307, ambient light sensors 307, acceleration sensors 307, gyroscopes, etc. sensors 307. The temperature sensor 307 may be used to collect the temperature of the charging chip.
The power supply 308 is used to power the various components of the electronic device 300. In some embodiments, the power supply 308 may be logically coupled to the processor 301 through a power management system, such that functions to manage charging, discharging, and power consumption management are performed through the power management system.
The display screen 309 may also be used to display information input by or provided to the user as well as various graphical user interfaces of the terminal, which may be constituted by images, text, icons, video and any combination thereof.
Although not shown in fig. 9, the electronic device 300 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
The electronic equipment that this application embodiment provided, when checking the charger and connecting electronic equipment, judge connect in the type of electronic equipment's charger's port generates the judged result, in the charging process, according to the judged result generates the information of charging, stores the information of charging, when the information of charging is exported to needs, electronic equipment exports the information of charging to make user and maintenance personal know the history of charging with accurate analysis charging fault when electronic equipment charging fault appears.
The embodiment of the present invention further provides a medium, where multiple instructions are stored in the medium, and the instructions are suitable for being loaded by the processor 301 to perform the charging management method according to any of the above embodiments.
The charging management method, the charging management device, the charging management medium and the electronic equipment applying the charging management method provided by the embodiment of the invention belong to the same concept, and the specific implementation process is detailed in the whole specification and is not repeated herein.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: a Read Only Memory 302 (ROM), a Random Access Memory (RAM), a magnetic or optical disk, and the like.
The liquid feeding method for electronic equipment and the electronic equipment provided by the embodiment of the present application are described in detail above, and the principle and the embodiment of the present application are explained in detail herein by applying specific examples, and the description of the above embodiments is only used to help understanding the present application. Meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (13)

1. A charging management method for an electronic device, comprising:
judging the type of a port of a charger connected to the electronic equipment, and generating a judgment result, wherein the judgment result specifically comprises the following steps: obtaining whether the type of the port of the charger is a non-standard charger port or not by judging the voltage of the D-pin, wherein when the voltage of the D-pin is less than the reference voltage, the type of the port of the charger is the non-standard charger port; when the voltage of the D-pin is greater than the reference voltage, the type of the port of the charger is not a non-standard charger port; judging whether the type of a port of the charger is a standard downlink port or not by judging the voltage of a D-pin when a pull-up power supply VDP _ SRC of the D + pin is turned on and a pull-down power supply IDM _ SINK of the D-pin is turned on, wherein the type of the port of the charger is the standard downlink port when the voltage of the D-pin is less than a reference voltage; when the voltage of the D-pin is larger than the reference voltage, the type of the port of the charger is not a standard downlink port; when a pull-down power supply IDP _ SINK of a D + pin is turned on and a pull-up power supply VDM _ SRC of a D-pin is turned on, judging whether the type of a port of the charger is a special charging port or a charging downlink port according to the voltage of the D-pin, wherein when the voltage of the D-pin is greater than a reference voltage, the type of the port of the charger is the special charging port; when the voltage of the D-pin is less than the reference voltage, the type of the port of the charger is a charging downlink port;
acquiring charging additional information, wherein the charging additional information comprises a charging current value, a charging starting time, a charging stopping time, a charging total duration and a temperature value of a charging chip, which are acquired according to a preset time interval; the charging current value obtained according to the preset time interval is a current value of a VBUS pin collected according to the preset time interval;
generating charging information according to the judgment result and the charging additional information;
storing the charging information; and
and outputting the charging information.
2. The method for charge management according to claim 1, wherein before said determining a type of a port of a charger connected to the electronic device and generating a determination result, the method further comprises: and judging whether the electronic equipment is connected with a charger, wherein when the electronic equipment is connected with the charger, the judgment of the type of a port of the charger connected with the electronic equipment is executed, a judgment result is generated, and when the electronic equipment is not connected with the charger, the judgment of whether the electronic equipment is connected with the charger is repeatedly executed.
3. The charge management method according to claim 1, wherein the determining a type of a port of a charger connected to the electronic device, and the generating a determination result comprises:
judging whether the type of the port of the charger is a non-standard charger port;
judging whether the type of the port of the charger is a standard downlink port or not;
and judging whether the type of the port of the charger is a special charging port or a charging downlink port.
4. The charge management method according to claim 3, characterized in that: in the step of judging whether the type of the port of the charger is a non-standard charger port or not, if so, judging that the type of the port of the charger is the non-standard charger port, and generating charging information according to the judgment result and the charging additional information; and if not, executing and judging whether the type of the port of the charger is a standard downlink port or not.
5. The charge management method according to claim 4, characterized in that: in the step of judging whether the type of the port of the charger is a standard downlink port or not, if so, judging that the type of the port of the charger is the standard downlink port according to the judgment result, and generating charging information according to the judgment result and the charging additional information; if not, judging whether the type of the port of the charger is a special charging port or a charging downlink port.
6. The charge management method according to claim 5, characterized in that: in the judging whether the type of the port of the charger is a special charging port or a charging downlink port, if the type of the port of the charger is the special charging port, the judging result is that the type of the port of the charger is the special charging port, and charging information is generated according to the judging result and charging additional information; and if the type of the port of the charger is a charging downlink port, the judgment result shows that the type of the port of the charger is the charging downlink port, and charging information is generated according to the judgment result and the charging additional information.
7. The charge management method according to claim 1, characterized in that: between storing the charging information and outputting the charging information, further comprising: and judging whether an output instruction is received or not, if so, executing the output of the charging information, and if not, continuing to execute the generation of the charging information according to the judgment result and the charging additional information.
8. A charge management device, comprising:
the type judging module is used for judging the type of a port of a charger connected to the electronic equipment and generating a judgment result, and specifically comprises: obtaining whether the type of the port of the charger is a non-standard charger port or not by judging the voltage of the D-pin, wherein when the voltage of the D-pin is less than the reference voltage, the type of the port of the charger is the non-standard charger port; when the voltage of the D-pin is greater than the reference voltage, the type of the port of the charger is not a non-standard charger port; judging whether the type of a port of the charger is a standard downlink port or not by judging the voltage of a D-pin when a pull-up power supply VDP _ SRC of the D + pin is turned on and a pull-down power supply IDM _ SINK of the D-pin is turned on, wherein the type of the port of the charger is the standard downlink port when the voltage of the D-pin is less than a reference voltage; when the voltage of the D-pin is larger than the reference voltage, the type of the port of the charger is not a standard downlink port; when a pull-down power supply IDP _ SINK of a D + pin is turned on and a pull-up power supply VDM _ SRC of a D-pin is turned on, judging whether the type of a port of the charger is a special charging port or a charging downlink port according to the voltage of the D-pin, wherein when the voltage of the D-pin is greater than a reference voltage, the type of the port of the charger is the special charging port; when the voltage of the D-pin is less than the reference voltage, the type of the port of the charger is a charging downlink port;
the charging system comprises an acquisition module, a charging module and a charging module, wherein the acquisition module is used for acquiring charging additional information, and the charging additional information comprises a charging current value, a charging starting time, a charging stopping time, a charging total duration and a temperature value of a charging chip, which are acquired according to a preset time interval; the charging current value obtained according to the preset time interval is a current value of a VBUS pin collected according to the preset time interval;
the generating module is used for generating charging information according to the judgment result and the charging additional information; the storage module is used for storing the charging information;
and the output module is used for outputting the charging information.
9. The charge management device according to claim 8, wherein: the electronic equipment is connected with the charger, the judging and connecting module is used for judging whether the electronic equipment is connected with the charger or not before judging the type of the port of the charger connected with the electronic equipment and generating a judging result, when the electronic equipment is connected with the charger, the judging and connecting module is used for executing the judging and connecting the type of the port of the charger connected with the electronic equipment and generating a judging result, and when the electronic equipment is not connected with the charger, the judging and connecting module is used for repeatedly executing the judging whether the electronic equipment is connected with the charger or not.
10. The charging management device according to claim 8, wherein the judging type module comprises:
the first judgment unit is used for judging whether the type of the port of the charger is a nonstandard charger port;
a second judging unit, configured to judge whether a type of a port of the charger is a standard downlink port;
and the third judging unit is used for judging whether the type of the port of the charger is a special charging port or a charging downlink port.
11. The charge management device according to claim 8, wherein: the charging system further comprises a judging output module used for judging whether an output instruction is received between the storage of the charging information and the output of the charging information.
12. An electronic device, comprising:
a memory for storing instructions and data; and
a processor for performing the charge management method of any of claims 1 to 7.
13. A medium, characterized by: the medium has stored therein a plurality of instructions adapted to be loaded by a processor to perform the charge management method according to any one of claims 1 to 7.
CN201810558787.1A 2018-06-01 2018-06-01 Charging management method, device, medium and electronic equipment applying method Active CN110556884B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810558787.1A CN110556884B (en) 2018-06-01 2018-06-01 Charging management method, device, medium and electronic equipment applying method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810558787.1A CN110556884B (en) 2018-06-01 2018-06-01 Charging management method, device, medium and electronic equipment applying method

Publications (2)

Publication Number Publication Date
CN110556884A CN110556884A (en) 2019-12-10
CN110556884B true CN110556884B (en) 2021-07-20

Family

ID=68734792

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810558787.1A Active CN110556884B (en) 2018-06-01 2018-06-01 Charging management method, device, medium and electronic equipment applying method

Country Status (1)

Country Link
CN (1) CN110556884B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111510901B (en) * 2020-04-23 2024-01-12 北京基智科技有限公司 Power adjusting method, device, storage medium and terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106169781A (en) * 2015-05-20 2016-11-30 十熊企业(中国)有限公司 Charging controller, charging device and charging management method
ES2896245T3 (en) * 2016-01-05 2022-02-24 Guangdong Oppo Mobile Telecommunications Corp Ltd Fast charging method, mobile terminal and power adapter
CN106356918B (en) * 2016-08-30 2019-10-11 宇龙计算机通信科技(深圳)有限公司 A kind of quick charge recognition methods and terminal device
CN107508330A (en) * 2017-07-05 2017-12-22 深圳天珑无线科技有限公司 A kind of electronic installation and its charging method
CN107681727B (en) * 2017-10-24 2020-11-13 北京小米移动软件有限公司 Control method and device of electronic equipment
CN107742912A (en) * 2017-11-08 2018-02-27 深圳天珑无线科技有限公司 Charging method, fast fill device and computer-readable recording medium

Also Published As

Publication number Publication date
CN110556884A (en) 2019-12-10

Similar Documents

Publication Publication Date Title
EP3447632B1 (en) Electronic device for displaying application and operating method thereof
US20100109602A1 (en) Charging device and method of operating the same
KR102536266B1 (en) Method for memory leak detection and electronic device thereof
CN111239617B (en) Control method and device for charge and discharge test, storage medium and system
CN103364659A (en) Android system-based electronic equipment test system and method
CN109753425B (en) Popup window processing method and device
WO2019085749A1 (en) Application program control method and apparatus, medium, and electronic device
US20120143538A1 (en) Energy consumption detection system for electronic device
CN105607838A (en) Information processing method and device as well as electronic equipment
CN110556884B (en) Charging management method, device, medium and electronic equipment applying method
KR102408057B1 (en) Electronic device for measuring hydrature using a display and method for the same
CN112448423A (en) Charging method and device, electronic equipment and storage medium
CN106026232A (en) Detecting method and apparatus for USB port type
CN107544019B (en) Chip testing device and chip testing method
CN107343100B (en) Information prompting method and device, storage medium and electronic equipment
CN112418144A (en) Axle counting method and device, machine readable medium and equipment
CN109066870B (en) Charging management method, device, medium and electronic equipment applying method
CN110113484A (en) A kind of control method of screen power supplies, device, storage medium and electronic equipment
CN106201930B (en) A kind of device port determining device, terminal and method
CN106655339A (en) Mobile terminal charging management method and apparatus, and mobile terminal
CN107703140B (en) Liquid inlet detection method, device, medium and electronic equipment applying method
CN111626223A (en) Equipment state detection method and device, electronic equipment and medium
KR20210045768A (en) Electronic device including power management integrated circuit and method for recovering abnormal state of the electronic device
CN114461479A (en) Method and device for debugging multimedia processing chip, storage medium and electronic equipment
CN112213586B (en) Equipment state detection method, system, equipment and medium

Legal Events

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