A switch device with sleep function and control method thereof

By designing a switch device with sleep function, and using microcontroller control to achieve the switching of wake-up and sleep states, the problem that existing switch devices cannot realize complex functions in complex application scenarios is solved, and the market demand for complex control functions is met.

CN112925252BActive Publication Date: 2025-04-29LUOYANG GRASEN POWER TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110344647.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-31
Publication Date
2025-04-29
Estimated Expiration
2041-03-31

AI Technical Summary

Technical Problem

Existing switching devices cannot realize complex functions in complex application scenarios and cannot meet market demand.

Method used

A switching device with a sleep function is designed, including a first power supply circuit, a second power supply circuit, a capacitor, a main control switch, a transistor and a microcontroller. Through the microcontroller control, the switching between wake-up/switch-off, wake-up/switch-off, and sleep/switch-off are achieved.

Benefits of technology

In addition to the traditional closed and disconnected states, the switch device also has a dormant state, which is suitable for scenarios where traditional switches cannot be directly applied, and meets the market's demand for complex control functions such as timed sleep, timed wake-up, timed self-test and intelligent alarm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112925252B_ABST
    Figure CN112925252B_ABST
Patent Text Reader

Abstract

The present invention provides a switch device with a sleep function and a control method thereof, wherein the switch device with a sleep function comprises: a first power supply circuit, a second power supply circuit, a capacitor, a main control switch, a transistor and a single-chip microcomputer; the switch device realizes switching between three states of wake-up / switch closed, wake-up / switch open and sleep / switch open under the control of the single-chip microcomputer. Through the technical solution of the present invention, the switch device has a sleep state in addition to the traditional closed and open states, so that it can be applied in many scenarios where traditional switches cannot be directly applied, meeting market demand.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power electronics, and in particular to a switch device with a sleep function and a control method for the switch device. Background Art

[0002] With the development of power electronics, the number of various power facilities has continued to grow. As a device for controlling on and off, switch devices are more common in various electronic devices. Ordinary switch devices are generally composed of ordinary relays or electronic switches, which can control the on and off of the main switch by external signals. However, in complex application scenarios, because the state is too simple, it is impossible to realize complex application functions and meet market demand, and it is urgent to improve. Summary of the invention

[0003] The present invention is based on at least one of the above-mentioned technical problems and proposes a new switch device with sleep function and a control method thereof, so that the switch device has a sleep state in addition to the traditional closed and open states, so that it can be used in many scenarios where traditional switches cannot be directly used, thereby meeting market demand.

[0004] In view of this, the present invention proposes a new switch device with a sleep function, comprising: a first power supply circuit, a second power supply circuit, a capacitor, a main control switch, a transistor and a single-chip microcomputer; wherein the input end of the first power supply circuit is connected to the first input end of the switch device, the output end of the first power supply circuit is connected to the positive power supply end of the single-chip microcomputer, the input end of the second power supply circuit is connected to the output end of the switch device, the output end of the second power supply circuit is connected to the positive power supply end of the single-chip microcomputer, one end of the capacitor is connected to the output end of the first power supply circuit, and the other end of the capacitor is respectively connected to the second output end of the switch device and the negative power supply end of the single-chip microcomputer. , the negative power supply terminal of the single-chip microcomputer is grounded, the first end of the main control switch is connected to the first input terminal of the switch device, the second end of the main control switch is connected to the output terminal of the switch device, the third end of the main control switch is connected to the positive power supply terminal, the fourth end of the main control switch is connected to the collector of the transistor, the base of the transistor is connected to the signal output terminal of the single-chip microcomputer, and the emitter of the transistor is connected to the negative power supply terminal of the single-chip microcomputer. The power consumption of the first power supply circuit is much smaller than that of the second power supply circuit. The switch device realizes switching between three states of wake-up / switch closed, wake-up / switch open, and sleep / switch open under the control of the single-chip microcomputer.

[0005] In the above technical solution, preferably, the first power supply circuit includes a low-power regulator and a first diode, the input end of the low-power regulator serves as the input end of the first power supply circuit, the output end of the low-power regulator is connected to the anode of the first diode, and the cathode of the first diode serves as the output end of the first power supply circuit.

[0006] In the above technical solution, preferably, the second power supply circuit includes a voltage regulator and a second diode, the input end of the voltage regulator serves as the input end of the second power supply circuit, the output end of the voltage regulator is connected to the anode of the second diode, and the cathode of the second diode serves as the output end of the second power supply circuit.

[0007] In the above technical solution, preferably, the main control switch is a relay switch.

[0008] According to a second aspect of the present invention, a control method for a switching device is proposed, which is applicable to the switching device described in any one of the above technical solutions, comprising: a single chip in the switching device obtains trigger information for switching the state of the switching device; the single-chip microcomputer controls the switching device to switch between the following three states according to the trigger information: wake-up / switch closed state, wake-up / switch open state and sleep / switch open state; wherein the trigger information includes an internal clock signal of the single-chip microcomputer or a state switching signal received by the communication interface of the single-chip microcomputer.

[0009] In the above technical solution, preferably, the single-chip microcomputer regulates the switching of the switch device between the following three states according to the trigger information, specifically comprising: when the internal clock timing of the single-chip microcomputer reaches a predetermined sleep time or the communication interface receives a sleep signal, the single-chip microcomputer sets the drive signal from high to low, and outputs a drive signal to regulate the main switch to be disconnected, the voltage between the third and fourth terminals of the main switch disappears, the first and second terminals of the main switch are disconnected, the single-chip microcomputer enters the sleep state, and the switch device switches to the sleep / switch disconnected state; ... When the internal clock timing reaches the predetermined wake-up time or the communication interface receives a wake-up signal, the peripheral functions of the single-chip microcomputer are awakened, the main switch is still in the disconnected state, and the switch device is switched to the wake-up / switch disconnected state; when the internal clock timing of the single-chip microcomputer reaches the predetermined switch device on time or the communication interface receives a switch device on signal, the single-chip microcomputer sets the drive signal from low to high, outputs a drive signal to control the main switch to close, the third and fourth terminals of the main switch are turned on, the first and second terminals of the main switch are closed, and the switch device is switched to the sleep / switch closed state.

[0010] Through the above technical scheme, the structure of the entire device is reasonably designed, which enables the traditional switch to produce a new state. From the original two states of closed / open, it is upgraded to three states that can be switched between wake-up / switch closed, wake-up / switch open, and sleep / switch open. Therefore, it can be applied to many scenarios where traditional switches cannot be directly applied, and realize complex control functions such as timed sleep, timed wake-up, timed self-test, intelligent alarm, etc., to meet market demand. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 A schematic diagram of the circuit structure of a switch device with a sleep function according to an embodiment of the present invention is shown;

[0012] Figure 2 It shows a schematic diagram of other electronic forms of the main control switch according to an embodiment of the present invention;

[0013] Figure 3 A schematic flow chart of a method for controlling a switch device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0014] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

[0015] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.

[0016] like Figure 1As shown, the switch device with sleep function includes: a first power supply circuit, a second power supply circuit, a capacitor d, a main control switch g, a transistor f and a single-chip computer e, wherein the first power supply circuit includes a low-power voltage regulator a and a first diode b, and the second power supply circuit includes a voltage regulator h and a diode c. Among them, P1 and P2 are the first input terminal and the second input terminal of the switch device, and P3 is the output terminal of the switch device. The pins of the single-chip computer e are marked as F, D, C, M1-Mn, wherein F is the output signal of the single-chip computer, D is the positive power supply terminal of the single-chip computer, C is the negative power supply terminal of the single-chip computer, M1-Mn are the communication signals and I / O interfaces of the single-chip computer, the input terminal A of the low-power voltage regulator a is directly connected to the input terminal P1 of the switch device, the output terminal B of the low-power voltage regulator a is connected to the anode of the diode b, and the diodes b and c are connected to the positive terminal of the diode b. After the cathode is connected, it is connected to one end of the capacitor d and the pin D of the single-chip computer. The pin C of the single-chip computer is connected to the other end of the capacitor d. The pin F of the single-chip computer is connected to the base of the transistor f. The emitter of the transistor f is connected to the ground, and the collector is connected to the J point of the main control switch g. The G point of the main control switch g is connected to the D of the single-chip computer and the cathodes of the diodes b and c. The K and H points of the main control switch g are respectively connected to the input P1 of the switch device and the output P3 of the switch device. The input end of the voltage regulator h is connected to P3, and the output end E is connected to the anode of the diode c. The electronic form of the main control switch g is not limited to Figure 1 The form in can also be Figure 2 The two forms in Figure 2 In the two forms, the control terminals at both ends of GJ are replaced by the voltage at the control electrode J terminal.

[0017] The switch device includes two voltage regulators to provide system power supply, the first one is low-power voltage regulator a, and the second one is voltage regulator h. The difference between low-power voltage regulator a and voltage regulator h lies in the power difference between the two. A provides extremely small energy, generally below the milliampere level, and consumes very little power, while h is a conventional voltage regulator that can provide more than 100 milliamperes of power.

[0018] Working principle: In addition to the normal on and off states, the switch device can also have a third state, the sleep state. When the switch device is in the sleep state, the microcontroller e runs at low power consumption, shuts down communication and most functions, and only retains the I / O port (communication interface) in M1-Mn as the wake-up detection port, which makes the microcontroller output F low level, the control signal GJ of the main control switch is in the disconnected state, the main switch K and H points are in the disconnected state, P3 is in a suspended state, and the voltage regulator h and the load q have no input signal. The microcontroller cannot obtain a stable power supply from the voltage regulator h. The microcontroller is in a low power state for a long time and consumes almost no energy. This is not much different from a conventional switch. This part of the energy is mainly provided by the voltage regulator a through long-term power supply to the energy storage capacitor d.

[0019] When the switch device is in sleep mode, the microcontroller itself will also enter sleep mode. However, unlike the disconnected state of a conventional switch, when the device is in sleep mode, there are two ways to achieve switch control of the device:

[0020] Method 1: Wake up by receiving the wake-up signal through the M1-Mn interface. When the MCU receives the wake-up signal from M1-Mn, the MCU wakes itself up and sends a drive signal F, and drives the main switch g to turn on through the energy stored in the capacitor d, so that the entire device can be awakened.

[0021] Method 2: The single-chip microcomputer e can set the sleep time through the program. When the device is in the sleep state, the single-chip microcomputer e can realize the timed wake-up through its own internal timing. When the single-chip microcomputer timing reaches the specified time, the single-chip microcomputer will send a driving signal inside, and drive the main control switch to close through the output of point F. The power required for the instantaneous driving process is provided by the energy storage device integrated in the device, so that the switch device can be woken up for output in a short time. At the same time, since the device is started, the load q receives power, and the power at the load end is fed back through the P3 pin, and the power is continuously supplied to the device through the voltage regulator h, so that the switch device operates stably. At this time, the switch GJ is in a controlled conduction state, the switch node KH is in a closed state, the switch device is in a closed state, and the device is fully awakened.

[0022] Combined with the newly added sleep function of the switch device, combined with the two states of the original switch closed / open, the switch can generate four new state combinations, namely: wake up / switch closed, wake up / switch open, sleep / switch closed and sleep / switch open. Because the third state of sleep / switch closed has no practical application value, the device simplifies the state into three, namely: wake up / switch closed, wake up / switch open and sleep / switch open. The specific control process is as follows Figure 3 As shown:

[0023] When the device is running in the wake-up / switch closed state, the single-chip microcomputer can determine whether to enter sleep mode through timing settings or external signal control. After the device reaches the preset time or the single-chip microcomputer receives the sleep signal, the single-chip microcomputer sets the drive signal F from high to low, so that the voltage across the main switch GJ disappears, the main switch node KH is in the disconnected state, and the single-chip microcomputer enters sleep mode according to the settings. At this time, the entire switch device enters the sleep / switch disconnected state;

[0024] When the device is running in the sleep / switch-off state, the MCU detects whether the wake-up condition is met. The wake-up condition can be any one of the I / O ports M1-Mn of the MCU, or the wake-up time set inside the MCU. If the device does not meet the wake-up condition, it continues to maintain the current sleep / switch-off state; if the wake-up condition is met, the device enters the wake-up / switch-off state. At this time, the peripheral functions of the MCU are awakened, all functions of the MCU can be run, and external communication or other interactive functions can be performed through M1-Mn. However, the main control switch is not turned on at this time, and fault reporting or other communication functions can be realized under the current low energy consumption.

[0025] During the wake-up / switch disconnection period, the device continues to receive external M1-Mn signals and communication signals. If the device opening conditions are met within the preset time of the device, the single-chip microcomputer sends a drive signal to set point F from low to high, and the main switch is closed through the output drive signal of point F. The main control switch controls GJ to turn on and KH to close, and the device is fully awakened and enters the wake-up / switch closed state; if the system does not receive the wake-up command or does not meet the wake-up conditions within the preset time of the device, the system re-enters the sleep / switch disconnection state and waits for the next judgment on whether the wake-up conditions are met.

[0026] This switch device creates a new state for the traditional switch, upgrading the original closed / open states to three states that can be switched between wake-up / switch closed, wake-up / switch open, and sleep / switch open. It can be used in many scenarios where traditional switches cannot be directly applied, and realizes complex control functions such as timed sleep, timed wake-up, timed self-test, intelligent alarm, etc., to meet market demand.

[0027] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A switch device with a sleep function, characterized in that: include: A first power supply circuit, a second power supply circuit, a capacitor, a main control switch, a transistor and a single chip microcomputer; Wherein, the input end of the first power supply circuit is connected to the first input end of the switch device, the output end of the first power supply circuit is connected to the positive power supply end of the single-chip microcomputer, the input end of the second power supply circuit is connected to the output end of the switch device, the output end of the second power supply circuit is connected to the positive power supply end of the single-chip microcomputer, one end of the capacitor is connected to the output end of the first power supply circuit, the other end of the capacitor is respectively connected to the second output end of the switch device and the negative power supply end of the single-chip microcomputer, the negative power supply end of the single-chip microcomputer is grounded, the first end of the main control switch is connected to the first input end of the switch device, the second end of the main control switch is connected to the output end of the switch device, the third end of the main control switch is connected to the positive power supply end, and the The fourth end of the main control switch is connected to the collector of the transistor, the base of the transistor is connected to the signal output end of the single-chip microcomputer, the emitter of the transistor is connected to the negative power supply end of the single-chip microcomputer, the power consumption of the first power supply circuit is much smaller than that of the second power supply circuit, and the switch device realizes switching between three states of wake-up / switch closed, wake-up / switch open and sleep / switch open under the control of the single-chip microcomputer; the first power supply circuit includes a low-power regulator and a first diode, the input end of the low-power regulator serves as the input end of the first power supply circuit, the output end of the low-power regulator is connected to the anode of the first diode, and the cathode of the first diode serves as the output end of the first power supply circuit; the main control switch is a relay switch.

2. The switch device with sleep function according to claim 1, characterized in that: The second power supply circuit includes a voltage regulator and a second diode, the input end of the voltage regulator serves as the input end of the second power supply circuit, the output end of the voltage regulator is connected to the anode of the second diode, and the cathode of the second diode serves as the output end of the second power supply circuit.

3. A control method for a switch device, applicable to the switch device according to any one of claims 1 to 2, characterized in that: include: The single chip in the switch device acquires trigger information for switching the state of the switch device; The single chip microcomputer controls the switch device to switch between the following three states according to the trigger information: Awake / switch closed state, Awake / switch open state, and Sleep / switch open state; The trigger information includes an internal clock signal of the single-chip microcomputer or a state switching signal received by a communication interface of the single-chip microcomputer.

4. The control method of the switch device according to claim 3, characterized in that: The step of the single chip microcomputer regulating the switch device to switch between the following three states according to the trigger information specifically includes: When the internal clock timing of the single-chip microcomputer reaches the predetermined sleep time or the communication interface receives a sleep signal, the single-chip microcomputer sets the drive signal from high to low, outputs a drive signal to adjust the main switch to be disconnected, the voltage between the third and fourth terminals of the main switch disappears, the first and second terminals of the main switch are disconnected, the single-chip microcomputer enters a sleep state, and the switch device switches to a sleep / switch disconnection state; When the internal clock timing of the single-chip microcomputer reaches a predetermined wake-up time or the communication interface receives a wake-up signal, the peripheral function of the single-chip microcomputer is awakened, the main control switch is still in the off state, and the switch device is switched to the wake-up / switch off state; When the internal clock timing of the single-chip microcomputer reaches the predetermined switch device opening time or the communication interface receives a switch device opening signal, the single-chip microcomputer sets the drive signal from low to high, and outputs a drive signal to control the main control switch to close, the third and fourth terminals of the main control switch are turned on, the first and second terminals of the main switch are closed, and the switch device switches to the sleep / switch closed state.

Citation Information

Patent Citations

  • Switching device with dormancy function

    CN214335525U