Charging interface, electronic equipment and control method and device thereof
By integrating the short circuit detection component on the housing of the charging interface, the short circuit between the power supply pin and the non-power supply pin is detected by using sensors and magnetic parts, the problem of short circuit detection in the charging interface is solved and the stability of the charging interface is improved and security.
Patent Information
- Application Number
- CN202411277118.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2024-12-13
AI Technical Summary
Due to long-term exposure to the outside, the charging interface of electronic devices is prone to accumulation of liquid or dust, resulting in short circuits of pins, affecting data transmission stability and charging speed. The existing thermistors cannot effectively detect internal short circuits.
Design a charging interface, including a circuit board, housing and a short-circuit detection component. The short-circuit detection component is located on the housing. The short-circuit condition between the power supply pin and the non-power supply pin is detected through sensors and magnetic parts, and the detection signal is output. The processor identifies and adopts control policies.
It effectively increases the short-circuit feedback function of the charging interface, reduces the possibility of failure caused by short-circuit, and improves the durability and safety of the charging interface.
Smart Images

Figure CN119133947A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of electronic equipment, and specifically relates to a charging interface, electronic equipment, and a control method and device thereof. Background Art
[0002] The charging port of an electronic device will be exposed to the outside for a long time, resulting in the accumulation of liquid or dust in the charging port. The liquid or dust will cause the pins in the charging port to short-circuit, thereby affecting the stability of data transmission and the charging speed of the electronic device.
[0003] In the related art, a thermistor is usually added next to the charging interface so that the electronic device can determine the short circuit condition inside the charging interface based on the temperature of the thermistor. However, since the thermistor cannot be set inside the charging interface, the reliability of the temperature detection of the charging interface is low. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a charging interface, an electronic device, and a control method and device thereof, which can effectively solve the technical problem that the charging interface cannot reflect whether its internal pins are short-circuited.
[0005] In a first aspect, an embodiment of the present application provides a charging interface, including:
[0006] A circuit board having power supply pins and non-power supply pins arranged side by side;
[0007] A housing is arranged on the circuit board, and at least a part of the power supply pins and the non-power supply pins are located inside the housing;
[0008] The short circuit detection component is arranged on the housing, and is used to detect the short circuit between the power supply pin and the non-power supply pin, and output a detection signal according to the short circuit between the power supply pin and the non-power supply pin.
[0009] In a second aspect, an embodiment of the present application provides an electronic device, including:
[0010] A charging interface as provided in the first aspect embodiment.
[0011] In a third aspect, an embodiment of the present application provides a method for controlling an electronic device, wherein the electronic device includes a charging interface as provided in the embodiment of the first aspect, and the method for controlling the electronic device includes:
[0012] Check the working condition of the charging interface;
[0013] When the charging interface is charging, obtaining a detection signal output by the short-circuit detection component;
[0014] According to the detection signal, the charging power of the electronic device is controlled.
[0015] In a fourth aspect, an embodiment of the present application provides a control device of an electronic device, the electronic device includes a charging interface provided in the embodiment of the first aspect, and a control method of the electronic device includes:
[0016] A detection module, used to detect the working condition of the charging interface;
[0017] An acquisition module, used for acquiring a detection signal output by the short-circuit detection component when the charging interface is charging;
[0018] The first control module is used to control the charging power of the electronic device according to the detection signal.
[0019] In a fifth aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the control method of the electronic device provided in the third aspect are implemented.
[0020] In a sixth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the control method of the electronic device provided in the third aspect are implemented.
[0021] In the seventh aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the steps of the control method of the electronic device provided in the third aspect.
[0022] In an eighth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the steps of the control method of an electronic device provided in the third aspect.
[0023] In an embodiment of the present application, the charging interface includes a circuit board, a shell and a short-circuit detection component. The circuit board has power supply pins and non-power supply pins arranged side by side. The power supply pins can realize functions such as charging. The non-power supply pins include ground pins, data transmission pins, configuration channel pins and multiplexing pins, etc.
[0024] The shell is arranged on the circuit board to protect the circuit board, at least part of the power supply pin and the non-power supply pin are located inside the shell, and the short circuit detection component is arranged on the shell. The short circuit detection component can detect the short circuit between the power supply pin and the non-power supply pin, and the short circuit detection component can output a detection signal according to the short circuit between the power supply pin and the non-power supply pin, so that the processor of the electronic device can identify the detection signal and adopt a corresponding control strategy.
[0025] As mentioned above, the charging interface provided by the present application has a short-circuit detection component arranged therein which can output a detection signal according to the short-circuit condition between the power supply pin and the non-power supply pin, thereby adding a short-circuit feedback function to the charging interface and reducing the possibility of charging interface failure caused by a short circuit between the power supply pin and the non-power supply pin. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 A schematic diagram of a charging interface according to an embodiment of the present application is shown;
[0027] Figure 2 A schematic diagram of a sensor and a magnetic member in a charging interface according to an embodiment of the present application is shown;
[0028] Figure 3 A schematic diagram showing a sensor, a magnetic component, a power supply pin, and a non-power supply pin in a charging interface according to an embodiment of the present application is shown;
[0029] Figure 4 A schematic diagram showing a sensor, a magnetic component, a power supply pin, and a non-power supply pin in a charging interface according to an embodiment of the present application is shown;
[0030] Figure 5 A schematic diagram of a charging interface according to an embodiment of the present application is shown;
[0031] Figure 6 A schematic diagram of a sensor in a charging interface according to an embodiment of the present application is shown;
[0032] Figure 7 A schematic diagram showing a sensor, a magnetic component, a power supply pin, and a non-power supply pin in a charging interface according to an embodiment of the present application is shown;
[0033] Figure 8 A schematic diagram showing a transmission path of a detection signal output by a sensor in a charging interface according to an embodiment of the present application;
[0034] Fig. 9 A schematic diagram showing pins of a charging interface according to an embodiment of the present application is shown;
[0035] Fig.10 One of the flowcharts of the control method of the electronic device according to the embodiment of the present application is shown;
[0036] Fig.11 A second flowchart of a method for controlling an electronic device according to an embodiment of the present application is shown;
[0037] Fig.12 A structural block diagram of a control device of an electronic device according to an embodiment of the present application is shown;
[0038] Fig.13A structural block diagram of an electronic device according to an embodiment of the present application is shown;
[0039] Fig.14 A schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application is shown.
[0040] Figures 1 to 9 Reference numerals:
[0041] 100 charging interface, 110 circuit board, 112 power supply pin, 114 non-power supply pin, 120 housing, 130 short circuit detection component, 132 flexible circuit board, 134 sensor, 136 magnetic component, 210 amplifier, 220 chip, 222 analog-to-digital converter. DETAILED DESCRIPTION
[0042] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0043] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0044] In conjunction with the accompanying drawings, a charging interface 100, an electronic device, and a control method and device thereof provided in an embodiment of the present application are described below through specific embodiments and application scenarios.
[0045] First, as Figure 1 and Figure 5 As shown, the present application provides a charging interface 100, including: a circuit board 110, on which a power supply pin 112 and a non-power supply pin 114 are arranged side by side; a shell 120, which is arranged on the circuit board 110, and at least part of the power supply pin 112 and the non-power supply pin 114 are located inside the shell 120; a short circuit detection component 130, which is arranged on the shell 120, and the short circuit detection component 130 is used to detect a short circuit between the power supply pin 112 and the non-power supply pin 114, and output a detection signal according to the short circuit between the power supply pin 112 and the non-power supply pin 114.
[0046] In an embodiment of the present application, the charging interface 100 includes a circuit board 110, a shell 120 and a short circuit detection component 130. The circuit board 110 has a power supply pin 112 and a non-power supply pin 114 arranged side by side. The power supply pin 112 can realize functions such as charging. The non-power supply pin 114 includes a ground pin, a data transmission pin, a configuration channel pin and a multiplexing pin, etc.
[0047] The shell 120 is set on the circuit board 110 to protect the circuit board 110. At least part of the power supply pin 112 and the non-power supply pin 114 are located inside the shell 120. The short circuit detection component 130 is set on the shell 120. The short circuit detection component 130 can detect the short circuit between the power supply pin 112 and the non-power supply pin 114. In addition, the short circuit detection component 130 can output a detection signal based on the short circuit between the power supply pin 112 and the non-power supply pin 114, so that the chip 220 of the electronic device can identify the detection signal and adopt a corresponding control strategy.
[0048] As mentioned above, the charging interface 100 provided in the present application has a short-circuit detection component 130 which can output a detection signal according to the short-circuit condition between the power supply pin 112 and the non-power supply pin 114, thereby adding a short-circuit feedback function to the charging interface 100, and reducing the possibility of failure of the charging interface 100 caused by a short circuit between the power supply pin 112 and the non-power supply pin 114.
[0049] Specifically, the charging interface 100 may be a Universal Serial Bus (USB), which includes Type-A, Type-B, and Type-C.
[0050] like Figure 1 and Figure 5 As shown, as a possible implementation, the short circuit detection component 130 includes: a flexible printed circuit 132 (FPC), which is attached to the housing 120, and the flexible printed circuit 132 is connected to the circuit board 110; a sensor 134, which is arranged on the flexible printed circuit 132 or the housing 120 and is connected to the flexible printed circuit 132, and at least part of the positive projection of the sensor 134 on the circuit board 110 falls on the power supply pin 112, and the sensor 134 is used to detect the short circuit between the power supply pin 112 and the non-power supply pin 114, and output a detection signal according to the short circuit between the power supply pin 112 and the non-power supply pin 114.
[0051] Specifically, the short circuit detection component 130 includes a flexible circuit board 132 and a sensor 134. The flexible circuit board 132 is attached to the shell 120. The flexible circuit board 132 is located outside the shell 120, and the flexible circuit board 132 is used to reduce the volume of the short circuit detection component 130. Moreover, since the flexible circuit board 132 is bendable, the flexible circuit board 132 can better fit the shell 120, thereby reducing the volume of the entire charging interface 100.
[0052] The sensor 134 is arranged on the flexible circuit board 132 or the shell 120. The flexible circuit board 132 connects the circuit board 110 and the sensor 134 to power the sensor 134 and transmit the detection signal emitted by the sensor 134 to the chip 220 and other components, so that the sensor 134 does not need to be powered independently, reducing the difficulty of installing the charging interface 100.
[0053] The flexible circuit board 132 may be connected to the power supply pin 112 , and the power supply pin 112 may be used to supply power to the sensor 134 , thereby reducing the difficulty of designing the circuit board 110 .
[0054] The flexible circuit board 132 can be connected to the power supply pin 112 of the circuit board 110 to supply power to the sensor 134 and lead out the detection signal output by the sensor 134 .
[0055] At least a portion of the positive projection of the sensor 134 on the circuit board 110 falls on the power supply pin 112 . The sensor 134 and the power supply pin 112 are aligned, so that the short-circuit current generated by the power supply pin 112 can be detected more accurately.
[0056] like Figure 1 , Figure 2 , Figure 3 and Figure 4 As shown, as a possible implementation, the sensor 134 is a Hall magnetic sensor, and the short-circuit detection component 130 also includes a magnetic component 136, which is arranged on the outside of the shell 120. The magnetic field of the magnetic component 136 acts on the magnetic field direction of the sensor 134, which is perpendicular to the current direction of the short-circuit current generated between the power supply pin 112 and the non-power supply pin 114.
[0057] Specifically, the sensor 134 is a Hall magnetic sensor, and the short-circuit detection component 130 also includes a magnetic part 136. The magnetic part 136 is arranged on the shell 120. The magnetic field of the magnetic part 136 acts on the sensor 134. The sensor 134 is arranged in the magnetic field of the magnetic part 136. When a short circuit occurs between the power supply pin 112 and the non-power supply pin 114, a short-circuit current is generated. The short-circuit current interferes with the magnetic field, so that the sensor 134 can output a detection signal according to the short circuit condition between the power supply pin 112 and the non-power supply pin 114.
[0058] Among them, the sensor 134 and the magnetic part 136 are both placed on the shell 120, and the sensor 134 is electrically connected to the circuit board 110 through the flexible circuit board 132. The flexible circuit board 132 and the sensor 134 can be attached to the shell 120, so as to realize the setting of the short circuit detection component 130 without adding additional pins on the circuit board 110. The flexible circuit board 132 can be welded and connected to the pins of the circuit board 110 to realize the power supply of the sensor 134 and the output of the detection signal, wherein the flexible circuit board 132 can be connected to the power supply pin 112.
[0059] Specifically, Figure 2 As shown, the direction of the current that can be detected by the sensor 134 is a direction that is perpendicular to the direction of the magnetic field applied by the magnetic member 136 to the sensor 134. The position of the magnetic member 136 can be adjusted appropriately as long as the direction of the magnetic field generated at the sensor 134 is perpendicular to the direction of the current detected by the sensor 134. The direction of the current detected by the sensor 134 is the current direction of the short-circuit current generated between the power supply pin 112 and the non-power supply pin 114. The sensor 134 can detect the horizontal current, which will eventually generate a voltage difference between the V+ interface and the V- interface. After being processed by the amplifier 210 and the analog-to-digital converter 222, the magnitude of the current can be characterized by the voltage, wherein the VCC interface of the sensor 134 is used for power supply, and the GND interface of the sensor 134 is used for grounding.
[0060] like Figure 3 As shown, when there is no short circuit between the power supply pin 112 and the non-power supply pin 114, the charging current enters from the power supply pin 112 and forms a loop through the non-power supply pin 114. When the charging current flows through the sensor 134, the current direction of the charging current is the same as the direction of the magnetic field, and the output detection signal does not change.
[0061] Specifically, the power supply pins correspond to A4 and A9, that is, the Vbus pin, and the non-power supply pins 114 correspond to A1, A3, A5, A8, A10 and A12, among which A1 and A12 are ground pins to form a power supply loop, corresponding to the GND pin, A3 and A10 are data transmission pins for USB3.0 signals, corresponding to TX1-pin and RX2-pin respectively, A5 is used to detect the positive and negative directions of the charger insertion, corresponding to the CC1 pin, and A8 is a multiplexed pin, corresponding to SBU1. The charging current enters the current management chip 220 (Power Management Integrated Circuit, PMIC) of the electronic device from A4, and then returns to A1 to form a complete charging current path. Similarly, the charging current enters the current management chip 220 of the electronic device from A9, and then returns to A12 to form a complete charging current path. Due to the placement of the magnetic part 136 and the sensor 134, the current direction of the charging current is perpendicular to the short-circuit current, which is consistent with the direction of the magnetic field, and the V+ interface and the V- interface will not change.
[0062] like Figure 4 As shown, in the case of a short circuit between the power supply pin 112 and the non-power supply pin 114, that is, after liquid or dust enters the charging interface 100, A4 and A1, A3, A5, A8, A9, A10 or A12 may be short-circuited, and similarly A9 and A1, A3, A4, A5, A8, A10 or A12 may be short-circuited, thereby generating a transverse short-circuit current, and the current direction of the short-circuit current is perpendicular to the direction of the magnetic field. The sensor 134 will generate an induced voltage, the V+ interface and the V- interface will change, and the detection signal will change, and then the electronic device can check the leakage current of the power supply pin 112, so that the electronic device can perform some operations such as reducing the charging power, prompting the user to clean the port, and stopping charging, so as to improve the safety of the electronic device and the durability of the charging interface 100.
[0063] Specifically, the sensor 134 is powered by the power supply pin 112. The detection signal output by the sensor 134 is amplified by the amplifier 210, sampled by the analog-to-digital converter 222 of the chip 220, and the detection signal is detected, and finally the short circuit condition of the power supply pin 112 and the non-power supply pin 114 can be determined.
[0064] like Figure 5 , Figure 6 and Figure 7 As shown, as a possible implementation, the sensor 134 is a Hall current sensor.
[0065] Specifically, the sensor 134 is a Hall current sensor, which can detect the direction and magnitude of the current, and output a detection signal when a short circuit occurs between the power supply pin 112 and the non-power supply pin 114 .
[0066] like Figure 6 As shown, the Hall current sensor has its own magnetic field inside, which can directly detect the current direction and intensity of the short-circuit current. The detected current direction is a transverse current, that is, perpendicular to the extension direction of the power supply pin 112. The sensor 134 can detect the transverse current, and finally a voltage difference will be generated between the V+ interface and the V- interface. After being processed by the amplifier 210 and the analog-to-digital converter 222, the magnitude of the current can be characterized by the voltage, wherein the VCC interface of the sensor 134 is used for power supply, and the GND interface of the sensor 134 is used for grounding.
[0067] like Figure 7 As shown, in the case of a short circuit between the power supply pin 112 and the non-power supply pin 114, that is, after liquid or dust enters the charging interface 100, A4 and A1, A3, A5, A8, A9, A10 or A12 may be short-circuited, and similarly A9 and A1, A3, A4, A5, A8, A10 or A12 may be short-circuited, thereby generating a transverse short-circuit current, and then the sensor 134 will generate an induced voltage, the V+ interface and the V- interface will change, and thus the detection signal will change, and then the electronic device can check the leakage current of the power supply pin 112, so that the electronic device can perform some operations such as reducing the charging power, prompting the user to clean the port, stopping charging, etc., so as to improve the safety of the electronic device and the durability of the charging interface 100.
[0068] Specifically, the power supply pin corresponds to A4 and A9, that is, the Vbus pin, and the non-power supply pin 114 corresponds to A1, A3, A5, A8, A10 and A12, among which A1 and A12 are ground pins to form a power supply loop, corresponding to the GND pin, A3 and A10 are data transmission pins for USB3.0 signals, corresponding to TX1-pin and RX2-pin respectively, A5 is used to detect the positive and negative directions of the charger insertion, corresponding to the CC1 pin, A8 is a multiplexed pin, corresponding to SBU1, and the sensor 134 is powered by the power supply pin 112. The detection signal output by the sensor 134 is amplified by the amplifier 210, sampled by the analog-to-digital converter 222 of the chip 220, and the detection signal is detected, and finally the short circuit condition of the power supply pin 112 and the non-power supply pin 114 can be determined.
[0069] like Figure 3 , Figure 4 and Figure 7As shown, as a possible implementation, there are at least two power supply pins 112 and non-power supply pins 114 , there is at least one non-power supply pin 114 between adjacent power supply pins 112 , there are two sensors 134 , and the sensors 134 and the power supply pins 112 correspond one to one.
[0070] Specifically, there are at least two power supply pins 112 and non-power supply pins 114, and there is at least one non-power supply pin 114 between adjacent power supply pins 112. The number of sensors 134 is two, and one sensor 134 corresponds to one power supply pin 112, so that each power supply pin 112 can detect a short circuit between it and the non-power supply pin 114.
[0071] Among them, Fig. 9 As shown, taking the Type-C charging interface 100 as an example, the charging interface 100 has a total of 12 pairs of pins, namely A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, B1, B 2, B 3, B 4, B 5, B 6, B7, B 8, B 9, B 10, B 11 and B12, wherein the power supply pin 112 corresponds to the pins A4, A9, B4 and B9, which correspond to Vbuspin, and a sensor 134 is set for each position of A4, A9, B4 and B9, and the non-power supply pin 114 corresponds to the pins A1, A2, A3, A5, A6, A7, A8, A10, A11, A12, B1, B 2, B 3, B 4, B 5, B 6, B 7, B 8, B 10, B 11 and B12. 11 and B12, among which A2, A3, B2, B3, A10, A11, B10 and B11 are the data transmission pins of USB3.0 signals, corresponding to TX1+pin, TX1-pin, TX2+pin, TX2-pin, RX2-pin, RX2+pin, RX1-pin and RX1+pin respectively; A5 and B5 are the configuration channel pins for detecting the positive and negative directions of the charger insertion, corresponding to CC1 pin and CC2 pin respectively; A6, A7, B6 and B7 are the data transmission pins of USB2.0 signals, corresponding to D+pin, D-pin, D+pin and D-pin respectively; A8 and B8 are multiplexed pins, corresponding to SBU1 pin and SBU2pin; A1, B1, A12 and B12 are ground pins to form a power supply loop, corresponding to GND pin.
[0072] In the case that A4, A5 and A6 are short-circuited by water droplets, the sensor 134 can detect and output a detection signal, thereby identifying the short-circuit between the power supply pin 112 and the non-power supply pin 114.
[0073] In a second aspect, the present application provides an electronic device, including: a charging interface as provided in the embodiment of the first aspect.
[0074] The electronic device provided in the present application includes the charging interface provided in the embodiment of the first aspect, and therefore has all the beneficial effects of the charging interface provided in the embodiment of the first aspect, which will not be stated one by one here.
[0075] like Figure 8 As shown, the electronic device includes an amplifier 210 and a chip 220. The chip 220 includes an analog-to-digital converter 222. The amplifier 210 is used to amplify the detection signal, and the fuzzy converter is used to convert the analog detection signal into a digital detection signal, so as to facilitate the analysis of the chip 220.
[0076] The chip 220 may be a system on chip (SoC).
[0077] Fig.10 FIG. 1 shows one of the flow charts of the control method of the electronic device according to an embodiment of the present application. Fig.10 As shown, the method includes:
[0078] Step 1002: Detect the working condition of the charging interface.
[0079] Specifically, the working condition of the charging interface is detected, that is, whether the charging interface is in a charging state is determined.
[0080] Step 1004: When the charging interface is charging, obtain a detection signal output by the short-circuit detection component.
[0081] Specifically, if the charging interface is charging, a detection signal output by the short-circuit detection component is obtained to determine the short-circuit condition of the power supply pin and the non-power supply pin of the charging interface.
[0082] Step 1006: Control the charging power of the electronic device according to the detection signal.
[0083] Specifically, the charging power of the electronic device is controlled according to the detection signal to avoid malfunction of the electronic device caused by charging when the power supply pin and the non-power supply pin of the charging interface are short-circuited.
[0084] In an embodiment of the present application, the status of the charging interface is monitored, and when the charging interface is charging, a detection signal output by the short-circuit detection component is obtained, and the detection signal is analyzed. According to the analysis result, the charging power of the electronic device is controlled, and then the charging power of the electronic device can be adjusted according to the short circuit between the power supply pin and the non-power supply pin, thereby reducing the possibility of electronic device failure caused by the short circuit between the power supply pin and the non-power supply pin.
[0085] As a possible implementation, the charging power of the electronic device is controlled according to the detection signal, including: when the strength of the detection signal is greater than a first threshold, controlling the charging power of the electronic device to be reduced to a power threshold; when the strength of the detection signal is greater than a second threshold, controlling the electronic device to stop charging so that the charging power of the electronic device is reduced to zero; wherein the first threshold is less than the second threshold.
[0086] Specifically, the charging power of the electronic device is controlled according to the detection signal, including: when the strength of the detection signal is greater than a first threshold, controlling the electronic device to reduce the charging power and charging at a power threshold, wherein the charging power can be reduced by reducing the charging voltage, reducing the charging current, or reducing both the charging power supply and the charging current.
[0087] When the intensity of the detection signal is greater than the second threshold, the electronic device is controlled to stop charging, so that the charging power of the electronic device is reduced to zero.
[0088] Among them, the first threshold is less than the second threshold, and the greater the strength of the detection signal, the more serious the short circuit between the power supply pin and the non-power supply pin. When the strength of the detection signal is greater than the first threshold, it means that the power supply pin and the non-power supply pin are in a short circuit state, and the short circuit is relatively light. In this case, the charging power is reduced to achieve charging in a safe manner; when the strength of the detection signal is greater than the second threshold, it means that the power supply pin and the non-power supply pin are in a short circuit state, and the short circuit is relatively serious. In this case, charging is stopped to ensure the safety of the electronic device.
[0089] That is, the first threshold is a threshold when the leakage current is low, and the second threshold is a threshold when the leakage current is high.
[0090] As a possible implementation, after controlling the electronic device to stop charging, the method further includes: controlling the electronic device to issue an abnormality reminder of the charging interface.
[0091] Specifically, after controlling the electronic device to stop charging, it also includes: controlling the screen, speaker, vibration motor or flash light and other components of the electronic device to operate to issue an abnormal reminder of the charging interface.
[0092] like Fig. 9 As shown, when charging is performed when there are water droplets or dust between the power supply pin and the non-power supply pin, the power supply pin will leak electricity, which will accelerate the corrosion and damage of the power supply pin and the non-power supply pin, and eventually lead to abnormal phenomena such as the charging port cannot be charged, the screen cannot be projected, or data cannot be transmitted.
[0093] Fig.11 FIG. 2 shows a second flow chart of a control method of an electronic device according to an embodiment of the present application. Fig.11 As shown, the method includes:
[0094] Step 1102: Determine whether the charging port is plugged into a charger;
[0095] Step 1104: obtaining a detection signal output by the short-circuit detection component;
[0096] Step 1106: whether the voltage of the detection signal is greater than a first threshold; if the voltage of the detection signal is greater than the first threshold, execute step 1108; if the voltage of the detection signal is not greater than the first threshold, execute step 1104;
[0097] Step 1108: reducing the charging power to a power threshold;
[0098] Step 1110: obtaining a detection signal output by the short-circuit detection component;
[0099] Step 1112: whether the voltage of the detection signal is greater than a second threshold; if the voltage of the detection signal is greater than the second threshold, execute step 1114; if the voltage of the detection signal is not greater than the second threshold, execute step 1104;
[0100] Step 1114: Stop charging and prompt the user that the charging is abnormal. Please check whether there is any foreign matter such as liquid or dust in the charging port.
[0101] This application checks the size of the leakage current and sets two thresholds. When the leakage current is small, the impact on the corrosion of the power supply pins and the non-power supply pins is small. In this case, the charging power can be reduced to ensure the charging function. When the leakage current is relatively large, the impact on the corrosion of the power supply pins and the non-power supply pins is large. In this case, the charging can be directly disconnected, and the user is prompted to check whether there is foreign matter such as liquid or dust entering the charging port, and please clean it in time, thereby improving the durability of the charging port.
[0102] The electronic device control method provided in the embodiment of the present application can be executed by a control device of the electronic device. In the embodiment of the present application, the control device of the electronic device executes the electronic device control method as an example to illustrate the device of the electronic device control method provided in the embodiment of the present application.
[0103] like Fig.12 As shown, the present application provides a control device 1200 of an electronic device, and the electronic device includes a charging interface as provided in the first aspect embodiment, and the control device 1200 of the electronic device includes: a detection module 1202, used to detect the working condition of the charging interface; an acquisition module 1204, used to obtain a detection signal output by a short-circuit detection component when the charging interface is charging; a first control module 1206, used to control the charging power of the electronic device according to the detection signal.
[0104] In an embodiment of the present application, the status of the charging interface is monitored, and when the charging interface is charging, a detection signal output by the short-circuit detection component is obtained, and the detection signal is analyzed. According to the analysis result, the charging power of the electronic device is controlled, and then the charging power of the electronic device can be adjusted according to the short circuit between the power supply pin and the non-power supply pin, thereby reducing the possibility of electronic device failure caused by the short circuit between the power supply pin and the non-power supply pin.
[0105] As a possible implementation, the first control module 1206 includes: a first control submodule, used to control the charging power of the electronic device to be reduced to a power threshold when the strength of the detection signal is greater than the first threshold; a second control submodule, used to control the electronic device to stop charging and reduce the charging power of the electronic device to zero when the strength of the detection signal is greater than the second threshold; wherein the first threshold is less than the second threshold.
[0106] As a possible implementation, it further includes: a second control module, used to control the electronic device to issue an abnormal reminder of the charging interface.
[0107] The control device of the electronic device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated path or chip. The electronic device can be a terminal, or it can be other devices other than the electronic device. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a private network communication terminal device (such as a walkie-talkie), a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0108] The control device of the electronic device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0109] The control device of the electronic device provided in the embodiment of the present application can implement each process implemented in the above method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0110] The present application also provides an electronic device, Fig.13 A structural block diagram of an electronic device according to an embodiment of the present application is shown, such as Fig.13 As shown, the electronic device 1300 includes a processor 1302 and a memory 1304, and the memory 1304 stores programs or instructions that can be executed on the processor 1302. When the program or instruction is executed by the processor 1302, the various steps of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it is not repeated here.
[0111] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0112] Fig.14 A schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
[0113] The electronic device 1400 includes but is not limited to: a radio frequency unit 1401, a network module 1402, an audio output unit 1403, an input unit 1404, a sensor 1405, a display unit 1406, a user input unit 1407, an interface unit 1408, a memory 1409 and a processor 1410 and other components.
[0114] Those skilled in the art will appreciate that the electronic device 1400 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1410 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.14 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0115] The processor 1410 is used to detect the working condition of the charging interface;
[0116] The processor 1410 is used to obtain a detection signal output by the short-circuit detection component when the charging interface is charging;
[0117] The processor 1410 is used to control the charging power of the electronic device according to the detection signal.
[0118] In some embodiments, optionally, the processor 1410 is configured to control the charging power of the electronic device according to the detection signal, including:
[0119] The processor 1410 is configured to control the charging power of the electronic device to be reduced to a power threshold when the strength of the detection signal is greater than a first threshold;
[0120] The processor 1410 is configured to control the electronic device to stop charging when the strength of the detection signal is greater than the second threshold value, so that the charging power of the electronic device is reduced to zero;
[0121] The first threshold is smaller than the second threshold.
[0122] In some embodiments, optionally, further comprising:
[0123] Processor 1410 is used to control the electronic device to issue an abnormal reminder of the charging interface when the strength of the detection signal is greater than a second threshold.
[0124] In an embodiment of the present application, the status of the charging interface is monitored, and when the charging interface is charging, a detection signal output by the short-circuit detection component is obtained, and the detection signal is analyzed. According to the analysis result, the charging power of the electronic device is controlled, and then the charging power of the electronic device can be adjusted according to the short circuit between the power supply pin and the non-power supply pin, thereby reducing the possibility of electronic device failure caused by the short circuit between the power supply pin and the non-power supply pin.
[0125] It should be understood that in the embodiment of the present application, the input unit 1404 may include a graphics processor (Graphics Processing Unit, GPU) 14041 and a microphone 14042, and the graphics processor 14041 processes the image file of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1406 may include a display panel 14061, and the display panel 14061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1407 includes a touch panel 14071 and at least one of other input devices 14072. The touch panel 14071 is also called a touch screen. The touch panel 14071 may include two parts: a touch detection device and a touch controller. Other input devices 14072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0126] The memory 1409 can be used to store software programs and various files. The memory 1409 may mainly include a first storage area for storing programs or instructions and a second storage area for storing files, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1409 may include a volatile memory or a non-volatile memory, or the memory 1409 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1409 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0127] The processor 1410 may include one or more processing units; optionally, the processor 1410 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1410.
[0128] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned image color scale adjustment method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0129] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0130] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the control method embodiment of the above-mentioned electronic device, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0131] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0132] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the control method embodiment of the electronic device as described above, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0133] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0134] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling an electronic device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.
[0135] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A charging interface, It is characterized in that include: A circuit board having power supply pins and non-power supply pins arranged side by side; A housing, arranged on the circuit board, wherein at least a portion of the power supply pins and the non-power supply pins are located inside the housing; A short circuit detection component is arranged on the shell, and is used to detect the short circuit between the power supply pin and the non-power supply pin, and output a detection signal according to the short circuit between the power supply pin and the non-power supply pin.
2. The charging interface according to claim 1, It is characterized in that The short circuit detection component comprises: A flexible circuit board is attached to the housing, and the flexible circuit board is connected to the circuit board; A sensor is arranged on the flexible circuit board or the shell and connected to the flexible circuit board, at least part of the orthographic projection of the sensor on the circuit board falls on the power supply pin, and the sensor is used to detect a short circuit between the power supply pin and the non-power supply pin, and output a detection signal according to the short circuit between the power supply pin and the non-power supply pin.
3. The charging interface according to claim 2, It is characterized in that The sensor is a Hall current sensor; or The sensor is a Hall magnetic sensor, and the short-circuit detection component also includes a magnetic part, which is arranged on the outside of the shell. The magnetic field of the magnetic part acts on the magnetic field direction of the sensor, which is perpendicular to the current direction of the short-circuit current generated between the power supply pin and the non-power supply pin.
4. The charging interface according to claim 2 or 3, It is characterized in that There are at least two power supply pins and at least two non-power supply pins, and at least one non-power supply pin is provided between adjacent power supply pins. There are two sensors, and the sensors correspond to the power supply pins one by one.
5. An electronic device, It is characterized in that include: A charging interface as claimed in any one of claims 1 to 4.
6. A method for controlling an electronic device, It is characterized in that The electronic device comprises a charging interface as claimed in any one of claims 1 to 4, and the control method of the electronic device comprises: Detecting the working condition of the charging interface; When the charging interface is charging, obtaining a detection signal output by the short-circuit detection component; The charging power of the electronic device is controlled according to the detection signal.
7. The method for controlling an electronic device according to claim 6, It is characterized in that Controlling the charging power of the electronic device according to the detection signal includes: When the strength of the detection signal is greater than a first threshold, controlling the charging power of the electronic device to be reduced to a power threshold; When the strength of the detection signal is greater than a second threshold, controlling the electronic device to stop charging so that the charging power of the electronic device is reduced to zero; The first threshold is smaller than the second threshold.
8. The method for controlling an electronic device according to claim 7, It is characterized in that Also includes: When the intensity of the detection signal is greater than the second threshold, the electronic device is controlled to issue an abnormal reminder of the charging interface.
9. A control device for an electronic device, It is characterized in that The electronic device comprises a charging interface as claimed in any one of claims 1 to 4, and the control device of the electronic device comprises: A detection module, used to detect the working condition of the charging interface; An acquisition module, used for acquiring a detection signal output by the short-circuit detection component when the charging interface is charging; The first control module is used to control the charging power of the electronic device according to the detection signal.
10. An electronic device, It is characterized in that The electronic device comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the control method of the electronic device as described in any one of claims 6 to 8 are implemented.
