CN112929485B - Electronic device, interface module protection method, protection device and storage medium - Google Patents

Electronic device, interface module protection method, protection device and storage medium Download PDF

Info

Publication number
CN112929485B
CN112929485B CN201911246537.5A CN201911246537A CN112929485B CN 112929485 B CN112929485 B CN 112929485B CN 201911246537 A CN201911246537 A CN 201911246537A CN 112929485 B CN112929485 B CN 112929485B
Authority
CN
China
Prior art keywords
resistor
signal value
charging pin
interface
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911246537.5A
Other languages
Chinese (zh)
Other versions
CN112929485A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201911246537.5A priority Critical patent/CN112929485B/en
Publication of CN112929485A publication Critical patent/CN112929485A/en
Application granted granted Critical
Publication of CN112929485B publication Critical patent/CN112929485B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • G01R19/165Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values
    • G01R19/16533Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values characterised by the application
    • G01R19/16538Indicating that current or voltage is either above or below a predetermined value or within or outside a predetermined range of values characterised by the application in AC or DC supplies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The present disclosure relates to an electronic device, an interface module protection method, a protection apparatus, and a storage medium, wherein the electronic device includes: an interface module comprising: a charging pin and a grounded interface housing; the detection module is respectively connected with the charging pin and the interface shell and is used for detecting a signal value between the charging pin and the interface shell; the signal value is used for determining the connection state of the charging pin and the interface shell.

Description

Electronic device, interface module protection method, protection device and storage medium
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to an electronic device, an interface module protection method, a protection apparatus, and a storage medium.
Background
An interface module is generally disposed in an electronic device. When the interface module is connected with the charging equipment, the charging equipment can charge the electronic equipment through the interface module.
When the interface module broke down, if the user can not in time discover the interface module that broke down to still charge electronic equipment through this interface module, can lead to electronic equipment to take place to damage, influence electronic equipment's security.
Disclosure of Invention
In view of this, the present disclosure provides an electronic device, an interface module protection method, a protection apparatus, and a storage medium.
According to a first aspect of embodiments of the present disclosure, there is provided an electronic device, including:
an interface module comprising: a charging pin and a grounded interface housing;
the detection module is respectively connected with the charging pin and the interface shell and is used for detecting a signal value between the charging pin and the interface shell;
the signal value is used for judging the connection state of the charging pin and the interface shell.
Optionally, the detection module includes:
the first resistor is electrically connected with a power management module of the electronic equipment;
a first end of the second resistor is electrically connected with the first resistor and the charging pin, and a second end of the second resistor is grounded; the second end of the second resistor is opposite to the first end of the second resistor;
the processing unit is connected with the first end of the second resistor and is used for outputting an abnormal prompt when the signal value of the first end of the second resistor is smaller than a preset signal value; when the signal value of the first end of the second resistor is smaller than the preset signal value, the charging pin and the interface shell are in a short-circuit state.
Optionally, the first resistor is electrically connected to a first output end of the power management module;
the processing unit includes:
a comparison circuit, comprising: a first input, a second input and an output;
the output circuit is connected with the comparison circuit and is used for outputting the abnormity reminding output circuit;
the first input end is electrically connected with the first end of the second resistor;
the second input end is electrically connected with the second output end of the power management module; the second output end of the power management module outputs the preset signal value;
the output end is used for outputting a first result indicating that the charging pin and the interface shell are in the short-circuit state to the output circuit when the signal value of the first end of the second resistor is smaller than the preset signal value;
the output end is further configured to output a second result indicating that the charging pin and the interface housing are in an open circuit state to the output circuit when the signal value of the first end of the second resistor is greater than or equal to the preset signal value.
Optionally, the detection module further includes:
and the unidirectional conducting device is electrically connected with the power management module and the first resistor respectively.
A second aspect of the embodiments of the present disclosure provides an interface module protecting method, which is applied to an electronic device according to the first aspect of the embodiments of the present disclosure, and the method includes:
detecting a signal value between a charging pin of the electronic device and a grounded interface housing;
and judging the connection state of the charging pin and the interface shell according to the signal value.
Optionally, the detecting a signal value between a charging pin of the electronic device and a grounded interface housing includes:
detecting an electric signal value between a first resistor and a second resistor connected in series; the first resistor is electrically connected with a power management module of the electronic device, a first end of the second resistor is electrically connected with the first resistor and the charging pin respectively, a second end of the second resistor is grounded, and the second end of the second resistor and the first end of the second resistor are opposite ends;
the determining the connection state of the charging pin and the interface housing according to the signal value includes:
when the signal value of the first end of the second resistor is smaller than a preset signal value, determining that the charging pin and the interface shell are in a short-circuit state;
and when the signal value of the first end of the second resistor is greater than the preset signal value, determining that the charging pin and the interface shell are in an open circuit state.
Optionally, when the signal value of the first end of the second resistor is smaller than a preset signal value, determining that the charging pin and the interface housing are in a short-circuit state includes:
when the signal value of the first end of the second resistor is smaller than the preset signal value, outputting a first result, and determining that the charging pin and the interface shell are in a short-circuit state according to the first result;
when the signal value of the first end of the second resistor is greater than the preset signal value, it is determined that the charging pin and the interface housing are in an open circuit state, and the method includes:
and when the signal value of the first end of the second resistor is greater than or equal to the preset signal value, outputting a second result, and determining that the charging pin and the interface shell are in an open circuit state according to the second result.
Optionally, the method further comprises:
and when the charging pin and the interface shell are in a short circuit state, the one-way conducting device allowing signals to be transmitted from the power management module to the first resistor is turned off.
Optionally, the method further comprises:
and outputting an abnormal prompt when the charging pin and the interface shell are in a short-circuit state.
A third aspect of the embodiments of the present disclosure provides an interface module protection device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: when the executable instructions are executed, the steps in the method according to the second aspect of the embodiment of the present disclosure are implemented.
A fourth aspect of the embodiments of the present disclosure provides a non-transitory computer-readable storage medium, wherein when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the steps of the method according to the second aspect of the embodiments of the present disclosure.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
when the electronic equipment is not connected with the charger, the signal value between the charging pin of the electronic equipment and the interface shell is detected at any time through the detection module, and the connection state of the charging pin and the interface shell is judged according to the signal value. Therefore, the charging pin and the interface shell in the short circuit state can be found in time, property loss which is possibly brought by the fact that a user cannot know that the charging pin and the interface shell are in the short circuit state and still use the interface module to charge the electronic equipment is reduced, and safety of the electronic equipment is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a schematic diagram illustrating a charger charging an electronic device according to an example embodiment.
FIG. 2 is a block diagram illustrating an electronic device in accordance with an example embodiment.
FIG. 3 is a partially schematic illustration of an electronic device shown in accordance with an example embodiment.
FIG. 4 is a schematic diagram illustrating an exception alert, according to an example embodiment.
FIG. 5 is a partially schematic illustration of another electronic device shown in accordance with an example embodiment.
Fig. 6 is a flow chart illustrating a method of interface module protection according to an example embodiment.
FIG. 7 is a block diagram illustrating an interface protection device in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the disclosure, as detailed in the appended claims.
Electronic equipment is in long-term use, and some electrically conductive stains such as dust, water stain, or metal particle can get into electronic equipment's interface module usually, lead to the interface module. Taking the electronic device as a mobile phone and the interface module as a Universal Serial Bus (USB) interface as an example, fig. 1 is a schematic diagram of a charger charging the mobile phone through the USB interface. Referring to fig. 1, the USB interface of the mobile phone generally has an interface housing and a plurality of pins. For example, one charging (VBUS) pin and one Ground (GND) pin. Some USB interfaces further include a D _ M pin, a D _ P pin, and an ID pin. The pin D _ M and the pin D _ P are a pair of differential data pins for transmitting a pair of differential signals. According to the level of the ID pin, whether the mobile phone is a master device or a slave device can be judged when the mobile phone is connected with other electronic equipment.
In normal state, the charging pin of the mobile phone is not connected with the metal shell, and can be regarded as the resistance (R) between the charging pin and the metal shellV) The impedance value of (a) is infinite. Since the interface housing is not enclosed, conductive contaminants can enter the interface housing during routine use. When the conductive dirt entering the USB interface reaches a certain degree, the power pin of the USB interface of the mobile phone and the metal shell are in a virtual connection or short circuit state, and at the moment, the resistance (R) between the charging pin and the metal shellV) The impedance value of (2) is particularly small.
The interface housing of the mobile phone is made of metal, and the interface housing is grounded to a Printed Wire Board (PWB). Therefore, when the power pin of the USB interface and the metal shell are in a virtual connection or short circuit state and the charger is electrically connected to the USB interface of the mobile phone, the charger is connected to the charging pin and is directly connected to the ground through the interface shell, which causes short circuit of the charger, excessive current in the charger and the USB interface of the mobile phone, and serious heat generation, which may cause the charging pin of the USB interface of the mobile phone to be burned out and causes loss of the mobile phone. On the other hand, the mobile phone and the charger may be on fire, and great risks and hazards exist.
FIG. 2 is a block diagram of an electronic device 100 shown in accordance with an example embodiment. Referring to fig. 2, the electronic device 100 includes: an interface module 110 and a detection module 120.
The interface module 110 includes: a charging pin 111 and an interface housing 112 that is grounded.
The electronic device 100 may include: mobile devices and stationary devices. Such as mobile devices, e.g., cell phones, wearable smart devices, computers, etc. For another example, the fixed equipment such as smart televisions, smart refrigerators, etc.
The interface housing 112 is made of a metal, such as aluminum, copper, or the like.
The detection module 120 is respectively connected with the charging pin 111 and the interface housing 112, and the detection module 120 is used for detecting a signal value between the charging pin 111 and the interface housing 112; the signal value is used to determine the connection state of the charging pin 111 and the interface housing 112.
The detection module 120 may include a Central Processing Unit (CPU) of the electronic apparatus 100.
It is understood that, in order to provide better protection, the detection module 120 may always detect the signal value between the charging pin 111 and the interface housing 112 when the electronic device 100 is in the power-on state, so as to improve the timeliness of determining the connection state between the charging pin 111 and the interface housing 112. In addition, in order to reduce the power consumed by the detection module 120, the detection module 120 may periodically detect the signal value between the charging pin 111 and the interface housing 112 when the electronic device 100 is in the power consumption state.
In the normal state, the charging pin 111 and the interface housing 112 are in the open state.
When conductive foreign matters and the like enter the interface module 110 to a certain extent, the charging pin 111 and the interface housing 112 are in a short circuit state. Here, the charging pin 111 and the interface housing 112 in the shorted state are shorted or virtual connected.
In the related art, after the charger is electrically connected to the electronic device 100 through the interface module 110 of the electronic device 100, the connection state between the charging pin 111 and the interface housing 112 can be determined by detecting the voltage value of the charging pin 111. However, if the user does not know that the charging pin 111 and the interface housing 112 are shorted and still electrically connects the charger to the electronic device 100 through the interface module 110 when the charging pin 111 and the interface housing 112 are shorted, a large amount of heat may be rapidly generated in the charger and the interface module 110 at the moment the charger is inserted into the interface module 110, which may burn the charging pin 111 of the interface module 110 and even cause fire.
It can be understood that, after the charger is connected to the interface module 110 of the electronic device 100, the voltage value of the charging pin 111 is detected to determine the connection state of the charging pin 111 and the interface housing 112, and the charging pin 111 and the interface housing 112 in the short circuit state cannot be found in time. Therefore, after the charger is connected to the interface module 110 of the electronic device 100, the voltage value of the charging pin 111 is detected to determine the connection state of the charging pin 111 and the interface housing 112, and there still exists a situation that the electronic device 100 is damaged due to the short circuit state of the charging pin 111 and the interface housing 112, and the protection effect on the electronic device 100 is poor.
In the embodiment of the present disclosure, when the electronic device 100 is not connected to the charger, the detection module 120 detects a signal value between the charging pin 111 and the interface housing 112 of the electronic device 100 at any time, and determines a connection state between the charging pin 111 and the interface housing 112 according to the signal value. Therefore, the charging pin 111 and the interface housing 112 in the short circuit state can be found in time, property loss which is possibly caused by that a user still charges the electronic device 100 by using the interface module 110 because the user does not know that the charging pin 111 and the interface housing 112 are in the short circuit state is reduced, and the safety of the electronic device 100 is improved.
In some embodiments, the interface module 110 is provided with a controlled switch, and when the detection module detects that the charging pin 111 of the interface module 110 and the interface housing 112 are in a short circuit state, the controlled switch is controlled to be turned off, so as to reduce abnormal use of the interface module caused by charging, discharging or data transmission through the interface module 110.
In some embodiments, as shown in fig. 3, the detection module 120 includes:
a first resistor 121 electrically connected to the power management module 130 of the electronic device 100;
a second resistor 122, a first end of the second resistor 122 is electrically connected to the first resistor 121 and the charging pin 111, and a second end of the second resistor 122 is grounded; wherein, the second end of the second resistor 122 and the first end of the second resistor 122 are opposite ends;
the processing unit 123 is connected to the first end of the second resistor 122, and the processing unit 123 is configured to output an exception alert when the signal value of the first end of the second resistor 122 is smaller than a preset signal value; when the signal value of the first end of the second resistor 122 is smaller than the preset signal value, the charging pin 111 and the interface housing 112 are in a short-circuit state.
The first resistor 121 may include: a single resistor or a plurality of resistors. When the first resistance 121 includes a plurality of resistors, the plurality of resistors may be connected in series or in parallel. Here, the resistance value required by the first resistor 121 may be designed according to the actual application requirement, and the number of resistors used and the connection manner between the resistors may be selected according to the resistance value required by the first resistor 121. For example, when the required resistance value of the first resistor 121 is 100 kilo-ohms (Kohm), one 100 kilo-ohm resistor may be used as the first resistor 121, or 2 resistors having a resistance value of 50 kilo-ohms may be connected in series to constitute the first resistor 121.
The power management module 130 may be a power management chip of the electronic device 100. The power management chip can have a plurality of output ends, and the signal values of the electric signals output by the plurality of output ends can be different. In this way, the power management chip can provide electrical signals with different signal values to the functional elements of the plurality of electronic devices to meet the requirements of the different functional elements.
The second resistor 122 may include: a single resistor or a plurality of resistors. When the second resistance 122 includes a plurality of resistors, the plurality of resistors may be connected in series or in parallel. Here, the resistance value required by the second resistor 122 may be designed according to the actual application requirement, and the number of resistors used and the connection manner between the resistors may be selected according to the resistance value required by the second resistor 122. For example, when the required resistance value of the second resistor 122 is 10 kohms, 1 resistor of 10 kohms may be used as the second resistor 122, or 2 resistors of 5 kohms may be connected in series to form the second resistor 122.
Since the first end (point a) of the second resistor 122 is electrically connected to the charging pin 111, and the second end of the second resistor 122 and the interface housing 112 are both grounded, the first end of the second resistor 122 has the same signal value as the charging pin 111, and the second end of the second resistor 122 has the same signal value as the interface housing 112, that is, the signal value of the first end of the second resistor 122 is equal to the signal value between the charging pin 111 and the interface housing 112. Here, the signal value may be a voltage value, a current value, or the like.
The processing unit 123 may be a central processor of the electronic device 100. An Analog-to-Digital Converter (Analog-to-Digital Converter) subunit in the processing unit 123 sends a signal to the interface module to obtain a signal value of the first end of the second resistor 122.
Referring to fig. 3, since the first resistor 121 and the second resistor 122 are connected in series, when the interface module of the electronic device 100 is not connected to the charger and the charging pin 111 and the interface housing 112 are in the open circuit state, it can be known according to the voltage division principle that:
Figure BDA0002307272500000071
wherein U is the voltage value at point A, R1Is the resistance value, R, of the first resistor 1212V is the resistance value of the second resistor 122, and is the voltage value provided by the power management module 130 to the first resistor 121 and the second resistor 122.
The preset signal value may be smaller than the signal value of the voltage signal provided by the power management module 130 to the first resistor 121 and greater than or equal to the voltage value at the point a.
Taking the example that the signal value of the voltage signal provided by the power management module 130 to the first resistor 121 is 1.8 volts, the resistance value of the first resistor 121 is 100 kilo-ohms, and the resistance value of the second resistor 122 is 10 kilo-ohms, the predetermined signal value may be greater than or equal to (10/110) × 1.8. For example, the predetermined signal value may be 0.17 volts, 0.5 volts, etc.
Taking the preset signal value as 0.17 volt as an example, when the signal value of the first end of the second resistor 122 acquired by the processing unit 123 is equal to 0.17 volt, the processing unit 123 determines that the charging pin 111 and the interface housing 112 are in the open circuit state, and taking the electronic device 100 as a mobile phone as an example, it indicates that the interface module of the mobile phone is in the normal state.
When the signal value of the first end of the second resistor 122 obtained by the processing unit 123 is much less than 0.17 volt, for example, 0.01 volt, the processing unit 123 determines that the charging pin 111 and the interface housing 112 are in a short circuit state, that is, the interface module of the mobile phone is in an abnormal state. At this time, the processing unit 123 outputs an abnormality alert.
Specifically, the processing unit 123 may output a control signal, and the display screen of the electronic device 100 displays the abnormality prompting message according to the control signal. As shown in fig. 4, the abnormality reminding information displayed on the display screen may include the following contents: if the USB charging port of the mobile phone is short-circuited, please immediately shut down the mobile phone to stop using the mobile phone and clear the USB interface. Charging strictly! ".
When the user is using the electronic device 100, the electronic device 100 may further lock the display screen in the unlocked state according to the control signal, stop the current operation of the user, and play a role in reminding the user that the electronic device 100 is abnormal.
The exception alert may also include: and voice prompt information. At this time, the electronic apparatus 100 may include: and the audio output component is used for outputting voice prompt information according to the control signal output by the processing unit 123. Specifically, taking the example that the audio output component of the electronic device 100 is a microphone, the content of the voice prompt message played by the microphone may include: if the USB charging port of the mobile phone is short-circuited, please immediately shut down the mobile phone to stop using the mobile phone and clear the USB interface. Strictly charge! ".
Alternatively, the microphone of the electronic device 100 may continuously output prompt information such as "drip" to remind the user to view the mobile phone. At this time, the display screen of the electronic device 100 displays the abnormality reminding information.
Alternatively, the display of the electronic device 100 may also emit light to remind the user to view the phone. At this time, the display screen of the electronic device 100 displays the abnormality reminding information.
According to the embodiment of the disclosure, the connection state of the charging pin and the interface shell is judged according to the relation between the signal value of the first end of the second resistor and the preset signal value, and the method is simple. And the processing unit is used for outputting an abnormal prompt when the signal value of the first end of the second resistor is smaller than the preset signal value, so that the charging pin and the interface shell in a short circuit state can be found in time, a user can be prompted in time, property loss which is possibly caused by the fact that the user still uses the interface module to charge the electronic equipment because the user does not know that the charging pin and the interface shell are in the short circuit state is reduced, and the safety of the electronic equipment is improved.
Referring to fig. 3, the detecting module 120 may further include:
the unidirectional conducting device 124 allowing the signal to be transmitted from the power management module 130 to the first resistor 121 is electrically connected to the power management module 130 and the first resistor 121, respectively.
Unidirectional conducting devices 124 include, but are not limited to: and a diode. When the electronic device 100 is connected to a charger, the charger may charge the electronic device 100, and a charging current provided by the charger flows between the first resistor 121 and the second resistor 122 through the charging pin 111. It can be understood that, generally, the current value of the charging current is larger than the current value provided by the power management module 130 to the first resistor 121, and the charging current provided by the charger may damage the power management module 130 if transmitted to the power management module 130.
The embodiment of the present disclosure enables the detection module 120 to detect the signal value between the charging pin 111 and the interface housing 112 by allowing the unidirectional conducting device 124 to transmit a signal from the power management module 130 to the first resistor 121, and enabling the unidirectional conducting device 124 to conduct when the electronic device 100 is not connected to a charger; when the charger is connected to the interface module 110 of the electronic device 100, the one-way conducting device 124 may also be turned off, so as to prevent the charging current provided by the charger from being transmitted to the power management module 130, thereby protecting the power management module 130.
In some embodiments, as shown in fig. 5, the first resistor 121 is electrically connected to the first output terminal 1301 of the power management module 130;
a processing unit 123 comprising:
the comparison circuit 1230 includes: a first input 12301, a second input 12302, and an output 12303;
the output circuit 1231 is connected to the comparison circuit 1230 and configured to output the abnormality prompt;
a first input terminal 12301 electrically connected to a first terminal of the second resistor 122;
a second input 12302 electrically connected to the second output of the power management module 130; wherein, the second output end of the power management module 130 outputs the preset signal value;
an output terminal 12303, configured to output, to the output circuit 1231, a first result indicating that the charging pin 111 and the interface housing 112 are in a short circuit state when the signal value of the first end of the second resistor 122 is smaller than the preset signal value;
the output terminal 12303 is further configured to output a second result indicating that the charging pin 111 and the interface housing 112 are in an open circuit state to the output circuit 1231 when the signal value at the first end of the second resistor 122 is greater than or equal to the preset signal value.
The signals output by the first output terminal and the second output terminal of the power management module 130 can be voltage signals, and the signal values of the signals output by the first output terminal and the second output terminal of the power management module 130 are different.
The comparison circuit 1230 may be a circuit capable of comparing the magnitude of the input signal at the first input terminal 12301 with the magnitude of the input signal at the second input terminal 12302. Referring to fig. 5, the comparison circuit 1230 may further include: the power source terminal (V +) receives a power supply signal, and the comparing circuit 1230 operates under the power supply signal. The power terminal can be connected to the third output terminal of the power management module 130. Here, the third output terminal of the power management module 130 transmits the power supply signal to the power terminal of the comparison circuit 1230.
The output circuit 1231 may include: an audio output component. Such as a microphone, buzzer, etc.
Specifically, when the output circuit 1231 includes a microphone, when the output terminal 12303 of the comparing circuit 1230 outputs a first result indicating that the charging pin 111 and the interface housing 112 are in a short circuit state, the microphone may output a voice prompt message according to the first result. The content of the voice prompt message played by the microphone may include: if the USB charging port of the mobile phone is short-circuited, please immediately shut down the mobile phone to stop using the mobile phone and clear the USB interface. Strictly charge! ".
When the output circuit 1231 includes the buzzer, when the output 12303 of the comparing circuit 1230 outputs the first result indicating that the charging pin 111 and the interface housing 112 are in the short circuit state, the buzzer may continuously output a prompt message such as "drip" to remind the user to check the mobile phone. At this time, the display screen of the electronic device 100 displays the abnormality reminding information.
The output circuit 1231 may further include: a light emitting unit. For example a Light Emitting Diode (Light Emitting Diode). When the output 12303 of the comparing circuit 1230 outputs the first result indicating that the charging pin 111 and the interface housing 112 are in the short circuit state, the light emitting diode may be in a continuous light emitting state to remind the user to view the mobile phone, or the light emitting diode may be in a flashing state to remind the user to view the mobile phone. At this time, the display screen of the electronic device 100 displays the abnormality reminding information.
For example, the first output terminal of the power management module 130 outputs a voltage signal of 1.8 volts, the second output terminal of the power management module 130 outputs a voltage signal of 1.2 volts, the resistance of the first resistor is 1 kilo-ohm, and the resistance of the second resistor is 100 kilo-ohm. At this time, the voltage signal value input to the second input terminal 12302 of the comparing circuit 1230 is 1.2 volts.
When the charging pin 111 and the interface housing 112 are in the off state, the voltage signal value input to the first input terminal 12301 of the comparator 1230 is equal to (100/101) × 1.8, i.e., the voltage signal value input to the first input terminal 12301 of the comparator 1230 is 1.78 volts, which is greater than the voltage signal value input to the second input terminal 12302 of the comparator 1230. Accordingly, the output 12303 of the comparison circuit 1230 outputs the first result. Here, the first result may be "1" representing a high level.
When the charging pin 111 and the interface housing 112 are in a short circuit state, the voltage at the first end of the second resistor 122 is particularly small, so that the value of the voltage signal input to the first input terminal 12301 of the comparison circuit 1230 is smaller than the value of the voltage signal input to the second input terminal 12302 of the comparison circuit 1230. Accordingly, the output 12303 of the comparison circuit 1230 outputs the second result. Here, the second result may be "0" representing a low level.
According to the embodiment of the disclosure, the comparison circuit compares the signal value of the first end of the second resistor with the preset signal value, and the method is simple. And the processing unit is used for outputting an abnormal prompt when the signal value of the first end of the second resistor is smaller than the preset signal value, so that the charging pin and the interface shell in a short circuit state can be found in time, a user can be prompted in time, the property loss which is possibly caused by the fact that the user still uses the interface module to charge the electronic equipment because the user does not know that the charging pin and the interface shell are in the short circuit state is reduced, and the safety of the electronic equipment is improved.
Fig. 6 is a flowchart illustrating an interface module protection method according to an exemplary embodiment, where the method is applied to the electronic device 100 provided in the embodiment of the present disclosure. Referring to fig. 6, the method includes the steps of:
s100: detecting a signal value between a charging pin of the electronic device and the grounded interface housing;
s200: and judging the connection state of the charging pin and the interface shell according to the signal value.
In the embodiment of the disclosure, when the electronic device is not connected to the charger, the detection module detects a signal value between the charging pin of the electronic device and the interface housing at any time, and determines the connection state of the charging pin and the interface housing according to the signal value. Therefore, the charging pin and the interface shell in the short circuit state can be found in time, property loss which is possibly brought by the fact that a user does not know that the charging pin and the interface shell are in the short circuit state and still charges the electronic equipment through the interface module is reduced, the safety of the electronic equipment is improved, and the safety of the charging process is guaranteed.
In some embodiments, S100 may comprise:
detecting an electric signal value between a first resistor and a second resistor connected in series; the first resistor is electrically connected with a power management module of the electronic equipment, the first end of the second resistor is electrically connected with the first resistor and the charging pin respectively, the second end of the second resistor is grounded, and the second end of the second resistor and the first end of the second resistor are opposite ends.
S200 may include:
when the signal value of the first end of the second resistor is smaller than the preset signal value, determining that the charging pin and the interface shell are in a short-circuit state;
and when the signal value of the first end of the second resistor is larger than the preset signal value, determining that the charging pin and the interface shell are in an open circuit state.
According to the embodiment of the disclosure, the connection state of the charging pin and the interface shell is judged according to the relation between the signal value of the first end of the second resistor and the preset signal value, and the method is simple.
In some embodiments, the method further comprises:
and outputting an abnormal prompt when the charging pin and the interface shell are in a short-circuit state.
In the embodiment of the disclosure, the processing unit is used for outputting the abnormal prompt when the signal value of the first end of the second resistor is smaller than the preset signal value, so that the charging pin and the interface shell in the short circuit state can be found in time, and a user is prompted in time, thereby reducing property loss which may be caused by the fact that the user still charges the electronic equipment by using the interface module because the user does not know that the charging pin and the interface shell are in the short circuit state, and improving the safety of the electronic equipment.
In some embodiments, the determining that the charging pin and the interface housing are in the short circuit state when the signal value of the first end of the second resistor is smaller than the preset signal value includes:
when the signal value of the first end of the second resistor is smaller than the preset signal value, outputting a first result, and determining that the charging pin and the interface shell are in a short-circuit state according to the first result;
when the signal value of the first end of the second resistor is greater than the preset signal value, it is determined that the charging pin and the interface housing are in an open circuit state, and the method includes the following steps:
and when the signal value of the first end of the second resistor is greater than or equal to the preset signal value, outputting a second result, and determining that the charging pin and the interface shell are in an open circuit state according to the second result.
According to the embodiment of the disclosure, the comparison circuit compares the signal value of the first end of the second resistor with the preset signal value, and the method is simple. And the processing unit is used for outputting an abnormal prompt when the signal value of the first end of the second resistor is smaller than the preset signal value, so that the charging pin and the interface shell in a short circuit state can be found in time, a user can be prompted in time, property loss which is possibly caused by the fact that the user still uses the interface module to charge the electronic equipment because the user does not know that the charging pin and the interface shell are in the short circuit state is reduced, and the safety of the electronic equipment is improved.
In some embodiments, the method further comprises:
when the charging pin and the interface shell are in a short circuit state, the one-way conduction device allowing signals to be transmitted from the power management module to the first resistor is turned off.
In the embodiment of the disclosure, when the charging pin and the interface housing are in a short circuit state, if the user still electrically connects the interface module with the charger, the one-way conducting device allowing the signal to be transmitted from the power management module to the first resistor is turned off, so that the power management module is protected, and the property loss of the user is reduced.
Fig. 7 is a block diagram illustrating an apparatus 800 for protecting an interface module in accordance with an example embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and so forth.
Referring to fig. 7, the apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communications component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can also include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile storage devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 806 provides power to the various components of device 800. The power assembly 806 may include: a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operation mode, such as a photographing mode or a video mode. Each front camera and/or rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, audio component 810 includes a Microphone (MIC) configured to receive external audio signals when apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which can be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in temperature of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The apparatus 800 may access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, or other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform the steps of the interface module protection method illustrated in the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice in the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. An electronic device, comprising:
an interface module comprising: a charging pin and a grounded interface housing;
the detection module is respectively connected with the charging pin and the interface shell and is used for detecting a signal value between the charging pin and the interface shell; the signal value is used for judging the connection state of the charging pin and the interface shell;
the detection module comprises:
the first resistor is electrically connected with a power management module of the electronic equipment;
a first end of the second resistor is electrically connected with the first resistor and the charging pin, and a second end of the second resistor is grounded; the second end of the second resistor and the first end of the second resistor are opposite ends;
the processing unit is connected with the first end of the second resistor and used for outputting an abnormal prompt when the signal value of the first end of the second resistor is smaller than a preset signal value; when the signal value of the first end of the second resistor is smaller than the preset signal value, the charging pin and the interface shell are in a short-circuit state; and when the signal value of the first end of the second resistor is equal to the preset signal value, the charging pin and the interface shell are in an open circuit state.
2. The electronic device of claim 1,
the first resistor is electrically connected with a first output end of the power management module;
the processing unit includes:
a comparison circuit, comprising: a first input, a second input and an output;
the output circuit is connected with the comparison circuit and is used for outputting the abnormity prompt;
the first input end is electrically connected with the first end of the second resistor;
the second input end is electrically connected with the second output end of the power management module; the second output end of the power management module outputs the preset signal value;
the output end is used for outputting a first result indicating that the charging pin and the interface shell are in the short-circuit state to the output circuit when the signal value of the first end of the second resistor is smaller than the preset signal value;
the output end is further configured to output a second result indicating that the charging pin and the interface housing are in an open circuit state to the output circuit when the signal value of the first end of the second resistor is greater than or equal to the preset signal value.
3. The electronic device of claim 1, wherein the detection module further comprises:
and the unidirectional conducting device is electrically connected with the power management module and the first resistor respectively.
4. An interface module protection method applied to the electronic device according to any one of claims 1 to 3, the method comprising:
detecting a signal value between a charging pin of the electronic device and a grounded interface housing;
and judging the connection state of the charging pin and the interface shell according to the signal value.
5. The method of claim 4,
the detecting a signal value between a charging pin of the electronic device and a grounded interface housing includes:
detecting an electric signal value between a first resistor and a second resistor connected in series; the first resistor is electrically connected with a power management module of the electronic device, a first end of the second resistor is electrically connected with the first resistor and the charging pin respectively, a second end of the second resistor is grounded, and the second end of the second resistor and the first end of the second resistor are opposite ends;
the determining the connection state of the charging pin and the interface housing according to the signal value includes:
when the signal value of the first end of the second resistor is smaller than a preset signal value, determining that the charging pin and the interface shell are in a short-circuit state;
and when the signal value of the first end of the second resistor is greater than the preset signal value, determining that the charging pin and the interface shell are in an open circuit state.
6. The method of claim 5,
when the signal value of the first end of the second resistor is smaller than a preset signal value, it is determined that the charging pin and the interface shell are in a short-circuit state, and the method comprises the following steps:
when the signal value of the first end of the second resistor is smaller than the preset signal value, outputting a first result, and determining that the charging pin and the interface shell are in a short-circuit state according to the first result;
when the signal value of the first end of the second resistor is greater than the preset signal value, it is determined that the charging pin and the interface housing are in an open circuit state, and the method includes:
and when the signal value of the first end of the second resistor is greater than or equal to the preset signal value, outputting a second result, and determining that the charging pin and the interface shell are in an open circuit state according to the second result.
7. The method of claim 5 or 6, further comprising:
and when the charging pin and the interface shell are in a short circuit state, the one-way conducting device allowing signals to be transmitted from the power management module to the first resistor is turned off.
8. The method of claim 5 or 6, further comprising:
and outputting an abnormal prompt when the charging pin and the interface shell are in a short-circuit state.
9. An interface module protection device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: the executable instructions, when executed, implement the steps in the method of any one of claims 4 to 8.
10. A non-transitory computer readable storage medium having instructions thereon, which, when executed by a processor of an electronic device, enable the electronic device to perform the steps of the method of any one of claims 4 to 8.
CN201911246537.5A 2019-12-06 2019-12-06 Electronic device, interface module protection method, protection device and storage medium Active CN112929485B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911246537.5A CN112929485B (en) 2019-12-06 2019-12-06 Electronic device, interface module protection method, protection device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911246537.5A CN112929485B (en) 2019-12-06 2019-12-06 Electronic device, interface module protection method, protection device and storage medium

Publications (2)

Publication Number Publication Date
CN112929485A CN112929485A (en) 2021-06-08
CN112929485B true CN112929485B (en) 2022-07-22

Family

ID=76162148

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911246537.5A Active CN112929485B (en) 2019-12-06 2019-12-06 Electronic device, interface module protection method, protection device and storage medium

Country Status (1)

Country Link
CN (1) CN112929485B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593961A (en) * 2009-07-07 2009-12-02 中国科学技术大学 DC power supply short-circuit protection circuit based on contactless current sample
EP2991156A1 (en) * 2013-04-24 2016-03-02 Huizhou TCL Mobile Communication Co., Ltd. Method and device for performing large-current charging on intelligent terminal
CN107887947A (en) * 2017-11-24 2018-04-06 维沃移动通信有限公司 A kind of guard method of charging port and mobile terminal
CN109378877A (en) * 2018-11-13 2019-02-22 Oppo(重庆)智能科技有限公司 Charging circuit, charging method, electronic equipment and storage medium
CN109962507A (en) * 2017-12-22 2019-07-02 北京小米移动软件有限公司 Charge port short-circuit protection method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593961A (en) * 2009-07-07 2009-12-02 中国科学技术大学 DC power supply short-circuit protection circuit based on contactless current sample
EP2991156A1 (en) * 2013-04-24 2016-03-02 Huizhou TCL Mobile Communication Co., Ltd. Method and device for performing large-current charging on intelligent terminal
CN107887947A (en) * 2017-11-24 2018-04-06 维沃移动通信有限公司 A kind of guard method of charging port and mobile terminal
CN109962507A (en) * 2017-12-22 2019-07-02 北京小米移动软件有限公司 Charge port short-circuit protection method and device
CN109378877A (en) * 2018-11-13 2019-02-22 Oppo(重庆)智能科技有限公司 Charging circuit, charging method, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112929485A (en) 2021-06-08

Similar Documents

Publication Publication Date Title
CN109245244B (en) Charging circuit, charging processing method, electronic device, and storage medium
CN106339168B (en) Screen control method and device
CN108121631B (en) Screen abnormal state reminding method and device
CN109378878B (en) Charging circuit, charging processing method, electronic device, and storage medium
CN109412234B (en) Charging circuit, charging processing method, electronic device, and storage medium
CN107331910B (en) Charging method and device
US11205906B2 (en) Charging processing method, terminal device and storage medium
US10852798B2 (en) Power supply control method and apparatus for power strip, and storage medium
CN107681727B (en) Control method and device of electronic equipment
CN106877451B (en) Charging port short-circuit protection method and device
CN106972598B (en) Short circuit detection method and device
CN109586125B (en) Type-C adapter, terminal and electronic equipment
CN112929485B (en) Electronic device, interface module protection method, protection device and storage medium
CN107733021B (en) Control method and device of electronic equipment
CN107528098B (en) Charging method and device
CN112444599B (en) Battery damage detection method and device
CN215184616U (en) Integrated circuit connector, protection circuit, battery and electronic equipment
CN108897553B (en) Chip programming tool, system, chip programming method and device
CN220527717U (en) Charging circuit and terminal equipment
CN106776424B (en) Connector, control method and control device thereof, and electronic equipment
CN109216815B (en) Battery, electronic device, corrosion early warning method and device, and readable storage medium
CN111130223B (en) Wireless charging display method and device
CN117955186A (en) Charging control method, device, electronic equipment and readable storage medium
CN109066850B (en) Battery management method and device
CN115001060A (en) Battery protection circuit, battery pack and terminal

Legal Events

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