Power-off detection and delay power-off circuit and Internet of Things equipment
By designing power outage detection and delayed power outage circuits, the problem that IoT devices cannot upload data in time when power outage is cut off is solved, and data collection and uploading is realized after power outage, and the reason for equipment disconnection is recorded.
Patent Information
- Application Number
- CN202422085969.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2034-08-27
AI Technical Summary
Existing IoT devices for asset management and monitoring cannot collect and upload data to the cloud platform in time when the power is cut off.
A power outage detection and delay power outage circuit is designed. Through two-speed toggle switches and switching components, the MCU controller collects data and uploads it to the cloud platform after detecting the power outage signal, and supplies power again after power outage.
This allows the device to collect data and upload it to the cloud platform when the power is cut off. At the same time, the MCU controller can report events to the cloud platform based on the detected power shutdown signal, and record that the Internet of Things device is disconnected because of artificial.
Smart Images

Figure CN222981561U_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of Internet of Things devices, and particularly to a power-off detection and delayed power-off circuit and an Internet of Things device. Background Art
[0002] In some Internet of Things asset management applications, Internet of Things devices are used to monitor the usage of high-value instruments, record the utilization rate of high-value instruments, and do not allow the instruments to be moved to other places for use. Therefore, the Internet of Things devices for asset management and monitoring cannot be powered off under normal circumstances. When the Internet of Things device is powered off, it is necessary to alarm the Internet of Things cloud platform and upload all data before the power-off. Generally, when the power of a general device is cut off, the controller does not know in advance, so it will not collect data in advance and upload it to the cloud platform. And the cloud platform only knows that the Internet of Things device has gone offline, and the specific reason for the disconnection is also unknown. Summary of the Utility Model
[0003] In view of the above problems, this application provides a power-off detection and delayed power-off circuit and an Internet of Things device, which solves the problem that the existing Internet of Things devices for asset management and monitoring cannot collect and upload data to the cloud platform in time when the power is cut off.
[0004] To achieve the above object, the inventor provides a power-off detection and delayed power-off circuit, including:
[0005] A two-position toggle switch, the two-position toggle switch includes an input terminal, a first output terminal and a second output terminal, the input terminal is connected to the power supply, the first output terminal is connected to the power pin of the MCU controller; the second output terminal is connected to the detection pin of the MCU controller;
[0006] A switching element, one end of the switching element is connected to the second output terminal of the two-position toggle switch, the other end of the switching element is connected to the power pin of the MCU controller, and the control end of the switching element is connected to the control pin of the MCU controller.
[0007] In some embodiments, the switching element is a MOS transistor.
[0008] In some embodiments, it further includes:
[0009] A diode, the anode of the diode is connected to the other end of the switching element, and the cathode of the diode is connected to the power pin of the MCU controller.
[0010] Another technical solution is also provided, an Internet of Things device, including:
[0011] An MCU controller;
[0012] Power-off detection and delayed power-off circuit, where the power-off detection and delayed power-off circuit is the power-off detection and delayed power-off circuit described in any one of the embodiments of the present invention;
[0013] Battery module, where the battery module is connected to the input end of the two-position toggle switch;
[0014] Voltage stabilization module, where the input end of the voltage stabilization module is connected to the first output end of the two-position toggle switch and the other end of the switching element, and the output end of the voltage stabilization module is connected to the power supply pin of the MCU controller;
[0015] Communication module, where the communication module is connected to the MCU controller;
[0016] DC-DC module, where the input end of the DC-DC module is connected to the first output end of the two-position toggle switch and the other end of the switching element, and the output end of the DC-DC module is connected to the communication module;
[0017] Memory, where the memory is connected to the MCU controller.
[0018] In some embodiments, it further includes:
[0019] Voltage sampling circuit, where the input end of the voltage sampling circuit is connected to the first output end of the two-position toggle switch, and the output end of the voltage sampling circuit is connected to the MCU controller.
[0020] In some embodiments, the communication module is a 2G / 4G module.
[0021] In some embodiments, the communication module includes:
[0022] SIM card holder, where the SIM card holder is used to install the SIM card;
[0023] GSM / GPRS wireless module, where the GSM / GPRS wireless module is connected to the SIM card holder and the MCU controller.
[0024] In some embodiments, it further includes:
[0025] Self-test button module, where the self-test button module is connected to the MCU controller.
[0026] Different from the prior art, in the above technical solution, the two-position toggle switch has one input terminal and two output terminals. The input terminal of the two-position toggle switch is connected to the working power supply, the first output terminal is connected to the power supply pin of the MCU controller of the Internet of Things device, and the second output terminal is connected to the pin of the MCU controller of the switching element and the switching element; when the input terminal of the two-position toggle switch is connected to the first output terminal, the working power supply normally supplies power to the MCU controller of the object, so that the MCU controller works normally. When the input terminal of the two-position toggle switch is disconnected from the first output terminal, the input terminal of the two-position toggle switch is connected to the second output terminal, and the working power supply supplies power to the MCU controller through the second output terminal of the two-position toggle switch and the switching element. At the same time, the detection pin of the MCU controller can also detect that the current MCU controller is powered by the two-position toggle switch, so the MCU controller can also know that the current device has been illegally powered off. Then the MCU controller can control the Internet of Things device to collect data and upload it to the cloud platform, and then disconnect the power supply through the switching element until the two-position toggle switch is connected to the input terminal and the first output terminal again, and the MCU controller works normally again; through the power-off detection and delayed power-off circuit, when the device is powered off, it can collect data and upload it to the cloud platform. At the same time, the MCU controller can also detect the power-off signal through the detection pin and report the event to the cloud platform, recording that the disconnection of the Internet of Things device is due to human reasons.
[0027] The above description of the utility model content is only an overview of the technical solution of this application. In order to enable those of ordinary skill in the art to more clearly understand the technical solution of this application, and then to implement it according to the content recorded in the description and the drawings, and in order to make the above objects, other objects, features and advantages of this application more easily understood, the following is described in conjunction with the specific implementation manners and drawings of this application. Brief Description of the Drawings
[0028] The drawings are only used to illustrate the principles, implementation methods, applications, features and effects of the specific implementation manners and other related contents of this application, and should not be considered as a limitation of this application.
[0029] In the drawings of the specification:
[0030] Figure 1 It is a schematic circuit diagram of a circuit principle of the power-off detection and delayed power-off circuit described in the specific implementation manner;
[0031] Figure 2 It is a schematic structural diagram of an Internet of Things device described in the specific implementation manner;
[0032] Figure 3 It is a schematic circuit diagram of a circuit principle of an MCU controller described in the specific implementation manner;
[0033] Figure 4 It is a circuit schematic diagram of the voltage stabilizing module described in the specific implementation manner;
[0034] Figure 5 It is a circuit schematic diagram of the DC-DC module described in the specific implementation manner;
[0035] Figure 6 It is a circuit schematic diagram of the memory described in the specific implementation manner;
[0036] Figure 7 It is a circuit schematic diagram of the voltage sampling circuit described in the specific implementation manner;
[0037] Figure 8 It is a circuit principle of the SIM card holder described in the specific implementation manner;
[0038] Figure 9 It is a circuit schematic diagram of the GSM / GPRS wireless module described in the specific implementation manner;
[0039] Figure 10 It is a circuit schematic diagram of the self-checking button module described in the specific implementation manner. Specific implementation manner
[0040] To describe in detail the possible application scenarios, technical principles, specific implementable solutions, achievable purposes and effects of this application, etc., the following will be described in detail with the listed specific examples in conjunction with the accompanying drawings. The examples described in this article are only used to more clearly illustrate the technical solutions of this application, so they are only used as examples and cannot be used to limit the protection scope of this application.
[0041] Referring to "embodiment" in this article means that the specific features, structures or characteristics described in connection with the embodiment can be included in at least one embodiment of this application. The term "embodiment" that appears in various positions in the specification does not necessarily refer to the same embodiment, nor does it particularly limit its independence or relevance to other embodiments. In principle, in this application, as long as there is no technical contradiction or conflict, the technical features mentioned in each embodiment can be combined in any way to form the corresponding implementable technical solution.
[0042] Unless otherwise defined, the meanings of the technical terms used in this article are the same as those generally understood by those skilled in the technical field to which this application belongs; the use of relevant terms in this article is only for describing specific embodiments and is not intended to limit this application.
[0043] In the description of the present application, the term "and / or" is an expression used to describe the logical relationship between objects, indicating that there can be three relationships. For example, A and / or B means: there is A, there is B, and there is both A and B at the same time. In addition, the character " / " in this text generally represents an "or" logical relationship between the associated objects before and after.
[0044] In the present application, terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual quantitative, primary-secondary, or sequential relationships between these entities or operations.
[0045] Without further limitations, in the present application, the expressions "comprising", "including", "having", or other similar expressions used in a statement are intended to cover non-exclusive inclusion. These expressions do not exclude the possibility that there may be additional elements in the process, method, or product including the stated elements. Thus, a process, method, or product including a series of elements may include not only those defined elements, but also other elements not explicitly listed, or elements inherent to such process, method, or product.
[0046] Similar to the understanding in the "Examination Guidelines", in the present application, expressions such as "greater than", "less than", "exceeding", etc. are understood not to include the recited number; expressions such as "above", "below", "within", etc. are understood to include the recited number. In addition, in the description of the embodiments of the present application, the meaning of "a plurality of" is two or more (including two). Similar expressions related to "many", such as "multiple groups", "multiple times", etc., are understood in the same way, unless otherwise specifically defined.
[0047] In the description of the embodiments of the present application, the spatially related expressions used, such as "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "perpendicular", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the specific embodiment or the drawing. It is only for the convenience of describing the specific embodiments of the present application or for the reader's understanding, rather than indicating or implying that the device or component referred to must have a specific position, a specific orientation, or be constructed or operated in a specific orientation. Therefore, it should not be construed as a limitation to the embodiments of the present application.
[0048] Unless otherwise clearly specified or defined, in the description of the embodiments of the present application, the terms such as "installation", "connection", "linkage", "fixation", "setting", etc. shall be understood in a broad sense. For example, the "connection" may be a fixed connection, a detachable connection, or an integral setting; it may be a mechanical connection, an electrical connection, or a communication connection; it may be a direct connection or an indirect connection through an intermediate medium; it may be the communication inside two components or the interaction relationship between two components. For those skilled in the art to which the present application pertains, the specific meanings of the above terms in the embodiments of the present application can be understood according to specific circumstances.
[0049] Please refer to Figure 1 , this embodiment provides a power-off detection and delayed power-off circuit, including:
[0050] A two-position toggle switch J18, the two-position toggle switch J18 includes an input terminal, a first output terminal, and a second output terminal, the input terminal is connected to the power supply, the first output terminal is connected to the power pin of the MCU controller; the second output terminal is connected to the detection pin of the MCU controller;
[0051] A switching element Q3, one end of the switching element Q3 is connected to the second output terminal of the two-position toggle switch J18, the other end of the switching element Q3 is connected to the power pin of the MCU controller, and the control end of the switching element Q3 is connected to the control pin of the MCU controller.
[0052] The two-position toggle switch J18 has one input terminal and two output terminals. The input terminal of the two-position toggle switch J18 is connected to the working power supply, the first output terminal is connected to the power supply pin of the MCU controller of the Internet of Things device, and the second output terminal is connected to the pin of the MCU controller of the switching element Q3 and the switching element Q3. When the input terminal of the two-position toggle switch J18 is connected to the first output terminal, the working power supply normally supplies power to the MCU controller of the object, enabling the MCU controller to work normally. When the input terminal of the two-position toggle switch J18 is disconnected from the first output terminal, the input terminal of the two-position toggle switch J18 is connected to the second output terminal, and the working power supply supplies power to the MCU controller through the second output terminal of the two-position toggle switch J18 and the switching element Q3. At the same time, the detection pin of the MCU controller can also detect that the current MCU controller is powered by the two-position toggle switch J18, so the MCU controller can also know that the current device has been illegally powered off. Then the MCU controller can control the Internet of Things device to collect data and upload it to the cloud platform, and then disconnect the power supply through the switching element Q3 until the two-position toggle switch J18 is connected to the input terminal and the first output terminal again, and the MCU controller works normally again. Through the power-off detection and delayed power-off circuit, when the device is powered off, it can collect data and upload it to the cloud platform. At the same time, the MCU controller can also report an event to the cloud platform according to the power-off signal detected by the detection pin, and record that the disconnection of the Internet of Things device is due to human factors.
[0053] In some embodiments, the switching element Q3 is a MOS transistor. MOS is the abbreviation of MOSFET. MOSFET, Metal-Oxide-Semiconductor Field-Effect Transistor, is abbreviated as Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET). It is a field-effect transistor (FET) with an insulated gate, and the conductivity of the device is determined by voltage. The working principle of the MOS transistor mainly involves two key steps: establishing a conductive channel and controlling the drain current. According to the different gate structures of the MOS transistor, it can be divided into two types: N-channel and P-channel, and is widely used in amplifier circuits and switching circuits. By using a MOS transistor, the on-off between the second output terminal of the two-position toggle switch J18 and the power supply pin of the MCU controller can be controlled. Among them, in this embodiment, the MOS transistor is a P-channel MOS transistor. In other embodiments, the switching element Q3 can also be a switching tube or a triode, etc.
[0054] In some embodiments, it further includes:
[0055] A diode D14, the anode of the diode D14 is connected to the other end of the switching element Q3, and the cathode of the diode D14 is connected to the power supply pin of the MCU controller.
[0056] By setting a diode D14 between the switching element Q3 and the power supply pin of the MCU controller, it is avoided that when the two-position toggle switch J18 connects the input terminal to the first output terminal, the voltage output from the first output terminal damages the switching element Q3.
[0057] The two-position toggle switch J18 is a 3-pin toggle switch. When the toggle switch is turned to one side, pin1 and pin2 are connected. When the toggle switch is turned to the other side, pin2 and pin3 are connected. Therefore, when the toggle switch connects pin1 and pin2, the power supply directly powers the main board, that is, the device is powered on. When the toggle switch connects pin2 and pin3, it means that the user performs a power-off operation.
[0058] When the user performs a power-off operation, the power supply enters the power-off detection and delayed power-off module. The detection circuit detects the power input and notifies the MCU controller. After receiving the user's power-off signal, the MCU controller starts to collect the current relevant information of the device, saves the relevant data, and sends the data to the cloud platform through the 2G / 4G module, and notifies the administrator through the cloud platform that the device has been powered off manually. After the MCU controller finishes this series of actions, it gives a power-off signal to the power-off detection and delayed power-off module, and the power-off circuit cuts off the power supply to complete the power-off until the next time the user turns the toggle switch to the other side, making pin1 and pin2 connected, and powering on the device again.
[0059] As Figure 1 shown, J1 is the power input socket, and J18 is the two-position toggle switch. When pin1 and pin2 are connected, the power supply directly powers the main board and the device is powered on. When the user toggles J18 to make pin2 and pin3 connected, the SWITCH_STA signal changes from the original low level to high level. After the MCU controller monitors this signal change, it starts to collect data, uploads the data to the cloud platform through the 2G / 4G module, and feeds back an event of manual power-off to the cloud platform. After the MCU controller finishes processing these, it pulls down the OFF_DELAY signal to make the MOS tube Q3 disconnect, so the main board is powered off.
[0060] This circuit has the following advantages:
[0061] Advantage 1: It can detect the power-off signal, report the event to the platform, and record that the disconnection of the Internet of Things device is due to a human judgment of the device.
[0062] Advantage 2: After receiving the power-off signal, the MCU controller can first collect data and upload the data to the cloud platform.
[0063] Advantage 3: The power-off time is determined by the MCU controller.
[0064] Advantage 4: The circuit is simple and the cost is low.
[0065] Please refer to Figures 2 - 6 , in another embodiment, an Internet of Things device includes:
[0066] MCU controller;
[0067] Power-off detection and delayed power-off circuit, and the power-off detection and delayed power-off circuit is the power-off detection and delayed power-off circuit in the above embodiment;
[0068] Battery module, and the battery module is connected to the input end of the two-position toggle switch J18;
[0069] Voltage stabilization module, the input end of the voltage stabilization module is connected to the first output end of the two-position toggle switch and the other end of the switching element, and the output end of the voltage stabilization module is connected to the power supply pin of the MCU controller;
[0070] Communication module, and the communication module is connected to the MCU controller;
[0071] DC-DC module, the input end of the DC-DC module is connected to the first output end of the two-position toggle switch and the other end of the switching element, and the output end of the DC-DC module is connected to the communication module;
[0072] Memory, and the memory is connected to the MCU controller.
[0073] The two - position toggle switch J18 has one input terminal and two output terminals. The input terminal of the two - position toggle switch J18 is connected to the battery module, and the battery module provides the working power supply. The first output terminal is connected to the voltage - stabilizing module and the DC - DC module. The working power supply is converted by the voltage - stabilizing module and then input to the power supply pin of the MCU controller of the Internet of Things device to provide a stable working voltage for the MCU controller. The working power supply is boosted by the DC - DC module and then supplies power to the communication module or other modules. The second output terminal is connected to the pin of the MCU controller of the switching element Q3 and the switching element Q3. When the input terminal of the two - position toggle switch J18 is connected to the first output terminal, the working power supply normally supplies power to the MCU controller of the object, enabling the MCU controller to work normally. When the input terminal of the two - position toggle switch J18 is disconnected from the first output terminal, the input terminal of the two - position toggle switch J18 is connected to the second output terminal, and the working power supply supplies power to the MCU controller through the second output terminal of the two - position toggle switch J18 and the switching element Q3. At the same time, the detection pin of the MCU controller can also detect that the current MCU controller is powered by the two - position toggle switch J18, so the MCU controller can also know that the current device has been illegally powered off. Then the MCU controller can control the Internet of Things device to collect data from the memory and upload the collected data to the cloud platform through the communication module, and then disconnect the power supply through the switching element Q3 until the two - position toggle switch J18 reconnects the input terminal and the first output terminal again, and the MCU controller works normally again. Through the power - off detection and delayed power - off circuit, when the device is powered off, it can collect data and upload it to the cloud platform. At the same time, the MCU controller can also report an event to the cloud platform according to the power - off signal detected by the detection pin, recording that the disconnection of the Internet of Things device is due to human reasons.
[0074] In some embodiments, it further includes:
[0075] A voltage sampling circuit, the input terminal of the voltage sampling circuit is connected to the first output terminal of the two - position toggle switch J18, and the output terminal of the voltage sampling circuit is connected to the MCU controller.
[0076] The output voltage of the battery module is sampled through the voltage sampling circuit. When the sampled voltage is lower than the preset value, the MCU controller gives an alarm. Among them, when the voltage of the battery module is lower than 3.3V, a prompt is given. And as Figure 7 shown, the reference voltage is 3.3 * 100 / (100 + 100)=1.65V. When the voltage is continuously sampled 10 times and is less than 1.65V each time, an alarm is given.
[0077] In some embodiments, the communication module is a 2G / 4G module. Mobile 4G provides lower latency and greater transmission rate, while mobile 2G offers higher coverage and communication guarantee, supports the operator APN private network channel, and ensures the security of user data transmission.
[0078] Please refer to Figures 8 - 9 , in some embodiments, the communication module includes:
[0079] A SIM card holder for installing a SIM card;
[0080] A GSM / GPRS wireless module connected to the SIM card holder and the MCU controller.
[0081] A SIM (Subscriber Identity Module) card is an IC card held by a mobile user in the GSM system, called a "user identification card". The GSM system identifies GSM users through the SIM card. By installing the SIM card in the SIM card holder, the GSM / GPRS wireless module can communicate with the cloud platform through the SIM card inserted in the SIM card holder.
[0082] Please refer to Figure 10 , in some embodiments, it further includes:
[0083] A self-checking button module connected to the MCU controller.
[0084] By providing a self-checking button in the self-checking button module, when the self-checking button is triggered, the Internet of Things device performs self-checking. Among them, the self-checking button module also includes an indicator light. When the self-checking button is pressed once, the indicator light starts to indicate for 10S; at the same time, the self-checking button module reserves a reset button, and pressing the reset button briefly can perform a reset; when the reset button is long-pressed, the device returns to the factory settings.
[0085] Finally, it should be noted that although the above embodiments have been described in the text and drawings of the specification of this application, it does not limit the scope of patent protection of this application. Any technical solutions obtained by equivalent structure or equivalent process substitution or modification based on the essential concept of this application, using the content recorded in the text and drawings of the specification of this application, as well as directly or indirectly implementing the technical solutions of the above embodiments in other related technical fields, are all included in the scope of patent protection of this application.
Claims
1. A power failure detection and delayed power failure circuit, characterized in that: include: A two-speed toggle switch, the two-speed toggle switch comprising an input end, a first output end and a second output end, the input end is connected to a power supply, the first output end is connected to a power pin of an MCU controller; the second output end is connected to a detection pin of the MCU controller; A switch element, one end of the switch element is connected to the second output end of the two-speed toggle switch, the other end of the switch element is connected to the power pin of the MCU controller, and the control end of the switch element is connected to the control pin of the MCU controller.
2. The power failure detection and delayed power failure circuit according to claim 1, characterized in that: The switch element is a MOS tube.
3. The power failure detection and delayed power failure circuit according to claim 1, characterized in that: Also includes: A diode, wherein an anode of the diode is connected to the other end of the switch element, and a cathode of the diode is connected to a power pin of the MCU controller.
4. An Internet of Things device, characterized in that: include: MCU controller; A power failure detection and delayed power failure circuit, wherein the power failure detection and delayed power failure circuit is the power failure detection and delayed power failure circuit according to any one of claims 1 to 3; A battery module, wherein the battery module is connected to an input end of a two-speed toggle switch; A voltage stabilizing module, wherein the input end of the voltage stabilizing module is connected to the first output end of the two-speed toggle switch and the other end of the switch element, and the output end of the voltage stabilizing module is connected to the power pin of the MCU controller; A communication module, the communication module is connected to the MCU controller; A DC-DC module, wherein an input end of the DC-DC module is connected to a first output end of a two-speed toggle switch and the other end of a switch element, and an output end of the DC-DC module is connected to a communication module; The memory is connected to the MCU controller.
5. The Internet of Things device according to claim 4, characterized in that: Also includes: A voltage sampling circuit, wherein the input end of the voltage sampling circuit is connected to the first output end of the two-speed toggle switch, and the output end of the voltage sampling circuit is connected to the MCU controller.
6. The Internet of Things device according to claim 4, characterized in that: The communication module is a 2G / 4G module.
7. The Internet of Things device according to claim 6, characterized in that: The communication module comprises: SIM card holder, the SIM card holder is used to install a SIM card; A GSM / GPRS wireless module is connected to a SIM card holder and an MCU controller.
8. The Internet of Things device according to claim 4, characterized in that: Also includes: A self-check button module is connected to the MCU controller.