Access detection method for charger and device to be charged

By introducing short-circuit detection and transformer voltage control of the original function pin and identity pin in the charger output interface, combined with short-circuit detection, the problem that traditional chargers cannot accurately judge the access of the device when they are short-circuited or damaged is solved. Improve access detection accuracy and equipment security.

CN113113958BActive Publication Date: 2024-12-20GUANGDONG XIAOTIANCAI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010844434.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-01-09
Filing Date
2020-08-20
Publication Date
2024-12-20
Estimated Expiration
2040-08-20

AI Technical Summary

Technical Problem

The problem of traditional chargers to determine whether the device to be charged is connected by detecting the charging current is not accurate enough, especially when the charging line is short-circuited or damaged, resulting in unstable charging current and the device access cannot be accurately judged.

Method used

A charger is designed, and its output interface includes the original function pin and the identity pin. When the charging device is inserted, the pin is shorted. After the control unit detects the short connection, it sends a transformer signal, and the transformer unit will use the transformer to The output voltage is reduced below the minimum charging voltage of the device to be charged to avoid charging, and the short-circuit detection unit determines whether there is a short circuit to ensure safety.

Benefits of technology

It improves the accuracy of the charger's access to the charging equipment, avoids high current damage caused by short circuits, reduces the risk of damage to the charging equipment, and enhances the user experience through the short circuit self-test mechanism.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113113958B_ABST
    Figure CN113113958B_ABST
Patent Text Reader

Abstract

The embodiment of the present application relates to the technical field of electronic equipment, and discloses a method for detecting the access of a charger and a device to be charged, wherein the charger includes a control unit, a transformer unit, and an output interface, and the output interface includes an original function pin and an identity identification pin, wherein: the control unit is used to determine that there is a device to be charged connected to the output interface when the original function pin is detected to be short-circuited with the identity identification pin, and send a first transformer signal to the transformer unit; and the transformer unit is electrically connected to the power supply, and is used to transform the voltage provided by the power supply to obtain a first voltage according to the first transformer signal sent by the control unit, and output the first voltage to the charging circuit of the device to be charged, and the first voltage is less than the minimum charging voltage of the device to be charged. Implementing the charger disclosed in the embodiment of the present application can improve the accuracy of the charger in detecting whether there is a device to be charged connected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic equipment, and in particular to a method for detecting access to a charger and a device to be charged. Background Art

[0002] When a traditional charger charges a connected device, if the output voltage of the charger reaches the rated charging voltage of the device, the charger will output a charging current to charge the device. Therefore, traditional chargers usually determine whether the charger is connected to a device by detecting whether the charger has a charging current output.

[0003] However, in practice, it is found that the charger will inevitably have a short circuit or damage during use, which will cause the charging current output by the charger to be unstable. Therefore, the traditional detection method of judging whether the charger is connected to the device to be charged by detecting whether the charger has a charging current output is obviously not accurate enough, which is not conducive to improving the accuracy of the charger's detection of whether the device to be charged is connected. Summary of the invention

[0004] The embodiment of the present application discloses a method for detecting the connection of a charger and a device to be charged, which can improve the accuracy of the charger in detecting whether a device to be charged is connected.

[0005] In a first aspect, an embodiment of the present application discloses a charger, including a control unit, a voltage transformation unit, and an output interface, wherein the output interface includes an original function pin and an identity identification pin, and the control unit is electrically connected to the voltage transformation unit, the original function pin, and the identity identification pin, respectively, wherein:

[0006] The control unit is configured to determine that a device to be charged is connected to the output interface when detecting that the original function pin is short-circuited with the identity identification pin, and send a first voltage transformation signal to the voltage transformation unit;

[0007] The transformation unit is electrically connected to the power supply, and is used to transform the voltage provided by the power supply to obtain a first voltage according to the first transformation signal sent by the control unit, and output the first voltage to the charging circuit of the device to be charged, wherein the first voltage is less than the minimum charging voltage of the device to be charged.

[0008] As an optional implementation, in the first aspect of the embodiment of the present application, the original function pin includes a ground pin, the identity identification pin is a first sub-pin separated from the ground pin, the first sub-pin and the ground pin are not connected, and the control unit is also used to determine that the device to be charged is connected to the charger when it is detected that the ground pin and the first sub-pin are short-circuited.

[0009] As an optional implementation, in the first aspect of the embodiments of the present application, the original function pin includes a power pin, the identity identification pin is a second sub-pin separated from the power pin, the second sub-pin and the power pin are not connected, and the control unit is also used to determine that the device to be charged is connected to the charger when it is detected that the power pin and the second sub-pin are short-circuited.

[0010] As an optional implementation, in the first aspect of the embodiment of the present application, the control unit is also used to determine that the device to be charged is connected to the charger when it is detected that the level value of the second sub-pin is equal to the level value of the power pin.

[0011] As an optional implementation, in the first aspect of the embodiment of the present application, the charger further includes a short circuit detection unit and a switch unit, the short circuit detection unit is connected in series to the charging circuit, the control unit is electrically connected to the short circuit detection unit and the switch unit respectively, and the short circuit detection unit is electrically connected to the switch unit;

[0012] The control unit is further used to obtain operating data of the short-circuit detection unit under the action of the first voltage, and when it is determined that the charger is short-circuited according to the operating data, control the switch unit to disconnect so that the transformer unit no longer outputs voltage to the device to be charged.

[0013] As an optional implementation, in the first aspect of the embodiment of the present application, the short-circuit detection unit includes a current detection resistor, which is electrically connected to the control unit and the transformer unit respectively, and the current detection resistor is used to collect the real-time current of the transformer unit, and the real-time current is used to enable the control unit to determine whether the charger is short-circuited based on the real-time current.

[0014] As an optional implementation, in the first aspect of the embodiment of the present application, the short-circuit detection unit includes a temperature detection resistor, which is electrically connected to the control unit and the transformer unit, respectively, and the temperature detection resistor is used to collect the real-time temperature of the transformer unit, and the real-time temperature is used to enable the control unit to determine whether the charger is short-circuited based on the real-time temperature.

[0015] As an optional implementation, in the first aspect of the embodiments of the present application, the switching unit includes a MOS tube, a gate of the MOS tube is electrically connected to the control unit, a drain of the MOS tube and a source of the MOS tube are respectively electrically connected to the transformer unit, and the control unit is further used to send a first control voltage to the gate of the MOS tube to turn off the MOS tube when it is determined according to the operating data that the charger is short-circuited, so that the transformer unit no longer outputs voltage to the device to be charged.

[0016] As an optional implementation, in the first aspect of the embodiment of the present application, the control unit is further configured to send a second voltage transformation signal to the voltage transformation unit when it is determined according to the operation data that the charger is not short-circuited;

[0017] The transformation unit is further used to transform the voltage provided by the power supply to obtain a second voltage according to the second transformation signal sent by the control unit, and output the second voltage to the device to be charged, wherein the second voltage is greater than or equal to the minimum charging voltage of the device to be charged.

[0018] A second aspect of an embodiment of the present application discloses a method for detecting access to a device to be charged, the method being applied to any charger disclosed in the first aspect of the embodiment of the present application, the method comprising:

[0019] When it is detected that the original function pin and the identity identification pin in the interface of the charger are short-circuited, it is determined that there is a device to be charged connected to the charger;

[0020] The voltage provided by the power supply is transformed to obtain a first voltage, and the first voltage is output to the charging circuit of the device to be charged, wherein the first voltage is less than the minimum charging voltage of the device to be charged.

[0021] A third aspect of the present application discloses an electronic device, including:

[0022] A memory storing executable program code;

[0023] a processor coupled to the memory;

[0024] The processor calls the executable program code stored in the memory to execute a method for detecting access to a device to be charged disclosed in the second aspect of an embodiment of the present application.

[0025] A fourth aspect of an embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute a method for detecting access to a device to be charged disclosed in the second aspect of an embodiment of the present application.

[0026] A fifth aspect of the embodiments of the present application discloses a computer program product. When the computer program product runs on a computer, the computer executes part or all of the steps of any one of the methods of the second aspect of the embodiments of the present application.

[0027] A sixth aspect of an embodiment of the present application discloses an application publishing platform, which is used to publish a computer program product. When the computer program product runs on a computer, the computer executes part or all of the steps of any one of the methods of the second aspect of the embodiment of the present application.

[0028] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0029] In the embodiment of the present application, the output interface of the charger may be provided with an original function pin and an identity pin, and then, when the plug of the device to be charged is inserted into the interface of the charger, the plug pin of the plug can short-circuit the original function pin and the identity pin. By utilizing this structural feature, the control unit can determine that there is a device to be charged connected to the charger when it detects that the original function pin and the identity pin are short-circuited, thereby overcoming the defect that the traditional charger cannot determine whether the charger is connected to the device to be charged by detecting whether the charger has a charging current output when the charging line is short-circuited or damaged, resulting in unstable charging current. In addition, the control unit in the charger can also reduce the output voltage of the charger to below the minimum charging voltage of the device to be charged through the transformer unit when detecting that the device to be charged is connected, so that the charger does not charge the device to be charged, thereby avoiding the large current generated when the charger is short-circuited and causing damage to the device to be charged. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0031] Figure 1 is a schematic diagram of the structure of a charger disclosed in an embodiment of the present application;

[0032] Figure 2 It is a schematic diagram of an improved structure of a female socket of a charger interface disclosed in an embodiment of the present application;

[0033] Figure 3 It is a schematic diagram of an improved structure of a female socket of another charger interface disclosed in an embodiment of the present application;

[0034] Figure 4 is a structural schematic diagram of another charger disclosed in an embodiment of the present application;

[0035] Figure 5 is a schematic diagram of an internal circuit of a charger disclosed in an embodiment of the present application;

[0036] Figure 6 It is a flow chart of a method for detecting access to a device to be charged disclosed in an embodiment of the present application;

[0037] Figure 7 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0038] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0039] It should be noted that the terms "first", "second", "third" and "fourth" in the specification and claims of the present application are used to distinguish different objects rather than to describe a specific order. The terms "including" and "having" in the embodiments of the present application and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device including a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0040] The embodiment of the present application discloses a method for detecting the connection of a charger and a device to be charged, which can improve the accuracy of the charger in detecting whether a device to be charged is connected.

[0041] The technical solution of the present application will be described in detail below in conjunction with specific embodiments.

[0042] See also Figure 1 , Figure 1 It is a structural schematic diagram of a charger disclosed in an embodiment of the present application, and the charger may include: a control unit 101, a transformer unit 102 and an output interface 103, and the output interface 103 may include an original function pin 1031 and an identity pin 1032; optionally, the control unit 101 may be electrically connected to the transformer unit 102, the original function pin 1031 and the identity pin 1032, respectively.

[0043] Among them, the above-mentioned charger may include charging devices such as a charging head or a socket strip; the control unit 101 may include components with logic control and logic operation capabilities such as a control chip and a single-chip microcomputer; the transformation unit 102 may include components or circuits with transformation functions such as a transformation circuit or a transformer; the output interface 103 may include an interface socket of the charger, which may be equipped with original function pins such as a ground pin and a power pin. Optionally, the interface socket in this embodiment may also include an identity identification pin 1032, which may be separated from the original function pin or newly added by the developer, and is not limited here.

[0044] Optionally, the control unit 101 is used to determine that there is a device to be charged (for example, a mobile phone, a tablet computer, an electronic wearable device, etc., not limited here) connected to the output interface 103 when detecting that the original function pin 1031 is short-circuited with the identity identification pin 1032, and send a first voltage transformation signal to the voltage transformation unit 102;

[0045] The transformer unit 102 can also be electrically connected to a power source (for example, household 220V AC power, a battery, a generator, etc.), and is used to transform the voltage provided by the power source to obtain a first voltage according to the first transformer signal sent by the control unit 101, and output the first voltage to the charging circuit of the device to be charged, and the first voltage is less than the minimum charging voltage of the device to be charged (wherein, the minimum charging voltage of different types of devices to be charged may be different; optionally, the minimum charging voltage of different types of devices to be charged may be obtained through the identification information of the device to be charged (for example, production code, product name, etc.), instructions, etc.).

[0046] It should be noted that: when the control unit 101 detects that the device to be charged is connected, the control unit 102 controls the voltage transformation unit 102 to transform the voltage provided by the power supply into the first voltage because the device to be charged usually needs to input a charging voltage that reaches a certain voltage threshold (i.e., the minimum charging voltage) before charging. Therefore, when the first voltage is less than the minimum charging voltage of the device to be charged, the charger does not charge the device to be charged. For example, if the minimum charging voltage of the device to be charged is 3V, the first voltage can be 2.5V, 2V, etc. Then, the charger can use the characteristic of not charging the device to be charged when the output is low voltage, and form a charging protection period for the device to be charged when the device to be charged is connected to the charger, so as to avoid damage to the device to be charged due to the large current generated when the charger is short-circuited.

[0047] With the above charger, since the original function pin and the identity pin are provided in the output interface of the charger, when the plug of the device to be charged is inserted into the interface of the charger, the plug pin of the plug can short-circuit the original function pin and the identity pin. By utilizing this structural feature, the control unit can determine that there is a device to be charged connected to the charger when it detects that the original function pin and the identity pin are short-circuited, thereby overcoming the defect that the traditional charger cannot determine whether the charger is connected to the device to be charged by detecting whether the charger has a charging current output when the charging line is short-circuited or damaged, resulting in unstable charging current. In addition, the control unit in the charger can also reduce the output voltage of the charger to below the minimum charging voltage of the device to be charged through the transformer unit when detecting that the device to be charged is connected, so that the charger does not charge the device to be charged, thereby avoiding the large current generated when the charger is short-circuited and causing damage to the device to be charged.

[0048] like Figure 2 As shown, as an optional embodiment, the original function pin 1031 may include a ground pin (i.e., a GND pin, which is usually used as a common reference terminal of the charging circuit), and the identity pin 1032 (i.e., Figure 2 The ID pin in the charger) may include a first sub-pin separated from the ground pin. Optionally, the developer may cut the original ground pin into two sub-pins in the vertical direction, and separate the two sub-pins so that they are not connected, so that one part may continue to be used as the ground pin, and the other part (i.e., the first sub-pin) may be used as the identity pin 1032. The implementation of the above-mentioned transformation does not require the addition of new components, which reduces the modification cost of the charger, and can also increase the use space inside the charger, so that the design of the charger can be more compact. In addition, since the first sub-pin is not connected to the ground pin, the control unit 101 can determine that the device to be charged is connected to the charger when it detects that the ground pin and the first sub-pin are short-circuited (i.e., when the plug of the plug of the device to be charged causes the ground pin and the first sub-pin to short-circuit).

[0049] Optionally, the identification pin 1032 may be a sub-pin separated from the ground pin, or a pin newly added near the ground pin, which is not limited here.

[0050] The charger disclosed in the above embodiments can utilize the structural feature that the ground pin and the identification pin of the charger output interface can be short-circuited when the plug of the charged device is connected to the charger, so that the charger can still accurately detect the connection of the charged device when the charging line is short-circuited or damaged, resulting in unstable charging current.

[0051] like Figure 3As shown, as another optional implementation, the original function pin 1031 may include a power pin (ie, a VBUS pin, which is usually used for output voltage), and the identity pin 1032 (ie, Figure 3 The ID pin in the charger) may include a second sub-pin separated from the power pin. Optionally, the developer can cut the original power pin into two parts of sub-pins in the vertical direction, and separate the two parts of sub-pins so that they are not connected, so that one part can continue to be used as a power pin, and the other part (i.e., the second sub-pin) can be used as an identity pin 1032. The implementation of the above-mentioned transformation does not require the addition of new components, which reduces the modification cost of the charger, and can also increase the use space inside the charger, so that the design of the charger can be more compact. In addition, since the second sub-pin is not connected to the power pin, the control unit 101 can determine that the device to be charged is connected to the charger when it detects that the power pin and the second sub-pin are short-circuited (i.e., when the plug of the plug of the device to be charged shorts the power pin and the second sub-pin).

[0052] Optionally, because the level value of the second sub-pin will be increased to be equal to the level value of the power pin when the second sub-pin is short-circuited with the power pin, the control unit 101 can also determine that the device to be charged is connected to the charger when it detects that the level value of the second sub-pin is equal to the level value of the power pin.

[0053] Similarly, the identification pin 1032 can be a sub-pin separated from the power pin, or a new pin added near the power pin, which is not limited here.

[0054] The charger disclosed in the above embodiments can utilize the structural feature that the power pin and the identification pin in the charger output interface can be short-circuited when the plug of the charged device is connected to the charger, so that the charger can still detect the connection of the charged device when the charging line is short-circuited or damaged, resulting in unstable charging current.

[0055] Please read further Figure 4 As an optional implementation, the charger may further include a short-circuit detection unit 104 and a switch unit 105. The short-circuit detection unit 104 is connected in series to the charging circuit (i.e., the voltage output circuit of the transformer unit 102). The control unit is electrically connected to the short-circuit detection unit 104 and the switch unit 105, respectively. The short-circuit detection unit 104 and the switch unit 105 are electrically connected. Furthermore, the control unit 101 may also be used to obtain operating data (e.g., current, voltage, or temperature, etc.) of the short-circuit detection unit 104 under the action of the first voltage, and when it is determined that the charger is short-circuited according to the operating data, the switch unit 105 is controlled to be disconnected so that the transformer unit 102 no longer outputs voltage to the device to be charged.

[0056] When the above charger is implemented, since the device to be charged is in a non-charging protection period when the charger outputs the first voltage, the charger can use this protection period to perform a short-circuit self-check on the charger, and when it is determined that the charger has a short circuit, turn off the switch so that the charger no longer outputs voltage to the device to be charged, thereby protecting the device to be charged.

[0057] Optionally, the control unit 101 can also be used to send a second transformation signal to the transformation unit 102 when it is determined based on the operating data that the charger is not short-circuited; then the transformation unit 102 can transform the voltage provided by the power supply to obtain a second voltage according to the second transformation signal sent by the control unit 101, and output the second voltage to the charged device for charging, and the second voltage is greater than or equal to the minimum charging voltage of the charged device (for example: the rated charging voltage of the charged device, the fast charging voltage of the charged device, etc., which are not limited here).

[0058] By implementing the above charger, the output voltage of the charger can be increased to a value greater than or equal to the minimum charging voltage of the device to be charged only when there is no risk of short circuit in the charger, so as to charge the device to be charged, thereby reducing the risk of damage to the device to be charged due to device short circuit failure and other reasons during the charging process.

[0059] As an optional implementation, the short circuit detection unit 104 may include a current detection resistor, which may be electrically connected to the control unit 101 and the transformer unit 102, respectively, so that the current detection resistor can collect the real-time current of the transformer unit 102 (optionally, the real-time current can be equal to the voltage difference across the current detection resistor divided by the resistance value of the current detection resistor), and feed back the real-time current of the transformer unit 102 to the control unit 101; further, the control unit 101 can determine whether the charger is short-circuited based on the real-time current of the transformer unit 102.

[0060] Optionally, after receiving the real-time current of the transformer unit 102, the control unit 101 can determine whether the real-time current of the transformer unit 102 is less than a preset current threshold within a preset first time period (for example: 1 second, 2 seconds, etc., not limited here); if the real-time current of the transformer unit 102 is less than the preset current threshold within the preset first time period, it is determined that there is no short circuit in the charger; if there is a moment when the real-time current of the transformer unit 102 is greater than or equal to the preset current threshold within the first time period, it is determined that there is a short circuit in the charger.

[0061] Among them, the preset current threshold can be set by the developer based on a large amount of development data, which represents the current of the internal circuit of the charger, the critical value between the short-circuit state and the non-short-circuit state, and its typical values ​​may include: 200mA, 300mA, etc., which are not limited here.

[0062] By implementing the above charger, the control unit can determine whether the charger is short-circuited by the current value fed back by the current detection resistor. Since the current detection resistor is cheap and the method of determining the short circuit by the current value is relatively simple, the cost of the charger is reduced.

[0063] As an optional implementation, the short circuit detection unit 104 may include a temperature detection resistor (for example: an NTC thermistor, a PTC thermistor, etc., not limited here), and the temperature detection resistor may be electrically connected to the control unit 101 and the transformer unit 102, respectively, so that the temperature detection resistor can collect the real-time temperature of the transformer unit 102 and feed back the real-time temperature of the transformer unit 102 to the control unit 101; and the control unit 101 can determine whether the charger is short-circuited according to the real-time temperature of the transformer unit 102.

[0064] Optionally, after receiving the real-time temperature of the transformer unit 102, the control unit 101 can determine whether the real-time temperature of the transformer unit 102 is lower than a preset temperature threshold within a preset second time period (for example: 1 second, 2 seconds, etc., not limited here); if the real-time temperature of the transformer unit 102 is lower than the preset temperature threshold within the preset second time period, it is determined that there is no short circuit in the charger; if there is a moment in the second time period when the real-time temperature of the transformer unit 102 is greater than or equal to the preset temperature threshold, it is determined that there is a short circuit in the charger.

[0065] The preset temperature threshold may be set by developers based on a large amount of development data, and typical values ​​thereof may include: 55° C., 60° C., or 65° C., etc., which are not limited here.

[0066] By implementing the above method, the control unit can determine whether the charger is short-circuited by the charger temperature fed back by the temperature detection resistor. Since the temperature detection resistor is cheap and the method of determining the short circuit by the charger temperature is relatively simple, the cost of the charger is reduced.

[0067] As an optional implementation, the switch unit 105 may include a MOS tube (for example, a P-channel MOS tube or an N-channel MOS tube, etc.), the gate of the MOS tube may be electrically connected to the control unit 101, and the drain of the MOS tube and the source of the MOS tube may be electrically connected to the transformer unit 102, respectively. Furthermore, the control unit 101 is further configured to send a first control voltage to the gate of the MOS tube to turn off the MOS tube when it is determined that the charger is short-circuited according to the operation data of the transformer unit 102.

[0068] It should be noted that the above-mentioned MOS tube can be an N-channel MOS tube, which is cheap and suitable for configuration in mass-produced chargers. The gate of the N-channel MOS tube is turned on when it receives a control voltage greater than or equal to its turn-on voltage (for example, 4V, 6V, etc.); on the contrary, the gate of the N-channel MOS tube is turned off when it receives a control voltage less than its turn-on voltage. Then, when determining that the charger is short-circuited, the control unit 101 can send a first control voltage less than the turn-on voltage of the MOS tube to the gate of the MOS tube to turn off the MOS tube, thereby preventing the device to be charged from being damaged by charging with a short-circuited charger.

[0069] As an optional implementation, the charger may further include a pulse signal generating unit, which is electrically connected to the control unit 101. The pulse signal generating unit may be used to generate a pulse signal (for example, a pulse width modulation (PWM) signal, wherein pulse width modulation is an analog control method, which may modulate the bias of the transistor base or the MOS tube gate according to the change of the corresponding load, thereby changing the conduction time of the transistor or the MOS tube, and thereby achieving a periodic change in the output signal; or a pulse code modulation (PCM) signal, which is not limited here) and send it to the control unit 101. The pulse signal is used to enable the control unit 101 to generate a voltage conversion signal (for example, the first voltage conversion signal, the second voltage conversion signal, etc.) according to the pulse signal.

[0070] By implementing the above charger, the pulse signal generating unit can electrically isolate the voltage transformation unit and the control unit, thereby reducing the interference of the control unit on the voltage transformation unit.

[0071] As an optional implementation, the charger may further include a humidity sensor, which may be electrically connected to the control unit 101, for collecting a target humidity value inside the charger and feeding the collected target humidity value back to the control unit 101; and the control unit 101 may further be used to determine whether the target humidity value is within a preset humidity range (the humidity range indicates that the interior of the charger is in a humid state, and its specific value may be set by the developer based on a large amount of development data, and is not limited here); and if the target humidity value is within the preset humidity range, the control unit 101 may control the transformer unit 102 to generate a first voltage lower than the minimum charging voltage of the device to be charged, and control the short-circuit detection module to collect the operating data of the transformer unit 102, so as to determine whether the charger is short-circuited based on the operating data.

[0072] In practice, it is found that a humid environment can easily cause a short circuit in the internal circuit or components of the charger. Therefore, the above-mentioned charger can be used to determine whether the inside of the charger is humid through data collected by the humidity sensor before the charged device is connected to the charger. Then, a short circuit detection can be performed when it is determined that the inside of the charger is humid to ensure the safety of the subsequent charging process.

[0073] For the corresponding Figure 5 , Figure 5 The internal circuit diagram of a charger disclosed in an embodiment of the present application. The internal circuit of the charger may include: a U1 control unit 501 (for example: a control chip, a single-chip microcomputer, used to implement functions such as logic control and logic operation), a Q1 MOS tube 502 (for example: a P-channel MOS tube or an N-channel MOS tube, used to implement the switch of the output voltage of the K1 transformer unit 503), an R1 current detection resistor 504 (used to detect the current of the internal circuit), an R2 temperature detection resistor 505 (for example: an NTC thermistor, a PTC thermistor, etc., used to detect the temperature of the internal circuit), a U2 modulation unit 506 (used to generate a pulse signal), a K1 transformer unit 503 (for example: a transformer circuit or a transformer, used to transform the power supply voltage input to the charger so that the output voltage of the charger can adapt to the device to be charged) and a U4 prompt unit 507.

[0074] Optionally, the U1 control unit 501 can be electrically connected to the U2 adjustment unit 506 and the K1 transformer unit 503 respectively, and the U2 adjustment unit 506 and the K1 transformer unit 503 are electrically connected; further, the U1 control unit 501 can send a first transformer signal to the K1 transformer unit 503 according to the pulse signal generated by the U2 adjustment unit 506, and further, the K1 transformer unit 503 can output a first voltage according to the first transformer signal; optionally, the U1 control unit 501 can also be electrically connected to an identity identification pin ID in the charger interface, and further, when the U1 control unit 501 detects that the identity identification pin ID is short-circuited with the ground pin GND or the power pin VBUS in the charger interface, it can be determined that a charged device is connected to the charger.

[0075] Optionally, the U1 control unit 501 may also be electrically connected to the R1 current detection resistor 504 and / or the R2 temperature detection resistor 505 ( Figure 5It is only exemplarily shown that the U1 control unit 501 is electrically connected to the R1 current detection resistor 504 and the R2 temperature detection resistor 505 respectively, which should not constitute a limitation on the embodiments of the present application). Then, the U1 control unit 501 can determine whether the charger is short-circuited through the circuit current and circuit temperature fed back by the R1 current detection resistor 504 and the R2 temperature detection resistor 505. If the U1 control unit 501 determines that the charger is not short-circuited, it can send a second transformation signal to the K1 transformation module 503 according to the pulse signal generated by the U2 adjustment unit 506, so that the voltage output by the K1 transformation module 503 is increased to be greater than or equal to the minimum charging voltage of the device to be charged, so as to charge the device to be charged.

[0076] Optionally, the U1 control unit 501 can also be electrically connected to the Q1MOS tube 502, and when the U1 control unit 501 determines that the charger is short-circuited, the Q1MOS tube 502 can be controlled to be turned off, so that the K1 transformer module 503 no longer charges the device to be charged; optionally, the U1 control unit 501 can also be connected to the U4 prompt unit 507, and when the U1 control unit 501 determines that the charger is short-circuited, the U4 prompt unit 507 can be controlled to output a short-circuit prompt message to prompt the user.

[0077] It should be noted that: Figure 5 The GND in it is the ground pin in the charger interface, and the VBUS is the power pin in the charger interface; the J1 connector 508 may include data lines, power lines and other wires including positive and negative poles, which are not limited here; the U3 charged device 509 may include electronic devices such as mobile phones, tablet computers, learning machines or smart watches, which are not limited here.

[0078] By adopting the above-mentioned charger circuit, its control unit can control the transformer unit to only generate a first voltage that is less than the minimum charging voltage of the device to be charged when the detected ground pin or power pin is short-circuited with the identification pin. At this time, the charger will not charge the device to be charged, thereby forming a charging protection period. During this protection period, the control unit can control the short-circuit detection unit to perform a short-circuit self-test on the charger, and when it is determined that the charger has a short circuit, the short-circuit prompt unit outputs a short-circuit prompt message to the user, so that the user can disconnect the charger and the device to be charged when receiving the short-circuit prompt message, so as to avoid damage to the device to be charged due to a short circuit of the device. In addition, the short-circuit prompt message can also let the user know the charging status of the charger, thereby improving the user's usage experience.

[0079] See also Figure 6 , Figure 61 is a flow chart of a method for detecting access to a device to be charged disclosed in an embodiment of the present application. The method for detecting access to a device to be charged can be applied to the above-mentioned control unit, and the method for detecting access to a device to be charged can include the following steps:

[0080] 601. When it is detected that an original function pin and an identity identification pin in an interface of a charger are short-circuited, it is determined that a device to be charged is connected to the charger.

[0081] As an optional implementation, the original function pin may include a ground pin, and the identity identification pin may include a first sub-pin separated from the ground pin, and the first sub-pin is not connected to the ground pin; further, the control unit may also determine that the device to be charged is connected to the charger when it detects that the ground pin and the first sub-pin are short-circuited.

[0082] By implementing the above method, the structural feature of the device to be charged can be utilized to short-circuit the ground pin and the identification pin of the charger output interface when the plug of the device to be charged is connected to the charger, so that the charger can still detect the connection of the device to be charged when the charging line is short-circuited or damaged, resulting in unstable charging current.

[0083] As another optional implementation, the original function pin may include a power pin, and the identity identification pin may include a second sub-pin separated from the power pin, and the second sub-pin is not connected to the power pin; further, the control unit may also determine that the device to be charged is connected to the charger when it detects that the power pin and the second sub-pin are short-circuited.

[0084] By implementing the above method, the structural feature of the device to be charged can be utilized to short-circuit the power pin and the identification pin in the charger output interface when the plug of the device to be charged is connected to the charger, so that the charger can still detect the connection of the device to be charged when the charging line is short-circuited or damaged, resulting in unstable charging current.

[0085] Optionally, the control unit may also determine that the device to be charged is connected to the charger when detecting that the level value of the second sub-pin is equal to the level value of the power pin.

[0086] By implementing the above method, the structural feature of the device to be charged can be utilized to short-circuit the power pin and the identification pin in the charger output interface when the plug of the device to be charged is connected to the charger, so that the charger can still detect the connection of the device to be charged when the charging line is short-circuited or damaged, resulting in unstable charging current.

[0087] 602. Transform the voltage provided by the power supply to obtain a first voltage, and output the first voltage to a charging circuit of the device to be charged, where the first voltage is less than a minimum charging voltage of the device to be charged.

[0088] As an optional implementation, the charger also includes a short-circuit detection unit and a switch unit. The short-circuit detection unit is connected in series to the charging circuit (i.e., the voltage output circuit of the transformer unit). The control unit is electrically connected to the short-circuit detection unit and the switch unit, respectively. The short-circuit detection unit and the switch unit are electrically connected. Thus, the control unit can obtain the operating data of the short-circuit detection unit under the action of the first voltage, and when it is determined that the charger is short-circuited according to the operating data, the switch unit is controlled to disconnect so that the transformer unit no longer outputs voltage to the device to be charged.

[0089] When the above method is implemented, since the device to be charged is in a non-charging protection period when the charger outputs the first voltage, the charger can use this protection period to perform a short-circuit self-check on the charger, and when it is determined that the charger has a short circuit, the charger will no longer output voltage to the device to be charged, thereby protecting the device to be charged.

[0090] Optionally, the short-circuit detection unit may include a current detection resistor, which is electrically connected to the control unit and the transformer unit respectively, and the current detection resistor is used to collect the real-time current of the transformer unit; then the control unit can determine whether the charger is short-circuited based on the collected real-time current.

[0091] By implementing the above method, the control unit can determine whether the charger is short-circuited by the current value fed back by the current detection resistor. Since the current detection resistor is cheap and the method of determining the short circuit by the current value is relatively simple, the cost of the charger is reduced.

[0092] Optionally, the short circuit detection unit may include a temperature detection resistor, which is electrically connected to the control unit and the transformer unit respectively. The temperature detection resistor is used to collect the real-time temperature of the transformer unit, and then the control unit can determine whether the charger is short-circuited based on the collected real-time temperature.

[0093] By implementing the above method, the control unit can determine whether the charger is short-circuited by the charger temperature fed back by the temperature detection resistor. Since the temperature detection resistor is cheap and the method of determining the short circuit by the charger temperature is relatively simple, the cost of the charger is reduced.

[0094] Optionally, the switching unit may include a MOS tube, a gate of which is electrically connected to the control unit, and a drain of the MOS tube and a source of the MOS tube are electrically connected to the transformer unit respectively; and then the control unit may send a first control voltage to the gate of the MOS tube to turn off the MOS tube when it is determined according to the operating data that the charger is short-circuited, so that the transformer unit no longer outputs voltage to the device to be charged.

[0095] By implementing the above method, the control unit can send a first control voltage less than the on-voltage of the MOS tube to the gate of the MOS tube to turn off the MOS tube when determining that the charger is short-circuited, thereby preventing the charged device from being damaged by charging with a short-circuited charger.

[0096] As an optional implementation, when the control unit determines based on the operating data that the charger is not short-circuited, it can send a second transformation signal to the transformation unit; so that the transformation unit transforms the voltage provided by the power supply to obtain a second voltage according to the second transformation signal sent by the control unit, and outputs the second voltage to the charged device for charging, and the second voltage is greater than or equal to the minimum charging voltage of the charged device.

[0097] By implementing the above method, the output voltage of the charger can be increased to a value greater than or equal to the minimum charging voltage of the device to be charged only when there is no risk of short circuit in the charger, and the device to be charged can be charged, thereby reducing the risk of damage to the device to be charged due to device short circuit failure and other reasons during the charging process.

[0098] In implementing the detection method for accessing a device to be charged disclosed in the above-mentioned embodiments, since the original function pin and the identity pin are provided in the output interface of the charger, when the plug of the device to be charged is inserted into the interface of the charger, the plug pin of the plug can short-circuit the original function pin and the identity pin. By utilizing this structural feature, the control unit can determine that there is a device to be charged connected to the charger when it detects that the original function pin and the identity pin are short-circuited, thereby overcoming the defect that the conventional charger cannot determine whether the charger is connected to the device to be charged by detecting whether the charger has a charging current output when the charging line is short-circuited or damaged, resulting in unstable charging current. In addition, the control unit in the charger can also reduce the output voltage of the charger to below the minimum charging voltage of the device to be charged through the transformer unit when detecting that the device to be charged is connected, so that the charger does not charge the device to be charged, thereby avoiding the large current generated when the charger is short-circuited and causing damage to the device to be charged.

[0099] See also Figure 7 , Figure 7 Schematic diagram of the structure of an electronic device disclosed in the embodiment of the present application. Figure 7 As shown, the electronic device may include:

[0100] A memory 701 storing executable program codes;

[0101] a processor 702 coupled to the memory 701;

[0102] The processor 702 calls the executable program code stored in the memory 701 to execute the charging device access detection method disclosed in the above embodiments.

[0103] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the charging device access detection method disclosed in the above embodiments.

[0104] The embodiments of the present application also disclose an application publishing platform, wherein the application publishing platform is used to publish a computer program product, wherein when the computer program product runs on a computer, the computer executes part or all of the steps of the method in the above method embodiments.

[0105] It should be understood that the "one embodiment" or "an embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. Those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required for the present application.

[0106] In the various embodiments of the present application, it should be understood that the size of the serial numbers of the above-mentioned processes does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0107] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0108] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0109] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several requests for a computer device (which can be a personal computer, a server or a network device, etc., specifically a processor in a computer device) to perform some or all of the steps of the above-mentioned methods of various embodiments of the present application.

[0110] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0111] The above is a detailed introduction to a method for detecting access to a charger and a device to be charged disclosed in an embodiment of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present application, there will be changes in the specific implementation method and scope of application. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A charger, characterized in that: It includes a control unit, a voltage transformation unit and an output interface, the output interface includes an original function pin and an identity identification pin, the control unit is electrically connected to the voltage transformation unit, the original function pin and the identity identification pin respectively, the original function pin includes a power pin, the identity identification pin is a second sub-pin separated from the power pin, and the second sub-pin is not connected to the power pin, wherein: The control unit is configured to determine that a device to be charged is connected to the output interface when detecting that the level value of the second sub-pin is equal to the level value of the power pin, and send a first voltage transformation signal to the voltage transformation unit; The transformation unit is electrically connected to the power supply, and is used to transform the voltage provided by the power supply to obtain a first voltage according to the first transformation signal sent by the control unit, and output the first voltage to the charging circuit of the device to be charged, wherein the first voltage is less than the minimum charging voltage of the device to be charged.

2. The charger according to claim 1, characterized in that: The original function pin includes a ground pin, and the identity identification pin is a first sub-pin separated from the ground pin, and the first sub-pin is not connected to the ground pin. The control unit is also used to determine that the device to be charged is connected to the charger when it is detected that the ground pin and the first sub-pin are short-circuited.

3. The charger according to claim 1, characterized in that: The control unit is further configured to determine that the device to be charged is connected to the charger when it is detected that the power pin and the second sub-pin are short-circuited.

4. The charger according to claim 3, characterized in that: The control unit is further configured to determine that the device to be charged is connected to the charger when it is detected that the level value of the second sub-pin is equal to the level value of the power pin.

5. The charger according to claim 1, characterized in that: The charger further comprises a short circuit detection unit and a switch unit, wherein the short circuit detection unit is connected in series to the charging circuit, the control unit is electrically connected to the short circuit detection unit and the switch unit respectively, and the short circuit detection unit is electrically connected to the switch unit; The control unit is further used to obtain operating data of the short-circuit detection unit under the action of the first voltage, and when it is determined that the charger is short-circuited according to the operating data, control the switch unit to be disconnected so that the transformer unit no longer outputs voltage to the device to be charged.

6. The charger according to claim 5, characterized in that: The short circuit detection unit includes a current detection resistor, which is electrically connected to the control unit and the transformer unit respectively. The current detection resistor is used to collect the real-time current of the transformer unit. The real-time current is used to enable the control unit to determine whether the charger is short-circuited according to the real-time current.

7. The charger according to claim 5, characterized in that: The short circuit detection unit includes a temperature detection resistor, which is electrically connected to the control unit and the transformer unit respectively. The temperature detection resistor is used to collect the real-time temperature of the transformer unit, and the real-time temperature is used to enable the control unit to determine whether the charger is short-circuited according to the real-time temperature.

8. The charger according to claim 5, characterized in that: The switch unit includes a MOS tube, a gate of the MOS tube is electrically connected to the control unit, a drain of the MOS tube and a source of the MOS tube are electrically connected to the transformer unit respectively, and the control unit is further used to send a first control voltage to the gate of the MOS tube to turn off the MOS tube when it is determined according to the operating data that the charger is short-circuited, so that the transformer unit no longer outputs voltage to the device to be charged.

9. The charger according to any one of claims 5 to 8, characterized in that: The control unit is further configured to send a second voltage transformation signal to the voltage transformation unit when it is determined according to the operation data that the charger is not short-circuited; The transformation unit is further used to transform the voltage provided by the power supply to obtain a second voltage according to the second transformation signal sent by the control unit, and output the second voltage to the device to be charged, wherein the second voltage is greater than or equal to the minimum charging voltage of the device to be charged.

10. A method for detecting access to a device to be charged, characterized in that: The method is applied to the charger according to any one of claims 1 to 9, and the method comprises: When it is detected that the level value of the second sub-pin in the interface of the charger is equal to the level value of the power pin, it is determined that there is a device to be charged connected to the charger; The voltage provided by the power supply is transformed to obtain a first voltage, and the first voltage is output to the charging circuit of the device to be charged, wherein the first voltage is less than the minimum charging voltage of the device to be charged.