A circuit configuration method and apparatus, circuit and electronic device

By configuring input, output, execution, and detection circuits in the control module, the series-parallel switching of input and output circuits is realized, and abnormalities in the load circuit are automatically detected. This solves the problems of high line cost and complex fault detection, and simplifies wiring and automates detection.

CN117826686BActive Publication Date: 2026-11-24LENOVO (BEIJING) LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311864622.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-29
Publication Date
2026-11-24
Estimated Expiration
2043-12-29

AI Technical Summary

Technical Problem

In industrial process control, separate wiring for digital input and output transmission channels leads to high wiring costs and complex wiring, and fault detection of digital output circuits requires manual intervention, resulting in low real-time performance and automation.

Method used

The control module is configured with input circuits, output circuits, execution circuits, and detection circuits. It is connected to the load circuit through the execution circuit to realize the series-parallel switching of the input and output circuits. It uses relays and samplers to automatically detect abnormalities in the load circuit.

Benefits of technology

It simplifies wiring, reduces line costs, and enables automatic fault detection of load circuits, eliminating safety hazards caused by line faults.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117826686B_ABST
    Figure CN117826686B_ABST
Patent Text Reader

Abstract

The application discloses a circuit configuration method, a circuit and an electronic device. The circuit configuration method comprises the following steps: configuring an input circuit, an output circuit, an execution circuit and a line detection circuit in a control module; if the execution circuit is connected to the output circuit, the output circuit is connected in series with the input circuit and in parallel with a load circuit, and the control module works in a first mode; if the execution circuit is connected to the line detection circuit, the line detection circuit is connected in series with the input circuit and in parallel with the load circuit, and the control module works in a second mode; and the second mode is used for detecting whether the load circuit is abnormal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of circuit safety technology, and in particular to a circuit configuration method, apparatus, circuit, and electronic device. Background Technology

[0002] Currently, in Industrial Process Control (IPC), edge controllers largely integrate the functions of computers and programmable logic controllers. However, during communication, the transmission channels for digital inputs and outputs are wired separately. That is, the digital input transmission channel transmits data through one port, and the digital output transmission channel transmits data through another port. This results in high wiring costs and complex wiring design and operation. Furthermore, the circuits corresponding to the digital outputs require manual fault detection after a failure occurs, as automatic fault detection is not possible, leading to low real-time performance and automation levels. Summary of the Invention

[0003] The purpose of this application is to provide a circuit configuration method, circuit, and electronic device.

[0004] In a first aspect, embodiments of this application provide a circuit configuration method, the method comprising:

[0005] The control module is configured with input circuits, output circuits, execution circuits, and line detection circuits;

[0006] If the control execution circuit is connected to the output circuit, then the output circuit is connected in series with the input circuit and in parallel with the load circuit, and the control module operates in the first mode;

[0007] If the control execution circuit is connected to the line detection circuit, the line detection circuit is connected in series with the input circuit and in parallel with the load circuit, and the control module operates in a second mode; the second mode is used to detect whether there is an abnormality in the load circuit.

[0008] In one possible implementation, the method includes:

[0009] Configure a controller in the control module, and configure the execution circuit to include relays;

[0010] If the controller sends a first control signal to the execution circuit, the moving contact of the relay is connected to the first stationary contact, and the execution circuit is connected to the output circuit;

[0011] If the controller sends a second control signal to the execution circuit, the moving contact of the relay is connected to the second stationary contact, and the execution circuit is connected to the detection circuit.

[0012] In one possible implementation, the method includes:

[0013] A sampler is configured in the control module, and a first power supply, a switch, and a capacitor are configured in the detection circuit;

[0014] If the switch receives the first pulse signal, the first power supply starts to supply power, the capacitor charges, the sampler collects the first sampling signal, and transmits the first sampling signal to the controller;

[0015] The controller is configured to analyze the first sampled signal to determine whether the load circuit is short-circuited.

[0016] In one possible implementation, the method includes:

[0017] If the switch receives the second pulse signal, the first power supply stops supplying power, the capacitor discharges, the capacitor supplies power to the detection circuit, the sampler acquires the second sampling signal, and transmits the second sampling signal to the controller;

[0018] The controller is configured to analyze the second sampled signal to determine whether the load circuit is open.

[0019] In one possible implementation, the method includes:

[0020] A second power supply is configured in the output circuit;

[0021] When the second power supply is configured to connect to the output circuit of the execution circuit, it begins to supply power.

[0022] In one possible implementation, the method includes:

[0023] Configure a sampler in the control module.

[0024] When the output circuit and the input circuit are connected in series, the execution circuit is configured to transmit the output signal to the load circuit so that the load circuit responds to the output signal.

[0025] The sampler is configured to acquire a third sampling signal and transmit the third sampling signal to the controller. The third sampling signal is generated based on the feedback signal returned by the load circuit.

[0026] Secondly, embodiments of this application also provide a circuit configuration apparatus, the apparatus comprising:

[0027] The configuration module is configured to include input circuits, output circuits, execution circuits, and detection circuits within the control module.

[0028] A control module is configured to control the execution circuit to connect to the output circuit, so that the control module operates in a first mode; when the execution circuit is connected to the output circuit, the output circuit is connected in series with the input circuit and in parallel with the load circuit; or

[0029] The execution circuit is connected to the detection circuit to enable the control module to operate in a second mode. When the execution circuit is connected to the detection circuit, the detection circuit is connected in series with the input circuit and in parallel with the load circuit. The second mode is used to detect whether there is an abnormality in the load circuit.

[0030] Thirdly, embodiments of this application also provide a circuit, including a controller, an input circuit, an output circuit, an execution circuit, and a detection circuit;

[0031] The controller sends a first control signal or a second control signal to the execution circuit;

[0032] The execution circuit responds to the first control signal to connect to the output circuit, such that the output circuit is connected in series with the input circuit and in parallel with the load circuit, and the circuit operates in a first mode;

[0033] The execution circuit responds to the second control signal to connect the line detection circuit, such that the line detection circuit is connected in series with the input circuit and in parallel with the load circuit, and the circuit operates in a second mode; the second mode is used to detect whether there is an abnormality in the load circuit.

[0034] Fourthly, embodiments of this application also provide an electronic device, including the circuit described above;

[0035] The circuit includes a controller, an input circuit, an output circuit, an execution circuit, and a detection circuit;

[0036] The controller sends a first control signal or a second control signal to the execution circuit;

[0037] The execution circuit responds to the first control signal to connect to the output circuit, such that the output circuit is connected in series with the input circuit and in parallel with the load circuit, and the circuit operates in a first mode;

[0038] The execution circuit responds to the second control signal to connect the line detection circuit, such that the line detection circuit is connected in series with the input circuit and in parallel with the load circuit, and the circuit operates in a second mode; the second mode is used to detect whether there is an abnormality in the load circuit.

[0039] Fifthly, embodiments of this application also provide an electronic device, including: a processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the memory via a bus, and when the machine-readable instructions are executed by the processor, the steps of the circuit configuration method as described in any of the above are performed.

[0040] This application embodiment achieves the purpose of simplifying wiring and reducing line costs by configuring an input circuit, an output circuit, an execution circuit, and a line detection circuit in the control module, and configuring the input circuit and the output circuit to be connected to the load circuit through the execution circuit. At the same time, when the execution circuit is configured to be connected to the line detection circuit, it can automatically detect whether there is an abnormality in the load circuit and eliminate the safety hazards caused by line faults. Attached Figure Description

[0041] To more clearly illustrate the technical solutions in this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0042] Figure 1 A flowchart of a circuit configuration method provided in this application is shown;

[0043] Figure 2 A schematic diagram of a circuit provided in this application is shown;

[0044] Figure 3 A flowchart illustrating another circuit configuration method provided in this application is shown;

[0045] Figure 4 This paper shows a circuit diagram of the control module provided in this application operating in the second mode;

[0046] Figure 5 A flowchart illustrating another circuit configuration method provided in this application is shown;

[0047] Figure 6 This paper shows a circuit diagram of the control module provided in this application operating in the first mode;

[0048] Figure 7 A detection flowchart based on the circuit in the embodiments of this application is shown.

[0049] Figure 8 A schematic diagram of the structure of a circuit configuration device provided in this application is shown;

[0050] Figure 9 A schematic diagram of the structure of an electronic device provided in this application is shown.

[0051] Figure label:

[0052] 1-Control module; 2-Load module; 3-Sampler; 11-Input circuit; 12-Output circuit; 13-Execution circuit; 14-Line detection circuit; 15-Controller; 141-First power supply; 142-Switch; 143-Capacitor; 121-Second power supply. Detailed Implementation

[0053] Various embodiments and features of this application are described herein with reference to the accompanying drawings.

[0054] It should be understood that various modifications can be made to the embodiments described herein. Therefore, the above description should not be considered as limiting, but merely as an example of embodiments. Other modifications within the scope and spirit of this application will be apparent to those skilled in the art.

[0055] The accompanying drawings, which are included in and form part of this specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.

[0056] These and other features of this application will become apparent from the following description of preferred forms of embodiments given as non-limiting examples, with reference to the accompanying drawings.

[0057] It should also be understood that although this application has been described with reference to some specific examples, those skilled in the art can certainly implement many other equivalent forms of this application, which have the features described in the claims and are therefore all within the scope of protection defined herein.

[0058] The above and other aspects, features and advantages of this application will become more apparent when taken in conjunction with the accompanying drawings and in view of the following detailed description.

[0059] Specific embodiments of this application are described thereafter with reference to the accompanying drawings; however, it should be understood that the claimed embodiments are merely examples of this application, which can be implemented in various ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that could obscure the application. Therefore, the specific structural and functional details claimed herein are not intended to be limiting, but merely serve as the basis and representative basis for the claims to teach those skilled in the art to use this application in a variety of substantially any suitable detailed structures.

[0060] This specification may use the phrases “in one embodiment,” “in another embodiment,” “in yet another embodiment,” or “in other embodiments,” all of which may refer to one or more of the same or different embodiments according to this application.

[0061] To facilitate understanding of this application, a circuit configuration method provided in this application will be described in detail first. The control module or circuit configured by this circuit configuration method can not only reduce the cost of the circuit, but also automatically detect whether there are abnormalities in the load circuit and eliminate safety hazards caused by circuit faults.

[0062] Figure 1 A flowchart of a circuit configuration method provided in an embodiment of this application is shown, wherein the steps include S101-S103.

[0063] S101, the control module is configured with input circuit, output circuit, execution circuit and detection circuit.

[0064] Reference Figure 2 The circuit diagram shown includes a control module 1 and a load module 2. Further, the control module 1 is configured with an input circuit 11, an output circuit 12, an execution circuit 13, and a line detection circuit 14. These components can be configured on an I / O expansion board. The input circuit 11 provides switching feedback for the load module 2, the output circuit 12 provides the voltage and circuitry required for the load module 2 to start, the execution circuit 13 executes the control signals sent by the controller 15, and the line detection circuit 14 determines whether there is a short circuit or open circuit.

[0065] Depend on Figure 2 As can be seen, both the input circuit 11 and the output circuit 12 are connected to the load circuit of the load module 2 through the execution circuit 13. That is, the input circuit 11 and the output circuit 12 are integrated, and the field wiring is changed from four-wire system to two-wire system, which not only simplifies the wiring, but also reduces the line cost.

[0066] S102, if the control execution circuit is connected to the output circuit, the output circuit is connected in series with the input circuit and in parallel with the load circuit, and the control module operates in the first mode.

[0067] S103, if the control execution circuit is connected to the line detection circuit, the line detection circuit is connected in series with the input circuit and in parallel with the load circuit, and the control module operates in the second mode; the second mode is used to detect whether there is an abnormality in the load circuit.

[0068] Optionally, the operating modes of the control module 1 include a first mode and a second mode. The first mode is used to start the load terminal normally, so that the load terminal is loaded. The second mode is used to detect whether there is an abnormality in the load circuit. By using the control module 1 operating in the second mode, it is possible to actively detect whether there is an abnormality in the load circuit and eliminate the safety hazards caused by line faults.

[0069] As one example, Figure 3 Another circuit configuration method is shown, through Figure 3 The flowchart shown is used to select the operating mode of the control module, wherein the steps include S301-S303.

[0070] S301, configure the controller in the control module, and configure the execution circuit including relays.

[0071] S302, if the controller sends a first control signal to the execution circuit, the moving contact of the relay is connected to the first stationary contact, and the execution circuit is connected to the output circuit.

[0072] S303, if the controller sends a second control signal to the execution circuit, the moving contact of the relay is connected to the second stationary contact, and the execution circuit is connected to the detection circuit.

[0073] Reference Figure 2 As can be seen, controller 15 is configured in control module 1. Therefore, when configuring the execution circuit 13, controller 15 is also configured in control module 1, and this controller 15 is configured with a field-programmable gate array (FPGA). Meanwhile, the configuration execution circuit 13 includes a relay, and this relay includes one moving contact and two stationary contacts. It should be noted that... Figure 2 The relay is not shown in the diagram.

[0074] Based on the above configuration, a further configuration is made whereby if the controller 15 sends a first control signal to the execution circuit 13, the moving contact of the relay connects to the first stationary contact, and the execution circuit 13 connects to the output circuit 12, thus enabling the control module 1 to operate in the first mode. Correspondingly, if the controller 15 sends a second control signal to the execution circuit 13, the moving contact of the relay connects to the second stationary contact, and the execution circuit 13 connects to the detection circuit 14, at which point the control module 1 operates in the second mode.

[0075] As one example, the first control signal and the second control signal can be configured as high-level signals and low-level signals, respectively, and this application embodiment does not specifically limit this.

[0076] Figure 4 A circuit diagram of the control module operating in the second mode is shown. Figure 4 It can be seen that the embodiments of this application also performed the following: Figure 5 The method flowchart shown is as follows, Figure 5 Another circuit configuration method is shown, which may include steps S501-S505.

[0077] S501 includes a sampler in the control module and a first power supply, a switch, and a capacitor in the line detection circuit.

[0078] S502, if the switch receives the first pulse signal, the first power supply starts to supply power, the capacitor charges, the sampler collects the first sampling signal, and transmits the first sampling signal to the controller.

[0079] S503 configures the controller to analyze the first sampled signal and then obtain the result of whether the load circuit is short-circuited.

[0080] S504 If the switch receives the second pulse signal, the first power supply stops supplying power, the capacitor discharges, the capacitor supplies power to the detection circuit, the sampler acquires the second sampling signal, and transmits the second sampling signal to the controller.

[0081] S505 configures the controller to analyze the second sampled signal to determine whether the load circuit is open.

[0082] Reference Figure 4 In the circuit configuration method of this application embodiment, a sampler 3 is configured in the control module 1. The sampler 3 can be set as an analog-to-digital converter (ADC) to perform ADC sampling through the sampler 3.

[0083] Continue to refer to Figure 4 In this embodiment, the detection circuit 14 is configured with a first power supply 141, a switch 142, and a capacitor 143. The first power supply 141 outputs a 5V DC voltage. The switch 142 is configured as a metal-oxide-semiconductor field-effect transistor (MOSFET). One end of the first power supply 141 is connected to the first end of the switch 142. The second end of the switch 142 is connected to one end of the capacitor 143 and one end of the sampler 3. The other end of the capacitor 143 is connected to the other end of the first power supply 141. The other end of the sampler 3 and the third end of the switch 142 are connected to the controller 15. Figure 4 R1 in the circuit is a current-limiting resistor, and its resistance value can be set according to actual needs. A solenoid valve is configured in the load circuit.

[0084] Furthermore, in the circuit configuration method of this application embodiment, the controller 15 is also configured to control the switch 142 to periodically turn on and off by transmitting pulse signals to the switch 142. Optionally, if the switch 142 receives a first pulse signal, the switch 142 turns on according to the first pulse signal. At this time, the first power supply 141 starts to supply power, and then the capacitor 143 charges. The sampler 3 collects the first sampling signal and transmits the first sampling signal to the controller 15.

[0085] Accordingly, in this embodiment, a controller 15 is also configured to analyze the first sampling signal to obtain the result of whether the load circuit is short-circuited.

[0086] In another example, if the switch 142 receives the second pulse signal, the switch 142 disconnects according to the second pulse signal. At this time, the switch 142 disconnects according to the first pulse signal, the first power supply 141 stops supplying power, the capacitor 143 discharges, and then the capacitor 143 supplies power to the detection circuit. The sampler 3 collects the second sampling signal and transmits the second sampling signal to the controller 15.

[0087] Similarly, in this embodiment, the controller 15 is also configured to analyze the second sampling signal to obtain the result of whether the load circuit is open.

[0088] By configuring the control module 1 and circuits based on the above circuit configuration method, the wiring can be simplified and the line cost can be reduced. At the same time, when the execution circuit 13 is connected to the detection circuit 14, the control module 1 can automatically detect whether there is an abnormality in the load circuit and eliminate the safety hazards caused by line faults.

[0089] Figure 6 A circuit diagram of the control module 1 operating in a first mode is shown. In the circuit configuration method of this application embodiment, when the control module 1 operates in the first mode, a second power supply 121 is configured in the output circuit 12, which outputs a DC voltage of 24V. Simultaneously, the second power supply 121 is configured to supply power when the execution circuit 13 is connected to the output circuit 12, in order to start / stop the load connected to the load terminal.

[0090] In one embodiment, when executing the circuit configuration method of this application, one end of the sampler 3 included in the configuration control module 1 is connected to one end of the second power supply 121. Further, when the output circuit 12 and the input circuit 11 are connected in series, the configuration execution circuit 13 transmits the output signal to the load circuit so that the load circuit responds to the output signal. Correspondingly, the configuration sampler 3 acquires a third sampling signal and transmits the third sampling signal to the controller 15.

[0091] Specifically, the load circuit includes a terminating resistor R2 and a feedback switch. The terminating resistor and the feedback switch are connected in parallel with the solenoid valve. Furthermore, when the second power supply 121 provides voltage to the load circuit through the output circuit 12, the solenoid valve is energized, that is, the coil is energized. At this time, the solenoid valve closes, and at the same time controls the feedback switch to close, so that the terminating resistor is energized.

[0092] In this embodiment of the application, the third sampling signal collected by the sampler 3 is configured to be the current in the input circuit 11. After the terminal resistor is energized, the third sampling signal changes, that is, the current in the input circuit 11 increases, which indicates that the load circuit is operating normally.

[0093] This application embodiment achieves the purpose of simplifying wiring and reducing line costs by configuring an input circuit, an output circuit, an execution circuit, and a line detection circuit in the control module, and configuring the input circuit and the output circuit to be connected to the load circuit through the execution circuit. At the same time, when the execution circuit is configured to be connected to the line detection circuit, it can automatically detect whether there is an abnormality in the load circuit and eliminate the safety hazards caused by line faults.

[0094] Based on the same inventive concept, the second aspect of this application also provides a circuit. Since the principle of the circuit in this application to solve the problem is similar to the circuit configuration method described above, the implementation of the circuit can be referred to the implementation of the method, and the repeated parts will not be described again.

[0095] See Figure 2 The circuit diagram shown includes:

[0096] Controller, input circuit, output circuit, execution circuit, and detection circuit;

[0097] The controller sends a first control signal or a second control signal to the execution circuit;

[0098] The execution circuit responds to the first control signal to connect to the output circuit, such that the output circuit is connected in series with the input circuit and in parallel with the load circuit, and the circuit operates in a first mode;

[0099] The execution circuit responds to the second control signal to connect the line detection circuit, such that the line detection circuit is connected in series with the input circuit and in parallel with the load circuit, and the circuit operates in a second mode; the second mode is used to detect whether there is an abnormality in the load circuit.

[0100] See Figure 4 or Figure 6 The circuit diagram shown also includes a sampler, and the detection circuit includes a first power supply, a switch, and a capacitor.

[0101] When the circuit operates in the first mode, the controller sends a first pulse signal to the switch.

[0102] In response to the first pulse signal, the switch is turned on, causing the first power supply to start supplying power, the capacitor to charge, the sampler to collect the first sampling signal, and transmit the first sampling signal to the controller;

[0103] The controller analyzes the first sampled signal to determine whether the load circuit is short-circuited.

[0104] The circuit also includes:

[0105] The controller sends a second pulse signal to the switch;

[0106] In response to the second pulse signal, the switch is disconnected, causing the first power supply to stop supplying power, the capacitor discharges, the capacitor supplies power to the detection circuit, the sampler acquires the second sampling signal, and transmits the second sampling signal to the controller;

[0107] The controller analyzes the second sampled signal to determine whether the load circuit is open.

[0108] Figure 7 A detection flowchart based on the above circuit is shown. The detection process will then be explained in detail below, using the circuit as an example:

[0109] In one embodiment, the load module may include multiple load circuits, each with a different load. Based on this, different load circuits are configured and detected separately. After the circuit initialization is complete, the detection channel corresponding to the load circuit to be detected is determined, and the detection channel is activated to detect the corresponding load circuit. It should be noted that during initial power-on, each load circuit can be detected sequentially according to a pre-set detection order.

[0110] Reference Figure 7 The illustrated detection flowchart allows for the following: Optionally, controlling the conduction of the switch in the circuit corresponding to the detection channel can be achieved by sending a first pulse signal to the switch, thereby enabling the first power supply to power the circuit. Simultaneously, the capacitor charges, and the sampler acquires the first sampling signal. Optionally, the sampler can perform sampling after a certain delay. For example, the delay device can be triggered simultaneously with the first power supply to the circuit, and the sampling signal can be acquired by the sampler after the delay device has completed its delay. This avoids the problem of low sampling accuracy caused by unstable current in the circuit, and thus enables accurate determination of whether there is an abnormality in the load circuit.

[0111] The circuit is powered by a first power source, and after the sampler acquires the first sample signal, it transmits the first sample signal to the controller. The controller analyzes the first sample signal to determine whether the load circuit is in a short-circuit state. Specifically, the controller compares the first value represented by the first sample signal with a first threshold. If the first value is less than or equal to the first threshold, it determines that the load circuit is in a short-circuit state. At this time, an alarm indication is generated and sent to the processor so that the processor can record and process it.

[0112] Specifically, if the first value is greater than the first threshold and less than the second threshold, it is determined that the load circuit is not abnormal. At this time, if the previous judgment result indicates that the load circuit is abnormal, an alarm cancellation instruction can be generated and sent to the processor. If the previous judgment result indicates that the load circuit is not abnormal, no signal needs to be generated.

[0113] In another example, controlling the on / off switch in the circuit corresponding to the detection channel can be achieved by sending a second pulse signal to the switch, thereby stopping the first power supply from supplying power to the circuit. At this time, the capacitor discharges, meaning the capacitor supplies power to the circuit, and the sampler acquires the second sampling signal. Similarly, after acquiring the second sampling signal, the sampler transmits it to the controller.

[0114] The controller analyzes the second sampled signal to determine whether the load circuit is in an open-circuit state. Specifically, the controller compares the second value represented by the second sampled signal with a second threshold. If the second value is greater than or equal to the second threshold, the load circuit is determined to be in an open-circuit state. At this time, a second pulse signal controls the switch to remain open, meaning the first power supply continues to stop supplying power. After a preset time, the sampler collects the second sampled signal again and transmits the re-collected second sampled signal to the controller. The controller analyzes the received re-collected second sampled signal, comparing the third value represented by the re-received second sampled signal with a third threshold. If the third value is greater than or equal to the third threshold, the load circuit is determined to be abnormal, i.e., open-circuited; if the third value is less than the third threshold, the load circuit is determined to be normal.

[0115] The first and second thresholds are both determined based on the load in the load circuit. The first threshold is determined based on the minimum resistance value that the load circuit can achieve during normal operation, and the second threshold is determined based on the maximum resistance value that the load circuit can achieve during normal operation. The first threshold is less than the second threshold. The first value, the first threshold, and the second threshold can be voltage values, or measurements corresponding to the sampler, as long as the units of measurement of the first value, the first threshold, and the second threshold are consistent. The third threshold is determined based on the load in the load circuit and the capacitor's stored capacity / discharge rate per unit time. The third threshold can be the remaining capacity of the capacitor after a preset discharge duration.

[0116] This application provides an electronic device including the circuit described above;

[0117] The circuit includes a controller, an input circuit, an output circuit, an execution circuit, and a detection circuit;

[0118] The controller sends a first control signal or a second control signal to the execution circuit;

[0119] The execution circuit responds to the first control signal to connect to the output circuit, such that the output circuit is connected in series with the input circuit and in parallel with the load circuit, and the circuit operates in a first mode;

[0120] The execution circuit responds to the second control signal to connect the line detection circuit, such that the line detection circuit is connected in series with the input circuit and in parallel with the load circuit, and the circuit operates in a second mode; the second mode is used to detect whether there is an abnormality in the load circuit.

[0121] This application provides a circuit configuration device corresponding to a circuit configuration method. Since the principle of the circuit configuration device in this application is similar to that of the circuit configuration method described above, the implementation of the circuit configuration device can refer to the implementation of the method, and repeated details will not be repeated.

[0122] Figure 8 A schematic diagram of a circuit configuration device provided in an embodiment of this application is shown, specifically including:

[0123] Configuration module 801 is configured to configure input circuits, output circuits, execution circuits, and line detection circuits in the control module;

[0124] Control module 802 is configured to control the execution circuit to connect to the output circuit, so that the control module operates in a first mode; when the execution circuit is connected to the output circuit, the output circuit is connected in series with the input circuit and in parallel with the load circuit; or

[0125] The execution circuit is connected to the line detection circuit to enable the control module to operate in a second mode. When the execution circuit is connected to the line detection circuit, the line detection circuit is connected in series with the input circuit and in parallel with the load circuit. The second mode is used to detect whether there is an abnormality in the load circuit.

[0126] In yet another embodiment,

[0127] The configuration module 801 is further configured to configure a controller in the control module, and to configure the execution circuit to include a relay;

[0128] Control module 802 is further configured to control the controller to send a first control signal to the execution circuit, so that the moving contact of the relay is connected to the first stationary contact, and the execution circuit is connected to the output circuit; or

[0129] The controller sends a second control signal to the execution circuit to connect the moving contact of the relay with the second stationary contact, and the execution circuit is connected to the detection circuit.

[0130] In yet another embodiment,

[0131] The configuration module 801 is also configured to configure a sampler in the control module and a first power supply, a switch, and a capacitor in the detection circuit.

[0132] The control module 802 is further configured to control the first power supply to start supplying power, the capacitor to charge, and the sampler to collect a first sampling signal and transmit the first sampling signal to the controller when the switch receives a first pulse signal;

[0133] The controller is controlled to analyze the first sampled signal to obtain the result of whether the load circuit is short-circuited.

[0134] In yet another embodiment,

[0135] The control module 802 is further configured to, when the switch receives the second pulse signal, control the first power supply to stop supplying power, discharge the capacitor, the capacitor to supply power to the detection circuit, and control the sampler to collect the second sampling signal and transmit the second sampling signal to the controller;

[0136] The controller is controlled to analyze the second sampled signal to determine whether the load circuit is open.

[0137] In yet another embodiment,

[0138] The configuration module 801 is also configured to configure a second power supply in the output circuit;

[0139] The control module 802 is also configured to control the second power supply to start supplying power when the execution circuit is connected to the output circuit.

[0140] In yet another embodiment,

[0141] Configuration module 801 is also configured to configure a sampler in the control module.

[0142] The control module 802 is further configured to control the execution circuit to transmit the output signal to the load circuit when the output circuit and the input circuit are connected in series, so that the load circuit responds to the output signal;

[0143] The sampler is controlled to acquire a third sampling signal and transmit the third sampling signal to the controller. The third sampling signal is generated based on the feedback signal returned by the load circuit.

[0144] This application embodiment achieves the purpose of simplifying wiring and reducing line costs by configuring an input circuit, an output circuit, an execution circuit, and a line detection circuit in the control module, and configuring the input circuit and the output circuit to be connected to the load circuit through the execution circuit. At the same time, when the execution circuit is configured to be connected to the line detection circuit, it can automatically detect whether there is an abnormality in the load circuit and eliminate the safety hazards caused by line faults.

[0145] This application provides an electronic device, the structural schematic diagram of which is shown below. Figure 9 As shown, it includes at least a memory 901 and a processor 902. The memory 901 stores a computer program, and the processor 902 implements the method provided in any embodiment of this application when executing the computer program in the memory 901. Exemplarily, the steps of the electronic device computer program are as follows: S11-S13:

[0146] S11, the control module is configured with input circuit, output circuit, execution circuit and detection circuit;

[0147] S12, if the control execution circuit is connected to the output circuit, then the output circuit is connected in series with the input circuit and in parallel with the load circuit, and the control module operates in the first mode;

[0148] S13, if the control execution circuit is connected to the line detection circuit, the line detection circuit is connected in series with the input circuit and in parallel with the load circuit, and the control module operates in the second mode; the second mode is used to detect whether there is an abnormality in the load circuit.

[0149] This application embodiment achieves the purpose of simplifying wiring and reducing line costs by configuring an input circuit, an output circuit, an execution circuit, and a line detection circuit in the control module, and configuring the input circuit and the output circuit to be connected to the load circuit through the execution circuit. At the same time, when the execution circuit is configured to be connected to the line detection circuit, it can automatically detect whether there is an abnormality in the load circuit and eliminate the safety hazards caused by line faults.

[0150] This application provides a storage medium, which is a computer-readable medium, storing a computer program. When executed by a processor, the computer program implements the method provided in any embodiment of this application, including the following steps S21-S23:

[0151] S21, the control module is configured with input circuit, output circuit, execution circuit and detection circuit;

[0152] S22, if the control execution circuit is connected to the output circuit, then the output circuit is connected in series with the input circuit and in parallel with the load circuit, and the control module operates in the first mode;

[0153] S23, if the control execution circuit is connected to the line detection circuit, the line detection circuit is connected in series with the input circuit and in parallel with the load circuit, and the control module operates in the second mode; the second mode is used to detect whether there is an abnormality in the load circuit.

[0154] This application embodiment achieves the purpose of simplifying wiring and reducing line costs by configuring an input circuit, an output circuit, an execution circuit, and a line detection circuit in the control module, and configuring the input circuit and the output circuit to be connected to the load circuit through the execution circuit. At the same time, when the execution circuit is configured to be connected to the line detection circuit, it can automatically detect whether there is an abnormality in the load circuit and eliminate the safety hazards caused by line faults.

[0155] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk. Optionally, in this embodiment, the processor executes the method steps described in the above embodiments according to the program code stored in the storage medium. Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, which will not be repeated here. Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed on a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device. In some cases, the steps shown or described can be executed in a different order than those described here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any specific hardware and software combination.

[0156] Furthermore, although exemplary embodiments have been described herein, their scope includes any and all embodiments based on this application that have equivalent elements, modifications, omissions, combinations (e.g., schemes involving intersections of various embodiments), adaptations, or alterations. Elements in the claims will be interpreted broadly based on the language used in the claims and are not limited to the examples described in this specification or during the implementation of this application, which will be interpreted as non-exclusive. Therefore, this specification and examples are intended to be considered illustrative only, and the true scope and spirit are indicated by the full scope of the following claims and their equivalents.

[0157] The above description is intended to be illustrative and not restrictive. For example, the above examples (or one or more of them) can be used in combination with each other. Other embodiments can be used by those skilled in the art when reading the above description. Furthermore, in the above detailed description, various features may be grouped together to simplify the application. This should not be construed as an intention that a disclosed feature not claimed is necessary for any claim. Rather, the subject matter of the application may be less than all the features of a particular disclosed embodiment. Thus, the following claims are incorporated herein by reference as examples or embodiments, wherein each claim is an independent, separate embodiment, and these embodiments are contemplated to be combined with each other in various combinations or arrangements. The scope of this application should be determined by reference to the appended claims and the full scope of their equivalents.

[0158] The foregoing has described in detail several embodiments of this application, but this application is not limited to these specific embodiments. Those skilled in the art can make various variations and modifications based on the concept of this application, and all such variations and modifications should fall within the scope of protection claimed in this application.

Claims

1. A circuit configuration method, the method comprising: The control module is configured with an input circuit, an output circuit, an execution circuit, and a line detection circuit, and a controller and a sampler are configured in the control module. The execution circuit is configured to include a relay, and the line detection circuit is configured with a first power supply, a switch, and a capacitor. If the controller sends a first control signal to the execution circuit, the moving contact of the relay is connected to the first stationary contact, the execution circuit is connected to the output circuit, and when the execution circuit is controlled to connect to the output circuit, the output circuit is connected in series with the input circuit and in parallel with the load circuit, and the control module operates in the first mode. If the controller sends a second control signal to the execution circuit, the moving contact of the relay is connected to the second stationary contact, and the execution circuit is connected to the line detection circuit. When the execution circuit is controlled to connect to the line detection circuit, the line detection circuit is connected in series with the input circuit and in parallel with the load circuit. The control module operates in a second mode. The second mode is used to detect whether there is an abnormality in the load circuit. When the control module operates in the second mode If the switch receives the first pulse signal, the first power supply starts to supply power, the capacitor charges, the sampler collects the first sampling signal, and transmits the first sampling signal to the controller; The controller is configured to analyze the first sampled signal to obtain the result of whether the load circuit is short-circuited; If the switch receives the second pulse signal, the first power supply stops supplying power, the capacitor discharges, the capacitor supplies power to the line detection circuit, the sampler collects the second sampling signal, and transmits the second sampling signal to the controller; The controller is configured to analyze the second sampled signal to determine whether the load circuit is open.

2. The circuit configuration method according to claim 1, wherein the method comprises: A second power supply is configured in the output circuit; When the second power supply is configured to connect to the output circuit of the execution circuit, it begins to supply power.

3. The circuit configuration method according to claim 1, wherein the method comprises: Configure a sampler in the control module. When the output circuit and the input circuit are connected in series, the execution circuit is configured to transmit the output signal to the load circuit so that the load circuit responds to the output signal. The sampler is configured to acquire a third sampling signal and transmit the third sampling signal to the controller. The third sampling signal is generated based on the feedback signal returned by the load circuit.

4. A circuit configuration apparatus, the apparatus comprising: The configuration module is configured to configure an input circuit, an output circuit, an execution circuit, and a line detection circuit in the control module, and to configure a controller and a sampler in the control module. The execution circuit is configured to include a relay, and the line detection circuit is configured to include a first power supply, a switch, and a capacitor. The control module is configured to control the controller to send a first control signal to the execution circuit so that the moving contact of the relay is connected to the first stationary contact, and the execution circuit is connected to the output circuit so that the control module operates in a first mode; when the execution circuit is connected to the output circuit, the output circuit is connected in series with the input circuit and in parallel with the load circuit. or The controller sends a second control signal to the execution circuit to connect the moving contact of the relay with the second stationary contact. The execution circuit is connected to the detection circuit so that the control module operates in a second mode. When the execution circuit is connected to the line detection circuit, the line detection circuit is connected in series with the input circuit and in parallel with the load circuit. The second mode is used to detect whether there is an abnormality in the load circuit. The control module is further configured to, when the switch receives the first pulse signal, control the first power supply to start supplying power, charge the capacitor, and control the sampler to collect the first sampling signal and transmit the first sampling signal to the controller; and control the controller to analyze the first sampling signal to obtain the result of whether the load circuit is short-circuited. The control module is further configured to, when the switch receives the second pulse signal, control the first power supply to stop supplying power, discharge the capacitor, the capacitor to supply power to the line detection circuit, and control the sampler to collect the second sampling signal and transmit the second sampling signal to the controller; control the controller to analyze the second sampling signal to obtain the result of whether the load circuit is open.

5. A circuit comprising a controller, an input circuit, an output circuit, a sampler, an execution circuit, and a line detection circuit, wherein the line detection circuit comprises a first power supply, a switch, and a capacitor; The controller sends a first control signal or a second control signal to the execution circuit; The execution circuit responds to the first control signal to connect to the output circuit, such that the output circuit is connected in series with the input circuit and in parallel with the load circuit, and the circuit operates in a first mode. The execution circuit responds to the second control signal to connect the line detection circuit, such that the line detection circuit is connected in series with the input circuit and in parallel with the load circuit, and the circuit operates in a second mode; the second mode is used to detect whether there is an abnormality in the load circuit; When the circuit operates in the second mode The controller sends a first pulse signal to the switch; In response to the first pulse signal, the switch is turned on, causing the first power supply to start supplying power, the capacitor to charge, the sampler to collect the first sampling signal, and transmit the first sampling signal to the controller; The controller analyzes the first sampled signal to determine whether the load circuit is short-circuited. The controller sends a second pulse signal to the switch; In response to the second pulse signal, the switch is disconnected, causing the first power supply to stop supplying power, the capacitor discharges, the capacitor supplies power to the line detection circuit, the sampler acquires the second sampling signal, and transmits the second sampling signal to the controller; The controller analyzes the second sampled signal to determine whether the load circuit is open.

6. An electronic device, comprising a circuit; The circuit includes a controller, an input circuit, an output circuit, a sampler, an execution circuit, and a line detection circuit. The line detection circuit includes a first power supply, a switch, and a capacitor. The controller sends a first control signal or a second control signal to the execution circuit; The execution circuit responds to the first control signal to connect to the output circuit, such that the output circuit is connected in series with the input circuit and in parallel with the load circuit, and the circuit operates in a first mode. The execution circuit responds to the second control signal to connect the line detection circuit, such that the line detection circuit is connected in series with the input circuit and in parallel with the load circuit, and the circuit operates in a second mode; the second mode is used to detect whether there is an abnormality in the load circuit; When the circuit operates in the second mode The controller sends a first pulse signal to the switch; In response to the first pulse signal, the switch is turned on, causing the first power supply to start supplying power, the capacitor to charge, the sampler to collect the first sampling signal, and transmit the first sampling signal to the controller; The controller analyzes the first sampled signal to determine whether the load circuit is short-circuited. The controller sends a second pulse signal to the switch; In response to the second pulse signal, the switch is disconnected, causing the first power supply to stop supplying power, the capacitor discharges, the capacitor supplies power to the line detection circuit, the sampler acquires the second sampling signal, and transmits the second sampling signal to the controller; The controller analyzes the second sampled signal to determine whether the load circuit is open.

7. An electronic device, comprising: The electronic device includes a processor and a memory, the memory storing machine-readable instructions executable by the processor. When the electronic device is in operation, the processor communicates with the memory via a bus, and when the machine-readable instructions are executed by the processor, they perform the steps of the circuit configuration method as described in any one of claims 1 to 3.

Citation Information

Patent Citations

  • Port diplex, failure testing circuit and intelligent module with the circuit

    CN101510096A

  • Electronic unit having diagnostic function

    CN108463697A