CN105334420A - Information processing method and electronic device - Google Patents

Information processing method and electronic device Download PDF

Info

Publication number
CN105334420A
CN105334420A CN201410303020.6A CN201410303020A CN105334420A CN 105334420 A CN105334420 A CN 105334420A CN 201410303020 A CN201410303020 A CN 201410303020A CN 105334420 A CN105334420 A CN 105334420A
Authority
CN
China
Prior art keywords
electronic device
information
current value
electronic equipment
state
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.)
Granted
Application number
CN201410303020.6A
Other languages
Chinese (zh)
Other versions
CN105334420B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410303020.6A priority Critical patent/CN105334420B/en
Publication of CN105334420A publication Critical patent/CN105334420A/en
Application granted granted Critical
Publication of CN105334420B publication Critical patent/CN105334420B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The embodiment of the invention discloses an information processing method and an electronic device. The method comprises the following steps that: when it is detected that a first electronic device is in a first state, and first information is obtained, wherein the first state characterizes that the first electronic device is in a charging state, and the first information is used for characterizing the charging current value of the first electronic device; second information transmitted by a second electronic device is obtained, wherein the second information is used for characterizing the output current value of the second electronic device; whether the difference value of the output current value and the charging current value is larger than a first threshold value is judged, and a first judgment result is obtained; and when the first judgment result indicates that the difference value of the output current value and the charging current value is larger than the first threshold value, it is determined that the first electronic device is in a second state, wherein the second state characterizes that the first electronic device is in an abnormal charging state.

Description

Information processing method and electronic equipment
Technical Field
The present invention relates to information processing technologies, and in particular, to an information processing method and an electronic device.
Background
At present, the electronic device and the charger are connected through a charging wire to be charged. In the charging process, once the external part of the electronic device (such as a charging wire and a charging wire interface) is short-circuited for various reasons, the electronic device cannot detect the short-circuit, so that great harm is brought to the electronic device.
In the related art, no effective solution exists how to detect a short circuit condition outside the electronic device during the charging process of the electronic device.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide an information processing method and an electronic device, which can implement detection of an external short-circuit fault of the electronic device.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides an information processing method, which is applied to first electronic equipment, wherein the first electronic equipment can be communicated with second electronic equipment, and the first electronic equipment can be charged through the second electronic equipment; the method comprises the following steps:
when the first state is detected, first information is acquired; the first state characterizes the first electronic device as being in a charging state; the first information is used for representing the charging current value of the first electronic equipment;
acquiring second information sent by the second electronic device, wherein the second information is used for representing the output current value of the second electronic device;
judging whether the difference value of the output current value and the charging current value is larger than a first threshold value or not, and obtaining a first judgment result;
and when the first judgment result shows that the difference value between the output current value and the charging current value is greater than a first threshold value, determining that the first electronic equipment is in a second state, wherein the second state represents that the first electronic equipment is in an abnormal charging state.
The embodiment of the invention also provides an information processing method, which is applied to second electronic equipment, wherein the second electronic equipment can be communicated with the first electronic equipment, and the second electronic equipment can charge the first electronic equipment; the method comprises the following steps:
when the third state is detected, second information is obtained; the third state characterizes that the second electronic device is in a power supply state; the second information is used for representing the output current value of the second electronic equipment;
and sending the acquired second information to the first electronic equipment.
The embodiment of the invention also provides the electronic equipment, wherein the electronic equipment is first electronic equipment; the electronic device includes: the device comprises a first acquisition unit, a first transmission unit and a judgment processing unit; wherein,
the first obtaining unit is used for obtaining first information when the first electronic equipment is detected to be in a first state; the first state characterizes the first electronic device as being in a charging state; the first information is used for representing the charging current value of the first electronic equipment;
the first transmission unit is used for acquiring second information sent by the second electronic device, wherein the second information is used for representing the output current value of the second electronic device;
the judgment processing unit is used for judging whether the difference value between the output current value acquired by the first transmission unit and the charging current value acquired by the first acquisition unit is larger than a first threshold value or not, and acquiring a first judgment result; and when the first judgment result shows that the difference value between the output current value and the charging current value is greater than a first threshold value, determining that the first electronic equipment is in a second state, wherein the second state represents that the first electronic equipment is in an abnormal charging state.
An embodiment of the present invention further provides an electronic device, where the electronic device is a second electronic device, and the electronic device includes: a second acquisition unit and a second transmission unit; wherein,
the second obtaining unit is configured to obtain second information when it is detected that the second electronic device is in a third state; the third state characterizes that the second electronic device is in a power supply state; the second information is used for representing the output current value of the second electronic equipment;
the second transmission unit is configured to send the second information acquired by the second acquisition unit to the first electronic device.
According to the information processing method and the electronic device, when the first electronic device detects that the first electronic device is in the first state, first information is acquired; the first state characterizes the first electronic device as being in a charging state; the first information is used for representing the charging current value of the first electronic equipment; acquiring second information sent by the second electronic device, wherein the second information is used for representing the output current value of the second electronic device; judging whether the difference value of the output current value and the charging current value is larger than a first threshold value or not, and obtaining a first judgment result; when the first judgment result is that the difference value between the output current value and the charging current value is larger than a first threshold value, determining that the first electronic equipment is in a second state, wherein the second state represents that the first electronic equipment is in an abnormal charging state; therefore, by establishing a communication mechanism between the first electronic device and the second electronic device, the first electronic device can obtain the output current value of the second electronic device and compare the output current value with the charging current value of the first electronic device, so that the external short-circuit fault of the first electronic device is detected, and the damage to the charging interface of the first electronic device and even the damage to the first electronic device due to overhigh temperature caused by the short-circuit fault of the charging interface of the first electronic device is avoided.
Drawings
Fig. 1 is a schematic flowchart of an information processing method according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating an information processing method according to a second embodiment of the present invention;
FIG. 3 is a flowchart illustrating an information processing method according to a third embodiment of the present invention;
FIG. 4 is a flowchart illustrating an information processing method according to a fourth embodiment of the present invention;
FIG. 5 is a flowchart illustrating an information processing method according to a fifth embodiment of the present invention;
FIG. 6 is a flowchart illustrating an information processing method according to a sixth embodiment of the present invention;
FIG. 7 is a flowchart illustrating an information processing method according to a seventh embodiment of the present invention;
FIG. 8 is a flowchart illustrating an information processing method according to an eighth embodiment of the present invention;
FIG. 9 is a flowchart illustrating an information processing method according to a ninth embodiment of the present invention;
fig. 10 is a flowchart illustrating an information processing method according to a tenth embodiment of the present invention;
fig. 11 is a schematic diagram of a first structure of an electronic device according to an embodiment of the invention;
FIG. 12 is a diagram illustrating a second structure of an electronic device according to an embodiment of the invention;
FIG. 13 is a schematic diagram of a third structure of an electronic device according to an embodiment of the invention;
FIG. 14 is a diagram illustrating a fourth exemplary configuration of an electronic device according to an embodiment of the invention;
fig. 15 is a schematic diagram of a fifth structure of an electronic device according to an embodiment of the invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Example one
The embodiment of the invention provides an information processing method, which is applied to first electronic equipment, wherein the first electronic equipment can communicate with second electronic equipment, and the first electronic equipment can be charged through the second electronic equipment; fig. 1 is a schematic flowchart of an information processing method according to a first embodiment of the present invention; as shown in fig. 1, the method includes:
step 101: when the first state is detected, first information is acquired; the first state characterizes the first electronic device as being in a charging state; the first information is used for representing the charging current value of the first electronic equipment.
Here, the first state represents that the first electronic device is in a charging state, that is, a state when the first electronic device is charged by the second electronic device; specifically, the first electronic device may be a terminal device with a rechargeable battery, such as a mobile phone, a tablet computer, and a notebook computer; the second electronic device may be a device such as a charging adapter that can be plugged into a commercial power socket to charge the first electronic device; in addition, the second electronic device may be a device capable of charging the first electronic device, such as a desktop computer or a notebook computer.
The first electronic equipment and the second electronic equipment are connected through a data line; the data line is used for bearing output current for the second electronic equipment to supply power to the first electronic equipment; specifically, the first electronic device has a charging interface, and the current output by the second electronic device enters a rechargeable battery of the first electronic device through the data line and the charging interface; the charging interfaces may be greatly different in appearance and internal needle number due to different manufacturers; the charging interface may be a MiniUSB interface.
In this embodiment, the first information is used to represent a charging current value of the first electronic device, where the charging current value is a current value of a current output by the second electronic device entering the first electronic device through the data line and the charging interface; specifically, the charging current value may be detected by a current sensor in the first electronic device.
Step 102: and acquiring second information sent by the second electronic equipment, wherein the second information is used for representing the output current value of the second electronic equipment.
Here, the first electronic device may establish a communication mechanism with the second electronic device through the data line and the charging interface, that is, obtain second information sent by the second electronic device; specifically, taking the charging interface as a MiniUSB interface as an example, the MiniUSB interface has four pins, and the four pins correspond to four lines of the data lines; specifically, four wires corresponding to the four pins are respectively used for bearing: power (VBUS), positive data (D +), negative data (D-) and Ground (GND); in the charging process described in this embodiment, the second electronic device charges the first electronic device through the VBUS in the charging interface and the corresponding VBUS line in the data line.
The first electronic device and the second electronic device can establish a communication mechanism through a VBUS; specifically, a sender can modulate information to be sent into a high-frequency carrier, the high-frequency carrier is sent through the VBUS, and a receiver demodulates the received high-frequency carrier to obtain the information; or the first electronic device and the second electronic device can communicate by multiplexing UART serial port Tx/Rx signals through D + and/or D-differential lines; or the first electronic device and the second electronic device can communicate by adjusting the level configuration of D + and/or D-; or, the first electronic device and the second electronic device may communicate with each other by modulating pulses, for example, five pulses are transmitted, where the first three pulses are long pulses and the last two pulses are short pulses, that is, a "three long and two short" pulse signal represents a preset information meaning; or, the first electronic device and the second electronic device can communicate with each other through wireless communication modules arranged on the first electronic device and the second electronic device, and the wireless communication modules can be wireless communication modules such as a bluetooth module and an infrared module.
In this embodiment, the first electronic device may send a request message to the second electronic device through the communication mechanism, and the second electronic device sends the second information to the first electronic device according to the request message; or the second electronic device can actively send the second information to the first electronic device according to a preset rule through the communication mechanism; wherein the preset rule may be transmitted at fixed time intervals.
The second electronic equipment is provided with an output interface connected with the data line; the second information is used for representing an output current value of the second electronic device, and the output current value is a current value output by the second electronic device from the output interface.
Step 103: and judging whether the difference value of the output current value and the charging current value is greater than a first threshold value or not, and obtaining a first judgment result.
Step 104: and when the first judgment result shows that the difference value between the output current value and the charging current value is greater than a first threshold value, determining that the first electronic equipment is in a second state, wherein the second state represents that the first electronic equipment is in an abnormal charging state.
Here, when the difference between the output current value and the charging current value is greater than a first threshold value, it indicates that some components (data lines and/or charging interfaces) between the first electronic device and the second electronic device are failed, and a partial current value is carried; the partial current value is the difference between the output current value and the charging current value; that is, when the difference between the output current value and the charging current value is greater than the first threshold value, it is indicated that a failure such as a short circuit has occurred in some components (data lines and/or charging interface) between the first electronic device and the second electronic device, and it is determined that the first electronic device is in the second state.
Therefore, by adopting the technical scheme provided by the embodiment, the first electronic device can obtain the output current value of the second electronic device by establishing the communication mechanism between the first electronic device and the second electronic device, and compare the output current value with the charging current value of the first electronic device, so that the external short-circuit fault of the first electronic device is detected, and the damage to the charging interface of the first electronic device and even the damage to the first electronic device due to overhigh temperature caused by the short-circuit fault of the charging interface of the first electronic device is avoided.
Example two
The embodiment of the invention provides an information processing method, which is applied to first electronic equipment, wherein the first electronic equipment can communicate with second electronic equipment, and the first electronic equipment can be charged through the second electronic equipment; FIG. 2 is a flowchart illustrating an information processing method according to a second embodiment of the present invention; as shown in fig. 2, the method includes:
step 201: when the first state is detected, first information is acquired; the first state characterizes the first electronic device as being in a charging state; the first information is used for representing the charging current value of the first electronic equipment.
Here, the first state represents that the first electronic device is in a charging state, that is, a state when the first electronic device is charged by the second electronic device; specifically, the first electronic device may be a terminal device with a rechargeable battery, such as a mobile phone, a tablet computer, and a notebook computer; the second electronic device may be a device such as a charging adapter that can be plugged into a commercial power socket to charge the first electronic device; in addition, the second electronic device may be a device capable of charging the first electronic device, such as a desktop computer or a notebook computer.
The first electronic equipment and the second electronic equipment are connected through a data line; the data line is used for bearing output current for the second electronic equipment to supply power to the first electronic equipment; specifically, the first electronic device has a charging interface, and the current output by the second electronic device enters a rechargeable battery of the first electronic device through the data line and the charging interface; the charging interfaces may be greatly different in appearance and internal needle number due to different manufacturers; the charging interface may be a MiniUSB interface.
In this embodiment, the first information is used to represent a charging current value of the first electronic device, where the charging current value is a current value of a current output by the second electronic device entering the first electronic device through the data line and the charging interface; specifically, the charging current value may be detected by a current sensor in the first electronic device.
Step 202: and acquiring second information sent by the second electronic equipment, wherein the second information is used for representing the output current value of the second electronic equipment.
Here, the first electronic device may establish a communication mechanism with the second electronic device through the data line and the charging interface, that is, obtain second information sent by the second electronic device; specifically, taking the charging interface as a MiniUSB interface as an example, the MiniUSB interface has four pins, and the four pins correspond to four lines of the data lines; specifically, four wires corresponding to the four pins are respectively used for bearing: power (VBUS), positive data (D +), negative data (D-) and Ground (GND); in the charging process described in this embodiment, the second electronic device charges the first electronic device through the VBUS in the charging interface and the corresponding VBUS line in the data line.
The first electronic device and the second electronic device can establish a communication mechanism through a VBUS; specifically, a sender can modulate information to be sent into a high-frequency carrier, the high-frequency carrier is sent through the VBUS, and a receiver demodulates the received high-frequency carrier to obtain the information; or the first electronic device and the second electronic device can communicate by multiplexing UART serial port Tx/Rx signals through D + and/or D-differential lines; or the first electronic device and the second electronic device can communicate by adjusting the level configuration of D + and/or D-; or, the first electronic device and the second electronic device may communicate with each other by modulating pulses, for example, five pulses are transmitted, where the first three pulses are long pulses and the last two pulses are short pulses, that is, a "three long and two short" pulse signal represents a preset information meaning; or, the first electronic device and the second electronic device can communicate with each other through wireless communication modules arranged on the first electronic device and the second electronic device, and the wireless communication modules can be wireless communication modules such as a bluetooth module and an infrared module.
In this embodiment, the first electronic device may send a request message to the second electronic device through the communication mechanism, and the second electronic device sends the second information to the first electronic device according to the request message; or the second electronic device can actively send the second information to the first electronic device according to a preset rule through the communication mechanism; wherein the preset rule may be transmitted at fixed time intervals.
The second electronic equipment is provided with an output interface connected with the data line; the second information is used for representing an output current value of the second electronic device, and the output current value is a current value output by the second electronic device from the output interface.
Step 203: and judging whether the difference value of the output current value and the charging current value is greater than a first threshold value or not, and obtaining a first judgment result.
Step 204: and when the first judgment result shows that the difference value between the output current value and the charging current value is greater than a first threshold value, determining that the first electronic equipment is in a second state, wherein the second state represents that the first electronic equipment is in an abnormal charging state.
Here, when the difference between the output current value and the charging current value is greater than a first threshold value, it indicates that some components (data lines and/or charging interfaces) between the first electronic device and the second electronic device are failed, and a partial current value is carried; the partial current value is the difference between the output current value and the charging current value; that is, when the difference between the output current value and the charging current value is greater than the first threshold value, it is indicated that a failure such as a short circuit has occurred in some components (data lines and/or charging interface) between the first electronic device and the second electronic device, and it is determined that the first electronic device is in the second state.
Step 205: and generating a first instruction, and outputting prompt information according to the first instruction so as to remind a user that the first electronic equipment is in an abnormal charging state.
Here, when the first electronic device is determined to be in the second state, a prompt message is output according to the first instruction, the prompt message may be displayed through a display screen of the first electronic device to remind a user that the first electronic device is abnormally charged, and the charging operation of the first electronic device is manually terminated by the user. Specifically, the first electronic device may further output the prompt information in other manners, such as abnormal display of a display lamp or a prompt sound.
Thus, by adopting the technical scheme provided by this embodiment, the first electronic device can obtain the output current value of the second electronic device by establishing the communication mechanism between the first electronic device and the second electronic device, and compare the output current value with the charging current value of the first electronic device, so as to detect the external short-circuit fault of the first electronic device, and avoid that the charging interface of the first electronic device is damaged or even the first electronic device itself is damaged due to the overhigh temperature of the charging interface of the first electronic device caused by the short-circuit fault; in addition, the user is reminded of the current abnormal charging state of the first electronic device through outputting prompt information, so that the user can find and process the abnormal charging state in time, and the user experience is improved.
EXAMPLE III
The embodiment of the invention provides an information processing method, which is applied to first electronic equipment, wherein the first electronic equipment can communicate with second electronic equipment, and the first electronic equipment can be charged through the second electronic equipment; FIG. 3 is a flowchart illustrating an information processing method according to a third embodiment of the present invention; as shown in fig. 3, the method includes:
step 301: when the first state is detected, first information is acquired; the first state characterizes the first electronic device as being in a charging state; the first information is used for representing the charging current value of the first electronic equipment.
Here, the first state represents that the first electronic device is in a charging state, that is, a state when the first electronic device is charged by the second electronic device; specifically, the first electronic device may be a terminal device with a rechargeable battery, such as a mobile phone, a tablet computer, and a notebook computer; the second electronic device may be a device such as a charging adapter that can be plugged into a commercial power socket to charge the first electronic device; in addition, the second electronic device may be a device capable of charging the first electronic device, such as a desktop computer or a notebook computer.
The first electronic equipment and the second electronic equipment are connected through a data line; the data line is used for bearing output current for the second electronic equipment to supply power to the first electronic equipment; specifically, the first electronic device has a charging interface, and the current output by the second electronic device enters a rechargeable battery of the first electronic device through the data line and the charging interface; the charging interfaces may be greatly different in appearance and internal needle number due to different manufacturers; the charging interface may be a MiniUSB interface.
In this embodiment, the first information is used to represent a charging current value of the first electronic device, where the charging current value is a current value of a current output by the second electronic device entering the first electronic device through the data line and the charging interface; specifically, the charging current value may be detected by a current sensor in the first electronic device.
Step 302: and acquiring second information sent by the second electronic equipment, wherein the second information is used for representing the output current value of the second electronic equipment.
Here, the first electronic device may establish a communication mechanism with the second electronic device through the data line and the charging interface, that is, obtain second information sent by the second electronic device; specifically, taking the charging interface as a MiniUSB interface as an example, the MiniUSB interface has four pins, and the four pins correspond to four lines of the data lines; specifically, four wires corresponding to the four pins are respectively used for bearing: power (VBUS), positive data (D +), negative data (D-) and Ground (GND); in the charging process described in this embodiment, the second electronic device charges the first electronic device through the VBUS in the charging interface and the corresponding VBUS line in the data line.
The first electronic device and the second electronic device can establish a communication mechanism through a VBUS; specifically, a sender can modulate information to be sent into a high-frequency carrier, the high-frequency carrier is sent through the VBUS, and a receiver demodulates the received high-frequency carrier to obtain the information; or the first electronic device and the second electronic device can communicate by multiplexing UART serial port Tx/Rx signals through D + and/or D-differential lines; or the first electronic device and the second electronic device can communicate by adjusting the level configuration of D + and/or D-; or, the first electronic device and the second electronic device may communicate with each other by modulating pulses, for example, five pulses are transmitted, where the first three pulses are long pulses and the last two pulses are short pulses, that is, a "three long and two short" pulse signal represents a preset information meaning; or, the first electronic device and the second electronic device can communicate with each other through wireless communication modules arranged on the first electronic device and the second electronic device, and the wireless communication modules can be wireless communication modules such as a bluetooth module and an infrared module.
In this embodiment, the first electronic device may send a request message to the second electronic device through the communication mechanism, and the second electronic device sends the second information to the first electronic device according to the request message; or the second electronic device can actively send the second information to the first electronic device according to a preset rule through the communication mechanism; wherein the preset rule may be transmitted at fixed time intervals.
The second electronic equipment is provided with an output interface connected with the data line; the second information is used for representing the output current value of the second electronic equipment, and the output current value is the current value output by the second electronic equipment from the output interface
Step 303: and judging whether the difference value of the output current value and the charging current value is greater than a first threshold value or not, and obtaining a first judgment result.
Step 304: and when the first judgment result shows that the difference value between the output current value and the charging current value is greater than a first threshold value, determining that the first electronic equipment is in a second state, wherein the second state represents that the first electronic equipment is in an abnormal charging state.
Here, when the difference between the output current value and the charging current value is greater than a first threshold value, it indicates that some components (data lines and/or charging interfaces) between the first electronic device and the second electronic device are failed, and a partial current value is carried; the partial current value is the difference between the output current value and the charging current value; that is, when the difference between the output current value and the charging current value is greater than the first threshold value, it is indicated that a failure such as a short circuit has occurred in some components (data lines and/or charging interface) between the first electronic device and the second electronic device, and it is determined that the first electronic device is in the second state.
Step 305: sending a third message to the second electronic device; the third message is used for instructing the second electronic device to stop outputting the current.
Here, when the first electronic device determines that the first electronic device is in the second state, a third message is sent to the second electronic device, so that the second electronic device automatically terminates the charging operation of the first electronic device according to the third message. The first electronic equipment sends third information to the second electronic equipment through a communication mechanism between the first electronic equipment and the second electronic equipment; the communication mechanism is as described in step 302, and is not described herein.
Therefore, by adopting the technical scheme provided by the embodiment, the first electronic device can obtain the output current value of the second electronic device by establishing the communication mechanism between the first electronic device and the second electronic device, and compare the output current value with the charging current value of the first electronic device, so that the external short-circuit fault of the first electronic device is detected, and the damage to the charging interface of the first electronic device and even the damage to the first electronic device due to overhigh temperature caused by the short-circuit fault of the charging interface of the first electronic device is avoided.
Example four
The embodiment of the invention provides an information processing method, which is applied to first electronic equipment, wherein the first electronic equipment can communicate with second electronic equipment, and the first electronic equipment can be charged through the second electronic equipment; FIG. 4 is a flowchart illustrating an information processing method according to a fourth embodiment of the present invention; as shown in fig. 4, the method includes:
step 401: when the first state is detected, first information is acquired; the first state characterizes the first electronic device as being in a charging state; the first information is used for representing the charging current value of the first electronic equipment.
Here, the first state represents that the first electronic device is in a charging state, that is, a state when the first electronic device is charged by the second electronic device; specifically, the first electronic device may be a terminal device with a rechargeable battery, such as a mobile phone, a tablet computer, and a notebook computer; the second electronic device may be a device such as a charging adapter that can be plugged into a commercial power socket to charge the first electronic device; in addition, the second electronic device may be a device capable of charging the first electronic device, such as a desktop computer or a notebook computer.
The first electronic equipment and the second electronic equipment are connected through a data line; the data line is used for bearing output current for the second electronic equipment to supply power to the first electronic equipment; specifically, the first electronic device has a charging interface, and the current output by the second electronic device enters a rechargeable battery of the first electronic device through the data line and the charging interface; the charging interfaces may be greatly different in appearance and internal needle number due to different manufacturers; the charging interface may be a MiniUSB interface.
In this embodiment, the first information is used to represent a charging current value of the first electronic device, where the charging current value is a current value of a current output by the second electronic device entering the first electronic device through the data line and the charging interface; specifically, the charging current value may be detected by a current sensor in the first electronic device.
Step 402: sending a first message to the second electronic device, and receiving a first response message sent by the second electronic device; the first message is used for inquiring second information of the second electronic equipment; the first response message comprises second information of the second electronic device; wherein the second information is used for characterizing an output current value of the second electronic device.
Here, the first electronic device may establish a communication mechanism with the second electronic device through the data line and the charging interface, that is, obtain second information sent by the second electronic device; specifically, taking the charging interface as a MiniUSB interface as an example, the MiniUSB interface has four pins, and the four pins correspond to four lines of the data lines; specifically, four wires corresponding to the four pins are respectively used for bearing: power (VBUS), positive data (D +), negative data (D-) and Ground (GND); in the charging process described in this embodiment, the second electronic device charges the first electronic device through the VBUS in the charging interface and the corresponding VBUS line in the data line.
The first electronic device and the second electronic device can establish a communication mechanism through a VBUS; specifically, a sender can modulate information to be sent into a high-frequency carrier, the high-frequency carrier is sent through the VBUS, and a receiver demodulates the received high-frequency carrier to obtain the information; or the first electronic device and the second electronic device can communicate by multiplexing UART serial port Tx/Rx signals through D + and/or D-differential lines; or the first electronic device and the second electronic device can communicate by adjusting the level configuration of D + and/or D-; or, the first electronic device and the second electronic device may communicate with each other by modulating pulses, for example, five pulses are transmitted, where the first three pulses are long pulses and the last two pulses are short pulses, that is, a "three long and two short" pulse signal represents a preset information meaning; or, the first electronic device and the second electronic device can communicate with each other through wireless communication modules arranged on the first electronic device and the second electronic device, and the wireless communication modules can be wireless communication modules such as a bluetooth module and an infrared module.
Specifically, the first electronic device may modulate the first message into a high-frequency carrier, and send the high-frequency carrier to the second electronic device through the VBUS; the second electronic equipment demodulates the high-frequency carrier to obtain the first message; or the first electronic device may send the first message to the second electronic device by multiplexing a UART serial Tx/Rx signal through a D + and/or D-differential line; or the first electronic device and the second electronic device preset a pulse mode corresponding to the first message, and the first electronic device sends the first message to the second electronic device through an "X long Y short" (X, Y are both natural numbers) pulse signal; or, the first electronic device and the second electronic device are preset with wireless modules (such as bluetooth modules), and the first message is sent through the wireless modules. Similarly, the implementation manner of receiving the first response message sent by the second electronic device is the same as the communication manner described above, and details are not repeated here.
The second electronic equipment is provided with an output interface connected with the data line; the second information is used for representing an output current value of the second electronic device, and the output current value is a current value output by the second electronic device from the output interface.
Step 403: and judging whether the difference value of the output current value and the charging current value is greater than a first threshold value or not, and obtaining a first judgment result.
Step 404: and when the first judgment result shows that the difference value between the output current value and the charging current value is greater than a first threshold value, determining that the first electronic equipment is in a second state, wherein the second state represents that the first electronic equipment is in an abnormal charging state.
Here, when the difference between the output current value and the charging current value is greater than a first threshold value, it indicates that some components (data lines and/or charging interfaces) between the first electronic device and the second electronic device are failed, and a partial current value is carried; the partial current value is the difference between the output current value and the charging current value; that is, when the difference between the output current value and the charging current value is greater than the first threshold value, it is indicated that a failure such as a short circuit has occurred in some components (data lines and/or charging interface) between the first electronic device and the second electronic device, and it is determined that the first electronic device is in the second state.
Therefore, by adopting the technical scheme provided by the embodiment, the first electronic device can obtain the output current value of the second electronic device by establishing the communication mechanism between the first electronic device and the second electronic device, and compare the output current value with the charging current value of the first electronic device, so that the external short-circuit fault of the first electronic device is detected, and the damage to the charging interface of the first electronic device and even the damage to the first electronic device due to overhigh temperature caused by the short-circuit fault of the charging interface of the first electronic device is avoided.
EXAMPLE five
The embodiment of the invention provides an information processing method, which is applied to first electronic equipment, wherein the first electronic equipment can communicate with second electronic equipment, and the first electronic equipment can be charged through the second electronic equipment; FIG. 5 is a flowchart illustrating an information processing method according to a fifth embodiment of the present invention; as shown in fig. 5, the method includes:
step 501: when the first state is detected, first information is acquired; the first state characterizes the first electronic device as being in a charging state; the first information is used for representing the charging current value of the first electronic equipment.
Here, the first state represents that the first electronic device is in a charging state, that is, a state when the first electronic device is charged by the second electronic device; specifically, the first electronic device may be a terminal device with a rechargeable battery, such as a mobile phone, a tablet computer, and a notebook computer; the second electronic device may be a device such as a charging adapter that can be plugged into a commercial power socket to charge the first electronic device; in addition, the second electronic device may be a device capable of charging the first electronic device, such as a desktop computer or a notebook computer.
The first electronic equipment and the second electronic equipment are connected through a data line; the data line is used for bearing output current for the second electronic equipment to supply power to the first electronic equipment; specifically, the first electronic device has a charging interface, and the current output by the second electronic device enters a rechargeable battery of the first electronic device through the data line and the charging interface; the charging interfaces may be greatly different in appearance and internal needle number due to different manufacturers; the charging interface may be a MiniUSB interface.
In this embodiment, the first information is used to represent a charging current value of the first electronic device, where the charging current value is a current value of a current output by the second electronic device entering the first electronic device through the data line and the charging interface; specifically, the charging current value may be detected by a current sensor in the first electronic device.
Step 502: receiving a second message sent by the second electronic equipment at the time interval; the second message comprises second information of the second electronic device; wherein the second information is used for characterizing an output current value of the second electronic device.
Here, the first electronic device may establish a communication mechanism with the second electronic device through the data line and the charging interface, that is, obtain second information sent by the second electronic device; specifically, taking the charging interface as a MiniUSB interface as an example, the MiniUSB interface has four pins, and the four pins correspond to four lines of the data lines; specifically, four wires corresponding to the four pins are respectively used for bearing: power (VBUS), positive data (D +), negative data (D-) and Ground (GND); in the charging process described in this embodiment, the second electronic device charges the first electronic device through the VBUS in the charging interface and the corresponding VBUS line in the data line.
The first electronic device and the second electronic device can establish a communication mechanism through a VBUS; specifically, a sender can modulate information to be sent into a high-frequency carrier, the high-frequency carrier is sent through the VBUS, and a receiver demodulates the received high-frequency carrier to obtain the information; or the first electronic device and the second electronic device can communicate by multiplexing UART serial port Tx/Rx signals through D + and/or D-differential lines; or the first electronic device and the second electronic device can communicate by adjusting the level configuration of D + and/or D-; or, the first electronic device and the second electronic device may communicate with each other by modulating pulses, for example, five pulses are transmitted, where the first three pulses are long pulses and the last two pulses are short pulses, that is, a "three long and two short" pulse signal represents a preset information meaning; or, the first electronic device and the second electronic device can communicate with each other through wireless communication modules arranged on the first electronic device and the second electronic device, and the wireless communication modules can be wireless communication modules such as a bluetooth module and an infrared module.
Specifically, the second electronic device may modulate the second message into a high-frequency carrier, and send the high-frequency carrier to the first electronic device through the VBUS; the first electronic equipment demodulates the high-frequency carrier to obtain the second message; or the second electronic device may send the second message to the first electronic device by multiplexing a UART serial Tx/Rx signal through a D + and/or D-differential line; or the first electronic device and the second electronic device preset a pulse mode corresponding to the second message, and the second electronic device sends the second message to the first electronic device through an m-long n-short (m and n are both natural numbers) pulse signal; or, the first electronic device and the second electronic device are preset with wireless modules (such as bluetooth modules), and the second message is sent through the wireless modules.
The second electronic equipment is provided with an output interface connected with the data line; the second information is used for representing the output current value of the second electronic equipment, and the output current value is the current value output by the second electronic equipment from the output interface
Step 503: and judging whether the difference value of the output current value and the charging current value is greater than a first threshold value or not, and obtaining a first judgment result.
Step 504: and when the first judgment result shows that the difference value between the output current value and the charging current value is greater than a first threshold value, determining that the first electronic equipment is in a second state, wherein the second state represents that the first electronic equipment is in an abnormal charging state.
Here, when the difference between the output current value and the charging current value is greater than a first threshold value, it indicates that some components (data lines and/or charging interfaces) between the first electronic device and the second electronic device are failed, and a partial current value is carried; the partial current value is the difference between the output current value and the charging current value; that is, when the difference between the output current value and the charging current value is greater than the first threshold value, it is indicated that a failure such as a short circuit has occurred in some components (data lines and/or charging interface) between the first electronic device and the second electronic device, and it is determined that the first electronic device is in the second state.
Therefore, by adopting the technical scheme provided by the embodiment, the first electronic device can obtain the output current value of the second electronic device by establishing the communication mechanism between the first electronic device and the second electronic device, and compare the output current value with the charging current value of the first electronic device, so that the external short-circuit fault of the first electronic device is detected, and the damage to the charging interface of the first electronic device and even the damage to the first electronic device due to overhigh temperature caused by the short-circuit fault of the charging interface of the first electronic device is avoided.
EXAMPLE six
The embodiment of the invention provides an information processing method, which is applied to second electronic equipment, wherein the second electronic equipment can be communicated with first electronic equipment, and the second electronic equipment can charge the first electronic equipment; FIG. 6 is a flowchart illustrating an information processing method according to a sixth embodiment of the present invention; as shown in fig. 6, the method includes:
step 601: when the third state is detected, second information is obtained; wherein the third state characterizes the second electronic device as being in a powered state; the second information is used for representing the output current value of the second electronic equipment.
Here, the third state represents a state in which the second electronic device is in a power supply state and the second electronic device supplies power to the first electronic device; specifically, the first electronic device may be a terminal device with a rechargeable battery, such as a mobile phone, a tablet computer, and a notebook computer; the second electronic device may be a device such as a charging adapter that can be plugged into a commercial power socket to charge the first electronic device; in addition, the second electronic device may be a device capable of charging the first electronic device, such as a desktop computer or a notebook computer.
The first electronic equipment and the second electronic equipment are connected through a data line; the data line is used for bearing output current for the second electronic equipment to supply power to the first electronic equipment; specifically, the first electronic device has a charging interface, and the current output by the second electronic device enters a rechargeable battery of the first electronic device through the data line and the charging interface; the charging interfaces may be greatly different in appearance and internal needle number due to different manufacturers; the charging interface may be a MiniUSB interface.
In this embodiment, the second electronic device has an output interface connected to the data line; the second information is used for representing an output current value of the second electronic device, and the output current value is a current value output by the second electronic device from the output interface.
Step 602: and sending the acquired second information to the first electronic equipment.
Here, the second electronic device may establish a communication mechanism with the first electronic device through the data line, the output interface of the second electronic device, and the charging interface of the first electronic device, that is, send the acquired second information to the first electronic device; specifically, taking the charging interface as a MiniUSB interface as an example, the MiniUSB interface has four pins, and the four pins correspond to four lines of the data lines; specifically, four wires corresponding to the four pins are respectively used for bearing: power (VBUS), positive data (D +), negative data (D-) and Ground (GND); in the charging process described in this embodiment, the second electronic device charges the first electronic device through the VBUS in the charging interface and the corresponding VBUS line in the data line.
The first electronic device and the second electronic device can establish a communication mechanism through a VBUS; specifically, a sender can modulate information to be sent into a high-frequency carrier, the high-frequency carrier is sent through the VBUS, and a receiver demodulates the received high-frequency carrier to obtain the information; or the first electronic device and the second electronic device can communicate by multiplexing UART serial port Tx/Rx signals through D + and/or D-differential lines; or the first electronic device and the second electronic device can communicate by adjusting the level configuration of D + and/or D-; or, the first electronic device and the second electronic device may communicate with each other by modulating pulses, for example, five pulses are transmitted, where the first three pulses are long pulses and the last two pulses are short pulses, that is, a "three long and two short" pulse signal represents a preset information meaning; or, the first electronic device and the second electronic device can communicate with each other through wireless communication modules arranged on the first electronic device and the second electronic device, and the wireless communication modules can be wireless communication modules such as a bluetooth module and an infrared module.
The second electronic equipment can send the second information to the first electronic equipment according to the request of the first electronic equipment; or the second electronic device may actively send the second information to the first electronic device according to a preset rule; the preset rule may be transmitted at preset time intervals.
Therefore, by adopting the technical scheme provided by the embodiment, the first electronic device can obtain the output current value of the second electronic device by establishing the communication mechanism between the first electronic device and the second electronic device, and compare the output current value with the charging current value of the first electronic device, so that the external short-circuit fault of the first electronic device is detected, and the damage to the charging interface of the first electronic device and even the damage to the first electronic device due to overhigh temperature caused by the short-circuit fault of the charging interface of the first electronic device is avoided.
EXAMPLE seven
The embodiment of the invention provides an information processing method, which is applied to second electronic equipment, wherein the second electronic equipment can be communicated with first electronic equipment, and the second electronic equipment can charge the first electronic equipment; FIG. 7 is a flowchart illustrating an information processing method according to a seventh embodiment of the present invention; as shown in fig. 7, the method includes:
step 701: when the third state is detected, second information is obtained; wherein the third state characterizes the second electronic device as being in a powered state; the second information is used for representing the output current value of the second electronic equipment.
Here, the third state represents a state in which the second electronic device is in a power supply state and the second electronic device supplies power to the first electronic device; specifically, the first electronic device may be a terminal device with a rechargeable battery, such as a mobile phone, a tablet computer, and a notebook computer; the second electronic device may be a device such as a charging adapter that can be plugged into a commercial power socket to charge the first electronic device; in addition, the second electronic device may be a device capable of charging the first electronic device, such as a desktop computer or a notebook computer.
The first electronic equipment and the second electronic equipment are connected through a data line; the data line is used for bearing output current for the second electronic equipment to supply power to the first electronic equipment; specifically, the first electronic device has a charging interface, and the current output by the second electronic device enters a rechargeable battery of the first electronic device through the data line and the charging interface; the charging interfaces may be greatly different in appearance and internal needle number due to different manufacturers; the charging interface may be a MiniUSB interface.
In this embodiment, the second electronic device has an output interface connected to the data line; the second information is used for representing an output current value of the second electronic device, and the output current value is a current value output by the second electronic device from the output interface.
Step 702: and sending the acquired second information to the first electronic equipment.
Here, the second electronic device may establish a communication mechanism with the first electronic device through the data line, the output interface of the second electronic device, and the charging interface of the first electronic device, that is, send the acquired second information to the first electronic device; specifically, taking the charging interface as a MiniUSB interface as an example, the MiniUSB interface has four pins, and the four pins correspond to four lines of the data lines; specifically, four wires corresponding to the four pins are respectively used for bearing: power (VBUS), positive data (D +), negative data (D-) and Ground (GND); in the charging process described in this embodiment, the second electronic device charges the first electronic device through the VBUS in the charging interface and the corresponding VBUS line in the data line.
The first electronic device and the second electronic device can establish a communication mechanism through a VBUS; specifically, a sender can modulate information to be sent into a high-frequency carrier, the high-frequency carrier is sent through the VBUS, and a receiver demodulates the received high-frequency carrier to obtain the information; or the first electronic device and the second electronic device can communicate by multiplexing UART serial port Tx/Rx signals through D + and/or D-differential lines; or the first electronic device and the second electronic device can communicate by adjusting the level configuration of D + and/or D-; or, the first electronic device and the second electronic device may communicate with each other by modulating pulses, for example, five pulses are transmitted, where the first three pulses are long pulses and the last two pulses are short pulses, that is, a "three long and two short" pulse signal represents a preset information meaning; or, the first electronic device and the second electronic device can communicate with each other through wireless communication modules arranged on the first electronic device and the second electronic device, and the wireless communication modules can be wireless communication modules such as a bluetooth module and an infrared module.
The second electronic equipment can send the second information to the first electronic equipment according to the request of the first electronic equipment; or the second electronic device may actively send the second information to the first electronic device according to a preset rule; the preset rule may be transmitted at preset time intervals.
Step 703: receiving a third message sent by the first electronic equipment; wherein the third message is used to instruct the second electronic device to stop outputting current.
Here, a third message sent by the first electronic device is received through a communication mechanism between the second electronic device and the first electronic device; the communication mechanism is as described in step 702, and is not described herein again.
Step 704: and generating a second instruction according to the third message, and stopping outputting current according to the second instruction.
Here, the second electronic device terminates charging the first electronic device according to the second instruction, i.e., the output current is stopped.
Therefore, by adopting the technical scheme provided by the embodiment, the first electronic device can obtain the output current value of the second electronic device by establishing the communication mechanism between the first electronic device and the second electronic device, and compare the output current value with the charging current value of the first electronic device, so that the external short-circuit fault of the first electronic device is detected, and the damage to the charging interface of the first electronic device and even the damage to the first electronic device due to overhigh temperature caused by the short-circuit fault of the charging interface of the first electronic device is avoided.
Example eight
The embodiment of the invention provides an information processing method, which is applied to second electronic equipment, wherein the second electronic equipment can be communicated with first electronic equipment, and the second electronic equipment can charge the first electronic equipment; FIG. 8 is a flowchart illustrating an information processing method according to an eighth embodiment of the present invention; as shown in fig. 8, the method includes:
step 801: a time interval is set.
Step 802: when the third state is detected, second information is acquired at intervals of time; wherein the third state characterizes the second electronic device as being in a powered state; the second information is used for representing the output current value of the second electronic equipment.
Here, the third state represents a state in which the second electronic device is in a power supply state and the second electronic device supplies power to the first electronic device; specifically, the first electronic device may be a terminal device with a rechargeable battery, such as a mobile phone, a tablet computer, and a notebook computer; the second electronic device may be a device such as a charging adapter that can be plugged into a commercial power socket to charge the first electronic device; in addition, the second electronic device may be a device capable of charging the first electronic device, such as a desktop computer or a notebook computer.
The first electronic equipment and the second electronic equipment are connected through a data line; the data line is used for bearing output current for the second electronic equipment to supply power to the first electronic equipment; specifically, the first electronic device has a charging interface, and the current output by the second electronic device enters a rechargeable battery of the first electronic device through the data line and the charging interface; the charging interfaces may be greatly different in appearance and internal needle number due to different manufacturers; the charging interface may be a MiniUSB interface.
In this embodiment, the second electronic device has an output interface connected to the data line; the second information is used for representing an output current value of the second electronic device, and the output current value is a current value output by the second electronic device from the output interface.
Step 803: and sending the acquired second information to the first electronic equipment.
Here, the second electronic device may establish a communication mechanism with the first electronic device through the data line, the output interface of the second electronic device, and the charging interface of the first electronic device, that is, send the acquired second information to the first electronic device; specifically, taking the charging interface as a MiniUSB interface as an example, the MiniUSB interface has four pins, and the four pins correspond to four lines of the data lines; specifically, four wires corresponding to the four pins are respectively used for bearing: power (VBUS), positive data (D +), negative data (D-) and Ground (GND); in the charging process described in this embodiment, the second electronic device charges the first electronic device through the VBUS in the charging interface and the corresponding VBUS line in the data line.
The first electronic device and the second electronic device can establish a communication mechanism through a VBUS; specifically, a sender can modulate information to be sent into a high-frequency carrier, the high-frequency carrier is sent through the VBUS, and a receiver demodulates the received high-frequency carrier to obtain the information; or the first electronic device and the second electronic device can communicate by multiplexing UART serial port Tx/Rx signals through D + and/or D-differential lines; or the first electronic device and the second electronic device can communicate by adjusting the level configuration of D + and/or D-; or, the first electronic device and the second electronic device may communicate with each other by modulating pulses, for example, five pulses are transmitted, where the first three pulses are long pulses and the last two pulses are short pulses, that is, a "three long and two short" pulse signal represents a preset information meaning; or, the first electronic device and the second electronic device can communicate with each other through wireless communication modules arranged on the first electronic device and the second electronic device, and the wireless communication modules can be wireless communication modules such as a bluetooth module and an infrared module.
Therefore, by adopting the technical scheme provided by the embodiment, the first electronic device can obtain the output current value of the second electronic device by establishing the communication mechanism between the first electronic device and the second electronic device, and compare the output current value with the charging current value of the first electronic device, so that the external short-circuit fault of the first electronic device is detected, and the damage to the charging interface of the first electronic device and even the damage to the first electronic device due to overhigh temperature caused by the short-circuit fault of the charging interface of the first electronic device is avoided.
Example nine
The embodiment of the invention provides an information processing method, which is applied to second electronic equipment, wherein the second electronic equipment can be communicated with first electronic equipment, and the second electronic equipment can charge the first electronic equipment; FIG. 9 is a flowchart illustrating an information processing method according to a ninth embodiment of the present invention; as shown in fig. 9, the method includes:
step 901: a time interval is set.
Step 902: when the third state is detected, second information is acquired at intervals of time; wherein the third state characterizes the second electronic device as being in a powered state; the second information is used for representing the output current value of the second electronic equipment.
Here, the third state represents a state in which the second electronic device is in a power supply state and the second electronic device supplies power to the first electronic device; specifically, the first electronic device may be a terminal device with a rechargeable battery, such as a mobile phone, a tablet computer, and a notebook computer; the second electronic device may be a device such as a charging adapter that can be plugged into a commercial power socket to charge the first electronic device; in addition, the second electronic device may be a device capable of charging the first electronic device, such as a desktop computer or a notebook computer.
The first electronic equipment and the second electronic equipment are connected through a data line; the data line is used for bearing output current for the second electronic equipment to supply power to the first electronic equipment; specifically, the first electronic device has a charging interface, and the current output by the second electronic device enters a rechargeable battery of the first electronic device through the data line and the charging interface; the charging interfaces may be greatly different in appearance and internal needle number due to different manufacturers; the charging interface may be a MiniUSB interface.
In this embodiment, the second electronic device has an output interface connected to the data line; the second information is used for representing an output current value of the second electronic device, and the output current value is a current value output by the second electronic device from the output interface.
Step 903: receiving a first message sent by the first electronic device, and sending a first response message to the first electronic device; the first message is used for inquiring second information of the second electronic equipment; the first response message includes the second information.
Here, the second electronic device may establish a communication mechanism with the first electronic device through the data line, the output interface of the second electronic device, and the charging interface of the first electronic device, that is, send the acquired second information to the first electronic device; specifically, taking the charging interface as a MiniUSB interface as an example, the MiniUSB interface has four pins, and the four pins correspond to four lines of the data lines; specifically, four wires corresponding to the four pins are respectively used for bearing: power (VBUS), positive data (D +), negative data (D-) and Ground (GND); in the charging process described in this embodiment, the second electronic device charges the first electronic device through the VBUS in the charging interface and the corresponding VBUS line in the data line.
The first electronic device and the second electronic device can establish a communication mechanism through a VBUS; specifically, a sender can modulate information to be sent into a high-frequency carrier, the high-frequency carrier is sent through the VBUS, and a receiver demodulates the received high-frequency carrier to obtain the information; or the first electronic device and the second electronic device can communicate by multiplexing UART serial port Tx/Rx signals through D + and/or D-differential lines; or the first electronic device and the second electronic device can communicate by adjusting the level configuration of D + and/or D-; or, the first electronic device and the second electronic device may communicate with each other by modulating pulses, for example, five pulses are transmitted, where the first three pulses are long pulses and the last two pulses are short pulses, that is, a "three long and two short" pulse signal represents a preset information meaning; or, the first electronic device and the second electronic device can communicate with each other through wireless communication modules arranged on the first electronic device and the second electronic device, and the wireless communication modules can be wireless communication modules such as a bluetooth module and an infrared module.
Specifically, the first electronic device may modulate the first message into a high-frequency carrier, and send the high-frequency carrier to the second electronic device through the VBUS; the second electronic equipment demodulates the high-frequency carrier to obtain the first message; or the first electronic device may send the first message to the second electronic device by multiplexing a UART serial Tx/Rx signal through a D + and/or D-differential line; or the first electronic device and the second electronic device preset a pulse mode corresponding to the first message, and the first electronic device sends the first message to the second electronic device through an "X long Y short" (X, Y are both natural numbers) pulse signal; or, the first electronic device and the second electronic device are preset with wireless modules (such as bluetooth modules), and the first message is sent through the wireless modules. Similarly, the implementation manner of receiving the first response message sent by the second electronic device is the same as the communication manner described above, and details are not repeated here.
Therefore, by adopting the technical scheme provided by the embodiment, the first electronic device can obtain the output current value of the second electronic device by establishing the communication mechanism between the first electronic device and the second electronic device, and compare the output current value with the charging current value of the first electronic device, so that the external short-circuit fault of the first electronic device is detected, and the damage to the charging interface of the first electronic device and even the damage to the first electronic device due to overhigh temperature caused by the short-circuit fault of the charging interface of the first electronic device is avoided.
Example ten
The embodiment of the invention provides an information processing method, which is applied to second electronic equipment, wherein the second electronic equipment can be communicated with first electronic equipment, and the second electronic equipment can charge the first electronic equipment; fig. 10 is a flowchart illustrating an information processing method according to a tenth embodiment of the present invention; as shown in fig. 10, the method includes:
step 1001: a time interval is set.
Step 1002: when the third state is detected, second information is acquired at intervals of time; wherein the third state characterizes the second electronic device as being in a powered state; the second information is used for representing the output current value of the second electronic equipment.
Here, the third state represents a state in which the second electronic device is in a power supply state and the second electronic device supplies power to the first electronic device; specifically, the first electronic device may be a terminal device with a rechargeable battery, such as a mobile phone, a tablet computer, and a notebook computer; the second electronic device may be a device such as a charging adapter that can be plugged into a commercial power socket to charge the first electronic device; in addition, the second electronic device may be a device capable of charging the first electronic device, such as a desktop computer or a notebook computer.
The first electronic equipment and the second electronic equipment are connected through a data line; the data line is used for bearing output current for the second electronic equipment to supply power to the first electronic equipment; specifically, the first electronic device has a charging interface, and the current output by the second electronic device enters a rechargeable battery of the first electronic device through the data line and the charging interface; the charging interfaces may be greatly different in appearance and internal needle number due to different manufacturers; the charging interface may be a MiniUSB interface.
In this embodiment, the second electronic device has an output interface connected to the data line; the second information is used for representing an output current value of the second electronic device, and the output current value is a current value output by the second electronic device from the output interface.
Step 1003: and sending the second information acquired at the time interval to the first electronic equipment.
Here, the second electronic device may establish a communication mechanism with the first electronic device through the data line, the output interface of the second electronic device, and the charging interface of the first electronic device, that is, send the acquired second information to the first electronic device; specifically, taking the charging interface as a MiniUSB interface as an example, the MiniUSB interface has four pins, and the four pins correspond to four lines of the data lines; specifically, four wires corresponding to the four pins are respectively used for bearing: power (VBUS), positive data (D +), negative data (D-) and Ground (GND); in the charging process described in this embodiment, the second electronic device charges the first electronic device through the VBUS in the charging interface and the corresponding VBUS line in the data line.
The first electronic device and the second electronic device can establish a communication mechanism through a VBUS; specifically, a sender can modulate information to be sent into a high-frequency carrier, the high-frequency carrier is sent through the VBUS, and a receiver demodulates the received high-frequency carrier to obtain the information; or the first electronic device and the second electronic device can communicate by multiplexing UART serial port Tx/Rx signals through D + and/or D-differential lines; or the first electronic device and the second electronic device can communicate by adjusting the level configuration of D + and/or D-; or, the first electronic device and the second electronic device may communicate with each other by modulating pulses, for example, five pulses are transmitted, where the first three pulses are long pulses and the last two pulses are short pulses, that is, a "three long and two short" pulse signal represents a preset information meaning; or, the first electronic device and the second electronic device can communicate with each other through wireless communication modules arranged on the first electronic device and the second electronic device, and the wireless communication modules can be wireless communication modules such as a bluetooth module and an infrared module.
Specifically, the second electronic device may modulate the second message into a high-frequency carrier, and send the high-frequency carrier to the first electronic device through the VBUS; the first electronic equipment demodulates the high-frequency carrier to obtain the second message; or the second electronic device may send the second message to the first electronic device by multiplexing a UART serial Tx/Rx signal through a D + and/or D-differential line; or the first electronic device and the second electronic device preset a pulse mode corresponding to the second message, and the second electronic device sends the second message to the first electronic device through an m-long n-short (m and n are both natural numbers) pulse signal; or, the first electronic device and the second electronic device are preset with wireless modules (such as bluetooth modules), and the second message is sent through the wireless modules.
Therefore, by adopting the technical scheme provided by the embodiment, the first electronic device can obtain the output current value of the second electronic device by establishing the communication mechanism between the first electronic device and the second electronic device, and compare the output current value with the charging current value of the first electronic device, so that the external short-circuit fault of the first electronic device is detected, and the damage to the charging interface of the first electronic device and even the damage to the first electronic device due to overhigh temperature caused by the short-circuit fault of the charging interface of the first electronic device is avoided.
EXAMPLE eleven
The embodiment of the invention also provides the electronic equipment, wherein the electronic equipment is first electronic equipment; fig. 11 is a schematic diagram of a first structure of an electronic device according to an embodiment of the invention; as shown in fig. 11, the electronic apparatus includes: a first acquisition unit 11, a first transmission unit 12 and a judgment processing unit 13; wherein,
the first obtaining unit 11 is configured to obtain first information when it is detected that the first electronic device is in a first state; the first state characterizes the first electronic device as being in a charging state; the first information is used for representing the charging current value of the first electronic equipment;
the first transmission unit 12 is configured to obtain second information sent by the second electronic device, where the second information is used to represent an output current value of the second electronic device;
the judgment processing unit 13 is configured to judge whether a difference between the output current value obtained by the first transmission unit 12 and the charging current value obtained by the first obtaining unit 11 is greater than a first threshold, so as to obtain a first judgment result; and when the first judgment result shows that the difference value between the output current value and the charging current value is greater than a first threshold value, determining that the first electronic equipment is in a second state, wherein the second state represents that the first electronic equipment is in an abnormal charging state.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be understood by referring to the description of the information processing method, and each processing unit in the electronic device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that executes the functions described in the embodiment of the present invention on an intelligent terminal.
Example twelve
The embodiment of the invention also provides the electronic equipment, wherein the electronic equipment is first electronic equipment; as shown in fig. 11, the electronic apparatus includes: a first acquisition unit 11, a first transmission unit 12 and a judgment processing unit 13; wherein,
the first obtaining unit 11 is configured to obtain first information when it is detected that the first electronic device is in a first state; the first state characterizes the first electronic device as being in a charging state; the first information is used for representing the charging current value of the first electronic equipment;
the first transmission unit 12 is configured to obtain second information sent by the second electronic device, where the second information is used to represent an output current value of the second electronic device; the first electronic device is used for sending a first message to the second electronic device when the judgment processing unit determines that the first electronic device is in the first state; the third message is used for indicating the second electronic equipment to stop outputting current;
the judgment processing unit 13 is configured to judge whether a difference between the output current value obtained by the first transmission unit 12 and the charging current value obtained by the first obtaining unit 11 is greater than a first threshold, so as to obtain a first judgment result; and when the first judgment result shows that the difference value between the output current value and the charging current value is greater than a first threshold value, determining that the first electronic equipment is in a second state, wherein the second state represents that the first electronic equipment is in an abnormal charging state.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be understood by referring to the description of the information processing method, and each processing unit in the electronic device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that executes the functions described in the embodiment of the present invention on an intelligent terminal.
EXAMPLE thirteen
The embodiment of the invention also provides the electronic equipment, wherein the electronic equipment is first electronic equipment; as shown in fig. 11, the electronic apparatus includes: a first acquisition unit 11, a first transmission unit 12 and a judgment processing unit 13; wherein,
the first obtaining unit 11 is configured to obtain first information when it is detected that the first electronic device is in a first state; the first state characterizes the first electronic device as being in a charging state; the first information is used for representing the charging current value of the first electronic equipment;
the first transmission unit 12 is configured to send a first message to the second electronic device; the first message is used for inquiring second information of the second electronic equipment; receiving a first response message sent by the second electronic equipment; the first response message comprises second information of the second electronic device; the second information is used for representing the output current value of the second electronic equipment;
the judgment processing unit 13 is configured to judge whether a difference between the output current value obtained by the first transmission unit 12 and the charging current value obtained by the first obtaining unit 11 is greater than a first threshold, so as to obtain a first judgment result; and when the first judgment result shows that the difference value between the output current value and the charging current value is greater than a first threshold value, determining that the first electronic equipment is in a second state, wherein the second state represents that the first electronic equipment is in an abnormal charging state.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be understood by referring to the description of the information processing method, and each processing unit in the electronic device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that executes the functions described in the embodiment of the present invention on an intelligent terminal.
Example fourteen
The embodiment of the invention also provides the electronic equipment, wherein the electronic equipment is first electronic equipment; as shown in fig. 11, the electronic apparatus includes: a first acquisition unit 11, a first transmission unit 12 and a judgment processing unit 13; wherein,
the first obtaining unit 11 is configured to obtain first information when it is detected that the first electronic device is in a first state; the first state characterizes the first electronic device as being in a charging state; the first information is used for representing the charging current value of the first electronic equipment;
the first transmission unit 12 is configured to receive a second message sent by the second electronic device at the time interval; the second message comprises second information of the second electronic device; the second information is used for representing the output current value of the second electronic equipment;
the judgment processing unit 13 is configured to judge whether a difference between the output current value obtained by the first transmission unit 12 and the charging current value obtained by the first obtaining unit 11 is greater than a first threshold, so as to obtain a first judgment result; and when the first judgment result shows that the difference value between the output current value and the charging current value is greater than a first threshold value, determining that the first electronic equipment is in a second state, wherein the second state represents that the first electronic equipment is in an abnormal charging state.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be understood by referring to the description of the information processing method, and each processing unit in the electronic device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that executes the functions described in the embodiment of the present invention on an intelligent terminal.
Example fifteen
The embodiment of the invention also provides the electronic equipment, wherein the electronic equipment is first electronic equipment; FIG. 12 is a diagram illustrating a second structure of an electronic device according to an embodiment of the invention; as shown in fig. 12, the electronic apparatus includes: a first acquisition unit 11, a first transmission unit 12, a judgment processing unit 13, a generation unit 14, and an output unit 15; wherein,
the first obtaining unit 11 is configured to obtain first information when it is detected that the first electronic device is in a first state; the first state characterizes the first electronic device as being in a charging state; the first information is used for representing the charging current value of the first electronic equipment;
the first transmission unit 12 is configured to obtain second information sent by the second electronic device, where the second information is used to represent an output current value of the second electronic device;
the judgment processing unit 13 is configured to judge whether a difference between the output current value obtained by the first transmission unit 12 and the charging current value obtained by the first obtaining unit 11 is greater than a first threshold, so as to obtain a first judgment result; when the first judgment result is that the difference value between the output current value and the charging current value is larger than a first threshold value, determining that the first electronic equipment is in a second state, wherein the second state represents that the first electronic equipment is in an abnormal charging state;
the generating unit 14 is configured to generate a first instruction when the determining unit 13 determines that the first electronic device is in the second state;
the output unit 15 is configured to output prompt information according to the first instruction generated by the generating unit 14, so as to remind a user that the first electronic device is in an abnormal charging state.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be understood by referring to the description of the information processing method, and each processing unit in the electronic device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that executes the functions described in the embodiment of the present invention on an intelligent terminal.
In the eleventh to fifteenth embodiments of the present invention, the first obtaining unit 11, the judging unit 13, and the generating unit 14 in the electronic device may be implemented by a Central Processing Unit (CPU), a Digital Signal Processor (DSP), or a programmable gate array (FPGA) in the electronic device in an actual application; in practical application, the first transmission unit 12 in the electronic device may be implemented by a communication interface or a wireless transmission module of the electronic device; the communication interface can be a USB interface; the wireless transmission module can be a Bluetooth module or an infrared module; the output unit 15 in the electronic device can be implemented by a display screen or a display, or a speaker, or a display lamp of the electronic device in practical application.
Example sixteen
The embodiment of the invention also provides the electronic equipment, wherein the electronic equipment is second electronic equipment; FIG. 13 is a schematic diagram of a third structure of an electronic device according to an embodiment of the invention; as shown in fig. 13, the electronic apparatus includes: a second acquisition unit 21 and a second transmission unit 22; wherein,
the second obtaining unit 21 is configured to obtain second information when it is detected that the second electronic device is in a third state; the third state characterizes that the second electronic device is in a power supply state; the second information is used for representing the output current value of the second electronic equipment;
the second transmission unit 22 is configured to send the second information acquired by the second acquisition unit 21 to the first electronic device.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be understood by referring to the description of the information processing method, and each processing unit in the electronic device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that executes the functions described in the embodiment of the present invention on an intelligent terminal.
Example seventeen
The embodiment of the invention also provides the electronic equipment, wherein the electronic equipment is second electronic equipment; FIG. 14 is a diagram illustrating a fourth exemplary configuration of an electronic device according to an embodiment of the invention; as shown in fig. 14, the electronic apparatus includes: a second acquisition unit 21, a second transmission unit 22, and an information processing unit 23; wherein,
the second obtaining unit 21 is configured to obtain second information when it is detected that the second electronic device is in a third state; the third state characterizes that the second electronic device is in a power supply state; the second information is used for representing the output current value of the second electronic equipment;
the second transmission unit 22 is configured to send the second information acquired by the second acquisition unit 21 to the first electronic device; the first electronic device is also used for receiving a third message sent by the first electronic device; the third message is used for indicating the second electronic equipment to stop outputting current;
the information processing unit 23 is configured to generate a second instruction according to the third message received by the second transmission unit 22, and stop outputting current according to the second instruction.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be understood by referring to the description of the information processing method, and each processing unit in the electronic device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that executes the functions described in the embodiment of the present invention on an intelligent terminal.
EXAMPLE eighteen
The embodiment of the invention also provides the electronic equipment, wherein the electronic equipment is second electronic equipment; fig. 15 is a schematic diagram of a fifth structure of an electronic device according to an embodiment of the invention; as shown in fig. 15, the electronic apparatus includes: a second acquisition unit 21, a second transmission unit 22, and a setting unit 24; wherein,
the setting unit 24 is used for setting a time interval;
the second obtaining unit 21 is configured to obtain the second information every the time interval set by the setting unit 24 when detecting that the second electronic device is in the third state; the third state characterizes that the second electronic device is in a power supply state; the second information is used for representing the output current value of the second electronic equipment;
the second transmission unit 22 is configured to send the second information acquired by the second acquisition unit 21 to the first electronic device.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be understood by referring to the description of the information processing method, and each processing unit in the electronic device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that executes the functions described in the embodiment of the present invention on an intelligent terminal.
Example nineteen
The embodiment of the invention also provides the electronic equipment, wherein the electronic equipment is second electronic equipment; as shown in fig. 15, the electronic apparatus includes: a second acquisition unit 21, a second transmission unit 22, and a setting unit 24; wherein,
the setting unit 24 is used for setting a time interval;
the second obtaining unit 21 is configured to obtain the second information every the time interval set by the setting unit 24 when detecting that the second electronic device is in the third state; the third state characterizes that the second electronic device is in a power supply state; the second information is used for representing the output current value of the second electronic equipment;
the second transmission unit 22 is configured to receive a first message sent by the first electronic device; the first message is used for inquiring second information of the second electronic equipment; and is further configured to send a first response message to the first electronic device, where the first response message includes the second information acquired by the second acquiring unit 21.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be understood by referring to the description of the information processing method, and each processing unit in the electronic device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that executes the functions described in the embodiment of the present invention on an intelligent terminal.
Example twenty
The embodiment of the invention also provides the electronic equipment, wherein the electronic equipment is second electronic equipment; as shown in fig. 15, the electronic apparatus includes: a second acquisition unit 21, a second transmission unit 22, and a setting unit 24; wherein,
the setting unit 24 is used for setting a time interval;
the second obtaining unit 21 is configured to obtain the second information every the time interval set by the setting unit 24 when detecting that the second electronic device is in the third state; the third state characterizes that the second electronic device is in a power supply state; the second information is used for representing the output current value of the second electronic equipment;
the second transmission unit 22 is configured to send the second information acquired by the second acquisition unit 21 at the time interval to the first electronic device.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be understood by referring to the description of the information processing method, and each processing unit in the electronic device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that executes the functions described in the embodiment of the present invention on an intelligent terminal.
In the sixteenth to twenty embodiments of the present invention, the second obtaining unit 21, the information processing unit 23, and the setting unit 24 in the electronic device may all be implemented by a CPU, a DSP, or an FPGA in the electronic device in actual application; in practical application, the second transmission unit 22 in the electronic device may be implemented by a communication interface or a wireless transmission module in the electronic device; the communication interface can be a USB interface; the wireless transmission module can be a Bluetooth module or an infrared module.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus, and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (20)

1. An information processing method is applied to a first electronic device, wherein the first electronic device can communicate with a second electronic device, and the first electronic device can be charged through the second electronic device; the method comprises the following steps:
when the first state is detected, first information is acquired; the first state characterizes the first electronic device as being in a charging state; the first information is used for representing the charging current value of the first electronic equipment;
acquiring second information sent by the second electronic device, wherein the second information is used for representing the output current value of the second electronic device;
judging whether the difference value of the output current value and the charging current value is larger than a first threshold value or not, and obtaining a first judgment result;
and when the first judgment result shows that the difference value between the output current value and the charging current value is greater than a first threshold value, determining that the first electronic equipment is in a second state, wherein the second state represents that the first electronic equipment is in an abnormal charging state.
2. The method of claim 1, wherein when it is determined that the first electronic device is in the second state, the method further comprises: and generating a first instruction, and outputting prompt information according to the first instruction so as to remind a user that the first electronic equipment is in an abnormal charging state.
3. The method of claim 1, wherein when it is determined that the first electronic device is in the second state, the method further comprises: sending a third message to the second electronic device; the third message is used for instructing the second electronic device to stop outputting the current.
4. The method of claim 1, wherein the obtaining the second information sent by the second electronic device comprises:
the first electronic equipment sends a first message to the second electronic equipment; the first message is used for inquiring second information of the second electronic equipment;
receiving a first response message sent by the second electronic equipment; the first response message includes second information of the second electronic device.
5. The method of claim 1, wherein the second electronic device sets a time interval; the acquiring of the second information sent by the second electronic device includes:
receiving a second message sent by the second electronic equipment at the time interval; the second message includes second information of the second electronic device.
6. An information processing method is applied to a second electronic device, wherein the second electronic device can communicate with a first electronic device, and the second electronic device can charge the first electronic device; the method comprises the following steps:
when the third state is detected, second information is obtained; the third state characterizes that the second electronic device is in a power supply state; the second information is used for representing the output current value of the second electronic equipment;
and sending the acquired second information to the first electronic equipment.
7. The method of claim 6, further comprising: receiving a third message sent by the first electronic equipment; the third message is used for indicating the second electronic equipment to stop outputting current;
and generating a second instruction according to the third message, and stopping outputting current according to the second instruction.
8. The method of claim 6, wherein the obtaining second information of the second electronic device comprises:
setting a time interval;
and acquiring second information of the second electronic equipment at intervals.
9. The method of claim 8, wherein sending the obtained second information to the first electronic device comprises:
receiving a first message sent by the first electronic equipment; the first message is used for inquiring second information of the second electronic equipment;
sending a first response message to the first electronic device, the first response message including the second information.
10. The method of claim 8, wherein sending the obtained second information to the first electronic device comprises:
and sending the second information acquired at the time interval to the first electronic equipment.
11. An electronic device, the electronic device being a first electronic device; characterized in that the electronic device comprises: the device comprises a first acquisition unit, a first transmission unit and a judgment processing unit; wherein,
the first obtaining unit is used for obtaining first information when the first electronic equipment is detected to be in a first state; the first state characterizes the first electronic device as being in a charging state; the first information is used for representing the charging current value of the first electronic equipment;
the first transmission unit is used for acquiring second information sent by the second electronic device, wherein the second information is used for representing the output current value of the second electronic device;
the judgment processing unit is used for judging whether the difference value between the output current value acquired by the first transmission unit and the charging current value acquired by the first acquisition unit is larger than a first threshold value or not, and acquiring a first judgment result; and when the first judgment result shows that the difference value between the output current value and the charging current value is greater than a first threshold value, determining that the first electronic equipment is in a second state, wherein the second state represents that the first electronic equipment is in an abnormal charging state.
12. The electronic device according to claim 11, further comprising a generation unit and an output unit; wherein,
the generating unit is used for generating a first instruction when the judging and processing unit determines that the first electronic equipment is in the second state;
the output unit is used for outputting prompt information according to the first instruction generated by the generation unit so as to remind a user that the first electronic equipment is in an abnormal charging state.
13. The electronic device according to claim 11, wherein the first transmission unit is further configured to send a third message to the second electronic device when the determination processing unit determines that the first electronic device is in the second state; the third message is used for instructing the second electronic device to stop outputting the current.
14. The electronic device of claim 11, wherein the first transmission unit is configured to send a first message to the second electronic device; the first message is used for inquiring second information of the second electronic equipment; receiving a first response message sent by the second electronic equipment; the first response message includes second information of the second electronic device.
15. The electronic device of claim 11, wherein the first transmission unit is configured to receive a second message sent by the second electronic device at the time interval; the second message includes second information of the second electronic device.
16. An electronic device, the electronic device being a second electronic device, the electronic device comprising: a second acquisition unit and a second transmission unit; wherein,
the second obtaining unit is configured to obtain second information when it is detected that the second electronic device is in a third state; the third state characterizes that the second electronic device is in a power supply state; the second information is used for representing the output current value of the second electronic equipment;
the second transmission unit is configured to send the second information acquired by the second acquisition unit to the first electronic device.
17. The electronic device according to claim 16, characterized in that the electronic device further comprises an information processing unit;
the second transmission unit is further configured to receive a third message sent by the first electronic device; the third message is used for indicating the second electronic equipment to stop outputting current;
the information processing unit is used for generating a second instruction according to the third message received by the second transmission unit and stopping outputting current according to the second instruction.
18. The electronic device according to claim 16, further comprising a setting unit configured to set a time interval;
and the second acquiring unit is used for acquiring the second information at the time interval set by the setting unit.
19. The electronic device of claim 18, wherein the second transmission unit is configured to receive a first message sent by the first electronic device; the first message is used for inquiring second information of the second electronic equipment; and further configured to send a first response message to the first electronic device, where the first response message includes the second information.
20. The electronic device according to claim 18, wherein the second transmitting unit is configured to send the second information acquired by the second acquiring unit at the time interval to the first electronic device.
CN201410303020.6A 2014-06-27 2014-06-27 Information processing method and electronic equipment Active CN105334420B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410303020.6A CN105334420B (en) 2014-06-27 2014-06-27 Information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410303020.6A CN105334420B (en) 2014-06-27 2014-06-27 Information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN105334420A true CN105334420A (en) 2016-02-17
CN105334420B CN105334420B (en) 2020-02-04

Family

ID=55285066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410303020.6A Active CN105334420B (en) 2014-06-27 2014-06-27 Information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105334420B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106972598A (en) * 2017-03-31 2017-07-21 北京小米移动软件有限公司 The detection method and device of short circuit
CN107565637A (en) * 2017-09-11 2018-01-09 深圳天珑无线科技有限公司 A kind of charge protection device and charging system
CN107579563A (en) * 2017-09-04 2018-01-12 广东小天才科技有限公司 Charging abnormity detection method and wearable device
CN108347033A (en) * 2017-01-25 2018-07-31 维沃移动通信有限公司 A kind of method and mobile terminal, charging equipment of charging interface protection
CN108599290A (en) * 2018-03-29 2018-09-28 珠海市魅族科技有限公司 A kind of charge protection method, device, terminal device and storage medium
CN109792156A (en) * 2016-11-26 2019-05-21 华为技术有限公司 A kind of method and apparatus of the real-time monitoring of the case where charging link
CN110022600A (en) * 2019-04-09 2019-07-16 惠州Tcl移动通信有限公司 Adjusting method, device, storage medium and the mobile terminal of driving current
CN114360158A (en) * 2021-11-23 2022-04-15 盒马(中国)有限公司 Equipment management method and device

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6118255A (en) * 1997-11-18 2000-09-12 Sony Corporation Charging apparatus, secondary battery apparatus, charging system, and charging method
US20080125932A1 (en) * 2006-11-29 2008-05-29 Panasonic Ev Energy Co., Ltd. Abnormality detecting device, abnormality detecting method, and computer readable medium storing an abnormality detecting program
CN101471578A (en) * 2007-12-27 2009-07-01 佳能株式会社 Charging system and charger
CN101604860A (en) * 2008-03-31 2009-12-16 凹凸电子(武汉)有限公司 Battery management system and the method that the power brick that includes multiple batteries is charged
CN101902063A (en) * 2009-05-28 2010-12-01 通用汽车环球科技运作公司 The system and method that is used for electric vehicle charging
CN102545303A (en) * 2010-12-08 2012-07-04 财团法人工业技术研究院 Systems and methods for controlling charge procedure of electric vehicles and electric vehicle charging system
CN102577002A (en) * 2010-10-15 2012-07-11 三洋电机株式会社 Electricity storage system
CN102611145A (en) * 2011-01-21 2012-07-25 北京动力源科技股份有限公司 Method and device for managing battery of direct current power supply
CN102834993A (en) * 2010-04-12 2012-12-19 Abb技术有限公司 Method and apparatus for differential protection of an electric connection
CN103762691A (en) * 2014-01-28 2014-04-30 广东欧珀移动通信有限公司 Battery charging device and battery charging protection control method
CN103762702A (en) * 2014-01-28 2014-04-30 广东欧珀移动通信有限公司 Charging device of electronic equipment and power adapter of charging device
CN103795040A (en) * 2014-01-28 2014-05-14 广东欧珀移动通信有限公司 Electronic device and power adapter thereof
CN103875160A (en) * 2011-10-21 2014-06-18 索尼公司 Power-feed device and power-feed system

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6118255A (en) * 1997-11-18 2000-09-12 Sony Corporation Charging apparatus, secondary battery apparatus, charging system, and charging method
US20080125932A1 (en) * 2006-11-29 2008-05-29 Panasonic Ev Energy Co., Ltd. Abnormality detecting device, abnormality detecting method, and computer readable medium storing an abnormality detecting program
CN101471578A (en) * 2007-12-27 2009-07-01 佳能株式会社 Charging system and charger
CN101604860A (en) * 2008-03-31 2009-12-16 凹凸电子(武汉)有限公司 Battery management system and the method that the power brick that includes multiple batteries is charged
CN101902063A (en) * 2009-05-28 2010-12-01 通用汽车环球科技运作公司 The system and method that is used for electric vehicle charging
CN102834993A (en) * 2010-04-12 2012-12-19 Abb技术有限公司 Method and apparatus for differential protection of an electric connection
CN102577002A (en) * 2010-10-15 2012-07-11 三洋电机株式会社 Electricity storage system
CN102545303A (en) * 2010-12-08 2012-07-04 财团法人工业技术研究院 Systems and methods for controlling charge procedure of electric vehicles and electric vehicle charging system
CN102611145A (en) * 2011-01-21 2012-07-25 北京动力源科技股份有限公司 Method and device for managing battery of direct current power supply
CN103875160A (en) * 2011-10-21 2014-06-18 索尼公司 Power-feed device and power-feed system
CN103762691A (en) * 2014-01-28 2014-04-30 广东欧珀移动通信有限公司 Battery charging device and battery charging protection control method
CN103762702A (en) * 2014-01-28 2014-04-30 广东欧珀移动通信有限公司 Charging device of electronic equipment and power adapter of charging device
CN103795040A (en) * 2014-01-28 2014-05-14 广东欧珀移动通信有限公司 Electronic device and power adapter thereof

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109792156A (en) * 2016-11-26 2019-05-21 华为技术有限公司 A kind of method and apparatus of the real-time monitoring of the case where charging link
CN108347033A (en) * 2017-01-25 2018-07-31 维沃移动通信有限公司 A kind of method and mobile terminal, charging equipment of charging interface protection
CN106972598A (en) * 2017-03-31 2017-07-21 北京小米移动软件有限公司 The detection method and device of short circuit
CN106972598B (en) * 2017-03-31 2020-09-11 北京小米移动软件有限公司 Short circuit detection method and device
CN107579563A (en) * 2017-09-04 2018-01-12 广东小天才科技有限公司 Charging abnormity detection method and wearable device
CN107565637A (en) * 2017-09-11 2018-01-09 深圳天珑无线科技有限公司 A kind of charge protection device and charging system
CN108599290A (en) * 2018-03-29 2018-09-28 珠海市魅族科技有限公司 A kind of charge protection method, device, terminal device and storage medium
CN110022600A (en) * 2019-04-09 2019-07-16 惠州Tcl移动通信有限公司 Adjusting method, device, storage medium and the mobile terminal of driving current
CN110022600B (en) * 2019-04-09 2022-05-06 惠州Tcl移动通信有限公司 Driving current adjusting method and device, storage medium and mobile terminal
CN114360158A (en) * 2021-11-23 2022-04-15 盒马(中国)有限公司 Equipment management method and device

Also Published As

Publication number Publication date
CN105334420B (en) 2020-02-04

Similar Documents

Publication Publication Date Title
CN105334420B (en) Information processing method and electronic equipment
CN105404450B (en) A kind of information processing method and electronic equipment
CN105471008A (en) Information processing method, first electronic equipment and second electronic equipment
US9823286B2 (en) Moisture detection system for external electrical connector and methods therefor
TW201724690A (en) Method and device for controlling charging, power adapter and mobile terminal
WO2018076623A1 (en) Method and device for detecting charging abnormality and power adapter
US20130101132A1 (en) Method and Device for Earphone and USB to Share Micro-USB Interface
US9018896B2 (en) Method and system for determining whether a portable device is charging
CN203871616U (en) USB data line
RU2013142958A (en) MOBILE TERMINAL AND METHOD OF INTERFACE CONNECTION FOR IT
JP2009011153A (en) Device and method for detecting power supply
EP3346574A1 (en) Hand-held electronic apparatus, charging system, connector and charging management method thereof
CN210042141U (en) Wireless earphone, wireless earphone charging box and charging control system
KR20190000690A (en) Electronic device and method for controlling a charging thereof
KR20210101712A (en) Power receiving device and method for controlling a charging current
CA2858921A1 (en) Method and system for communication with a battery charger
CN104917227B (en) A kind of method, charging equipment and terminal device for controlling charging
CN112838645B (en) Charging control method and device for charging box, charging box and readable storage medium
CN112018831A (en) Charging control method, charging control device and electronic equipment
JP2015032976A (en) Information processing apparatus, charging control method and program
US11728667B2 (en) Method and apparatus for deeply discharged battery detection
CN104701933B (en) OTG selective charging circuit and portable loudspeaker box
WO2018214265A1 (en) Device and method for detecting voltage sampling wire harness of battery module
CN105450843A (en) Method and device of arranging operation mode of mobile terminal
JP2015144519A (en) Information processing device, and processing method in information processing device

Legal Events

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