Low-power-consumption Bluetooth equipment data acquisition method and system
By adopting low-power Bluetooth device data acquisition method in smart home systems, using Bluetooth broadcast mode and cloud platform to achieve signal strength and distance determination, the problems of Bluetooth device connection range limitation and energy consumption in the existing technology are solved, and high Real-time and low-energy smart home control.
Patent Information
- Application Number
- CN202411331528.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2024-12-13
AI Technical Summary
The data acquisition method based on Bluetooth devices in existing smart home control systems cannot meet the needs of high real-time and low power consumption, especially when the device leaves the connection range, resulting in energy waste and intelligent control failure.
A low-power Bluetooth device data acquisition method and system is designed. Data acquisition equipment is sent intermittently in Bluetooth broadcast mode through the data acquisition equipment, and the controlled equipment is linked to real-time monitoring of signal strength and distance, determining signal quality, and sending control signals through cloud platform. Or alarm information to realize multiple modes and multi-channel data reporting, increasing link reliability.
It realizes a low-power data acquisition and control system, which can be powered by three No. 5 batteries. Users can run for one year in 30 minutes a day and 2 years in 10 minutes. It meets the requirements of high real-time and low energy consumption, and adapts to various A kind of application scenario.
Smart Images

Figure CN119136083A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of Bluetooth data collection, and relates to a low-power Bluetooth device data collection method and system. Background Art
[0002] Currently in smart home control systems, data collection based on Bluetooth devices is generally done by directly connecting the data collection device to the mobile phone, and then the mobile phone's App connects to the background to process and control the linkage devices. Although this method realizes the control of smart homes, it cannot meet the demand scenarios with high real-time requirements and low power consumption. For example, the utility model patent with authorization announcement number CN218673732U discloses a low-power Bluetooth industrial thermometer and hygrometer circuit. This circuit structure requires the Bluetooth module to be always connected to the mobile phone, resulting in high power consumption. Moreover, when the mobile phone leaves the Bluetooth connection range, the function of this mode disappears, that is, intelligent control cannot be achieved. Summary of the invention
[0003] In order to realize multiple data collection modes and ensure that the smart home system avoids unnecessary energy consumption, the present invention designs a low-power Bluetooth device data collection method and system, which realizes the low-power use of the device and meets the high real-time requirements of data transmission. There are many collection devices and methods to choose from, and it is well adapted to various application scenarios.
[0004] The technical solution adopted by the present invention is a method for collecting data from a low-power Bluetooth device. The data collection method is implemented in an Internet of Things system consisting of a data collection device, a microprocessor, a Bluetooth module, a cloud platform, and a linked controlled device. The steps of the data collection method are:
[0005] a. The microprocessor controls the data acquisition device to intermittently send the collected data to the linked controlled device through the Bluetooth module in Bluetooth broadcast mode;
[0006] b. The linked controlled device monitors the Bluetooth broadcast signal in real time through Bluetooth. When receiving the Bluetooth broadcast signal, it first determines the Bluetooth signal strength, then determines the distance between the linked controlled device and the data acquisition device, and reports the processed results to the cloud platform;
[0007] c. The cloud platform sends control signals to the corresponding linked controlled devices or sends alarm information via the Internet based on the results sent by the linked controlled devices.
[0008] In the step b, the specific method of linking the controlled device to determine the Bluetooth signal strength and the distance between the linked controlled device and the data acquisition device is:
[0009] In each statistical period, the controlled device is linked to count the average value of the received Bluetooth broadcast RSSI signal.
[0010] When the average value of Bluetooth RSSI signal is lower than the set threshold, the linked controlled device determines that the signal is weak;
[0011] When the average value of the Bluetooth RSSI signal for two consecutive cycles is lower than the set threshold, the controlled device will be linked to send an alarm message to indicate whether the distance is too far or there is an obstruction;
[0012] When a Bluetooth broadcast packet is not received for three consecutive cycles, the thermometer and hygrometer are considered offline.
[0013] A statistical cycle is 8-15 seconds.
[0014] In the step b, the linked controlled device reports to the cloud platform by directly sending the linked controlled device to the cloud platform via the Internet, or first sending the linked controlled device to the mobile terminal via Bluetooth, and then the mobile terminal sends it to the cloud platform via the Internet.
[0015] After the linked controlled device sends the signal directly to the cloud platform via the Internet, the cloud platform will feed back the result of the Bluetooth broadcast signal processing to the App of the mobile terminal for display.
[0016] In the step a, the interval of Bluetooth broadcast is set to 1.5-2 seconds.
[0017] The data acquisition device is a thermometer, a hygrometer, a thermo-hygrometer or an air quality monitor.
[0018] The linkage controlled device is a humidifier, a dehumidifier, an air conditioner, a heater, a refrigerator or an air purifier.
[0019] The present invention also relates to a low-power Bluetooth device data acquisition system, which is composed of a data acquisition device, a microprocessor, a Bluetooth module, a cloud platform and a linked controlled device, wherein the data acquisition device is connected to the microprocessor, the microprocessor is connected to the Bluetooth module, the data acquisition device is connected to the linked controlled device via the Bluetooth module, and the linked controlled device is connected to the cloud platform via the Internet.
[0020] The acquisition system also includes a mobile terminal, which is connected to the cloud platform via the Internet, and the linked controlled device is connected to the mobile terminal via Bluetooth.
[0021] The beneficial effects of the present invention are: through the data acquisition system and method of the present invention, multiple modes can be set, data can be flexibly processed, and multi-channel data reporting can be set to increase the reliability of the link. Moreover, through the design of this solution, the control system only needs three No. 5 batteries for power supply. Users can connect directly through the mobile phone Bluetooth. If the connection is 30 minutes a day, it can run for one year, and if the connection is 10 minutes a day, it can run for 2 years, meeting the requirements of low energy consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is a schematic diagram of the innovative architecture of the data acquisition system of the present invention.
[0023] Figure 2 It is a schematic diagram of the architecture of the mobile phone direct connection mode in the present invention.
[0024] In the attached figure, 1 represents a data acquisition device, 2 represents a Bluetooth module, 3 represents a cloud platform, 4 represents a linked controlled device, 5 represents a mobile terminal, and MCU represents a microprocessor. DETAILED DESCRIPTION
[0025] When the present invention is implemented, first of all, the data acquisition system structure of the present invention is described. The data acquisition system structure includes a data acquisition device 1, a microprocessor MCU, a Bluetooth module 2, a cloud platform 3, a linked controlled device 4 and a mobile terminal 5. The conventional acquisition method in the prior art is that the data acquisition device is directly connected to the mobile terminal 5 via Bluetooth broadcast or the Internet. Figure 2 For example, the thermometer and hygrometer are directly connected to our mobile phone through wifi, and then the mobile phone App is connected to the cloud platform 3. The controlled device 4 is linked through the processing connection of the cloud platform 3. For example, a thermometer and hygrometer is set up in a room. At this time, the humidity collection data in the room is sent to the mobile phone App. After the mobile phone App monitors the data, it informs the cloud platform 3. The cloud platform 3 finds that the current humidity exceeds the set humidity threshold, and then controls the dehumidifier to work. After the mobile phone discovers the device through Bluetooth broadcasting and connects to the device, it can authenticate the device by reading the pre-written triple information, including the device's uuid, mac address, and secret key, and encrypting the communication and sending it to the IOT cloud platform for device identity verification. After the verification is passed, the device can be added, and the parameters can be set, such as setting the time period for temperature and humidity data collection, data reporting, OTA upgrade, and obtaining temperature and humidity data. It is convenient for equipment maintenance, information viewing, and data collection. This is a common working mode, which can also be realized by the present invention.
[0026] However, the core technology of the present invention is that in the data acquisition system, when the following scenarios are encountered, the linked controlled devices 4 are mostly movable smart home devices, such as movable heaters, humidifiers, dehumidifiers, etc. For example, a thermometer and hygrometer is provided in room A. When the temperature and humidity in room A exceed the threshold, the heater, humidifier, dehumidifier and other devices in room A should be controlled to work. However, since the linked controlled devices are moved to room B, a bug occurs in the prior art in this scenario. This is equivalent to the fact that room A is not intelligently controlled. The solution of the present invention is that the data acquisition device 1 intermittently sends the collected data to the linked controlled device 4 through the Bluetooth module 2 in the Bluetooth broadcast mode, for example, broadcasting once every 1.5-2 seconds, in order to save energy as much as possible. Then the linked controlled device 4 receives the Bluetooth broadcast signal of the data acquisition device 1 in real time. After receiving the Bluetooth broadcast signal, it first judges the strength of the Bluetooth broadcast RSSI signal. If the signal is strong, it means that the data acquisition device 1 and the linked controlled device 4 are in the same room or area. If the signal is weak or the Bluetooth signal is not received for a long time, it means that the data acquisition device 1 and the linked controlled device 4 are not in the same room or area, or there are obstacles blocking them. An alarm prompt signal is issued to prompt the user to check the specific situation to avoid wasting energy while failing to achieve the purpose of regulation. The linked controlled device 4 sends the judgment result to the cloud platform 3, and the cloud platform 3 outputs a control signal to other corresponding linked controlled devices 4, or sends an alarm signal to the mobile terminal 5.
[0027] The specific method of linking the controlled device 4 to determine the Bluetooth signal strength and the distance between the linked controlled device 4 and the data acquisition device 1 is:
[0028] For example, every 10 seconds is a statistical cycle, and within a statistical cycle, the linked controlled device 4 counts the average value of the received Bluetooth broadcast RSSI signal.
[0029] When the average value of the Bluetooth RSSI signal is lower than the set threshold, the threshold is -78dbm, the linked controlled device 4 determines that the signal is weak. The threshold can be adjusted appropriately according to the actual measurement situation, as the local default value of the receiving device, the cloud can dynamically configure this value, and the device queries the cloud setting value after connecting to the network and synchronizes it to the local.
[0030] When the average value of the Bluetooth RSSI signal for two consecutive cycles is lower than the set threshold, the controlled device 4 is linked to send out an alarm message to prompt whether the distance is too far or there is an obstruction.
[0031] When a Bluetooth broadcast packet is not received for three consecutive cycles, the linked controlled device 4 determines that the thermometer and hygrometer is offline.
[0032] The method of linking the controlled device 4 to report to the cloud platform 3 is that the linked controlled device 4 directly sends it to the cloud platform 3 through the Internet, or Figure 1 As shown by the dotted line in , the linkage controlled device 4 first sends the information to the mobile terminal 5 via Bluetooth, and then the mobile terminal 5 sends the information to the cloud platform 3 via the Internet.
[0033] At the same time, after the linked controlled device 4 directly sends the signal to the cloud platform 3 via the Internet, the cloud platform 3 feeds back the result of the Bluetooth broadcast signal processing to the App of the mobile terminal 5 for display.
[0034] The data acquisition device 1 is a thermometer, a hygrometer, a thermo-hygrometer or an air quality monitor.
[0035] The linkage controlled device 4 is a humidifier, a dehumidifier, an air conditioner, a heater, a refrigerator or an air purifier.
[0036] In specific implementation, the present invention can bind the linked controlled device 4 through the mobile phone App before the data acquisition device 1 and the linked controlled device 4 perform Bluetooth broadcast signal transmission, that is, the linked controlled device 4 after binding can receive the broadcast of the data acquisition device 1, and the unbound one will not receive the broadcast. The microprocessor MCU can periodically wake up and collect temperature and humidity data every 2 seconds, and wake up the Bluetooth module when the temperature changes by 0.3℃ or the humidity changes by 3%, and report the data.
[0037] Through the data acquisition system and method of the present invention, multiple modes can be set, data can be processed flexibly, and multiple channels can be set to report data, thereby increasing the reliability of the link. Moreover, through the design of this solution, the control system only needs three No. 5 batteries for power supply. Users can directly connect through the mobile phone Bluetooth. If the connection is 30 minutes a day, it can run for one year, and if the connection is 10 minutes a day, it can run for 2 years, thus meeting the requirements of low energy consumption.
Claims
1. A method for collecting data from a low-power Bluetooth device, wherein the method is implemented in an Internet of Things system consisting of a data collection device (1), a microprocessor (MCU), a Bluetooth module (2), a cloud platform (3) and a linked controlled device (4), and wherein: The steps of the data collection method are: a. A microprocessor (MCU) controls a data acquisition device (1) to intermittently send the collected data to a linked controlled device (4) via a Bluetooth module (2) in a Bluetooth broadcast mode; b. The linked controlled device (4) monitors the Bluetooth broadcast signal in real time via Bluetooth. When the Bluetooth broadcast signal is received, the Bluetooth signal strength is first determined, and then the distance between the linked controlled device (4) and the data acquisition device (1) is determined, and the processed result is reported to the cloud platform (3); c. The cloud platform (3) sends a control signal to the corresponding linked controlled device (4) or sends an alarm message via the Internet according to the result sent by the linked controlled device (4).
2. A method for collecting data from a low-power Bluetooth device according to claim 1, characterized in that: In the step b, the specific method of linking the controlled device (4) to determine the Bluetooth signal strength and the distance between the linked controlled device (4) and the data acquisition device (1) is: In each statistical cycle, the linked controlled device (4) counts the average value of the received Bluetooth broadcast RSSI signal. When the average value of the Bluetooth RSSI signal is lower than the set threshold, the linked controlled device (4) determines that the signal is weak; When the average value of the Bluetooth RSSI signal for two consecutive cycles is lower than the set threshold, the controlled device (4) is linked to send an alarm message to indicate whether the distance is too far or there is an obstruction; When no Bluetooth broadcast packet is received for three consecutive cycles, the thermometer and hygrometer are considered offline.
3. A method for collecting data from a low-power Bluetooth device according to claim 2, characterized in that: A statistical cycle is 8-15 seconds.
4. A method for collecting data from a low-power Bluetooth device according to claim 1, characterized in that: In the step b, the linked controlled device (4) reports to the cloud platform (3) in the following manner: the linked controlled device (4) directly sends the information to the cloud platform (3) via the Internet, or the linked controlled device (4) first sends the information to the mobile terminal (5) via Bluetooth, and the mobile terminal (5) then sends the information to the cloud platform (3) via the Internet.
5. A method for collecting data from a low-power Bluetooth device according to claim 4, characterized in that: After the linked controlled device (4) is directly sent to the cloud platform (3) via the Internet, the cloud platform (3) feeds back the result of the Bluetooth broadcast signal processing to the App of the mobile terminal (5) for display.
6. A method for collecting data from a low-power Bluetooth device according to claim 1, characterized in that: In the step a, the interval of Bluetooth broadcast is set to 1.5-2 seconds.
7. A method for collecting data from a low-power Bluetooth device according to claim 1, characterized in that: The data acquisition device (1) is a thermometer, a hygrometer, a thermo-hygrometer or an air quality monitor.
8. A method for collecting data from a low-power Bluetooth device according to claim 1, characterized in that: The linked controlled device (4) is a humidifier, a dehumidifier, an air conditioner, a heater, a refrigerator or an air purifier.
9. A low-power Bluetooth device data acquisition system, characterized in that: The acquisition system is composed of a data acquisition device (1), a microprocessor (MCU), a Bluetooth module (2), a cloud platform (3) and a linked controlled device (4), wherein the data acquisition device (1) is connected to the microprocessor (MCU), the microprocessor (MCU) is connected to the Bluetooth module (2), the data acquisition device (1) is connected to the linked controlled device (4) via the Bluetooth module (2), and the linked controlled device (4) is connected to the cloud platform (3) via the Internet.
10. A low-power Bluetooth device data acquisition system according to claim 1, characterized in that: The acquisition system also includes a mobile terminal (5), the mobile terminal (5) is connected to the cloud platform (3) via the Internet, and the linked controlled device (4) is connected to the mobile terminal (5) via Bluetooth.
