CN116707508A - Standby optocoupler switching circuit, method and device, storage medium and electronic equipment - Google Patents

Standby optocoupler switching circuit, method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN116707508A
CN116707508A CN202310702717.XA CN202310702717A CN116707508A CN 116707508 A CN116707508 A CN 116707508A CN 202310702717 A CN202310702717 A CN 202310702717A CN 116707508 A CN116707508 A CN 116707508A
Authority
CN
China
Prior art keywords
optocoupler
relay
optical coupler
output end
voltage
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.)
Pending
Application number
CN202310702717.XA
Other languages
Chinese (zh)
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.)
Gree Electric Appliances Inc of Zhuhai
Guochuang Energy Internet Innovation Center Guangdong Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Guochuang Energy Internet Innovation Center Guangdong 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 Gree Electric Appliances Inc of Zhuhai, Guochuang Energy Internet Innovation Center Guangdong Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202310702717.XA priority Critical patent/CN116707508A/en
Publication of CN116707508A publication Critical patent/CN116707508A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/51Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the components used
    • H03K17/78Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the components used using opto-electronic devices, i.e. light-emitting and photoelectric devices electrically- or optically-coupled
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/51Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the components used
    • H03K2017/515Mechanical switches; Electronic switches controlling mechanical switches, e.g. relais
    • 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
    • Y02B70/00Technologies for an efficient end-user side electric power management and consumption
    • Y02B70/30Systems integrating technologies related to power network operation and communication or information technologies for improving the carbon footprint of the management of residential or tertiary loads, i.e. smart grids as climate change mitigation technology in the buildings sector, including also the last stages of power distribution and the control, monitoring or operating management systems at local level
    • 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
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S20/00Management or operation of end-user stationary applications or the last stages of power distribution; Controlling, monitoring or operating thereof
    • Y04S20/20End-user application control systems

Abstract

The application relates to a standby optocoupler switching circuit, a standby optocoupler switching method, a standby optocoupler switching device, a storage medium and electronic equipment. The circuit comprises: the relay is respectively connected with the power supply, the DSP chip, the input voltage, the first optocoupler and the second optocoupler, and is used for switching on the first output end of the relay, and switching off the first output end of the relay and switching on the second output end of the relay under the condition that the second output end is switched off and the first optocoupler is detected to work abnormally, wherein the connection state of the first output end of the relay and the second output end of the relay is opposite; the first optical coupler is respectively connected with a power supply, the DSP chip, an input voltage and a target device, wherein the target device is a device which needs to be isolated by the first optical coupler or the second optical coupler; the second optocoupler is respectively connected with the power supply, the DSP chip, the input voltage, the power supply and the target device. The application solves the technical problem that the operation of equipment is affected due to the damage of the optical coupler.

Description

Standby optocoupler switching circuit, method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of optocoupler circuits, and in particular, to a standby optocoupler switching circuit, a standby optocoupler switching device, a storage medium, and an electronic apparatus.
Background
The photoelectric coupler is an electric-optical-electric conversion device for transmitting electric signals by using light as medium, and is composed of two parts of luminous source and light receiver. The optical coupler has the advantages of strong anti-interference capability, high response speed, complete insulation of input and output and the like, and is widely applied to circuits such as level conversion, signal isolation, switch circuits and the like, but once the optical coupler is accidentally damaged, the loss of a device or the whole machine can be possibly caused, for example, the output end of the optical coupler is reversely broken down due to the problem of reverse current, the device connected with the output end can start to work, and the damage such as circuit damage or misoperation of operation can be caused, so that the operation of equipment is influenced.
Content of the application
The application provides a standby optical coupler switching circuit, a standby optical coupler switching method, a standby optical coupler switching device, a storage medium and electronic equipment, and aims to solve the technical problem that equipment operation is affected due to optical coupler damage.
In a first aspect, the present application provides a standby optocoupler switching circuit, including: the first input end of the relay is connected with the positive electrode of the power supply, the second input end of the relay is connected with the first output end of the DSP chip, the third input end of the relay is connected with the positive end of the input voltage, the first output end of the relay is connected with the first input end of the first optocoupler, the second output end of the relay is connected with the first input end of the second optocoupler, the relay is used for being connected with the first output end of the relay, the first output end of the relay is disconnected when the second output end is disconnected, and the second output end of the relay is connected under the condition that the first optocoupler is detected to work abnormally, wherein the connection state of the first output end of the relay and the second output end of the relay is opposite; the second input end of the first optical coupler is connected with the positive electrode of the power supply, the third input end of the first optical coupler is connected with the second output end of the DSP chip, and the output end of the first optical coupler is respectively connected with the reverse end of the input voltage, the negative electrode of the power supply and a target device, wherein the target device is a device needing to be isolated by the first optical coupler or the second optical coupler; the second optical coupler is connected with the positive electrode of the power supply, the third input end of the second optical coupler is connected with the second output end of the DSP chip, and the output end of the first optical coupler is respectively connected with the reverse end of the input voltage, the negative electrode of the power supply and the target device.
In a second aspect, the present application provides a method for switching a standby optocoupler, including: and under the condition that the target equipment works through the first optical coupler and the first optical coupler is detected to work abnormally, the first optical coupler is controlled to be disconnected, and the second optical coupler is controlled to be connected so that the target equipment works through the second optical coupler, wherein the connection state of the first optical coupler and the second optical coupler is opposite.
In a third aspect, the present application provides a standby optocoupler switching apparatus, including: and the first control module is used for controlling the first optical coupler to be disconnected and the second optical coupler to be connected under the condition that the target equipment works through the first optical coupler and the first optical coupler is detected to work abnormally, so that the target equipment works through the second optical coupler, wherein the connection state of the first optical coupler and the second optical coupler is opposite.
As an alternative example, the above apparatus further includes: and the second control module is used for controlling the second optical coupler to be disconnected and the first optical coupler to be connected under the condition that the target equipment works through the second optical coupler and the second optical coupler is detected to work abnormally, so that the target equipment works through the first optical coupler.
As an optional example, the first control module includes: the determining unit is used for determining that the first optical coupler works abnormally when the voltage exists at the output end of the first optical coupler and the voltage at the connecting end of the DSP chip and the first optical coupler is high, wherein the power supply is the power supply of the target equipment, and the DSP chip is the chip in the target equipment; or determining that the first optocoupler works abnormally under the condition that no voltage exists at the output end of the first optocoupler and the voltage of the connecting end of the DSP chip and the first optocoupler is low.
In a fourth aspect, the present application provides a storage medium having a computer program stored therein, wherein the computer program when executed by a processor performs the above-described standby optocoupler switching method.
In a fifth aspect, the present application further provides an electronic device, including a memory, in which a computer program is stored, and a processor configured to execute the standby optocoupler switching method described above by using the computer program.
In the embodiment of the application, a relay is adopted, a first input end of the relay is connected with an anode of a power supply, a second input end of the relay is connected with a first output end of a DSP chip, a third input end of the relay is connected with a forward end of an input voltage, a first output end of the relay is connected with a first input end of a first optocoupler, a second output end of the relay is connected with a first input end of a second optocoupler, and the relay is used for switching on the first output end of the relay, switching off the first output end of the relay and switching on the second output end of the relay under the condition that the first optocoupler is detected to work abnormally while the second output end is switched off, wherein the connection state of the first output end of the relay and the second output end of the relay is opposite; the second input end of the first optical coupler is connected with the positive electrode of the power supply, the third input end of the first optical coupler is connected with the second output end of the DSP chip, and the output end of the first optical coupler is respectively connected with the reverse end of the input voltage, the negative electrode of the power supply and a target device, wherein the target device is a device needing to be isolated by the first optical coupler or the second optical coupler; the second optocoupler is connected with the positive electrode of the power supply, the third input end of the second optocoupler is connected with the second output end of the DSP chip, the output end of the first optocoupler is respectively connected with the reverse end of the input voltage, the negative electrode of the power supply and the circuit connected with the target device.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which the figures of the drawings are not to be taken in a limiting sense, unless otherwise indicated.
Fig. 1 is a connection diagram of an alternative standby optocoupler switching circuit according to an embodiment of the present application;
fig. 2 is a circuit diagram of an alternative standby optocoupler switching circuit according to an embodiment of the present application;
fig. 3 is a flowchart of an alternative method for switching a standby optocoupler according to an embodiment of the present application;
fig. 4 is a specific flowchart of an alternative standby optocoupler switching method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an alternative standby optocoupler switching apparatus according to an embodiment of the present application;
fig. 6 is a schematic diagram of an alternative electronic device according to an embodiment of the application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The following disclosure provides many different embodiments, or examples, for implementing different structures of the application. In order to simplify the present disclosure, components and arrangements of specific examples are described below. They are, of course, merely examples and are not intended to limit the application. Furthermore, the present application may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed.
According to a first aspect of an embodiment of the present application, there is provided a standby optocoupler switching circuit, optionally, as shown in fig. 1, the circuit includes:
the first input end of the relay is connected with the positive electrode of the power supply, the second input end of the relay is connected with the first output end of the DSP chip, the third input end of the relay is connected with the positive end of the input voltage, the first output end of the relay is connected with the first input end of the first optocoupler, the second output end of the relay is connected with the first input end of the second optocoupler, and the relay is used for switching on the first output end of the relay, switching off the first output end of the relay and switching on the second output end of the relay under the condition that the first optocoupler is detected to work abnormally while the second output end is switched off, wherein the connection state of the first output end of the relay and the second output end of the relay is opposite;
the first optical coupler is connected with the positive electrode of the power supply, the third input end of the first optical coupler is connected with the second output end of the DSP chip, and the output end of the first optical coupler is respectively connected with the reverse end of the input voltage, the negative electrode of the power supply and the target device, wherein the target device is a device needing to be isolated by the first optical coupler or the second optical coupler;
the second input end of the second optical coupler is connected with the positive electrode of the power supply, the third input end of the second optical coupler is connected with the second output end of the DSP chip, and the output end of the first optical coupler is respectively connected with the reverse end of the input voltage, the negative electrode of the power supply and the target device.
Optionally, in this embodiment, as shown in the circuit diagram of fig. 2, the relay is connected to the positive pole v+ of the power supply, the first output terminal OUT1 of the DSP chip, the positive pole v2+ of the input voltage, the first optocoupler, and the second optocoupler, where the first optocoupler and the second optocoupler are connected in parallel, and the output terminals of the first optocoupler and the second optocoupler are connected to the reverse terminal v2_gnd of the input voltage, the negative pole V-of the power supply, and the target device out_1, respectively. The target device may be a device requiring optocoupler isolation, such as a fan, contactor, etc. The second optocoupler is a standby optocoupler of the first optocoupler, the first output end of the relay is connected with the first input end of the first optocoupler, the second output end of the relay is connected with the first input end of the second optocoupler, the connection state of the first output end of the relay and the second output end of the relay is opposite, namely, the connection of the first optocoupler and the second optocoupler is disconnected when the first optocoupler is connected, the connection of the second optocoupler and the first optocoupler is disconnected when the second optocoupler is connected, and when the first optocoupler works, the first optocoupler is detected to work abnormally, the first optocoupler is disconnected, and the second optocoupler is connected, so that the circuit can continue to operate. Therefore, the purpose that the equipment can stably operate and the circuit is protected is achieved, and the technical problem that the operation of the equipment is affected due to the damage of the optocoupler is solved.
As an alternative example, the relay is further configured to switch on the first output terminal of the relay and switch off the second output terminal of the relay when the second output terminal of the relay is switched on while detecting that the second optocoupler is abnormal.
Optionally, in this embodiment, when the second optocoupler detects that the second optocoupler is abnormal after working, the first optocoupler is repaired at this time, and then the second optocoupler is disconnected, so that the first optocoupler is turned on, and the circuit continues to operate through the first optocoupler.
As an optional example, the relay is further configured to determine that the first optocoupler is abnormal when the first output terminal of the relay is turned on, the second output terminal of the relay is turned off, and the voltage at the third input terminal of the first optocoupler is detected to be at a high level.
Optionally, in this embodiment, after the first optocoupler is used for working, the voltages at the output ends of the first optocoupler, that is, the voltages at the out_1 end and the V2_gnd end are detected, if the voltages can be collected, it is determined whether the voltage output by the third input end of the first optocoupler, that is, the OUT1 end of the DSP chip, is at a high level or a low level, if the voltage is at a high level, it is indicated that the first optocoupler does not start working, but the voltage is detected at the output end, which proves that the first optocoupler is damaged.
As an optional example, the relay is further configured to determine that the first optocoupler is abnormal when the first output terminal of the relay is turned on, the second output terminal of the relay is turned off, and no voltage exists at the output terminal of the first optocoupler, and the voltage at the third input terminal of the first optocoupler is at a low level.
Optionally, in this embodiment, after the first optocoupler is used for working, the voltages at the output ends of the first optocoupler, that is, the voltages at the out_1 end and the V2_gnd end are detected, if no voltage can be collected, it is determined whether the voltage output by the third input end of the first optocoupler, that is, the OUT1 end of the DSP chip, is at a high level or a low level, if the voltage is at a low level, it is indicated that the first optocoupler begins to work, and if no voltage is detected at the output end, it is proved that the first optocoupler is damaged.
As an alternative example, the above circuit further includes:
and the DSP chip is used for switching on the first output end of the relay, and outputting a high-level signal by the first output end of the DSP chip when the second output end of the relay is switched off and the first optocoupler is detected to work abnormally, so that the first output end of the relay is switched off and the second output end of the relay is switched on.
Alternatively, in this embodiment, DSP (Digital Signal Processing) is a digital signal processing technology, and the DSP chip is a chip capable of implementing the digital signal processing technology. The first output end OUT1 of the DSP chip is connected with the second input end of the relay, and the second output end OUT2 of the DSP chip is respectively connected with the third input end of the first optocoupler and the third input end of the second optocoupler. The DSP chip controls the opening and closing of the relay through a signal output by the first output end OUT1 so as to control the switching of the circuit, when the circuit starts to work with the first optocoupler, the damage of the first optocoupler is detected, and then the first output end of the relay is controlled to be disconnected through a signal output by the first output end OUT1, and the second output end of the relay is connected.
In combination with an example, optionally, the application relates to a standby optocoupler switching circuit, the circuit diagram is shown in fig. 2, the OUT1 and the OUT2 inputs are signals output from a DSP chip, a relay is added to the output ends of the two optocouplers to control the switching of the circuit, the switching of the relay is controlled by the signal OUT1 output from the DSP chip, when the optocoupler starts to work, the voltage v2+ of the output end is connected with the out_1 and the v2_gnd through the optocoupler and is equivalent to a parallel loop, so that the voltage of the out_1 is also v2+ for supplying voltage to the connected device, when the optocoupler is damaged, the voltage values between the out_1 and the v2_gnd are collected to judge whether the optocoupler is damaged, and the first optocoupler and the second optocoupler are optocouplers with different specifications, so as to prevent double damage. When the device starts working with the first optocoupler, collecting voltage values of the OUT_1 and the V2_GND, judging whether the OUT2 output by the DSP chip is in a high level or not when the voltage is collected, if the OUT2 is in the high level, the first optocoupler does not start working, the voltage is detected at the output end to prove that the first optocoupler is damaged, at the moment, the DSP chip outputs a high level signal OUT2 to control a switch of the relay to be switched on the other line, so that the device works with the second optocoupler, switching of an optocoupler circuit is completed, if the OUT2 is not in the high level, the first optocoupler starts working, and the output end also detects the voltage to prove that the first optocoupler works normally. When the voltages of the OUT_1 and the V2_GND are not collected, judging whether the OUT2 output by the DSP chip is in a high level or not, if so, indicating that the first optocoupler does not work, and naturally detecting no voltage at the output end. If the signal is not high level, the first optocoupler starts to work, the voltage is not detected at the output end, the first optocoupler is proved to be damaged, the DSP chip outputs a high level signal OUT2 to control the switch of the relay to be switched to another circuit, and the equipment works with the second optocoupler, so that the switching of the optocoupler circuit is completed.
According to a second aspect of the embodiment of the present application, there is provided a standby optocoupler switching method, optionally, as shown in fig. 3, the method includes:
s302, when the target device works through the first optical coupler and the first optical coupler is detected to work abnormally, the first optical coupler is controlled to be disconnected, and the second optical coupler is controlled to be connected so that the target device works through the second optical coupler, wherein the connection state of the first optical coupler and the second optical coupler is opposite.
Optionally, in this embodiment, the optocoupler, i.e. the optocoupler, is an electro-optical-to-electrical conversion device that uses light as a medium to transmit an electrical signal. It is composed of two parts of light source and light receiver. The light source and the light receiver are assembled in the same airtight shell and are isolated by a transparent insulator.
Optionally, since the optocoupler circuit in the prior art uses only one optocoupler, when the output end of the optocoupler is broken down reversely due to the problem of reverse current, damage such as circuit damage or operation error can be caused, and the operation of the device is affected. Therefore, in this embodiment, a standby optical coupler second optical coupler is added in the optical coupler circuit, the first optical coupler and the second optical coupler can be optical couplers of different specifications, the first optical coupler and the second optical coupler are connected in parallel, each optical coupler is only used for working, and when the first optical coupler is used for working, the first optical coupler is controlled to be turned on, and the second optical coupler is controlled to be turned off. When the first optical coupler is detected to work abnormally, the first optical coupler is immediately disconnected, the second optical coupler is connected, and the target equipment continues to work by the second optical coupler, so that the target equipment can stably run, and the circuit is protected.
As an alternative example, the method further includes:
and under the condition that the target equipment works through the second optical coupler and the second optical coupler is detected to work abnormally, the second optical coupler is controlled to be disconnected, and the first optical coupler is controlled to be connected, so that the target equipment works through the first optical coupler.
Optionally, since the optocoupler circuit in the prior art uses only one optocoupler, when the output end of the optocoupler is broken down reversely due to the problem of reverse current, damage such as circuit damage or operation error can be caused, and the operation of the device is affected. Therefore, in this embodiment, after the second optocoupler is used to work, when the second optocoupler is detected to work abnormally, the first optocoupler is repaired, the second optocoupler is immediately disconnected, and the first optocoupler is turned on, so that the target device can continue to work with the first optocoupler, and the target device can be enabled to stably operate, and the circuit is protected.
As an alternative example, detecting the first optocoupler operation anomaly includes:
determining that the first optocoupler works abnormally under the condition that the voltage exists at the output end of the first optocoupler and the voltage of the connecting end of the DSP chip and the first optocoupler is high, wherein the power supply is the power supply of target equipment, and the DSP chip is a chip in the target equipment; or (b)
And determining that the first optocoupler works abnormally under the condition that no voltage exists at the output end of the first optocoupler and the voltage of the connecting end of the DSP chip and the first optocoupler is low level.
Optionally, in this embodiment, whether the first optocoupler or the second optocoupler is abnormal is determined by detecting a voltage value of an output end of the first optocoupler. When the target equipment works with the first optocoupler, judging whether the voltage of the connecting end of the DSP chip and the first optocoupler is high level or not when the voltage exists at the output end of the first optocoupler, if so, indicating that the first optocoupler does not start to work, and detecting the voltage at the output end of the first optocoupler to prove that the first optocoupler is damaged. If not, the first optical coupler starts to work, and the output end of the first optical coupler also detects voltage to prove that the first optical coupler works normally. When no voltage is acquired at the output end of the first optocoupler, judging whether the voltage of the connecting end of the DSP chip and the first optocoupler is at a high level, if so, indicating that the first optocoupler does not work, and naturally detecting no voltage at the output end of the first optocoupler. If not, the first optical coupler starts to work, but no voltage is detected at the output end of the first optical coupler, and the first optical coupler is proved to be damaged.
To explain with reference to an example, optionally, the present application relates to a standby optocoupler switching method, as shown in fig. 4, when the device starts to operate with the first optocoupler, the voltage value of the output end of the first optocoupler is collected:
1. when the voltage is collected, judging whether the voltage of the connecting end of the DSP chip and the first optocoupler is at a high level, if so, indicating that the first optocoupler does not start to work, detecting the voltage at the output end of the first optocoupler, and proving that the first optocoupler is damaged, and at the moment, the DSP chip can output a high-level signal to control the first optocoupler to be disconnected and the second optocoupler to be connected so as to enable the equipment to work by the second optocoupler. If not, the first optical coupler starts to work, and the output end of the first optical coupler also detects voltage to prove that the first optical coupler works normally.
2. When no voltage is acquired, judging whether the voltage of the connecting end of the DSP chip and the first optocoupler is at a high level, if so, indicating that the first optocoupler does not work, and naturally detecting no voltage at the output end of the first optocoupler. If the first optical coupler is not started to work, the output end of the first optical coupler does not detect voltage, and the first optical coupler is proved to be damaged, and the DSP chip outputs a high-level signal to control the first optical coupler to be disconnected and the second optical coupler to be connected, so that the equipment works with the second optical coupler.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
According to a third aspect of the embodiment of the present application, there is further provided a standby optocoupler switching apparatus, as shown in fig. 5, including:
the first control module 502 is configured to control the first optocoupler to be turned off and the second optocoupler to be turned on when the target device works through the first optocoupler and detects that the first optocoupler works abnormally, so that the target device works through the second optocoupler, where a connection state of the first optocoupler and a connection state of the second optocoupler are opposite.
Optionally, in this embodiment, the optocoupler, i.e. the optocoupler, is an electro-optical-to-electrical conversion device that uses light as a medium to transmit an electrical signal. It is composed of two parts of light source and light receiver. The light source and the light receiver are assembled in the same airtight shell and are isolated by a transparent insulator.
Optionally, since the optocoupler circuit in the prior art uses only one optocoupler, when the output end of the optocoupler is broken down reversely due to the problem of reverse current, damage such as circuit damage or operation error can be caused, and the operation of the device is affected. Therefore, in this embodiment, a standby optical coupler second optical coupler is added in the optical coupler circuit, the first optical coupler and the second optical coupler can be optical couplers of different specifications, the first optical coupler and the second optical coupler are connected in parallel, each optical coupler is only used for working, and when the first optical coupler is used for working, the first optical coupler is controlled to be turned on, and the second optical coupler is controlled to be turned off. When the first optical coupler is detected to work abnormally, the first optical coupler is immediately disconnected, the second optical coupler is connected, and the target equipment continues to work by the second optical coupler, so that the target equipment can stably run, and the circuit is protected.
As an alternative example, the above apparatus further includes:
the second control module is used for controlling the second optical coupler to be disconnected and the first optical coupler to be connected under the condition that the target equipment works through the second optical coupler and the second optical coupler is detected to work abnormally, so that the target equipment works through the first optical coupler.
Optionally, since the optocoupler circuit in the prior art uses only one optocoupler, when the output end of the optocoupler is broken down reversely due to the problem of reverse current, damage such as circuit damage or operation error can be caused, and the operation of the device is affected. Therefore, in this embodiment, after the second optocoupler is used to work, when the second optocoupler is detected to work abnormally, the first optocoupler is repaired, the second optocoupler is immediately disconnected, and the first optocoupler is turned on, so that the target device can continue to work with the first optocoupler, and the target device can be enabled to stably operate, and the circuit is protected.
As an alternative example, the first control module includes:
the determining unit is used for determining that the first optical coupler works abnormally under the condition that the voltage exists at the output end of the first optical coupler and the voltage of the connecting end of the DSP chip and the first optical coupler is high level, wherein the power supply is the power supply of the target equipment, and the DSP chip is the chip in the target equipment; or (b)
And determining that the first optocoupler works abnormally under the condition that no voltage exists at the output end of the first optocoupler and the voltage of the connecting end of the DSP chip and the first optocoupler is low level.
Optionally, in this embodiment, whether the first optocoupler or the second optocoupler is abnormal is determined by detecting a voltage value of an output end of the first optocoupler. When the target equipment works with the first optocoupler, judging whether the voltage of the connecting end of the DSP chip and the first optocoupler is high level or not when the voltage exists at the output end of the first optocoupler, if so, indicating that the first optocoupler does not start to work, and detecting the voltage at the output end of the first optocoupler to prove that the first optocoupler is damaged. If not, the first optical coupler starts to work, and the output end of the first optical coupler also detects voltage to prove that the first optical coupler works normally. When no voltage is acquired at the output end of the first optocoupler, judging whether the voltage of the connecting end of the DSP chip and the first optocoupler is at a high level, if so, indicating that the first optocoupler does not work, and naturally detecting no voltage at the output end of the first optocoupler. If not, the first optical coupler starts to work, but no voltage is detected at the output end of the first optical coupler, and the first optical coupler is proved to be damaged.
For other examples of this embodiment, please refer to the above examples, and are not described herein.
Fig. 6 is a schematic diagram of an alternative electronic device, as shown in fig. 6, including a processor 602, a communication interface 604, a memory 606, and a communication bus 608, wherein the processor 602, the communication interface 604, and the memory 606 communicate with one another via the communication bus 608, wherein,
a memory 606 for storing a computer program;
the processor 602, when executing the computer program stored on the memory 606, performs the following steps:
and under the condition that the target equipment works through the first optical coupler and the first optical coupler is detected to work abnormally, the first optical coupler is controlled to be disconnected, and the second optical coupler is controlled to be connected, so that the target equipment works through the second optical coupler, wherein the connection state of the first optical coupler and the second optical coupler is opposite.
Alternatively, in the present embodiment, the above-described communication bus may be a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus, or an EISA (Extended Industry Standard Architecture ) bus, or the like. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, only one thick line is shown in fig. 6, but not only one bus or one type of bus. The communication interface is used for communication between the electronic device and other devices.
The memory may include RAM or may include non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
As an example, the memory 606 may include, but is not limited to, the first control module 502 in the standby optocoupler switch. In addition, other module units in the standby optocoupler switching device may be further included, but are not limited to, and are not described in detail in this example.
The processor may be a general purpose processor and may include, but is not limited to: CPU (Central Processing Unit ), NP (Network Processor, network processor), etc.; but also DSP (Digital Signal Processing, digital signal processor), ASIC (Application Specific Integrated Circuit ), FPGA (Field-Programmable Gate Array, field programmable gate array) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments, and this embodiment is not described herein.
It will be understood by those skilled in the art that the structure shown in fig. 6 is only schematic, and the device implementing the standby optocoupler switching method may be a terminal device, and the terminal device may be a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a palmtop computer, a mobile internet device (Mobile Internet Devices, MID), a PAD, etc. Fig. 6 does not limit the structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 6, or have a different configuration than shown in FIG. 6.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing a terminal device to execute in association with hardware, the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, ROM, RAM, magnetic or optical disk, etc.
According to yet another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program when executed by a processor performs the steps in the above-described standby optocoupler switching method.
Alternatively, in this embodiment, it will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by a program for instructing a terminal device to execute the steps, where the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
From the above description of embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus a general purpose hardware platform, or may be implemented by hardware. Based on such understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the related art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the method described in the respective embodiments or some parts of the embodiments.
It is to be understood that the terminology used herein is for the purpose of describing particular example embodiments only, and is not intended to be limiting. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. The terms "comprises," "comprising," "includes," "including," and "having" are inclusive and therefore specify the presence of stated features, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, elements, components, and/or groups thereof. The method steps, processes, and operations described herein are not to be construed as necessarily requiring their performance in the particular order described or illustrated, unless an order of performance is explicitly stated. It should also be appreciated that additional or alternative steps may be used.
The foregoing is only a specific embodiment of the application to enable those skilled in the art to understand or practice the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A standby optocoupler switching circuit, comprising:
the relay is characterized in that a first input end of the relay is connected with an anode of a power supply, a second input end of the relay is connected with a first output end of a DSP chip, a third input end of the relay is connected with a forward end of an input voltage, a first output end of the relay is connected with a first input end of a first optocoupler, a second output end of the relay is connected with a first input end of a second optocoupler, the relay is used for being connected with the first output end of the relay, the first output end of the relay is disconnected when the second output end is disconnected, and the second output end of the relay is connected under the condition that the first optocoupler works abnormally, wherein the connection state of the first output end of the relay and the second output end of the relay is opposite;
the second input end of the first optical coupler is connected with the positive electrode of the power supply, the third input end of the first optical coupler is connected with the second output end of the DSP chip, and the output end of the first optical coupler is respectively connected with the reverse end of the input voltage, the negative electrode of the power supply and a target device, wherein the target device is a device needing to be isolated by the first optical coupler or the second optical coupler;
the second optocoupler is characterized in that a second input end of the second optocoupler is connected with the positive electrode of the power supply, a third input end of the second optocoupler is connected with a second output end of the DSP chip, and an output end of the first optocoupler is connected with the reverse end of the input voltage, the negative electrode of the power supply and the target device respectively.
2. The circuit of claim 1, wherein the relay is further configured to turn on the first output of the relay and turn off the second output of the relay if the second optocoupler is detected to be malfunctioning while the first output of the relay is turned off.
3. The circuit of claim 1, wherein the relay is further configured to determine that the first optocoupler is abnormal when the first output terminal of the relay is on, the second output terminal of the relay is off, the voltage at the output terminal of the first optocoupler is detected, and the voltage at the third input terminal of the first optocoupler is at a high level.
4. The circuit of claim 1, wherein the relay is further configured to determine that the first optocoupler is abnormal when no voltage is present at the output of the first optocoupler while the first output of the relay is on and the second output of the relay is off and the voltage at the third input of the first optocoupler is at a low level.
5. The circuit of claim 1, wherein the circuit further comprises:
the DSP chip is used for switching on the first output end of the relay, and outputting a high-level signal by the first output end of the DSP chip when detecting that the first optocoupler works abnormally while switching off the second output end of the relay, so that the first output end of the relay is switched off and the second output end of the relay is switched on.
6. The standby optocoupler switching method is characterized by comprising the following steps of:
and under the condition that the target equipment works through the first optical coupler and the first optical coupler is detected to work abnormally, the first optical coupler is controlled to be disconnected, and the second optical coupler is controlled to be connected so that the target equipment works through the second optical coupler, wherein the connection state of the first optical coupler and the second optical coupler is opposite.
7. The method of claim 6, wherein the method further comprises:
and under the condition that the target equipment works through the second optical coupler and the second optical coupler is detected to work abnormally, the second optical coupler is controlled to be disconnected, and the first optical coupler is connected so that the target equipment works through the first optical coupler.
8. The method of claim 6, wherein detecting the first optocoupler operation anomaly comprises:
determining that the first optocoupler works abnormally under the condition that the voltage exists at the output end of the first optocoupler and the voltage at the connecting end of the DSP chip and the first optocoupler is high, wherein the power supply is the power supply of the target equipment, and the DSP chip is the chip in the target equipment; or (b)
And determining that the first optocoupler works abnormally under the condition that no voltage exists at the output end of the first optocoupler and the voltage of the connecting end of the DSP chip and the first optocoupler is low level.
9. A computer-readable storage medium storing a computer program, characterized in that the computer program when run by a processor performs the method of any one of claims 6 to 8.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 6 to 8 by means of the computer program.
CN202310702717.XA 2023-06-13 2023-06-13 Standby optocoupler switching circuit, method and device, storage medium and electronic equipment Pending CN116707508A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310702717.XA CN116707508A (en) 2023-06-13 2023-06-13 Standby optocoupler switching circuit, method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310702717.XA CN116707508A (en) 2023-06-13 2023-06-13 Standby optocoupler switching circuit, method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN116707508A true CN116707508A (en) 2023-09-05

Family

ID=87823460

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310702717.XA Pending CN116707508A (en) 2023-06-13 2023-06-13 Standby optocoupler switching circuit, method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116707508A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117220390A (en) * 2023-11-09 2023-12-12 深圳市普兰斯通科技有限公司 Charging circuit of charger and charger

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117220390A (en) * 2023-11-09 2023-12-12 深圳市普兰斯通科技有限公司 Charging circuit of charger and charger
CN117220390B (en) * 2023-11-09 2024-01-26 深圳市普兰斯通科技有限公司 Charging circuit of charger and charger

Similar Documents

Publication Publication Date Title
CN102890235B (en) A kind of fault detection method and device
US10503126B2 (en) Access control method for parallel direct current power supplies and device thereof
US9847635B2 (en) Power supply module and soft start method
US7709975B2 (en) Redundant power supply system
US20180342873A1 (en) Control apparatus and combiner box
CN111756232B (en) Power unit
CN116707508A (en) Standby optocoupler switching circuit, method and device, storage medium and electronic equipment
US20180097442A1 (en) Power supply device and control method thereof
CN108595299B (en) Test system of terminal equipment
CN103490374A (en) Mass production test device and short-circuit current foldback circuit thereof
CN103926853A (en) Programmable resistance output device and method
CN111263892B (en) Method, device and equipment for detecting functions of adapter and storage medium
CN112491030A (en) Touch screen power supply positive and negative connection compatible circuit, touch screen and electrical equipment
CN113156244B (en) Method and device for testing charging device, electronic device and storage medium
CN112731825B (en) Detection circuit, device and detection method thereof
CN114825594A (en) Control method and control device of uninterruptible power supply
CN107181290B (en) Battery management system
CN113434201A (en) Remote starting method, related circuit, related module and equipment
CN112858894A (en) Detection method and detection device for working state of contactor, storage medium and vehicle
CN113328621B (en) BOOST circuit and switching power supply
CN113036745B (en) Electronic device for power protection of connection port and method thereof
CN204304543U (en) A kind of power protecting circuit and terminal
CN111474977B (en) Power self-adaption device and method of high-voltage direct-current breaker energy supply system
CN219107047U (en) Power supply system protection circuit and power supply system
CN110808588B (en) Current conversion chain with voltage sag compensation capability and detection control method and device thereof

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