CN109738740B - Attraction-type power supply device, output control method, medium, and electronic device - Google Patents

Attraction-type power supply device, output control method, medium, and electronic device Download PDF

Info

Publication number
CN109738740B
CN109738740B CN201811592640.0A CN201811592640A CN109738740B CN 109738740 B CN109738740 B CN 109738740B CN 201811592640 A CN201811592640 A CN 201811592640A CN 109738740 B CN109738740 B CN 109738740B
Authority
CN
China
Prior art keywords
voltage
output
power supply
detection
contact
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811592640.0A
Other languages
Chinese (zh)
Other versions
CN109738740A (en
Inventor
杨冬笋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811592640.0A priority Critical patent/CN109738740B/en
Publication of CN109738740A publication Critical patent/CN109738740A/en
Application granted granted Critical
Publication of CN109738740B publication Critical patent/CN109738740B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Direct Current Feeding And Distribution (AREA)

Abstract

The embodiment of the invention provides attraction-type power supply equipment, an output control method, a medium and electronic equipment, wherein the attraction-type power supply equipment comprises the following steps: dividing the first voltage output by the output contact to obtain a second voltage; outputting the second voltage to the detection contact, and monitoring the voltage of the detection contact in real time to obtain a detection voltage value; and comparing the detection voltage value with a preset reference voltage to obtain a comparison result, and controlling whether to output the first voltage to the output contact or not based on the comparison result. According to the technical scheme of the embodiment of the invention, the attraction state of the contact is monitored and detected, when the attraction power supply equipment does not have the attraction equipment or the attraction power supply equipment is short-circuited, the output contact does not output, when the attraction terminal of the attraction power supply equipment is back, the output contact normally outputs, and when all the contacts are not attracted, the voltage on the contact is lower than the voltage capable of causing contact corrosion, so that the attraction power supply equipment is protected, the service life of the attraction power supply equipment is prolonged, and the safety of the attraction power supply equipment is improved.

Description

Attraction-type power supply device, output control method, medium, and electronic device
Technical Field
The invention relates to the technical field of attraction type data lines, in particular to attraction type power supply equipment, an output control method of the attraction type power supply equipment, a computer readable medium and electronic equipment.
Background
At present, the attraction type data line is popular among more and more consumers due to the reasons of convenient carrying, convenient butt joint and the like, and is widely applied.
In the prior art, the data line is mainly butted with the terminal in a magnet magnetic positive and negative attraction mode, so that operations such as charging, data transmission and the like are realized.
However, the contact for electrical contact and the contact on the terminal in the existing pull-in data interface are exposed, the contact easily touches the metal shell to cause a short circuit, and further damages the terminal and the circuit of the charging adapter, and the surface of the contact is easily contacted with dust, liquid and the like, and if the contact is electrified for a long time, the contact is easily corroded, thereby causing poor contact.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present invention and therefore may include information that does not constitute prior art known to a person of ordinary skill in the art.
Disclosure of Invention
An object of an embodiment of the present invention is to provide an output control method for an attraction-type power supply device and an attraction-type power supply device, so as to overcome, at least to a certain extent, one or more problems, such as short circuit of the device due to contacts and poor contact due to corrosion of the contacts, caused by limitations and defects of the related art.
Additional features and advantages of embodiments of the invention will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the invention.
According to a first aspect of embodiments of the present invention, there is provided a pull-in power supply apparatus including: the power supply device comprises a power supply interface, a pull-in power supply interface, an output circuit, a detection circuit and a voltage comparison circuit; wherein the content of the first and second substances,
the pull-in power supply interface is provided with an output contact for supplying power to the terminal through electrical contact with the terminal, and a detection contact for detecting the contact state of the pull-in power supply interface;
the output circuit is respectively connected with the power supply interface and the output contact, receives a first voltage through the power supply interface and outputs the first voltage to the terminal through the output contact;
the detection circuit is respectively connected with the power supply interface and the detection contact, receives a first voltage through the power supply interface, divides the first voltage through a first voltage dividing resistor and a second voltage dividing resistor to obtain a second voltage, and outputs the second voltage to the detection contact;
the voltage comparison circuit is respectively connected with the output circuit and the detection circuit, obtains a detection voltage value of a detection contact in the detection circuit, compares the detection voltage value with an input reference voltage, and controls the switch of the output circuit based on a comparison result obtained by comparison.
In an embodiment of the invention, the attraction type power interface is further provided with a permanent magnet, and the permanent magnet is attracted to an interface matched with the attraction type power interface in the terminal by virtue of magnetic force of the permanent magnet, so as to supply power to the terminal through electric contact.
In an embodiment of the present invention, the output circuit specifically includes: a first input terminal, a switch and a first output terminal; wherein the content of the first and second substances,
the first input end is electrically connected to the power supply interface and used for receiving a first voltage input by the power supply interface;
the switch is connected in series between the first input end and the first output end and is electrically connected to the voltage comparison circuit so as to control the connection and disconnection of the output circuit;
and the first output end of the output circuit is connected with the output contact of the pull-in power supply interface.
In an embodiment of the present invention, the detection circuit includes: the second input end, the first divider resistor, the second divider resistor and the second output end; wherein the content of the first and second substances,
the second input end is electrically connected to the power supply interface and used for receiving a first voltage input by the power supply interface;
one end of the first voltage-dividing resistor is connected to the second input end, and the other end of the first voltage-dividing resistor is respectively connected to one end of the second voltage-dividing resistor and the second output end;
one end of the second voltage-dividing resistor is connected to one end of the first voltage-dividing resistor, and the other end of the second voltage-dividing resistor is grounded;
the second output end is connected with the detection contact of the pull-in power supply interface.
In an embodiment of the present invention, the voltage comparison circuit includes: a first voltage comparator and a second voltage comparator; wherein the content of the first and second substances,
a third input end of the first voltage comparator is used for obtaining a first reference voltage, a fourth input end of the first voltage comparator is connected to the detection contact to obtain a detection voltage value, the first voltage comparator compares the detection voltage value with the first reference voltage to generate a first comparison result and outputs a first control signal corresponding to the first comparison result through a set third output end, and the third output end is in signal connection with the switch;
the fifth input end of the second voltage comparator is used for obtaining a second reference voltage, the sixth input end of the second voltage comparator is connected to the detection contact to obtain a detection voltage value, the second voltage comparator compares the detection voltage value with the second reference voltage to generate a second comparison result and output a second control signal corresponding to the second comparison result through the set fourth output end, and the fourth output end is in signal connection with the switch.
In an embodiment of the present invention, the first reference voltage is determined by the formula:
Figure BDA0001920647890000031
wherein V represents a voltage value of the first voltage, R1Denotes a first divider resistance, R2Denotes a second divider resistance, R3Indicating the resistance of the terminal sense resistor after the sense contact is closed, N indicating the margin, VREF1Representing a first reference voltage;
the second reference voltage is determined by the formula:
N≤VREF2≤V*[R2/R1+R2]-N
wherein V represents a voltage value of the first voltage, R1Denotes a first divider resistance, R2Denotes a second divider resistance, VREF2Representing the second reference voltage and N representing the margin.
According to a second aspect of the embodiments of the present invention, there is provided an output control method of a pull-in power supply apparatus, including:
dividing the first voltage output by the output contact to obtain a second voltage;
outputting the second voltage to the detection contact, and monitoring the voltage of the detection contact in real time to obtain a detection voltage value;
and comparing the detection voltage value with a preset reference voltage to obtain a comparison result, and controlling whether to output a first voltage to the output contact or not based on the comparison result.
In an embodiment of the present invention, the dividing the first voltage output by the output contact to obtain the second voltage includes:
and dividing the first voltage through a preset first voltage dividing resistor and a preset second voltage dividing resistor, and outputting a second voltage.
In an embodiment of the present invention, the monitoring the voltage of the detection contact in real time, and obtaining the detection voltage value includes:
obtaining a first detection voltage value when the detection contact is in electrical contact with the terminal, wherein, by the formula:
Figure BDA0001920647890000041
determining the first detection voltage value, U1Representing a first detected voltage value, V representing a voltage value of the first voltage, R1Denotes a first divider resistance, R2Denotes a second divider resistance, R3A resistance value representing a terminal detection resistance after the detection contact is connected;
obtaining a second detection voltage value when the detection contact is not in electrical contact with the terminal, wherein the second detection voltage value is obtained through a formula:
Figure BDA0001920647890000042
determining the first detection voltage value, U2Representing the second detected voltage value, V representing the voltage value of the first voltage, R1Denotes a first divider resistance, R2Representing the second divider resistance.
In an embodiment of the invention, the preset reference voltage includes: a first reference voltage and a second reference voltage; the comparing the detection voltage value with a preset reference voltage to obtain a comparison result, and controlling whether to output a first voltage to the output contact based on the comparison result includes:
after a detection voltage value is obtained from the detection contact, comparing the monitoring voltage value with the first reference voltage and the second reference voltage;
when the detection voltage value is larger than the first reference voltage or smaller than the second reference voltage, determining a first comparison result that the detection contact is not in electrical contact with the terminal;
outputting a first control signal based on the first comparison result to control to stop outputting the first voltage to the output contact.
In an embodiment of the present invention, the method further includes:
a second comparison result of determining that the detection contact has made electrical contact with the terminal when the detection voltage value is less than the first reference voltage and greater than the second reference voltage;
and outputting a second control signal based on the second comparison result, and controlling the first voltage to be output to the output contact.
In an embodiment of the present invention, the first reference voltage is determined by the formula:
Figure BDA0001920647890000051
wherein V represents a voltage value of the first voltage, R1Denotes a first divider resistance, R2Denotes a second divider resistance, R3Indicating the resistance of the terminal sense resistor after the sense contact is closed, N indicating the margin, VREF1Representing a first reference voltage;
the second reference voltage is determined by the formula:
N≤VREF2≤V*[R2/R1+R2]-N
wherein V represents a voltage value of the first voltage, R1Denotes a first divider resistance, R2Denotes a second divider resistance, VREF2Representing the second reference voltage and N representing the margin.
According to a third aspect of embodiments of the present invention, there is provided a computer-readable medium on which a computer program is stored, the program, when executed by a processor, implementing the output control method of the pull-in power supply apparatus of the second aspect as in the above-described embodiments.
According to a fourth aspect of embodiments of the present invention, there is provided an electronic apparatus, including: one or more processors; a storage device for storing one or more programs, which when executed by one or more processors, cause the one or more processors to implement the output control method of the pull-in power supply device according to the second aspect as in the above-described embodiments.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the technical solutions provided by some embodiments of the present invention, a first voltage output by the output contact is divided to obtain a second voltage; outputting the second voltage to the detection contact, and monitoring the voltage of the detection contact in real time to obtain a detection voltage value; and comparing the detection voltage value with a preset reference voltage to obtain a comparison result, and controlling whether to output a first voltage to the output contact or not based on the comparison result. According to the technical scheme of the embodiment of the invention, the attraction state of the contact is monitored and detected, when the attraction power supply equipment does not have the attraction equipment or the attraction power supply equipment is short-circuited, the output contact does not output, when the attraction terminal of the attraction power supply equipment is back, the output contact normally outputs, and when all the contacts are not attracted, the voltage on the contact is lower than the voltage capable of causing contact corrosion, so that the attraction power supply equipment is protected, the service life of the attraction power supply equipment is prolonged, and the safety of the attraction power supply equipment is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
fig. 1 schematically shows a circuit diagram of a pull-in power supply apparatus according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a circuit for outputting a first reference voltage and a second reference voltage using a voltage dividing resistor according to an embodiment of the present invention;
FIG. 3 is a circuit diagram schematically illustrating the use of a voltage regulator to output a first reference voltage and a second reference voltage, according to one embodiment of the present invention;
FIG. 4 is a circuit diagram schematically illustrating voltage comparison implemented using dual comparators, according to one embodiment of the present invention;
fig. 5 schematically shows a flowchart of an output control method of the pull-in power supply apparatus according to an embodiment of the present invention;
FIG. 6 schematically illustrates a block diagram of a computer system suitable for use with an electronic device to implement an embodiment of the invention.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to provide a thorough understanding of embodiments of the invention. One skilled in the relevant art will recognize, however, that the inventive aspects may be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations or operations have not been shown or described in detail to avoid obscuring aspects of the invention.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
Fig. 1 schematically shows a circuit diagram of a pull-in power supply apparatus according to an embodiment of the present invention.
Referring to fig. 1, a pull-in power supply apparatus 100 according to an embodiment of the present invention includes: a power supply interface 101, a pull-in power supply interface 102, an output circuit 103, a detection circuit 104 and a voltage comparison circuit 105; wherein the content of the first and second substances,
the pull-in power supply interface 102 is provided with an output contact 106 for supplying power to the terminal by electrically contacting with the terminal 1100, and a detection contact 107 for detecting the contact state of the pull-in power supply interface 102;
the output circuit 103 is respectively connected to the power supply interface 101 and the output contact 106, receives a first voltage through the power supply interface 101, and outputs the first voltage to the terminal 1100 through the output contact 106, where the first voltage may be a voltage for supplying power to the terminal 1100, and the first voltage may be adsorbed to a contact of the terminal 1100 through a pull-in power supply interface to realize power supply to the terminal 1100;
the detection circuit 104 is respectively connected with the power supply interface 101 and the detection contact 107, receives a first voltage through the power supply interface 101, divides the first voltage through a first voltage dividing resistor 108 and a second voltage dividing resistor 109 to obtain a second voltage, and outputs the second voltage to the detection contact 107, specifically, an input end 113 of the detection circuit 104 is respectively connected with one ends of the power supply interface 101 and the first voltage dividing resistor 108, the other end of the first voltage dividing resistor 108 is respectively connected with a second output end 116 and one end of the second voltage dividing resistor 109, wherein the second output end 116 is connected with the detection contact 107 of the pull-in power supply interface 102, and the other end of the second voltage dividing resistor 109 is grounded;
the voltage comparison circuit 105 is connected to the output circuit 103 and the detection circuit 104, respectively, obtains a detection voltage value of the detection contact 107 in the detection circuit 104, compares the detection voltage value with a preset reference voltage, and controls the switch 110 of the output circuit 103 based on a comparison result obtained by the comparison, where the preset reference voltage includes: first and second reference voltages, in particular:
the first reference voltage is determined by the formula:
Figure BDA0001920647890000081
wherein V represents a voltage value of the first voltage, R1Denotes a first divider resistance, R2Denotes a second divider resistance, R3Indicating the resistance of the terminal sense resistor after the sense contact is closed, N indicating the margin, VREF1Representing a first reference voltage;
the second reference voltage is determined by the formula:
Figure BDA0001920647890000082
wherein V represents a voltage value of the first voltage, R1Denotes a first divider resistance, R2Denotes a second divider resistance, VREF2Representing the second reference voltage and N representing the margin.
In an embodiment of the present invention, the switch 110 of the output circuit may be implemented by a mos (metal oxide semiconductor) transistor, a relay, a load switch, or the like.
In one embodiment of the present invention, the attraction power interface 102 is further provided with a permanent magnet, and attracts the interface 1101 matching with the attraction power interface in the terminal 1100 by means of the magnetic force of the permanent magnet, so as to supply power to the terminal 1100 through electrical contact.
In an embodiment of the present invention, the output circuit 103 specifically includes: a first input 111, a switch 110 and a first output 112; wherein the content of the first and second substances,
the first input end 111 is electrically connected to the power supply interface 101 for receiving an input first voltage;
the switch 110 is connected in series between the first input end 111 and the first output end 112, and is electrically connected to the voltage comparison circuit 105 to control the on/off of the output circuit 103;
the first output terminal 112 of the output circuit 103 is connected to the output contact 106 of the pull-in power interface 102.
In one embodiment of the present invention, the detection circuit 104 includes: a second input terminal 113, a first voltage-dividing resistor 108, a second voltage-dividing resistor 109, and a second output terminal 116; wherein the content of the first and second substances,
the second input terminal 113 is electrically connected to the power supply interface 101 for receiving the input first voltage;
one end of the first voltage-dividing resistor 108 is connected to the second input terminal 113, and the other end of the first voltage-dividing resistor 108 is connected to one end of the second voltage-dividing resistor 109 and the second output terminal 116, respectively;
one end of the second voltage-dividing resistor 109 is connected to one end of the first voltage-dividing resistor 108, and the other end of the second voltage-dividing resistor 109 is grounded;
the second output terminal 116 is connected to the detection contact 107 of the pull-in power interface 102.
In one embodiment of the present invention, the voltage comparison circuit 105 includes: a first voltage comparator 117 and a second voltage comparator 118; wherein the content of the first and second substances,
a third input end 119 of the first voltage comparator 117 is configured to obtain a first reference voltage, a fourth input end 122 of the first voltage comparator 117 is connected to the detection contact 107 to obtain a detection voltage value of the detection contact 107, the first voltage comparator 117 compares the detection voltage value with the first reference voltage to generate a first comparison result and output a first control signal corresponding to the first comparison result through a set third output end 121, and the third output end 121 is in signal connection with the switch 110;
the fifth input end 120 of the second voltage comparator 118 is configured to obtain a second reference voltage, the fourth input end 122 of the second voltage comparator 118 is connected to the detection contact 107 to obtain a detection voltage value of the detection contact 107, the second voltage comparator 118 compares the detection voltage value with the second reference voltage to generate a second comparison result and output a second control signal corresponding to the second comparison result through the set third output end 121, and the third output end signal 121 is connected to the switch 110.
Fig. 2 is a circuit diagram schematically illustrating an implementation of outputting a first reference voltage and a second reference voltage by using a voltage dividing resistor and a voltage regulator according to an embodiment of the present invention.
Referring to fig. 2, the first reference voltage and the second reference voltage may be implemented by a voltage dividing resistor 201 or the like in one embodiment of the present invention.
Fig. 3 is a circuit diagram schematically illustrating an implementation of outputting a first reference voltage and a second reference voltage using a voltage dividing resistor and a voltage regulator according to an embodiment of the present invention.
Referring to fig. 3, the first reference voltage and the second reference voltage may be implemented by a voltage regulator tube 301 in one embodiment of the present invention.
Fig. 4 schematically shows a circuit diagram for implementing voltage comparison using dual comparators according to an embodiment of the present invention.
Referring to fig. 4, in an embodiment of the present invention, the first voltage comparator 117 and the second voltage comparator 118 may be implemented by a dual comparator, specifically, the first voltage comparator 117 may be a first comparator 401 shown in fig. 4, and the second voltage comparator 118 may be a second comparator 402 shown in fig. 4, where the comparator 401 includes: a first reference voltage input terminal 4011, a detection voltage input terminal 4012, and an output terminal 4013; the comparator 402 includes: a second reference voltage input terminal 4022, a detection voltage input terminal 4021, and an output terminal 4023, wherein the first reference voltage input terminal 4011 is a non-inverting input (denoted by "+" in fig. 4) and the detection voltage input terminal 4012 is an inverting input (denoted by "-" in fig. 4) in the first comparator 401; the second reference voltage input terminal 4022 corresponds to an inverting input (denoted by "-" in fig. 4) and the detection voltage input terminal 4021 is a forward input (denoted by "+" in fig. 4) in the second comparator 402.
In an embodiment of the present invention, for any one of the voltage comparators, when the voltage of the positive input is higher than the voltage of the negative input, the output terminal of the voltage comparator is turned off, that is, the voltage comparator is in an open state; when the voltage of the positive input is lower than that of the negative input, the voltage comparator is in a saturated state, and the output end outputs the voltage with low voltage in the positive input and the negative input, so that the output of the voltage comparator is ensured to be converted from one state to the other state, and a corresponding control signal is output.
In one embodiment of the present invention, the first reference voltage may be determined by the formula:
Figure BDA0001920647890000101
wherein V represents a voltage value of the first voltage, R1Denotes a first divider resistance, R2Denotes a second divider resistance, R3Indicating the resistance of the terminal sense resistor after the sense contact is closed, N indicating the margin, VREF1Representing a first reference voltage;
the second reference voltage may be determined by the formula:
N≤VREF2≤V*[R2/R1+R2]-N
wherein V represents a voltage value of the first voltage, R1Denotes a first divider resistance, R2Denotes a second divider resistance, VREF2Representing the second reference voltage and N representing the margin.
Based on the pull-in power supply equipment, various embodiments of the output control method of the pull-in power supply equipment are provided.
Fig. 5 schematically shows a flowchart of an output control method of the pull-in power supply apparatus according to an embodiment of the present invention.
Referring to fig. 5, in an embodiment according to the present invention, a pull-in power supply apparatus includes an output contact and a sensing contact, and a method includes:
step S510, performing voltage division processing on the first voltage output by the output contact to obtain a second voltage;
step S520, outputting the second voltage to the detection contact, and monitoring the voltage of the detection contact in real time to obtain a detection voltage value;
step S530, comparing the detected voltage value with a preset reference voltage to obtain a comparison result, and controlling whether to output the first voltage to the output contact based on the comparison result.
According to the technical scheme of the embodiment shown in fig. 5, when the attraction type power supply device is not provided with the attraction device or the attraction type power supply device is short-circuited, the output contact is not output, after the attraction terminal of the attraction type power supply device is closed, the output contact is normally output, and when all the contacts are not attracted, the voltage on the contact is lower than the voltage capable of causing contact corrosion, so that the attraction type power supply device is protected, the service life of the attraction type power supply device is prolonged, and the safety of the attraction type power supply device is improved.
Implementation details of the various steps shown in FIG. 5 are set forth below:
in step S510, a voltage division process is performed on the first voltage output by the output contact to obtain a second voltage.
In one embodiment of the invention, the first voltage is divided by the preset first voltage dividing resistor and the second voltage dividing resistor, so that the voltage value of the detection contact is kept below 0.5V, and the contact is ensured not to be corroded easily.
In one embodiment of the present invention, the corresponding resistors may be configured based on the voltage value of the first voltage and connected in series/parallel to form the voltage-reducing circuit, so that the second voltage output by the voltage-reducing circuit is lower than 0.5V.
In step S520, the second voltage is output to the detection contact, and the voltage of the detection contact is monitored in real time to obtain a detection voltage value.
In an embodiment of the invention, after the divided second voltage is output to the detection contact, whether the pull-in power supply device is electrically contacted with the terminal is judged through the detection contact, when the detection contact is not electrically contacted with the terminal, only a loop is formed inside the pull-in power supply device, and the voltage value of the detection contact is constant, when the detection contact is electrically contacted with the terminal, the detection contact is communicated with the terminal, so that a loop is formed between the pull-in power supply device and the terminal, the resistance value in the loop changes, the voltage at the position of the detection contact also changes correspondingly, and the electric contact state of the detection contact can be determined through the voltage change.
In step S530, the detected voltage value is compared with a preset reference voltage to obtain a comparison result, and whether to output the first voltage to the output contact is controlled based on the comparison result.
In one embodiment of the present invention, the preset reference voltage at least comprises: the first reference voltage and the second reference voltage, as shown with reference to FIG. 4, are used to provide a first reference voltage (VREF1) to the first voltage comparator 401 and a second reference voltage (VERF2) to the second voltage comparator 402, respectively
In one embodiment of the invention, a first detection voltage value is obtained when the detection contact is in electrical contact with the terminal, wherein by formula (1):
Figure BDA0001920647890000121
determining a first detection voltage value, U1Representing a first detected voltage value, V representing a voltage value of the first voltage, R1Denotes a first divider resistance, R2Denotes a second divider resistance, R3Indicating the resistance of the termination detection resistor after the detection contact is closed.
In one embodiment of the invention, a second detection voltage value is obtained when the detection contact is not in electrical contact with the terminal, wherein by formula (2):
Figure BDA0001920647890000122
determining a first detection voltage value, U2Representing the second detected voltage value, V representing the voltage value of the first voltage, R1Denotes a first divider resistance, R2Representing the second divider resistance.
In one embodiment of the present invention, the preset reference voltage includes: and the first reference voltage and the second reference voltage are used for comparing the monitoring voltage value with the first reference voltage and the second reference voltage after the detection voltage value is obtained from the detection contact.
In one embodiment of the present invention, when the detected voltage value is greater than the first reference voltage or less than the second reference voltage, a first comparison result that the detection contact is not in electrical contact with the terminal is determined; and outputting a first control signal based on the first comparison result to control to stop outputting the first voltage to the output contact.
In one embodiment of the present invention, when the detection voltage value is less than the first reference voltage and greater than the second reference voltage, a second comparison result that the detection contact has made electrical contact with the terminal is determined; and outputting a second control signal based on the second comparison result, and controlling to output the first voltage to the output contact.
In one embodiment of the present invention, based on the foregoing scheme, the first reference voltage is determined by the formula:
Figure BDA0001920647890000123
wherein V represents a voltage value of the first voltage, R1Denotes a first divider resistance, R2Denotes a second divider resistance, R3Indicating the resistance value of the terminal sense resistor after the sense contact is closed, N indicating a margin (adjusted based on the actual accuracy of the voltage comparator and the reference voltage),VREF1representing a first reference voltage;
the second reference voltage is determined by the formula:
Figure BDA0001920647890000131
wherein V represents a voltage value of the first voltage, R1Denotes a first divider resistance, R2Denotes a second divider resistance, VREF2Representing the second reference voltage and N representing the margin (adjusted according to the actual accuracy of the voltage comparator and the reference voltage).
In one embodiment of the present invention, based on the foregoing scheme, when the detection contact is not in contact, the detection voltage value is greater than the first reference voltage, the voltage comparison circuit outputs a control signal to turn off the switch of the output circuit, the output circuit has no output, when the detection contact is in normal contact, the detection voltage value is less than the first reference voltage and greater than the second reference voltage, the voltage comparison circuit outputs a control signal to turn on the switch of the output circuit, the output circuit outputs normally, when the detection contact is in short circuit with the metal case, the detection voltage value voltage is less than the second reference voltage, the voltage comparison circuit outputs a control signal to turn off the switch of the output circuit, the output circuit does not output, and since the detection voltage does not exceed 0.5V, even if there is a foreign matter between the contacts, water or the like does not substantially corrode even if there is a foreign matter between the.
Referring now to FIG. 6, shown is a block diagram of a computer system 600 suitable for use with the electronic device implementing an embodiment of the present invention. The computer system 600 of the electronic device shown in fig. 6 is only an example, and should not bring any limitation to the function and the scope of the use of the embodiments of the present invention.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for system operation are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to an embodiment of the present invention, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the invention include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program executes the functions defined in the system of the present application when executed by a Central Processing Unit (CPU) 601.
It should be noted that the computer readable media shown in the present invention can be computer readable signal media or computer readable storage media or any combination of both. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination thereof.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present invention may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
As another aspect, the present application also provides a computer-readable medium that may be contained in the electronic device described in the embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by one of the electronic devices, cause the electronic device to implement the output control method of the pull-in power supply device as in the embodiment.
For example, the electronic device described above may implement as shown in fig. 4: step S410, performing voltage division processing on the first voltage output by the output contact to obtain a second voltage; step S420, outputting the second voltage to the detection contact, and monitoring the voltage of the detection contact in real time to obtain a detection voltage value; step S430, comparing the detected voltage value with a preset reference voltage to obtain a comparison result, and controlling whether to output the first voltage to the output contact based on the comparison result.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the invention. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiment of the present invention.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (12)

1. A pull-in power supply device characterized by comprising: the power supply device comprises a power supply interface, a pull-in power supply interface, an output circuit, a detection circuit and a voltage comparison circuit; wherein the content of the first and second substances,
the power supply interface is connected with the output circuit and the detection circuit so as to supply power to the output circuit and the detection circuit;
the pull-in power supply interface is provided with an output contact for supplying power to the terminal through electrical contact with the terminal, and a detection contact for detecting the contact state of the pull-in power supply interface;
the output circuit is respectively connected with the power supply interface and the output contact, receives a first voltage output by the power supply interface and outputs the first voltage to the terminal through the output contact;
the detection circuit is connected in parallel with the output circuit, is respectively connected with the power supply interface and the detection contact, receives a first voltage through the power supply interface, divides the first voltage through a divider resistor to obtain a second voltage, and outputs the second voltage to the detection contact of the pull-in power supply interface;
the voltage comparison circuit is respectively connected with the output circuit and the detection circuit and is used for acquiring a detection voltage value of the detection contact, comparing the detection voltage value with a preset reference voltage and controlling the on-off of the output circuit based on a comparison result obtained by comparison;
the voltage comparison circuit comprises a first voltage comparator and a second voltage comparator; wherein the content of the first and second substances,
a third input end of the first voltage comparator is used for obtaining a first reference voltage, a fourth input end of the first voltage comparator is connected to the detection contact to obtain a detection voltage value, the first voltage comparator compares the detection voltage value with the first reference voltage to generate a first comparison result and outputs a first control signal corresponding to the first comparison result through a set third output end, and the third output end is in signal connection with the switch;
the fifth input end of the second voltage comparator is used for obtaining a second reference voltage, the sixth input end of the second voltage comparator is connected to the detection contact to obtain a detection voltage value, the second voltage comparator compares the detection voltage value with the second reference voltage to generate a second comparison result and output a second control signal corresponding to the second comparison result through the set fourth output end, and the fourth output end is in signal connection with the switch.
2. The attraction power supply device according to claim 1, wherein the attraction power supply interface is further provided with a permanent magnet, and is attracted to an interface matching the attraction power supply interface in the terminal by means of a magnetic force of the permanent magnet.
3. The pull-in power supply device according to claim 1, wherein the output circuit specifically comprises: a first input terminal, a switch and a first output terminal; wherein the content of the first and second substances,
the first input end is electrically connected to the power supply interface and used for receiving a first voltage input by the power supply interface;
the switch is connected in series between the first input end and the first output end and is electrically connected to the voltage comparison circuit so as to control the connection and disconnection of the output circuit;
and the first output end of the output circuit is connected with the output contact of the pull-in power supply interface.
4. The attraction-type power supply apparatus according to claim 1, wherein the detection circuit includes: the second input end, the first divider resistor, the second divider resistor and the second output end; wherein the content of the first and second substances,
the second input end is electrically connected to the power supply interface and used for receiving a first voltage input by the power supply interface;
one end of the first voltage-dividing resistor is connected to the second input end, and the other end of the first voltage-dividing resistor is connected to one end of the second voltage-dividing resistor and the second output end;
one end of the second voltage-dividing resistor is connected to one end of the first voltage-dividing resistor, and the other end of the second voltage-dividing resistor is grounded;
the second output end is connected with the detection contact of the pull-in power supply interface.
5. The pull-in power supply apparatus according to claim 1, wherein the first reference voltage is determined by a formula:
Figure FDA0002835479240000021
wherein V represents a voltage value of the first voltage, R1Denotes a first divider resistance, R2Denotes a second divider resistance, R3Indicating the resistance of the terminal sense resistor after the sense contact is closed, N indicating the margin, VREF1Representing a first reference voltage;
the second reference voltage is determined by the formula:
N≤VREF2≤V*[R2/R1+R2]-N
wherein V represents a voltage value of the first voltage, R1Denotes a first divider resistance, R2Denotes a second divider resistance, VREF2Representing the second reference voltage and N representing the margin.
6. An output control method of an attraction-type power supply apparatus, characterized in that the attraction-type power supply apparatus includes an output contact and a detection contact, the method comprising:
dividing the first voltage output by the output contact to obtain a second voltage;
outputting the second voltage to the detection contact, and monitoring the voltage of the detection contact in real time to obtain a detection voltage value;
comparing the detection voltage value with a preset reference voltage to obtain a comparison result, and controlling whether to output a first voltage to the output contact or not based on the comparison result;
the preset reference voltage comprises a first reference voltage and a second reference voltage; the comparing the detection voltage value with a preset reference voltage to obtain a comparison result, and controlling whether to output a first voltage to the output contact based on the comparison result includes:
after a detection voltage value is obtained from the detection contact, comparing the detection voltage value with the first reference voltage and the second reference voltage;
when the detection voltage value is larger than the first reference voltage or smaller than the second reference voltage, determining a first comparison result that the detection contact is not in electrical contact with the terminal;
outputting a first control signal based on the first comparison result to control to stop outputting the first voltage to the output contact.
7. The output control method of the pull-in power supply device according to claim 6, wherein the dividing the first voltage output from the output contact to obtain the second voltage comprises:
and dividing the first voltage through a preset first voltage dividing resistor and a preset second voltage dividing resistor, and outputting a second voltage.
8. The output control method of the pull-in power supply device according to claim 6, wherein the monitoring the voltage of the detection contact in real time to obtain the detection voltage value comprises:
obtaining a first detection voltage value when the detection contact is in electrical contact with the terminal, wherein, by the formula:
Figure FDA0002835479240000031
determining the first detection voltage value, U1Representing a first detected voltage value, V representing a voltage value of the first voltage, R1Denotes a first divider resistance, R2Denotes a second divider resistance, R3A resistance value representing a terminal;
obtaining a second detection voltage value when the detection contact is not in electrical contact with the terminal, wherein the second detection voltage value is obtained through a formula:
U2=V*[R2/R1+R2]
determining the second detection voltage value, U2Representing the second detected voltage value, V representing the voltage value of the first voltage, R1Denotes a first divider resistance, R2Representing the second divider resistance.
9. The output control method of the attraction-fit power supply apparatus according to claim 7, characterized by further comprising:
a second comparison result of determining that the detection contact has made electrical contact with the terminal when the detection voltage value is less than the first reference voltage and greater than the second reference voltage;
and outputting a second control signal based on the second comparison result, and controlling the first voltage to be output to the output contact.
10. The output control method of the pull-in power supply apparatus according to claim 7, wherein the first reference voltage is determined by a formula:
Figure FDA0002835479240000041
wherein V represents a voltage value of the first voltage, R1Denotes a first divider resistance, R2Denotes a second divider resistance, R3Indicating the resistance of the terminal sense resistor after the sense contact is closed, N indicating the margin, VREF1Representing a first reference voltage;
the second reference voltage is determined by the formula:
N≤VREF2≤V*[R2/R1+R2]-N
wherein V represents a voltage value of the first voltage, R1Denotes a first divider resistance, R2Denotes a second divider resistance, VREF2Representing the second reference voltage and N representing the margin.
11. A computer-readable storage medium on which a computer program is stored, characterized in that the program realizes the output control method of the attraction power supply apparatus according to any one of claims 6 to 10 when executed by a processor.
12. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the output control method of the pull-in power supply device according to any one of claims 6 to 10.
CN201811592640.0A 2018-12-25 2018-12-25 Attraction-type power supply device, output control method, medium, and electronic device Active CN109738740B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811592640.0A CN109738740B (en) 2018-12-25 2018-12-25 Attraction-type power supply device, output control method, medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811592640.0A CN109738740B (en) 2018-12-25 2018-12-25 Attraction-type power supply device, output control method, medium, and electronic device

Publications (2)

Publication Number Publication Date
CN109738740A CN109738740A (en) 2019-05-10
CN109738740B true CN109738740B (en) 2021-04-02

Family

ID=66361245

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811592640.0A Active CN109738740B (en) 2018-12-25 2018-12-25 Attraction-type power supply device, output control method, medium, and electronic device

Country Status (1)

Country Link
CN (1) CN109738740B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111142826B (en) * 2019-12-30 2023-09-05 深圳创维-Rgb电子有限公司 Mobile device, base and scene system
CN111399424A (en) * 2020-04-02 2020-07-10 深圳创维-Rgb电子有限公司 Intelligent terminal, intelligent base equipment and intelligent control system
CN115954702B (en) * 2023-03-10 2023-05-23 苏州浪潮智能科技有限公司 Interface, function line and server

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101273499A (en) * 2005-09-26 2008-09-24 苹果公司 Electromagnetic connector for electronic device
CN101320080A (en) * 2007-06-06 2008-12-10 凹凸电子(武汉)有限公司 Apparatuses and methods for detecting power source
CN106374581A (en) * 2016-10-31 2017-02-01 维沃移动通信有限公司 Voltage output method for charger and charger
CN107546814A (en) * 2017-10-16 2018-01-05 歌尔科技有限公司 A kind of charging base and electronic product
CN208001164U (en) * 2017-11-14 2018-10-23 华为技术有限公司 Charging unit and charging system
CN108732458A (en) * 2018-07-27 2018-11-02 重庆长安汽车股份有限公司 A kind of detection circuit and new-energy automobile of connector connection state

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE19921677A1 (en) * 1999-05-18 2000-11-23 Braun Gmbh Additional device for a small electrical device and method for detecting an electrical and / or magnetic connection between the devices

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101273499A (en) * 2005-09-26 2008-09-24 苹果公司 Electromagnetic connector for electronic device
CN101320080A (en) * 2007-06-06 2008-12-10 凹凸电子(武汉)有限公司 Apparatuses and methods for detecting power source
CN106374581A (en) * 2016-10-31 2017-02-01 维沃移动通信有限公司 Voltage output method for charger and charger
CN107546814A (en) * 2017-10-16 2018-01-05 歌尔科技有限公司 A kind of charging base and electronic product
CN208001164U (en) * 2017-11-14 2018-10-23 华为技术有限公司 Charging unit and charging system
CN108732458A (en) * 2018-07-27 2018-11-02 重庆长安汽车股份有限公司 A kind of detection circuit and new-energy automobile of connector connection state

Also Published As

Publication number Publication date
CN109738740A (en) 2019-05-10

Similar Documents

Publication Publication Date Title
CN109738740B (en) Attraction-type power supply device, output control method, medium, and electronic device
US9490625B2 (en) Electronic device and voltage monitoring method
US10663496B2 (en) Cable error signal
JP2014056287A (en) Electronic apparatus and method of determining power source device by electronic apparatus
CN110366721B (en) Electronic equipment with TypeCUSB interface, control method and storage medium
CN110949183B (en) Direct current charging heating control method, device, circuit, vehicle and storage medium
CN109613576B (en) Trailer position information uploading method and device, electronic equipment and storage medium
KR20160100973A (en) Method and apparatus for charging electronic device with usb connection
US20210097007A1 (en) Electronic device and control method
JP2019121084A (en) Electronic apparatus, control method and program
US20180253644A1 (en) Identifying electrical devices using artificial neural networks
US10153648B2 (en) Voltage and polarity negotiation based mobile device battery charging
CN112994185A (en) Charging control method and device, electronic device and storage medium
CN108923481B (en) Charging method and device for automatic cleaning equipment, storage medium and electronic equipment
US20140254650A1 (en) Adaptable receiver detection
US20240230781A9 (en) Battery charging system with enhanced time-based charging and battery health monitoring
CN115436825A (en) Method, device and equipment for detecting abnormal state of single battery cell and storage medium
CN113320431A (en) Method, device and system for dynamically adjusting temperature protection point of charging module of electric vehicle
US11003231B2 (en) Selective power distribution to individual outlets
CN109980760B (en) Electronic device for receiving power from power supply apparatus and method thereof
CN111157907A (en) Detection method and device, charging method and device, electronic device and storage medium
JP2019115240A (en) Vehicle connection device and power conditioner
CN112394276B (en) Wireless charging test method, device, system, electronic equipment and storage medium
CN115065624B (en) Communication test method and device, electronic equipment and storage medium
CN109981887B (en) Method, device, medium and electronic equipment for controlling power-on state of terminal screen

Legal Events

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