Wake-up signal generation circuit, sensor, system and method for waking up a sensor

By using a wake-up signal generation circuit composed of a photoresistor and a field-effect transistor, combined with a microcontroller and a cloud platform device, the problems of high operational difficulty and real-time performance in sensor wake-up methods are solved. This enables non-contact real-time wake-up of the sensor and stable data transmission, improving the system's real-time performance and reliability.

CN117040517BActive Publication Date: 2026-07-03SUZHOU JIEJIE SENSOR TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SUZHOU JIEJIE SENSOR TECH CO LTD
Filing Date
2023-07-31
Publication Date
2026-07-03

Smart Images

  • Figure CN117040517B_ABST
    Figure CN117040517B_ABST
Patent Text Reader

Abstract

The application provides a wake-up signal generating circuit, a sensor, a system and a method for waking up the sensor, wherein the circuit comprises a power supply, a resistor and a field effect tube; the resistor comprises a photosensitive resistor, a first resistor and a second resistor; the gate of the field effect tube is connected to the power supply in series with the first resistor, the source of the field effect tube is electrically connected to the power supply, the gate of the field effect tube is connected to the ground in series with the photosensitive resistor, the drain of the field effect tube is connected to the ground in series with the second resistor, and the drain of the field effect tube is electrically connected to the WKUP pin of the sensor; when the light intensity of the light source received by the photosensitive resistor is not lower than a first threshold value, the resistance value of the photosensitive resistor is not greater than a second threshold value, the field effect tube outputs a high level to the WKUP pin, the WKUP pin detects a rising edge, a wake-up flag is generated to wake up the sensor, non-contact wake-up of the sensor is realized, and the real-time performance of the wake-up of the sensor is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of low-power sensor wake-up, and more particularly to a wake-up signal generation circuit, a sensor, a system and method for waking up the sensor. Background Technology

[0002] In the era of the Internet of Things (IoT), big data, and the interconnection of everything, with the increasing number of monitoring devices, most devices are battery-powered and configured with low-power modes to minimize power consumption and extend battery life in order to achieve automated operation. To address the need for low-power sensor wake-up, most mainstream microcontrollers on the market currently offer three low-power modes (sleep, stop, and standby). Standby mode has the lowest power consumption, with all power supplies turned off and only backup registers remaining operational. Exiting standby mode requires an external NRST signal, an independent watchdog timer, an RTC alarm, or the WKUP pin to wake up.

[0003] Currently, most sensors are woken up using one of three methods. The first method uses a hardware switch to power on and reset the sensor via a contact mechanism. This method is unsuitable for externally sealed sensors because the switch is located inside the sensor, requiring disassembly, which is difficult. The second method uses a fixed-time sleep wake-up. This method suffers from the drawback of not being able to acquire sensor data in real time when the sleep time is long, failing to meet the need for real-time data acquisition. The third method involves setting a monitoring window to receive wake-up data packets from external devices within a specific time window. Sending wake-up data packets multiple times within a short time interval significantly increases power consumption and reduces battery life, while long time intervals cannot meet the requirement of real-time sensor wake-up. Summary of the Invention

[0004] To address the aforementioned technical problems, this invention provides a wake-up signal generation circuit, a sensor, a system and method for waking up the sensor, which enhances the real-time performance of sensor wake-up and improves the stability and reliability of the system.

[0005] The objective of this invention is achieved through the following technical solution:

[0006] The first aspect of the present invention provides a wake-up signal generating circuit, which is disposed in a sensor and used to wake the sensor from a sleep state; the wake-up signal generating circuit includes a power supply, a resistor and a field-effect transistor;

[0007] The resistors include a photoresistor, a first resistor, and a second resistor;

[0008] The gate of the field-effect transistor (FET) is connected to the power supply after being connected in series with the first resistor. The source of the FET is electrically connected to the power supply. The gate of the FET is connected to the ground after being connected in series with the photoresistor. The drain of the FET is connected to the ground after being connected in series with the second resistor. The drain of the FET is electrically connected to the WKUP pin of the sensor.

[0009] When the sensor is in sleep mode, the WKUP pin is configured to go low, and the sensor is configured to wake up on the rising edge of the WKUP pin.

[0010] When the sensor is in sleep mode, the field-effect transistor is cut off and outputs a low level to the WKUP pin. When the light intensity received by the photoresistor is not lower than the first threshold, the resistance value of the photoresistor is not greater than the second threshold, the field-effect transistor is turned on and outputs a high level to the WKUP pin. The WKUP pin detects the rising edge and generates a wake-up flag to wake up the sensor.

[0011] Preferably, the resistor further includes a third resistor;

[0012] The drain of the field-effect transistor is electrically connected to the WKUP pin through the third resistor.

[0013] The second aspect of the present invention discloses a sensor, including a WKUP pin, a housing, and a wake-up signal generation circuit as described in the first aspect;

[0014] The wake-up signal generation circuit is located inside the sensor's housing;

[0015] The housing is equipped with a light guide structure, which is used to guide the light source from outside the sensor to the photoresistor of the wake-up signal generation circuit.

[0016] A third aspect of the present invention provides a system for waking up a sensor, comprising a microcontroller, a cloud platform device, and the sensor of the second aspect;

[0017] The microcontroller is configured to send a wake-up flag to the cloud platform device when a wake-up flag is detected to be triggered by the WKUP pin;

[0018] The cloud platform device is configured to receive a wake-up flag and then send a wake-up control command to the microcontroller to control the microcontroller to change the sleep parameters of the sensor.

[0019] Preferably, the system further includes a gateway and a wireless communication device;

[0020] The microcontroller and cloud platform device communicate with each other via a gateway;

[0021] The microcontroller and gateway transmit data via wireless communication devices.

[0022] A fourth aspect of the present invention provides a method for waking up a sensor, applied to a sensor of the second aspect, the method comprising:

[0023] The photoresistor receives a light source. When the light intensity of the light source is not lower than the first threshold, the resistance value of the photoresistor is not greater than the second threshold. The field-effect transistor is turned on and outputs a high level to the WKUP pin. The WKUP pin detects the rising edge and generates a wake-up flag to wake up the sensor.

[0024] A method for waking up a sensor, applied to a system for waking up a sensor in a third aspect, the method comprising:

[0025] The microcontroller responds to the wake-up flag generated by the sensor and determines whether the wake-up flag is triggered by the WKUP pin;

[0026] If not, the control sensor processes the data corresponding to the wake-up flag;

[0027] The sensor enters a sleep state after data processing is complete.

[0028] Furthermore, the method also includes:

[0029] If the microcontroller determines that the wake-up flag is triggered by the WKUP pin, it will transmit the wake-up flag to the cloud platform device.

[0030] The cloud platform device receives the wake-up flag and sends a wake-up control command to the micro controller;

[0031] After receiving the wake-up control command, the microcontroller changes the sensor's sleep parameters to put the sensor into a real-time data transmission state.

[0032] Furthermore, if the microcontroller determines that the wake-up flag is triggered by the WKUP pin, it transmits the wake-up flag to the cloud platform device, including:

[0033] If the microcontroller determines that the wake-up flag is triggered by the WKUP pin, it will transmit the wake-up flag to the gateway through the wireless communication device, and the gateway will transmit the wake-up flag to the cloud platform device.

[0034] Upon receiving the wake-up flag, the cloud platform device sends wake-up control commands to the microcontroller, including:

[0035] The cloud platform device receives the wake-up flag and sends a wake-up control command to the gateway. The gateway then transmits the wake-up control command to the microcontroller via a wireless communication device.

[0036] Preferably, the gateway transmits the wake-up flag to the cloud platform device, and the method further includes:

[0037] The gateway authenticates the sensor that sends the wake-up flag, and determines whether the sensor has completed authentication on the cloud platform device.

[0038] If so, determine whether the communication protocol of the sensor is consistent with the communication protocol of the cloud platform device;

[0039] If yes, a wake-up flag is sent to the cloud platform device; otherwise, a wake-up flag is sent to the cloud platform device based on the cloud platform device's communication protocol.

[0040] According to specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0041] This invention provides a wake-up signal generation circuit, a sensor, a system for waking up the sensor, and a method thereof. The wake-up signal generation circuit includes a power supply, a resistor, and a field-effect transistor. When the light intensity received by the photoresistor is not lower than a first threshold, the resistance of the photoresistor is not greater than a second threshold. The field-effect transistor is turned on and outputs a high level to the WKUP pin. The WKUP pin detects the rising edge and generates a wake-up flag to wake up the sensor. This achieves non-contact wake-up of the sensor, enhances the real-time performance of sensor wake-up, improves the convenience of operation, and enables timely use of the device when needed, without long waiting times, thus reducing time costs. Attached Figure Description

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

[0043] Figure 1 This is a circuit diagram of a wake-up signal generation circuit provided in one embodiment of the present invention;

[0044] Figure 2 This is a structural diagram of a system for waking up a sensor according to an embodiment of the present invention;

[0045] Figure 3 This is a flowchart of a method for waking up a sensor according to an embodiment of the present invention;

[0046] Figure 4 This is a flowchart illustrating the authentication and communication protocol determination process of a method for waking up a sensor, provided in one embodiment of the present invention.

[0047] Reference numerals: 10, Power supply; 20, Resistor; 21, First resistor; 22, Second resistor; 23, Third resistor; 24, Photoresistor; 30, Field-effect transistor; 40, WKUP pin; 100, Sensor; 200, Wake-up signal generation circuit; 400, Microcontroller; 500, Cloud platform device; 600, Gateway; 700, Wireless communication device. Detailed Implementation

[0048] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to specific embodiments and the accompanying drawings. It should be understood that these descriptions are merely exemplary and not intended to limit the scope of the invention. Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concept of the invention.

[0049] The technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0050] In the description of this invention, it should be noted that the directions or positional relationships indicated by terms such as "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer" are based on the accompanying drawings and are used only for the convenience of describing the invention and simplifying the description. They do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as limiting the invention. Furthermore, terms such as "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0051] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "joining" should be interpreted broadly. For example, they can refer to fixed connections, detachable connections, or integral connections; they can refer to mechanical connections or electrical connections; they can refer to direct connections or indirect connections through an intermediate medium; and they can refer to the internal communication between two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.

[0052] Furthermore, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0053] Currently, most methods for waking up sensors use three approaches: power-on reset wake-up via hardware switch, fixed-time sleep wake-up, and wake-up via monitoring window. The first method involves a switch located inside the sensor, requiring disassembly to control the switch, which is cumbersome. The second method results in excessively long sensor sleep times, making it impossible to acquire sensor characteristic values ​​in real time. The third method leads to increased power consumption if the monitoring window is too short, and failure to wake up in real time if it is too long. This invention provides a wake-up signal generation circuit, a sensor, a system, and a method for waking up the sensor. It utilizes the light intensity of a light source to control the resistance change of a photoresistor, achieving non-contact sensor wake-up. This improves the real-time performance of sensor wake-up, allowing for timely wake-up when the sensor is needed, eliminating waiting time and reducing time costs.

[0054] Example 1

[0055] Embodiment 1 of the present invention provides a wake-up signal generation circuit, disposed in a sensor, for waking the sensor from a sleep state, such as... Figure 1 As shown, the wake-up signal generating circuit 200 consists of a power supply 10, a resistor 20 and a field-effect transistor 30, wherein the resistor 20 consists of a first resistor 21, a second resistor 22 and a photoresistor 24.

[0056] Specifically, the power supply voltage of power supply 10 is 3.6V.

[0057] The photoresistor 24 is a light-sensitive element whose resistance changes with the intensity (brightness) of external light.

[0058] In real-time transmission mode, the WKUP pin 40 is configured as a general-purpose I / O port, and its state can be configured by the user to be high or low. Before the sensor needs to enter sleep mode, the WKUP function must be enabled. After the sensor enters sleep mode, the WKUP pin 40 is low. When the WKUP pin 40 receives a rising edge, the sensor is woken up. That is, in sleep mode, the WKUP pin 40 is configured to be low, and the sensor is configured to be woken up by the rising edge of the WKUP pin 40.

[0059] The field-effect transistor 30 includes a gate, a source, and a drain. The gate of the field-effect transistor 30 is connected to one end of the first resistor 21, and the other end of the first resistor 21 is connected to the power supply 10. The gate of the field-effect transistor 30 is also connected to one end of the photoresistor 24, and the other end of the photoresistor 24 is grounded. The source of the field-effect transistor 30 is connected to the power supply 10. The drain of the field-effect transistor 30 is connected to one end of the second resistor 22, and the other end of the second resistor 22 is grounded. The WKUP pin 40 of the sensor is connected to the drain of the field-effect transistor 30.

[0060] When the light intensity received by the photoresistor 24 is lower than the first threshold, the resistance of the photoresistor 24 is greater than the second threshold, the voltage of the photoresistor 24 increases, the voltage of the first resistor 21 decreases, the gate-source voltage of the field-effect transistor 30 decreases, and the field-effect transistor 30 is in the cut-off state; the drain of the field-effect transistor 30 is at a low level.

[0061] When the light intensity received by the photoresistor 24 is not lower than the first threshold, the resistance of the photoresistor 24 is not greater than the second threshold, the voltage of the photoresistor 24 decreases, the voltage of the first resistor 21 increases, the gate-source voltage of the field-effect transistor 30 increases, and the field-effect transistor 30 changes from the cutoff state to the conduction state; the drain of the field-effect transistor 30 outputs a high level to the WKUP pin 40, the WKUP pin 40 detects the rising edge, and the sensor wakes up from the sleep state.

[0062] Specifically, the gate voltage of the field-effect transistor 30 Source voltage V s =V cc Gate-source voltage (i.e., on-state voltage) Where R 21 R is the resistance value of the first resistor 21. 24 The resistance value of the photoresistor 24 is V. cc The voltage is the voltage of power supply 10, with the negative sign indicating the voltage direction. The first threshold of the light intensity of the light source and the second threshold of the resistance of the photoresistor 24 are determined by the on-state voltage V of the field-effect transistor 30. gs Determined; when the conduction voltage V gs When determined, due to R 21 The resistance is a constant, so r 24 Once the resistance value is determined, i.e. the second threshold is determined, the first threshold is deduced by combining the measurement results of the light intensity of the light source.

[0063] Preferably, the WKUP pin 40 is connected to the drain of the field-effect transistor 30 through the third resistor 23. The third resistor 23 is a current-limiting resistor to limit and adjust the drain current of the field-effect transistor 30 to ensure the stability and reliability of the circuit.

[0064] Preferably, the resistance of the second resistor 22 is 473Ω and the resistance of the third resistor 23 is 1KΩ.

[0065] Embodiment 1 of the present invention provides a wake-up signal generation circuit 200. When the light intensity received by the photoresistor 24 is not lower than a first threshold, the resistance of the photoresistor 24 is not greater than a second threshold, the voltage of the photoresistor 24 decreases, the voltage of the first resistor 21 increases, the gate-source voltage of the field-effect transistor 30 increases, the field-effect transistor 30 changes from a cutoff state to a conduction state, and the drain of the field-effect transistor 30 outputs a high level to the WKUP pin 40. When the WKUP pin 40 receives the rising edge, the sensor wakes up from the sleep state. The optical signal control circuit 200 does not require a switch or traditional physical contact, realizing contactless wake-up, saving human-computer interaction time. Moreover, the optical signal control circuit 200 has a fast response speed and low latency, improving the real-time performance of sensor wake-up.

[0066] Example 2

[0067] Embodiment 2 of the present invention provides a sensor in which the wake-up signal generation circuit of Embodiment 1 is included. The wake-up signal generation circuit provided in Embodiment 1 has a very simple structure and good response speed, and its application in this sensor can greatly improve the efficiency of waking up the sensor.

[0068] A sensor includes a WKUP pin, a housing, and a wake-up signal generating circuit as described in Embodiment 1. The wake-up signal generating circuit is located inside the sensor's housing. A light source is provided on the sensor to emit light intensity greater than a first threshold.

[0069] Furthermore, the light source is located inside the sensor to ensure high airtightness and prevent corrosive substances such as moisture from entering and damaging the internal components. The light source's activation state can be remotely controlled. When it is necessary to wake the sensor from its dormant state, the light source is remotely activated so that the photoresistor receives light of at least a first threshold intensity. The light source can be an LED.

[0070] Furthermore, the photoresistor is configured to receive a light source to adjust its resistance value; the field-effect transistor is configured to conduct and output a high level to the WKUP pin when the resistance value of the photoresistor is not greater than a second threshold; the WKUP pin is configured to be low when the sensor is in sleep mode, and to trigger the sensor's wake-up when a rising edge is detected. Through the combined use of the wake-up signal generation circuit and the light source, intelligent control of the sensor's operating state is achieved, improving the sensor's sensitivity and reliability, and promoting intelligent and adaptive development.

[0071] Example 3

[0072] Embodiment 3 of the present invention provides a sensor in which the wake-up signal generation circuit of Embodiment 1 is included. The wake-up signal generation circuit provided in Embodiment 1 has a very simple structure and good response speed, and its application in this sensor can greatly improve the efficiency of waking up the sensor.

[0073] A sensor includes a WKUP pin, a housing, and a wake-up signal generating circuit as described in Embodiment 1. The wake-up signal generating circuit is located inside the sensor housing. A light source is disposed outside the sensor housing or outside the sensor itself. A light guide structure is provided on the sensor housing, allowing light emitted from the light source to be received by a photoresistor through the light guide structure.

[0074] Furthermore, the light guide structure can be a rotating opening and closing structure, and the opening and closing state of the rotating opening and closing structure can be remotely controlled. This allows technicians to allow external light sources to enter the sensor without having to go to the sensor installation site, so that the light source can be received by the photoresistor.

[0075] Furthermore, the light source can be an LED light-controlled lamp. When the ambient light is strong (i.e., the ambient light intensity is not lower than a first threshold), the LED light-controlled lamp is off and does not emit light. When the ambient light is weak (i.e., the ambient light intensity is lower than the first threshold), the LED light-controlled lamp is on and emits light, thus achieving the beneficial effect of energy saving and consumption reduction. Specifically, the light intensity emitted by the LED light-controlled lamp as a light source is not lower than the first threshold.

[0076] It is important to understand that the installation and application environment of sensors is harsh, and it is not easy or even impossible for technicians to reach the field to access the sensors. Therefore, installing LED light-controlled lights and light guide structures on the sensors can, on the one hand, wake up the sensors in a dormant state in a timely manner, and on the other hand, effectively save manpower and material resources.

[0077] Preferably, the sensor also includes a filter that can selectively filter or reflect light emitted from the light source to meet the needs of different scenarios and applications.

[0078] Example 4

[0079] Embodiment 4 of the present invention provides a system for waking up a sensor, wherein the system includes the sensor described in Embodiment 2 and / or Embodiment 3. The system for waking up a sensor includes a microcontroller, a cloud platform device, and the aforementioned sensor.

[0080] like Figure 2As shown, the microcontroller 400 is configured to send a wake-up flag to the cloud platform device 500 when the wake-up flag is detected to be triggered by the WKUP pin; the cloud platform device 500 is configured to receive the wake-up flag and send a wake-up control command to the microcontroller 400 to control the microcontroller 400 to change the sleep parameters of the sensor 100.

[0081] The microcontroller 400 is also configured to control the sensor 100 to process the data corresponding to the wake-up flag when the wake-up flag is not triggered by the WKUP pin; and the sensor 100 is configured to enter a sleep state after the data processing is completed.

[0082] Specifically, in this embodiment 4, the WKUP pin triggering function is enabled by the program, and the microcontroller distinguishes whether it is the WKUP pin triggering mode by judging the state of the wake-up flag bit.

[0083] Specifically, the data corresponding to the wake-up flag includes, but is not limited to, feature value data and waveform data uploaded by the sensor 100, and other data that needs to be processed by the sensor 100.

[0084] Preferably, a gateway 600 is provided between the microcontroller 400 and the cloud platform device 500. If the communication protocols of the microcontroller 400 and the cloud platform device 500 are inconsistent, the gateway 600 can perform data protocol conversion, enabling smoother communication between the two. Simultaneously, the gateway 600 prevents unauthorized devices from connecting to the cloud platform device 500, thereby improving system security and reliability.

[0085] Preferably, the microcontroller 400 and the gateway 600 transmit data via a wireless communication device 700. The wireless communication device 700 enables bidirectional data transmission, has low power consumption, and can meet the requirements of long-term continuous operation of the system. Furthermore, the wireless communication device 700 can select different transmission channels and frequencies to reduce interference, improve communication quality, and thus enhance system stability.

[0086] Furthermore, the wireless communication device 700 can also be used for data transmission between the sensor 100 and the microcontroller 400 to improve the security of data transmission.

[0087] Embodiment 4 of the present invention provides a system for waking up a sensor. A photoresistor located inside the sensor 100 receives a light source. When the light intensity received by the photoresistor is not lower than a first threshold, the resistance of the photoresistor is not greater than a second threshold. The field-effect transistor is turned on and outputs a high level to the WKUP pin. The WKUP pin receives the rising edge, triggering the wake-up of the sensor 100, greatly improving the convenience of wake-up. The cloud platform device 500 receives the wake-up flag triggered by the WKUP pin uploaded by the microcontroller 400 and issues a wake-up control command to the microcontroller 400. After receiving the wake-up control command, the microcontroller 400 modifies the sleep parameters of the sensor 100 to maintain real-time data transmission, improving the stability of the system.

[0088] Example 5

[0089] Embodiment 5 of the present invention provides a method for waking up a sensor, which is applied to the sensor of Embodiment 2 and / or Embodiment 3 and the system of waking up a sensor of Embodiment 4, thereby optimizing the system performance and improving the system response speed.

[0090] A method for waking up a sensor, applied to the sensor of Embodiment 2 and / or Embodiment 3, comprising:

[0091] The photoresistor receives a light source. When the light intensity of the light source is not lower than the first threshold, the resistance value of the photoresistor is not greater than the second threshold. The field-effect transistor is turned on and outputs a high level to the WKUP pin. The WKUP pin detects the rising edge and generates a wake-up flag to wake up the sensor.

[0092] A method for waking up the sensor, applied to the system of Example 4, such as Figure 3 As shown, it includes:

[0093] The microcontroller responds to the wake-up flag generated by the sensor and determines whether the wake-up flag is triggered by the WKUP pin. The microcontroller determines the specific wake-up method to achieve effective monitoring of the sensor.

[0094] If the microcontroller determines that the wake-up flag is not triggered by the WKUP pin, it controls the sensor to process the data corresponding to the wake-up flag; after the data processing is completed, the sensor enters a sleep state; the microcontroller controls the sensor according to different wake-up methods to help users more effectively use the sensor to receive the required data.

[0095] Furthermore, if the microcontroller determines that the wake-up flag is triggered by the WKUP pin, it will transmit the wake-up flag to the cloud platform device. The microcontroller will promptly upload the wake-up flag to the cloud platform device, so that the cloud platform device can take corresponding measures based on the wake-up flag.

[0096] The cloud platform device receives the wake-up flag and sends a wake-up control command to the microcontroller. The wake-up control command is a non-sleep control command. By using the wake-up control command, the sensor is put into a real-time data transmission state, ensuring the real-time performance of the system. At the same time, the sleep parameters are modified to prevent the sensor from entering a sleep state, ensuring that the sensor remains sensitive and improving the accuracy and reliability of the sensor.

[0097] After receiving the wake-up control command, the microcontroller changes the sensor's sleep parameters to put the sensor into a real-time data transmission state.

[0098] Furthermore, if the microcontroller determines that the wake-up flag is triggered by the WKUP pin, it transmits the wake-up flag to the cloud platform device, including: if the microcontroller determines that the wake-up flag is triggered by the WKUP pin, it transmits the wake-up flag to the gateway through the wireless communication device, and the gateway transmits the wake-up flag to the cloud platform device.

[0099] Upon receiving a wake-up flag, the cloud platform device sends a wake-up control command to the microcontroller. This includes: the cloud platform device receiving the wake-up flag and sending the wake-up control command to the gateway; the gateway then transmits the wake-up control command to the microcontroller via a wireless communication device. The gateway prevents unauthorized devices from connecting to the cloud platform device, thereby improving system security and reliability. The wireless communication device enables bidirectional data transmission with low power consumption, meeting the system's requirements for long-term continuous operation. Furthermore, the wireless communication device can select different transmission channels and frequencies to reduce interference and improve communication quality, thus enhancing system stability.

[0100] Preferably, the gateway transmits the wake-up flag to the cloud platform device, such as... Figure 4 As shown, the method also includes:

[0101] The gateway authenticates the sensors sending wake-up flags, determining whether the sensors have already completed authentication on the cloud platform device. Authentication ensures that only sensors authenticated by the cloud platform device can communicate with it. This helps protect system security and prevents unauthorized sensor access.

[0102] If so, then determine whether the sensor's communication protocol is consistent with the cloud platform device's communication protocol. This ensures that communication between the two is error-free. Inconsistent protocols may lead to data transmission errors or communication failures.

[0103] If yes, a wake-up flag is sent to the cloud platform device; otherwise, a wake-up flag is sent to the cloud platform device based on the cloud platform device's communication protocol.

[0104] This method can improve system security and communication reliability. By using authentication and protocol consistency checks, unauthorized sensor access can be prevented, and correct communication can be ensured. Furthermore, sending wake-up flags based on different situations ensures that the cloud platform device can correctly process the data transmitted by the sensors.

[0105] It should be understood that the specific embodiments described above are merely illustrative or explanatory of the principles of the invention and do not constitute a limitation thereof. Therefore, any modifications, equivalent substitutions, improvements, etc., made without departing from the spirit and scope of the invention should be included within the protection scope of the invention. Furthermore, the appended claims are intended to cover all variations and modifications falling within the scope and boundaries of the appended claims, or equivalent forms of such scope and boundaries.

Claims

1. A system for waking up a sensor, the system comprising: The system includes a microcontroller, a cloud platform device, and sensors; The sensor includes a WKUP pin, a housing, and a wake-up signal generation circuit. The wake-up signal generating circuit is located inside the housing and is used to wake the sensor from its dormant state; the wake-up signal generating circuit includes a power supply, a resistor, and a field-effect transistor; The resistor includes a photoresistor, a first resistor, and a second resistor; The gate of the field-effect transistor is connected in series with the first resistor and then to the power supply. The source of the field-effect transistor is electrically connected to the power supply. The gate of the field-effect transistor is connected in series with the photoresistor and then to ground. The drain of the field-effect transistor is connected in series with the second resistor and then to ground. The drain of the field-effect transistor is electrically connected to the WKUP pin of the sensor. The WKUP pin of the sensor in the sleep state is configured to be low, and the sensor is configured to be woken up by the rising edge of the WKUP pin; When the sensor is in the sleep state, the field-effect transistor is cut off and outputs a low level to the WKUP pin; when the light intensity received by the photoresistor is not lower than the first threshold, the resistance value of the photoresistor is not greater than the second threshold, the field-effect transistor is turned on and outputs a high level to the WKUP pin, the WKUP pin detects the rising edge and generates a wake-up flag to wake up the sensor; The housing is provided with a light guide structure, which is used to guide the light source from outside the sensor to the photoresistor of the wake-up signal generation circuit; The microcontroller is configured to send the wake-up flag to the cloud platform device when it detects that the wake-up flag is triggered by the WKUP pin. The cloud platform device is configured to receive the wake-up flag and then send a wake-up control command to the microcontroller to control the microcontroller to change the sleep parameters of the sensor.

2. The system of waking up a sensor of claim 1, wherein, The resistor also includes a third resistor; The drain of the field-effect transistor is electrically connected to the WKUP pin through the third resistor.

3. The system for waking up the sensor according to claim 1, characterized in that, The system also includes a gateway and a wireless communication device; The microcontroller and the cloud platform device are connected via the gateway; The microcontroller and the gateway transmit data through the wireless communication device.

4. A method for waking up a sensor based on a system for waking up a sensor as described in any one of claims 1 to 3, characterized in that, The method includes: The photoresistor receives a light source. When the light intensity of the light source is not lower than the first threshold, the resistance value of the photoresistor is not greater than the second threshold. The field-effect transistor is turned on and outputs a high level to the WKUP pin. The WKUP pin detects the rising edge and generates a wake-up flag to wake up the sensor.

5. The method for waking up the sensor according to claim 4, characterized in that, The method further includes: The microcontroller responds to the wake-up flag generated by the sensor and determines whether the wake-up flag is triggered by the WKUP pin; If not, then control the sensor to process the data corresponding to the wake-up flag; The sensor enters a sleep state after the data processing is completed.

6. The method for waking up a sensor according to claim 5, characterized in that, The method further includes: If the microcontroller determines that the wake-up flag is triggered by the WKUP pin, it transmits the wake-up flag to the cloud platform device. Upon receiving the wake-up flag, the cloud platform device sends a wake-up control command to the micro controller. After receiving the wake-up control command, the microcontroller changes the sleep parameters of the sensor to put the sensor into a real-time data transmission state.

7. The method for waking up a sensor according to claim 6, characterized in that, If the microcontroller determines that the wake-up flag is triggered by the WKUP pin, it transmits the wake-up flag to the cloud platform device, including: If the microcontroller determines that the wake-up flag is triggered by the WKUP pin, it transmits the wake-up flag to the gateway via a wireless communication device, and the gateway transmits the wake-up flag to the cloud platform device. The cloud platform device receives the wake-up flag and sends the wake-up control command to the micro controller, including: The cloud platform device receives the wake-up flag and sends the wake-up control command to the gateway. The gateway then transmits the wake-up control command to the microcontroller via the wireless communication device.

8. The method for waking up a sensor according to claim 7, characterized in that, The method further includes: The gateway transmits the wake-up flag to the cloud platform device; The gateway authenticates the sensor that sends the wake-up flag and determines whether the sensor has completed authentication on the cloud platform device. If so, determine whether the communication protocol of the sensor is consistent with the communication protocol of the cloud platform device; If yes, then send the wake-up flag to the cloud platform device; if no, then send the wake-up flag to the cloud platform device based on the communication protocol of the cloud platform device.

Citation Information

Patent Citations

  • Alarm circuit and GPS device

    CN209103467U