CN114980435B - Light supplementing lamp interface polarity self-adaption device and method, electronic equipment and storage medium - Google Patents

Light supplementing lamp interface polarity self-adaption device and method, electronic equipment and storage medium Download PDF

Info

Publication number
CN114980435B
CN114980435B CN202210692853.0A CN202210692853A CN114980435B CN 114980435 B CN114980435 B CN 114980435B CN 202210692853 A CN202210692853 A CN 202210692853A CN 114980435 B CN114980435 B CN 114980435B
Authority
CN
China
Prior art keywords
power supply
port
supply voltage
voltage
signal
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
CN202210692853.0A
Other languages
Chinese (zh)
Other versions
CN114980435A (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.)
Chongqing Unisinsight Technology Co Ltd
Original Assignee
Chongqing Unisinsight Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Unisinsight Technology Co Ltd filed Critical Chongqing Unisinsight Technology Co Ltd
Priority to CN202210692853.0A priority Critical patent/CN114980435B/en
Publication of CN114980435A publication Critical patent/CN114980435A/en
Application granted granted Critical
Publication of CN114980435B publication Critical patent/CN114980435B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02HEMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
    • H02H11/00Emergency protective circuit arrangements for preventing the switching-on in case an undesired electric working condition might result
    • H02H11/002Emergency protective circuit arrangements for preventing the switching-on in case an undesired electric working condition might result in case of inverted polarity or connection; with switching for obtaining correct connection
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02HEMERGENCY PROTECTIVE CIRCUIT ARRANGEMENTS
    • H02H11/00Emergency protective circuit arrangements for preventing the switching-on in case an undesired electric working condition might result
    • H02H11/002Emergency protective circuit arrangements for preventing the switching-on in case an undesired electric working condition might result in case of inverted polarity or connection; with switching for obtaining correct connection
    • H02H11/003Emergency protective circuit arrangements for preventing the switching-on in case an undesired electric working condition might result in case of inverted polarity or connection; with switching for obtaining correct connection using a field effect transistor as protecting element in one of the supply lines
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention relates to the technical field of power supply circuits and discloses a light supplementing lamp interface polarity self-adapting device, a method, electronic equipment and a storage medium.

Description

Light supplementing lamp interface polarity self-adaption device and method, electronic equipment and storage medium
Technical Field
The present invention relates to the field of power supply circuits, and in particular, to a device and method for adapting polarity of a light supplementing lamp interface, an electronic device, and a storage medium.
Background
At present, along with the gradual popularization of monitoring technology, monitoring equipment is inevitably monitored in environments with weak light rays such as night, fog days, rain and snow days and the like, and at the moment, the environment is required to be supplemented with light by using a light supplementing lamp so as to acquire clear monitoring images. Under normal conditions, the monitoring equipment generates power supply voltage of the light supplementing lamp through the main control chip and the constant current control module, the positive electrode of the light supplementing lamp is connected with the power supply voltage through a cable, the negative electrode of the light supplementing lamp is connected with the circuit output end of the constant current control module, and the power supply voltage is used for supplying power to the light supplementing lamp, so that the light supplementing lamp is lightened.
However, in practical application, due to different designs of the light supplementing lamp interfaces, different material compatibility and the like, the anode and the cathode of the power port of the light supplementing lamp are reversely connected, so that the light supplementing lamp cannot work normally, the mounting difficulty of the light supplementing lamp is increased, and the working efficiency of monitoring work is reduced.
Disclosure of Invention
The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview, and is intended to neither identify key/critical elements nor delineate the scope of such embodiments, but is intended as a prelude to the more detailed description that follows.
In view of the shortcomings of the prior art, the invention discloses a device, a method, electronic equipment and a storage medium for adapting the polarity of a light supplementing lamp interface, wherein the light supplementing lamp can still work normally under the reverse connection condition of a light supplementing lamp power supply port, and the positive and negative electrode adaptation of the light supplementing lamp power supply port is realized.
The invention discloses a polarity self-adapting device of a light supplementing lamp interface, which comprises: the light supplementing lamp comprises two power ports, wherein any power port is determined to be a current port; the constant current driving module is used for acquiring the power supply voltage corresponding to the light supplementing lamp and establishing connection between the power supply voltage and the current port; the signal generation module is connected with the current port of the light supplementing lamp, and is used for determining the current port polarity corresponding to the current port according to a comparison result between the current port voltage and a preset voltage threshold value and generating a power supply control signal corresponding to the current port polarity; the input end of the path selection module is connected with the constant current driving module and the signal generation module, the output end of the path selection module is connected with the light supplementing lamp, and the path selection module is used for controlling the conduction state between the power supply voltage and each power supply port according to the power supply control signal so as to realize the self-adaption of each power supply port to the power supply voltage.
Optionally, the apparatus further comprises: the main control chip is connected with the constant current driving module and is used for acquiring a power supply voltage and a working voltage interval corresponding to the light supplementing lamp, calculating a signal duty ratio according to the power supply voltage and the working voltage interval and generating a light control signal corresponding to the light supplementing lamp based on the signal duty ratio.
Optionally, the constant current driving module obtains the power supply voltage corresponding to the light supplementing lamp by the following manner: acquiring the power supply voltage and a light control signal sent by the main control chip; and controlling the power supply voltage to a working voltage interval corresponding to the light supplementing lamp according to the signal duty ratio of the light control signal to obtain the power supply voltage corresponding to the light supplementing lamp.
Optionally, the signal generating module determines the current port polarity corresponding to the current port by: the power supply voltage is obtained, and the power supply voltage is divided to obtain a preset voltage threshold value; comparing the current port voltage with the preset voltage threshold value, and generating a port polarity signal according to a comparison result, wherein the port polarity signal is used for representing the current port polarity of the current port.
Optionally, the signal generating module generates the power control signal corresponding to the current port polarity by: the signal generation module comprises a first signal output end and a second signal output end; acquiring the power supply voltage, and comparing the port polarity signal with a preset high-level interval and a preset low-level interval respectively; if the port polarity signal is located in the high level interval, outputting a power supply voltage from the first signal output end to obtain a first control signal; if the port polarity signal is located in the low level interval, outputting a power supply voltage from the second signal output end to obtain a second control signal; the first control signal or the second control signal is determined as a power supply control signal.
Optionally, the signal generating module further includes a first voltage dividing resistor, a second voltage dividing resistor, a third voltage dividing resistor, a fourth voltage dividing resistor, a second cut-off diode, a first operational amplifier, an NPN triode and a PNP triode; the power supply voltage is connected with the first end of the first voltage dividing resistor, and the reverse input end of the first operational amplifier is respectively connected with the second end of the first voltage dividing resistor, the first end of the second voltage dividing resistor and the anode of the second intercepting diode; the current port voltage is connected with the first end of the third voltage dividing resistor, and the homodromous input end of the first operational amplifier is respectively connected with the second end of the third voltage dividing resistor and the first end of the fourth voltage dividing resistor; the power input end of the operational amplifier is connected with the power voltage, the power output end of the operational amplifier is grounded, and the output end of the operational amplifier is used for outputting the port polarity signal; the grid electrode of the NPN triode is connected with the output end of the operational amplifier, the drain electrode of the NPN triode is respectively connected with the grid electrode of the PNP triode, the power supply voltage, the first signal output end and the cathode of the second intercepting diode, and the source electrode of the NPN triode is grounded; the power supply voltage is connected with the source electrode of the PNP triode, and the grid electrode of the PNP triode is connected with the second signal output end.
Optionally, the path selection module controls the conduction state between the supply voltage and each of the power ports by: determining a power port, which is different from the current port, in the light supplementing lamp as an alternative port; if a first control signal output by the first signal output end is received, controlling the power supply voltage and the current port to be in a conducting state, and simultaneously controlling the alternative port to be connected with a preset circuit output end; and if a second control signal output by the second signal output end is received, controlling the power supply voltage and the alternative port to be in a conducting state, and simultaneously controlling the current port to be connected with a preset circuit output end.
Optionally, the path selection module comprises a first NMOS tube, a second NMOS tube, a third NMOS tube and a fourth NMOS tube; the grid electrode of the first NMOS tube is connected with the second signal output end, the drain electrode of the first NMOS tube is connected with the power supply voltage, and the source electrode of the first NMOS tube is connected with the alternative port; the grid electrode of the second NMOS tube is connected with the first signal output end, the drain electrode of the second NMOS tube is connected with the power supply voltage, and the source electrode of the second NMOS tube is connected with the current port; the grid electrode of the third NMOS tube is connected with the first signal output end, the source electrode of the third NMOS tube is connected with a preset circuit output end, and the drain electrode of the third NMOS tube is connected with the alternative port; the grid electrode of the fourth NMOS tube is connected with the second signal output end, the source electrode of the fourth NMOS tube is connected with a preset circuit output end, and the drain electrode of the fourth NMOS tube is connected with the current port
The invention discloses a polarity self-adaption method of a light supplementing lamp interface, which comprises the following steps: acquiring a power supply voltage corresponding to a light supplementing lamp, and establishing connection between the power supply voltage and a current port, wherein the light supplementing lamp comprises two power ports, and the current port is any power port; determining the current port polarity corresponding to the current port according to a comparison result between the current port voltage and a preset voltage threshold value, and generating a power supply control signal corresponding to the current port polarity; and controlling the conduction state between the power supply voltage and each power supply port according to the power supply control signal so as to realize the self-adaption of each power supply port to the power supply voltage.
The invention discloses an electronic device, comprising: a processor and a memory; the memory is used for storing a computer program, and the processor is used for executing the computer program stored in the memory so as to enable the electronic equipment to execute the method.
The present invention discloses a computer-readable storage medium having stored thereon a computer program: the computer program, when executed by a processor, implements the method described above.
The invention has the beneficial effects that:
The method comprises the steps of obtaining power supply voltages corresponding to a light supplementing lamp and the light supplementing lamp, establishing connection between the power supply voltage and a current port, determining current port voltage corresponding to the current port, determining current port polarity corresponding to the current port according to a comparison result between the current port voltage and a preset voltage threshold, and generating a power supply control signal based on the current port polarity to control a conduction state between the power supply voltage and each power supply port. Like this, be connected with the power port of arbitrary light filling lamp through power supply voltage, and then confirm the polarity of this power port according to the voltage of connecting the power port, generate the on-state of power control signal control power supply voltage and power port to make the light filling lamp work, realized the positive negative pole self-adaptation of light filling lamp power port, and be convenient for install the light filling lamp, thereby improve control work efficiency.
Drawings
FIG. 1 is a schematic diagram of a polarity adaptation device for a light-compensating light interface according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for polarity adaptation of a light compensating lamp interface based on a polarity adaptation device of the light compensating lamp interface according to an embodiment of the invention;
FIG. 3-a is a schematic diagram of another polarity adaptation device for a light-compensating light interface according to an embodiment of the present invention;
FIG. 3-b is a schematic diagram of a constant current driving module according to an embodiment of the present invention;
FIG. 3-c is a schematic diagram of a control signal generation module according to an embodiment of the present invention;
FIG. 3-d is a schematic diagram of a routing module according to an embodiment of the present invention;
FIG. 4 is a flow chart of a method for polarity adaptation of a light-compensating light interface according to an embodiment of the invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Other advantages and effects of the present invention will become apparent to those skilled in the art from the following disclosure, which describes the embodiments of the present invention with reference to specific examples. The invention may be practiced or carried out in other embodiments that depart from the specific details, and the details of the present description may be modified or varied from the spirit and scope of the present invention. It should be noted that, without conflict, the following embodiments and sub-samples in the embodiments may be combined with each other.
It should be noted that the illustrations provided in the following embodiments merely illustrate the basic concept of the present invention by way of illustration, and only the components related to the present invention are shown in the drawings and are not drawn according to the number, shape and size of the components in actual implementation, and the form, number and proportion of the components in actual implementation may be arbitrarily changed, and the layout of the components may be more complicated.
In the following description, numerous details are set forth in order to provide a more thorough explanation of embodiments of the present invention, it will be apparent, however, to one skilled in the art that embodiments of the present invention may be practiced without these specific details, in other embodiments, well-known structures and devices are shown in block diagram form, rather than in detail, in order to avoid obscuring the embodiments of the present invention.
The terms first, second and the like in the description and in the claims of the embodiments of the disclosure and in the above-described figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe embodiments of the present disclosure. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion.
The term "plurality" means two or more, unless otherwise indicated.
In the embodiment of the present disclosure, the character "/" indicates that the front and rear objects are an or relationship. For example, A/B represents: a or B.
The term "and/or" is an associative relationship that describes an object, meaning that there may be three relationships. For example, a and/or B, represent: a or B, or, A and B.
It should be noted that, in the digital logic circuit, 0 is represented by a low level, and 1 is represented by a high level. Typically, the low level interval corresponding to the low level includes 0-0.25V, and the high level interval corresponding to the high level includes 3.5-5V, but not limited to this setting, for example, the device is powered by a battery, the voltage of the battery decreases with the lapse of the service time, and if the high level of 3.5V decreases the service time of the device, the high level is typically set to about 1.7V.
As shown in fig. 1, an embodiment of the present disclosure provides a light-compensating lamp interface polarity adaptive device, which includes a light-compensating lamp 101, a constant current driving module 102, a signal generating module 103, and a path selecting module 104.
The light supplementing lamp 101 includes two power supply ports, wherein any one of the power supply ports is determined as a current port; the constant current driving module 102 is used for obtaining a power supply voltage corresponding to the light supplementing lamp and establishing connection between the power supply voltage and a current port; the signal generating module 103 is connected with the current port of the light supplementing lamp 101, and is used for determining the current port polarity corresponding to the current port according to the comparison result between the current port voltage and the preset voltage threshold value and generating a power supply control signal corresponding to the current port polarity; the input end of the path selection module 104 is connected with the constant current driving module and the signal generating module, the output end of the path selection module is connected with the light supplementing lamp, and the path selection module is used for controlling the conduction state between the power supply voltage and each power supply port according to the power supply control signal so as to realize the self-adaption of each power supply port to the power supply voltage.
By adopting the self-adaptive device for the polarity of the light supplementing lamp interface, which is provided by the embodiment of the disclosure, the power supply voltages corresponding to the light supplementing lamp and the light supplementing lamp are obtained, the connection between the power supply voltage and the current port is established, the current port voltage corresponding to the current port is determined, the current port polarity corresponding to the current port is determined according to the comparison result between the current port voltage and the preset voltage threshold, and the power supply control signal is generated based on the current port polarity so as to control the conduction state between the power supply voltage and each power supply port. Like this, be connected with the power port of arbitrary light filling lamp through power supply voltage, and then confirm the polarity of this power port according to the voltage of connecting the power port, generate the on-state of power control signal control power supply voltage and power port to make the light filling lamp work, realized the positive negative pole self-adaptation of light filling lamp power port, and be convenient for install the light filling lamp, thereby improve control work efficiency. And, avoid the light filling lamp damage that the light filling lamp power port caused when the reverse connection, reduce installation and maintenance cost.
Optionally, the apparatus further comprises: the main control chip is connected with the constant current driving module and is used for acquiring a power supply voltage and a working voltage interval corresponding to the light supplementing lamp, calculating a signal duty ratio according to the power supply voltage and the working voltage interval and generating a light control signal corresponding to the light supplementing lamp based on the signal duty ratio.
Optionally, the light supplementing lamp controls its working state through a monitoring device, where the monitoring device includes at least one of IPC (IP CAMERA), NVR (Network Video Recorder ), etc., and each monitoring device is provided with a main control chip (Micro Controller Unit, MCU), where the main control chip is used to calculate a signal duty ratio according to the power supply voltage and the working voltage interval, and generate a light control signal corresponding to the light supplementing lamp according to the signal duty ratio.
Optionally, the constant current driving module obtains the power supply voltage corresponding to the light supplementing lamp by the following manner: acquiring a power supply voltage and a light control signal sent by a main control chip; and controlling the power supply voltage in a working voltage interval corresponding to the light supplementing lamp according to the signal duty ratio of the light control signal to obtain the power supply voltage corresponding to the light supplementing lamp.
Therefore, the signal duty ratio is calculated through the working voltage interval corresponding to the power supply voltage and the light supplementing lamp, and the voltage value of the power supply voltage is controlled through the signal duty ratio and the power supply voltage, so that the software current limiting of the power supply voltage is realized, the damage to the light supplementing lamp caused by the overhigh power supply voltage is avoided, and the installation and maintenance cost is reduced.
Optionally, the constant current driving module is further configured to provide a reflux path corresponding to a power supply voltage for the light compensating lamp through a preset circuit output end.
Optionally, the constant current driving module comprises a signal control switch, a constant current inductor, a constant current capacitor and a first cut-off diode, wherein a first end of the signal control switch is connected with the power supply voltage, and a second end of the signal control switch is respectively connected with a first end of the constant current inductor and a cathode of the first cut-off diode; the second end of the steady flow inductor is connected with the first end of the steady flow capacitor; the second end of the current stabilizing capacitor is respectively connected with the anode of the first intercepting diode and the preset circuit output end; the signal control switch is used for receiving the light control signal and controlling the switch state of the switch through the signal duty ratio control signal of the light control signal; the second end of the steady flow inductor is used for outputting the power supply voltage corresponding to the light supplementing lamp.
Therefore, the constant current driving module is used for controlling the power supply voltage in a working voltage interval according to the signal duty ratio in the lamplight control signal to obtain the power supply voltage corresponding to the light supplementing lamp, when the power supply voltage fluctuates, the characteristic that the current of the steady current inductor cannot be suddenly changed is utilized, the current of the power supply voltage is stable through the steady current inductor and the steady current capacitor, the circuit stability is improved, and the signal loss of the direct current signal is reduced by utilizing the characteristics that the impedance of the steady current inductor to the direct current signal is small and the impedance of the steady current inductor to the alternating current signal is large.
In some embodiments, the light control signal comprises a PWM (Pulse Width Modulation, pulse width modulated) modulated wave.
In some embodiments, a constant current driving chip is used as the constant current driving module, wherein the constant current driving chip has a rated maximum output voltage; the power supply voltage output by the constant current driving chip is in direct proportion to the rated maximum output voltage, and the power supply voltage is in direct proportion to the signal duty ratio of the input light control signal.
Optionally, the signal generating module determines the current port polarity corresponding to the current port by: obtaining a power supply voltage, and dividing the power supply voltage to obtain a preset voltage threshold; comparing the current port voltage with a preset voltage threshold value, and generating a port polarity signal according to the comparison result, wherein the port polarity signal is used for representing the current port polarity of the current port.
Optionally, the current port polarity includes a positive pole and a negative pole.
Optionally, the signal generating module generates the power control signal corresponding to the current port polarity by: the signal generation module comprises a first signal output end and a second signal output end; acquiring a power supply voltage, and comparing a port polarity signal with a preset high-level interval and a preset low-level interval respectively; if the port polarity signal is located in a high level interval, outputting a power supply voltage from a first signal output end to obtain a first control signal; if the port polarity signal is located in the low level interval, outputting a power supply voltage from a second signal output end to obtain a second control signal; the first control signal or the second control signal is determined as a power supply control signal.
Optionally, the signal generating module further includes a first voltage dividing resistor, a second voltage dividing resistor, a third voltage dividing resistor, a fourth voltage dividing resistor, a second cut-off diode, a first operational amplifier, an NPN triode and a PNP triode; the power supply voltage is connected with the first end of the first voltage dividing resistor, and the reverse input end of the first operational amplifier is respectively connected with the second end of the first voltage dividing resistor, the first end of the second voltage dividing resistor and the anode of the second intercepting diode; the current port voltage is connected with the first end of the third voltage dividing resistor, and the homodromous input end of the first operational amplifier is respectively connected with the second end of the third voltage dividing resistor and the first end of the fourth voltage dividing resistor; the power input end of the operational amplifier is connected with the power voltage, the power output end of the operational amplifier is grounded, and the output end of the operational amplifier is used for outputting a port polarity signal; the grid electrode of the NPN triode is connected with the output end of the operational amplifier, the drain electrode of the NPN triode is respectively connected with the grid electrode of the PNP triode, the power supply voltage, the first signal output end and the cathode of the second intercepting diode, and the source electrode of the NPN triode is grounded; the power supply voltage is connected with the source electrode of the PNP triode, and the grid electrode of the PNP triode is connected with the second signal output end.
Optionally, the path selection module controls the conduction state between the supply voltage and each power supply port by: determining a power port different from the current port in the light supplementing lamp as an alternative port; if a first control signal output by the first signal output end is received, controlling the power supply voltage to be in a conducting state with the current port, and simultaneously controlling the preparation and selection port to be connected with a preset circuit output end; and if a second control signal output by the second signal output end is received, controlling the power supply voltage and the alternative port to be in a conducting state, and simultaneously controlling the current port to be connected with a preset circuit output end.
In some embodiments, if the first control signal is received, determining that the current port is the positive electrode of the power supply of the light-compensating lamp, connecting the power supply voltage with the positive electrode of the power supply of the light-compensating lamp, and simultaneously, using the alternative interface as the negative electrode of the power supply of the light-compensating lamp and connecting the alternative interface with the output end of the circuit; similarly, if the second control signal is received, the alternative port is determined to be the positive electrode of the power supply of the light supplementing lamp, the power supply voltage is connected with the positive electrode of the power supply of the light supplementing lamp, and meanwhile, the current interface is used as the negative electrode of the power supply of the light supplementing lamp and is connected with the output end of the circuit.
Optionally, the path selection module comprises a first NMOS tube, a second NMOS tube, a third NMOS tube and a fourth NMOS tube; the grid electrode of the first NMOS tube is connected with the second signal output end, the drain electrode of the first NMOS tube is connected with the power supply voltage, and the source electrode of the first NMOS tube is connected with the alternative port; the grid electrode of the second NMOS tube is connected with the first signal output end, the drain electrode of the second NMOS tube is connected with the power supply voltage, and the source electrode of the second NMOS tube is connected with the current port; the grid electrode of the third NMOS tube is connected with the first signal output end, the source electrode of the third NMOS tube is connected with the preset circuit output end, and the drain electrode of the third NMOS tube is connected with the alternative port; the grid electrode of the fourth NMOS tube is connected with the second signal output end, the source electrode of the fourth NMOS tube is connected with the preset circuit output end, and the drain electrode of the fourth NMOS tube is connected with the current port.
Referring to fig. 2, an embodiment of the present disclosure provides a light-compensating light interface polarity adaptive method based on a light-compensating light interface polarity adaptive device, including:
step S201, obtaining a light supplementing lamp and power supply voltages corresponding to the light supplementing lamp;
the light supplementing lamp comprises two power supply ports;
Step S202, establishing connection between a power supply voltage and a current port, and detecting the voltage of the current port to obtain the voltage of the current port;
Wherein, any power port is used as the current port, and the power port different from the current port is determined as the alternative port;
step S203, determining the polarity of the current port corresponding to the current port according to the comparison result between the voltage of the current port and the preset voltage threshold;
step S204, judging whether the current port polarity is positive, if yes, jumping to step S205, if no, jumping to step S207;
step S205, generating a first control signal, and jumping to step S206;
In step S206, the power supply voltage is controlled to be in a conducting state with the current port by the first control signal, and the preparation selection port is controlled to be connected with a preset circuit output end.
Step S207, generating a second control signal, and jumping to step S208;
Step S208, the power supply voltage and the alternative port are controlled to be in a conducting state through the second control signal, and meanwhile, the current port is controlled to be connected with a preset circuit output end.
By adopting the light supplementing lamp interface polarity self-adaption method based on the light supplementing lamp interface polarity self-adaption device, which is provided by the embodiment of the disclosure, power supply voltages corresponding to the light supplementing lamp and the light supplementing lamp are obtained, connection between the power supply voltages and the current ports is established, the current port voltage corresponding to the current ports is determined, the current port polarity corresponding to the current ports is determined according to a comparison result between the current port voltage and a preset voltage threshold, and a power supply control signal is generated based on the current port polarity so as to control the conduction state between the power supply voltages and each power supply port. Like this, be connected with the power port of arbitrary light filling lamp through power supply voltage, and then confirm the polarity of this power port according to the voltage of connecting the power port, generate the on-state of power control signal control power supply voltage and power port to make the light filling lamp work, realized the positive negative pole self-adaptation of light filling lamp power port, and be convenient for install the light filling lamp, thereby improve control work efficiency. And, avoid the light filling lamp damage that the light filling lamp power port caused when the reverse connection, reduce installation and maintenance cost.
In some embodiments, in an initial state, a first signal output end of the control signal generating module outputs a power supply voltage, and a second signal output end outputs a low voltage, so that a first NMOS tube of the path selecting module is in a conducting state, and the control power supply voltage is connected with a current port; the control signal generation module detects the voltage of the current port to obtain the voltage of the current port, divides the power supply voltage through a first voltage dividing resistor and a second voltage dividing resistor, divides the voltage of the current port through a third voltage dividing resistor and a fourth voltage dividing resistor, compares the divided power supply voltage with the current port voltage through an operational amplifier, and determines the polarity of the current port corresponding to the current port according to the comparison result between the current port voltage and a preset voltage threshold; if the polarity of the current port is positive, the first signal output end of the control signal generation module outputs power supply voltage, the second signal output end outputs low voltage, so that the first NMOS tube and the fourth NMOS tube of the path selection module are in a conducting state, the control power supply voltage is connected with the current port, and meanwhile, the control preparation and selection port is connected with the output end of the circuit; if the current port polarity is the negative electrode, the first signal output end of the control signal generation module outputs low voltage, and the second signal output end outputs power supply voltage, so that the second NMOS tube and the third NMOS tube of the path selection module are in a conducting state, the power supply voltage is controlled to be connected with the alternative port, and meanwhile, the current port is controlled to be connected with the output end of the circuit, and therefore the self-adaption of the power port polarity is realized.
Referring to fig. 3-a, an embodiment of the present disclosure provides an interface polarity adaptive device for a light supplementing lamp, which includes a light supplementing lamp 101, a constant current driving module 102, a control signal generating module 103, a path selecting module 104, and a main control chip 105. The light supplementing lamp 101 includes two power supply ports; the main control chip 105 is used for calculating a signal duty ratio according to the power supply voltage (VIN 1) and the working voltage interval, and generating a light control signal corresponding to the light supplementing lamp according to the signal duty ratio; the constant current driving module 102 is connected with the main control chip 105 and the power supply voltage, and the constant current driving module 102 is used for controlling the power supply voltage in a working voltage interval according to the signal duty ratio in the lamplight control signal to obtain the power supply voltage (VIN 2) corresponding to the light supplementing lamp; the control signal generation module 103 is connected with the constant current driving module 102 and the power supply voltage, and the control signal generation module 103 is used for determining the current port polarity corresponding to the current port according to the comparison result between the current port voltage and the preset voltage threshold value and generating a power supply control signal based on the current port polarity; the path selection module 104 is connected with the constant current driving module 102, the control signal generating module 103 and the light supplementing lamp 101, and the path selection module 104 is used for controlling the conduction state between the power supply voltage and each power supply port according to the power supply control signal so as to control the light supplementing lamp to work through the power supply voltage.
Referring to fig. 3-b, an embodiment of the present disclosure provides a constant current driving module, which includes a signal control switch S1, a constant current inductor L1, a constant current capacitor C1, and a first cut-off diode D1. The first end of the signal control switch S1 is connected with the power supply voltage, the second end of the signal control switch S1 is respectively connected with the first end of the steady-flow inductor L1 and the cathode of the first cut-off diode D1, and the signal control switch S1 is used for controlling the conduction state between the power supply voltage and the first end of the steady-flow inductor L1 according to the lamplight control signal; the second end of the steady flow inductor L1 is connected with the first end of the steady flow capacitor C1, and the second end of the steady flow inductor L1 is used for outputting the power supply voltage corresponding to the light supplementing lamp; the second end of the current stabilizing capacitor C1 is respectively connected with the positive electrode of the first cut-off diode D1 and a preset circuit output end (VOUT).
Referring to fig. 3-C, the embodiment of the disclosure provides a control signal generating module, which includes a first signal output end O1, a second signal output end O2, a first voltage dividing resistor R1, a second voltage dividing resistor R2, a third voltage dividing resistor R3, a fourth voltage dividing resistor R4, a second cut-off diode D2, a first operational amplifier U1, an NPN triode Q1, a PNP triode Q2, a first filter capacitor C2, a second filter capacitor C3, a first protection resistor R5, a second protection resistor R6, a third protection resistor R7, a fourth protection resistor R8, a fifth protection resistor R9, a sixth protection resistor R10, a seventh protection resistor R11, an eighth protection resistor R12, and a pull-down resistor R13. The power supply voltage is connected with the first end of the first voltage dividing resistor R1, and the reverse input end of the first operational amplifier U1 is respectively connected with the second end of the first voltage dividing resistor R1, the first end of the second voltage dividing resistor R2 and the anode of the second intercepting diode D2 through the first protection resistor R5; the second end of the second voltage dividing resistor D2 is grounded; the current port voltage is connected with the first end of a third voltage dividing resistor R3, the homodromous input end of a first operational amplifier U1 is respectively connected with the second end of the third voltage dividing resistor R3, the first end of a fourth voltage dividing resistor R4 and the first end of a first filter capacitor C2 through a second protection resistor R3, and the second end of the fourth voltage dividing resistor R4 and the second end of the first filter capacitor C2 are grounded; the power input end of the operational amplifier U1 is connected with power voltage, the power output end of the operational amplifier U1 is grounded, and the output end of the operational amplifier U1 is connected with the grid electrode of the NPN triode Q1 through a third protection resistor R7; the negative electrode of the second intercepting diode D2 is connected with the drain electrode of the NPN triode Q1 through a fourth protection resistor R8, the power supply voltage is connected with the drain electrode of the NPN triode Q1 through a fifth protection resistor R9, and the first signal output end O1 is connected with the drain electrode of the NPN triode Q1 through a sixth protection resistor R10; the source electrode of the NPN triode Q1 is grounded; the power supply voltage is connected with the source electrode of the PNP triode Q2, and the grid electrode of the PNP triode Q2 is connected with the drain electrode of the NPN triode Q1 through a seventh protection resistor R11; the second signal output end O2 is connected with the grid electrode of the PNP triode Q2 through an eighth protection resistor R12; the first end of the pull-down resistor R13 and the first end of the second filter capacitor C3 are both connected with the grid electrode of the PNP triode Q2, and the second end of the pull-down resistor R13 and the second end of the second filter capacitor C3 are both grounded.
Referring to fig. 3-d, an embodiment of the disclosure provides a path selection module, which includes a first NMOS transistor Q3, a second NMOS transistor Q4, a third NMOS transistor Q5, and a fourth NMOS transistor Q6. The grid electrode of the first NMOS tube Q3 is connected with the second signal output end O2, the drain electrode of the first NMOS tube Q3 is connected with the power supply voltage, and the source electrode of the first NMOS tube Q3 is connected with the alternative port O4; the grid electrode of the second NMOS tube Q4 is connected with the first signal output end O1, the drain electrode of the second NMOS tube Q4 is connected with the power supply voltage, and the source electrode of the second NMOS tube Q4 is connected with the current port O3; the grid electrode of the third NMOS tube Q5 is connected with the first signal output end O1, the source electrode of the third NMOS tube Q5 is connected with a preset circuit output end, and the drain electrode of the third NMOS tube Q5 is connected with the alternative port O4; the grid electrode of the fourth NMOS tube Q6 is connected with the second signal output end O2, the source electrode of the fourth NMOS tube Q6 is connected with the preset circuit output end, and the drain electrode of the fourth NMOS tube Q6 is connected with the current port O3.
By adopting the self-adaptive device for the polarity of the light supplementing lamp interface, which is provided by the embodiment of the disclosure, the power supply voltage corresponding to the light supplementing lamp and the light supplementing lamp is obtained, the connection between the power supply voltage and the current port is established, the current port voltage corresponding to the current port is determined, the current port polarity corresponding to the current port is determined according to the comparison result between the current port voltage and the preset voltage threshold value, and the power supply control signal is generated based on the current port polarity so as to control the conduction state between the power supply voltage and each power supply port, and the self-adaptive device has the following advantages:
The first, connect with the power port of any light filling lamp through the power supply voltage, and then confirm the polarity of this power port according to the voltage of the power port that connects, produce the conductive state of power supply control signal control power supply voltage and power port, thus make the light filling work, have realized the positive and negative pole self-adaptation of the power port of the light filling lamp, and easy to install the light filling lamp, thus raise and monitor the working efficiency, meanwhile, avoid the light filling lamp damage that the light filling lamp power port causes when the light filling lamp power port is connected reversely, reduce the installation and maintenance cost;
Secondly, calculating a signal duty ratio through a working voltage interval corresponding to the power supply voltage and the light supplementing lamp, and controlling a voltage value of the power supply voltage through the signal duty ratio and the power supply voltage, so that software current limiting of the power supply voltage is realized, damage to the light supplementing lamp caused by overhigh power supply voltage is avoided, and installation and maintenance costs are reduced;
The third constant current driving module is used for controlling the power supply voltage in a working voltage range according to the signal duty ratio in the lamplight control signal to obtain the power supply voltage corresponding to the light supplementing lamp, when the power supply voltage fluctuates, the characteristic that the current of the steady current inductor cannot be suddenly changed is utilized, the current of the power supply voltage is stable through the steady current inductor and the steady current capacitor, the circuit stability is improved, and meanwhile, the signal loss of the direct current signal is reduced by utilizing the characteristics that the impedance of the steady current inductor to the direct current signal is small and the impedance of the steady current inductor to the alternating current signal is large;
Fourth, realize the self-adaptation method of the interface polarity of the light filling lamp through the electronic component, compare with calculating and judging through the chip, have reduced the difficulty that the circuit distributes, while reducing the circuit cost, reduce the risk of the circuit mistakes.
Referring to fig. 4, an embodiment of the disclosure provides a method for adapting polarity of a light supplementing lamp interface, including:
step S401, obtaining a power supply voltage corresponding to a light supplementing lamp, and establishing connection between the power supply voltage and a current port;
The light supplementing lamp comprises two power ports, and the current port is any power port;
step S402, determining the polarity of the current port corresponding to the current port according to the comparison result between the voltage of the current port and the preset voltage threshold value, and generating a power supply control signal corresponding to the polarity of the current port;
Step S403, controlling the conducting state between the power supply voltage and each power supply port according to the power supply control signal so as to realize the self-adaption of each power supply port to the power supply voltage.
By adopting the self-adaptive method for the polarity of the light supplementing lamp interface, which is provided by the embodiment of the disclosure, the power supply voltages corresponding to the light supplementing lamp and the light supplementing lamp are obtained, the connection between the power supply voltage and the current port is established, the current port voltage corresponding to the current port is determined, the current port polarity corresponding to the current port is determined according to the comparison result between the current port voltage and the preset voltage threshold, and a power supply control signal is generated based on the current port polarity so as to control the conduction state between the power supply voltage and each power supply port. Like this, be connected with the power port of arbitrary light filling lamp through power supply voltage, and then confirm the polarity of this power port according to the voltage of connecting the power port, generate the on-state of power control signal control power supply voltage and power port to make the light filling lamp work, realized the positive negative pole self-adaptation of light filling lamp power port, and be convenient for install the light filling lamp, thereby improve control work efficiency. And moreover, the damage of the light supplementing lamp caused by reverse connection of the power supply port of the light supplementing lamp is avoided, and the installation and maintenance cost is reduced.
As shown in conjunction with fig. 5, an embodiment of the present disclosure provides an electronic device, including: a processor (processor) 500 and a memory (memory) 501; the memory is used for storing a computer program, and the processor is used for executing the computer program stored in the memory, so that the terminal executes any one of the methods in the embodiment. Optionally, the electronic device may also include a communication interface (Communication Interface) 502 and a bus 503. The processor 500, the communication interface 502, and the memory 501 may communicate with each other via the bus 503. The communication interface 502 may be used for information transfer. The processor 500 may call logic instructions in the memory 501 to perform the methods of the embodiments described above.
Further, the logic instructions in the memory 501 may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product.
The memory 501 is a computer readable storage medium that may be used to store a software program, a computer executable program, and program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 500 performs functional applications as well as data processing, i.e. implements the methods of the embodiments described above, by running program instructions/modules stored in the memory 501.
Memory 501 may include a storage program area and a database file area, wherein the storage program area may store an operating system, at least one application program required for functionality; the database file area may store data created according to the use of the terminal device, and the like. Further, the memory 501 may include a high-speed random access memory, and may also include a nonvolatile memory.
The disclosed embodiments also provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements any of the methods of the present embodiments.
The computer readable storage medium in the embodiments of the present disclosure may be understood by those of ordinary skill in the art: all or part of the steps for implementing the method embodiments described above may be performed by computer program related hardware. The aforementioned computer program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
The electronic device disclosed in this embodiment includes a processor, a memory, a transceiver, and a communication interface, where the memory and the communication interface are connected to the processor and the transceiver and perform communication therebetween, the memory is used to store a computer program, the communication interface is used to perform communication, and the processor and the transceiver are used to run the computer program, so that the electronic device performs each step of the above method.
In this embodiment, the memory may include a random access memory (Random Access Memory, abbreviated as RAM), and may further include a non-volatile memory (non-volatile memory), such as at least one disk memory.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, abbreviated as CPU), a graphics processor (Graphics Processing Unit, abbreviated as GPU), a network processor (Network Processor, abbreviated as NP), etc.; but may also be a digital signal processor (DIGITAL SIGNAL Processing, DSP), application Specific Integrated Circuit (ASIC), field-Programmable gate array (FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components.
The above description and the drawings illustrate embodiments of the disclosure sufficiently to enable those skilled in the art to practice them. Other embodiments may involve structural, logical, electrical, process, and other changes. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and sub-samples of some embodiments may be included in or substituted for portions and sub-samples of other embodiments. Moreover, the terminology used in the present application is for the purpose of describing embodiments only and is not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a," "an," and "the" (the) are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this disclosure is meant to encompass any and all possible combinations of one or more of the associated listed. In addition, when used in this disclosure, the terms "comprises," "comprising," and/or variations thereof mean the presence of the stated sub-sample, integer, step, operation, element, and/or component, but do not exclude the presence or addition of one or more other sub-samples, integers, steps, operations, elements, components, and/or groups of these. Without further limitation, an element defined by the phrase "comprising one …" does not exclude the presence of other like elements in a process, method or apparatus that includes the element. In this context, each embodiment may be described with emphasis on the differences from the other embodiments, and the same similar parts between the various embodiments may be referred to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method sections disclosed in the embodiments, the description of the method sections may be referred to for relevance.
Those of skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. The skilled artisan may use different methods for each particular application to achieve the described functionality, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the embodiments disclosed herein, the disclosed methods, articles of manufacture (including but not limited to devices, apparatuses, etc.) may be practiced in other ways. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the units may be merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some sub-samples may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form. The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to implement the present embodiment. In addition, each functional unit in the embodiments of the present disclosure may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. 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). 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. In the description corresponding to the flowcharts and block diagrams in the figures, operations or steps corresponding to different blocks may also occur in different orders than that disclosed in the description, and sometimes no specific order exists between different operations or steps. For example, two consecutive operations or steps may actually be performed substantially in parallel, they may sometimes be performed in reverse order, which may be dependent on the functions involved. Each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/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.

Claims (7)

1. A light filling lamp interface polarity adaptation device, characterized in that it includes:
the light supplementing lamp comprises two power ports, wherein any power port is determined to be a current port;
The constant current driving module is used for acquiring the power supply voltage corresponding to the light supplementing lamp and establishing connection between the power supply voltage and the current port;
the signal generation module is connected with the current port of the light supplementing lamp, and is used for determining the current port polarity corresponding to the current port according to a comparison result between the current port voltage and a preset voltage threshold value and generating a power supply control signal corresponding to the current port polarity;
The input end of the path selection module is connected with the constant current driving module and the signal generating module, the output end of the path selection module is connected with the light supplementing lamp, and the path selection module is used for controlling the conduction state between the power supply voltage and each power supply port according to the power supply control signal so as to realize the self-adaption of each power supply port to the power supply voltage;
The main control chip is connected with the constant current driving module and is used for acquiring a power supply voltage and a working voltage interval corresponding to the light supplementing lamp, calculating a signal duty ratio according to the power supply voltage and the working voltage interval and generating a light control signal corresponding to the light supplementing lamp based on the signal duty ratio;
The constant current driving module obtains the power supply voltage corresponding to the light supplementing lamp and obtains the power supply voltage and a light control signal sent by the main control chip; controlling the power supply voltage in a working voltage interval corresponding to the light supplementing lamp according to the signal duty ratio of the light control signal to obtain a power supply voltage corresponding to the light supplementing lamp;
the signal generation module determines the polarity of the current port corresponding to the current port, acquires the power supply voltage, and divides the power supply voltage to obtain a preset voltage threshold; comparing the current port voltage with the preset voltage threshold value, and generating a port polarity signal according to a comparison result, wherein the port polarity signal is used for representing the current port polarity of the current port;
The signal generation module generates a power supply control signal corresponding to the current port polarity in the following manner, and comprises a first signal output end and a second signal output end; acquiring the power supply voltage, and comparing the port polarity signal with a preset high-level interval and a preset low-level interval respectively; if the port polarity signal is located in the high level interval, outputting a power supply voltage from the first signal output end to obtain a first control signal; if the port polarity signal is located in the low level interval, outputting a power supply voltage from the second signal output end to obtain a second control signal; the first control signal or the second control signal is determined as a power supply control signal.
2. The apparatus of claim 1, wherein the signal generation module further comprises a first voltage divider resistor, a second voltage divider resistor, a third voltage divider resistor, a fourth voltage divider resistor, a second cut-off diode, a first operational amplifier, an NPN triode, and a PNP triode;
The power supply voltage is connected with the first end of the first voltage dividing resistor, and the reverse input end of the first operational amplifier is respectively connected with the second end of the first voltage dividing resistor, the first end of the second voltage dividing resistor and the anode of the second intercepting diode;
The current port voltage is connected with the first end of the third voltage dividing resistor, and the homodromous input end of the first operational amplifier is respectively connected with the second end of the third voltage dividing resistor and the first end of the fourth voltage dividing resistor;
The power input end of the operational amplifier is connected with the power voltage, the power output end of the operational amplifier is grounded, and the output end of the operational amplifier is used for outputting the port polarity signal;
The grid electrode of the NPN triode is connected with the output end of the operational amplifier, the drain electrode of the NPN triode is respectively connected with the grid electrode of the PNP triode, the power supply voltage, the first signal output end and the cathode of the second intercepting diode, and the source electrode of the NPN triode is grounded;
The power supply voltage is connected with the source electrode of the PNP triode, and the grid electrode of the PNP triode is connected with the second signal output end.
3. The apparatus of claim 1, wherein the path selection module controls the conduction state between the supply voltage and each of the power ports by:
determining a power port, which is different from the current port, in the light supplementing lamp as an alternative port;
if a first control signal output by the first signal output end is received, controlling the power supply voltage and the current port to be in a conducting state, and simultaneously controlling the alternative port to be connected with a preset circuit output end;
And if a second control signal output by the second signal output end is received, controlling the power supply voltage and the alternative port to be in a conducting state, and simultaneously controlling the current port to be connected with a preset circuit output end.
4. The apparatus of claim 3, wherein the path selection module comprises a first NMOS transistor, a second NMOS transistor, a third NMOS transistor, a fourth NMOS transistor;
the grid electrode of the first NMOS tube is connected with the second signal output end, the drain electrode of the first NMOS tube is connected with the power supply voltage, and the source electrode of the first NMOS tube is connected with the alternative port;
The grid electrode of the second NMOS tube is connected with the first signal output end, the drain electrode of the second NMOS tube is connected with the power supply voltage, and the source electrode of the second NMOS tube is connected with the current port;
The grid electrode of the third NMOS tube is connected with the first signal output end, the source electrode of the third NMOS tube is connected with a preset circuit output end, and the drain electrode of the third NMOS tube is connected with the alternative port;
The grid electrode of the fourth NMOS tube is connected with the second signal output end, the source electrode of the fourth NMOS tube is connected with the preset circuit output end, and the drain electrode of the fourth NMOS tube is connected with the current port.
5. The polarity self-adaptation method of the light supplementing lamp interface is characterized by comprising the following steps of:
the method comprises the steps that a power supply voltage corresponding to a light supplementing lamp is obtained through a constant current driving module, and connection between the power supply voltage and a current port is established, wherein the light supplementing lamp comprises two power ports, and the current port is any power port;
Determining a current port polarity corresponding to a current port according to a comparison result between the current port voltage and a preset voltage threshold value through a signal generation module, and generating a power control signal corresponding to the current port polarity, wherein the signal generation module comprises a first signal output end and a second signal output end;
Controlling the conduction state between the power supply voltage and each power supply port according to the power supply control signal so as to realize the self-adaption of each power supply port to the power supply voltage;
Acquiring a power supply voltage and a working voltage interval corresponding to the light supplementing lamp through a main control chip connected with the constant current driving module, calculating a signal duty ratio according to the power supply voltage and the working voltage interval, and generating a light control signal corresponding to the light supplementing lamp based on the signal duty ratio;
The power supply voltage corresponding to the light supplementing lamp is obtained in the following manner, and the power supply voltage and a light control signal sent by the main control chip are obtained; controlling the power supply voltage in a working voltage interval corresponding to the light supplementing lamp according to the signal duty ratio of the light control signal to obtain a power supply voltage corresponding to the light supplementing lamp;
Determining the polarity of the current port corresponding to the current port, acquiring the power supply voltage, and dividing the power supply voltage to obtain a preset voltage threshold; comparing the current port voltage with the preset voltage threshold value, and generating a port polarity signal according to a comparison result, wherein the port polarity signal is used for representing the current port polarity of the current port;
Generating a power supply control signal corresponding to the current port polarity, acquiring the power supply voltage, and comparing the port polarity signal with a preset high-level interval and a preset low-level interval respectively; if the port polarity signal is located in the high level interval, outputting a power supply voltage from the first signal output end to obtain a first control signal; if the port polarity signal is located in the low level interval, outputting a power supply voltage from the second signal output end to obtain a second control signal; the first control signal or the second control signal is determined as a power supply control signal.
6. An electronic device, comprising: a processor and a memory;
the memory is configured to store a computer program, and the processor is configured to execute the computer program stored in the memory, to cause the electronic device to perform the method of claim 5.
7. A computer-readable storage medium having stored thereon a computer program, characterized by:
The computer program implementing the method of claim 5 when executed by a processor.
CN202210692853.0A 2022-06-17 2022-06-17 Light supplementing lamp interface polarity self-adaption device and method, electronic equipment and storage medium Active CN114980435B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210692853.0A CN114980435B (en) 2022-06-17 2022-06-17 Light supplementing lamp interface polarity self-adaption device and method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210692853.0A CN114980435B (en) 2022-06-17 2022-06-17 Light supplementing lamp interface polarity self-adaption device and method, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114980435A CN114980435A (en) 2022-08-30
CN114980435B true CN114980435B (en) 2024-06-11

Family

ID=82964221

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210692853.0A Active CN114980435B (en) 2022-06-17 2022-06-17 Light supplementing lamp interface polarity self-adaption device and method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114980435B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202535603U (en) * 2012-04-09 2012-11-14 安徽双科测控技术有限责任公司 Intelligent traffic LED strobe and flash lamp
CN206097873U (en) * 2016-09-28 2017-04-12 昆山龙腾光电有限公司 Anti -reverse connection circuit and backlight drive device
WO2020132787A1 (en) * 2018-12-24 2020-07-02 Zhejiang Dahua Technology Co., Ltd. System and method for adatpting a polarity of a data signal
CN211183454U (en) * 2019-11-18 2020-08-04 安徽华米信息科技有限公司 Interface processing apparatus charges, charger, intelligent wearing equipment and charging system
WO2020224619A1 (en) * 2019-05-08 2020-11-12 杭州海康威视数字技术股份有限公司 Camera
CN112491030A (en) * 2020-11-19 2021-03-12 珠海格力电器股份有限公司 Touch screen power supply positive and negative connection compatible circuit, touch screen and electrical equipment
CN212784771U (en) * 2020-08-21 2021-03-23 上海闻泰信息技术有限公司 Power protection circuit and electronic equipment
WO2022105159A1 (en) * 2020-11-19 2022-05-27 深圳市华思旭科技有限公司 Smart connection apparatus, startup power supply, and battery clip

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6906618B2 (en) * 2003-06-26 2005-06-14 Abet Technologies, Llc Method and system for bidirectional data and power transmission

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202535603U (en) * 2012-04-09 2012-11-14 安徽双科测控技术有限责任公司 Intelligent traffic LED strobe and flash lamp
CN206097873U (en) * 2016-09-28 2017-04-12 昆山龙腾光电有限公司 Anti -reverse connection circuit and backlight drive device
WO2020132787A1 (en) * 2018-12-24 2020-07-02 Zhejiang Dahua Technology Co., Ltd. System and method for adatpting a polarity of a data signal
WO2020224619A1 (en) * 2019-05-08 2020-11-12 杭州海康威视数字技术股份有限公司 Camera
CN211183454U (en) * 2019-11-18 2020-08-04 安徽华米信息科技有限公司 Interface processing apparatus charges, charger, intelligent wearing equipment and charging system
CN212784771U (en) * 2020-08-21 2021-03-23 上海闻泰信息技术有限公司 Power protection circuit and electronic equipment
CN112491030A (en) * 2020-11-19 2021-03-12 珠海格力电器股份有限公司 Touch screen power supply positive and negative connection compatible circuit, touch screen and electrical equipment
WO2022105159A1 (en) * 2020-11-19 2022-05-27 深圳市华思旭科技有限公司 Smart connection apparatus, startup power supply, and battery clip

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Voltage-Fed Three-Phase Semi-Dual Active Bridge DC–DC Converter Utilizing Varying Operating Modes With High Conversion Efficiency;Deshang Sha等;《IEEE Transactions on Power Electronics》;20190101;全文 *
双向隔离式DC/DC变换器;张勋;《中国优秀硕士学位论文全文数据库电子期刊》;20151012;全文 *
直流电力***的单双极性转换接口关键技术研究;吴思文;《中国优秀硕士学位论文全文数据库电子期刊》;20190915(第9期);全文 *

Also Published As

Publication number Publication date
CN114980435A (en) 2022-08-30

Similar Documents

Publication Publication Date Title
US8438419B2 (en) Fault management for a communication bus
CN101882864B (en) Electrifying startup circuit and electrifying startup method thereof
US8018699B2 (en) Over voltage protection for reduced level electrical signal interfaces
CN201181903Y (en) Input circuit of DC power supply
CN107316598B (en) Hot-plug short circuit control device and method
KR20200000097A (en) Voltage control circuit
CN104038207A (en) Switchover circuit and electronic device
CN210724722U (en) Hot plug control circuit
CN114980435B (en) Light supplementing lamp interface polarity self-adaption device and method, electronic equipment and storage medium
CN103298210B (en) Overvoltage protection circuit and electronic device with same
CN218829101U (en) Clamping protection circuit
CN112689935A (en) Charging device, charging control method and device
CN108259826B (en) Image acquisition and transmission system for displaying multiple images on same picture
CN108134366B (en) A kind of overvoltage crowbar, over-voltage protection method and device
CN110323830A (en) power supply switching method
CN110875607A (en) Charging system
EP3739709A1 (en) Over current and electrostatic discharge protection system having high operational endurance
US10338671B2 (en) Power supply circuit and power supply system
CN214151531U (en) Voltage-stabilized power supply circuit
CN104952403A (en) Driver, electro-optical device, and electronic device
CN110198122B (en) Dynamic power supply system capable of changing working power supply along with input signal
CN210958120U (en) Drive circuit and control system
US11764982B2 (en) Ethernet power supply device
CN117200781A (en) Drive output circuit and electronic apparatus
CN217563310U (en) Undervoltage protection circuit and power supply device

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