A modular wireless sensor system based on mesh networks

By integrating a variety of sensors into the smart building block kit and using Mesh network and BLE Bluetooth modules, the problems of high cost and low intelligence of traditional sensor modules are solved, and a low-power and highly intelligent building block sensor system is realized.

CN112533169BActive Publication Date: 2024-08-30GUANGDONG YUAINTEL INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011383365.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-01
Publication Date
2024-08-30
Estimated Expiration
2040-12-01

AI Technical Summary

Technical Problem

The sensor modules of traditional smart building block kits are usually independent wireless or wired, resulting in high costs for manufacturers and users, limitations during construction, high system power consumption, low intelligence, inability to monitor building block operation information in real time, and difficulty in maintenance. Not intelligent enough.

Method used

A building block wireless sensor system based on Mesh network is used to integrate multiple sensor functions. A Mesh network is established through the BLE Bluetooth module. The MQTT communication protocol is used between the microcontroller and the sensor chip, and polling is used to collect data to achieve low-power operation. , and connect to the monitoring network through your mobile phone.

Benefits of technology

It realizes the integration of multi-sensor functions, reduces the usage of microcontrollers and wireless sensor chips, reduces costs, improves the intelligence of the system and the flexibility of network topology, facilitates monitoring and maintenance, and has low power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112533169B
    Figure CN112533169B
Patent Text Reader

Abstract

A building block type wireless sensor system based on Mesh network, it relates to a sensor system, specifically to a building block type wireless sensor system, it comprises a common base and a sensor seat, a main control board and a battery electrically connected to the main control board are arranged in the common base, the main control board is provided with a wireless transmission chip, a first connection terminal electrically connected to the main control board is arranged at the upper end of the common base, a sensor is arranged at the upper end of the sensor seat, a second connection terminal adapted to the first connection terminal is arranged at the lower end of the sensor seat, a first magnet is also arranged on the inner side of the upper end of the common base, and a second magnet adapted to the first magnet is also arranged on the inner side of the lower end of the sensor seat. The system integrates various sensors, has the characteristics of powerful use functions and low comprehensive cost, and the formed Mesh network system has the characteristics of low power consumption and flexible network topology. At the same time, the network can be conveniently connected to a mobile phone, and the system has a high degree of intelligence.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of wireless sensors, and in particular to a building block type wireless sensor system based on a Mesh network. Background Art

[0002] At present, the traditional smart building block kits basically have independent sensor modules, which are generally made into an integrated wireless form or a wired form with the sensor and MCU separated. The integrated wireless sensor module contains the main MCU, sensor, wireless chip, etc., while the wired form separates the sensor and connects it to the main control of the smart building block kit through a wire; obviously, this integrated wireless mode has led to a significant increase in costs for manufacturers and users because each sensor must be equipped with an MCU and a wireless chip, and the wired form module has various restrictions when building blocks due to the limitation of wire materials, which brings inconvenience to users.

[0003] At the same time, this multi-sensor mode requires an MCU and sensors, and the whole system has high power consumption, resulting in high user costs. In addition, it is impossible to monitor the relevant information of the building blocks in real time during normal use, and there are problems with difficulty in system maintenance and improvement. At the same time, the building blocks are not intelligent enough, which makes its educational and entertaining features not prominent. Summary of the invention

[0004] The purpose of the present invention is to provide a building block wireless sensor system based on Mesh network in view of the defects and shortcomings of the prior art. It integrates various sensors into one, has powerful functions and low comprehensive cost. The composed Mesh network system has the characteristics of low power consumption and flexible network topology. At the same time, the network is convenient to connect with mobile phones and the system has a high degree of intelligence.

[0005] To achieve the above-mentioned purpose, the present invention adopts the following technical scheme: it comprises a common base 1 and a sensor base 2, wherein the common base 1 is provided with a main control board 104 and a battery 105 electrically connected to the main control board 104, the upper end of the common base 1 is provided with a first connection terminal 11 electrically connected to the main control board 104, the upper end of the sensor base 2 is provided with a sensor assembly 23, the sensor assembly 23 is cylindrical, and the sensor assembly 23 comprises an infrared sensor 231, a color sensor 232, a gesture sensor 233, a sound intensity sensor 234, a light intensity sensor 235, a body sensor The sensor head of the gesture sensor 233 is arranged at the center of the top surface of the sensor component 23, the sensor head of the infrared sensor 231 is arranged on the upper left side of the sensor head of the gesture sensor 233, the sensor head of the color sensor 232 is arranged on the lower left side of the sensor head of the gesture sensor 233, the sensor head of the sound intensity sensor 234 is arranged on the lower right side of the sensor head of the gesture sensor 233, the light intensity sensor 235 is arranged on both symmetrical sides of the sensor component 23, and the LED patch light is arranged below the top surface of the sensor component 23.

[0006] The main control board 104 integrates chips and a microcontroller of an infrared sensor 231, a color sensor 232, a gesture sensor 233, a sound intensity sensor 234, a light intensity sensor 235 and a somatosensory sensor 236. The microcontroller is installed with an embedded operating system. The microcontroller and the chips of the infrared sensor 231, the color sensor 232, the gesture sensor 233, the sound intensity sensor 234, the light intensity sensor 235 and the somatosensory sensor 236 use the MQTT communication protocol. The microcontroller uses a built-in timer to collect sensor data in a polling manner. The infrared sensor chip, the color sensor chip, the gesture sensor chip, the sound intensity sensor chip, the light intensity sensor chip, the somatosensory sensor chip and the microcontroller all contain a Bluetooth module, and the Bluetooth module has a BLE Mesh protocol stack, the infrared sensor 231, color sensor 232, gesture sensor 233, sound intensity sensor 234, light intensity sensor 235 and body sensor 236 constitute a sensor system; the sensor system is a Mesh network composed of BLE Bluetooth, and the sensor system enables the microcontroller to join the Mesh network through the Bluetooth communication protocol to form a building block wireless Mesh network, and the Mesh network is connected to the mobile phone through Bluetooth.

[0007] The operation steps of the building block wireless mesh network are as follows:

[0008] 1) Each sensor acts as a node in the Mesh network and there is at least one other sensor Mesh node within the communication range of any sensor Mesh node. Each sensor Mesh node exchanges data with the microcontroller via Bluetooth;

[0009] 2) The microcontroller assigns a unique address information to each sensor Mesh node;

[0010] 3) Each sensor Mesh node collects relevant data about its location, packages the collected data with its own address information, and sends it to the microcontroller through the Mesh network. The microcontroller uploads the collected information to the mobile phone through the Mesh network;

[0011] The sensor base 2 has a second connection terminal 21 at the lower end thereof adapted to the first connection terminal 11, a first magnet 12 is provided on the inner side of the upper end of the common base 1, and a second magnet 22 adapted to the first magnet 12 is also provided on the inner side of the lower end of the sensor base 2, the common base 1 comprises a base middle frame 102, a base upper cover 101, and a base lower cover 103, the main control board 104 is installed in the base middle frame 102, the base lower cover 103 is provided with a battery compartment, the battery 105 is installed in the battery compartment, the base middle frame 102 is provided with a control switch 15, a charging interface 17 and a reset switch hole 16, the control switch 15 and the charging interface 17 are both electrically connected to the main control board 104, and the reset switch hole corresponds to the reset switch on the main control board 104.

[0012] A plurality of latch holes 13 are symmetrically provided on both sides of the base middle frame 102 .

[0013] Working principle of the present invention: The building block sensor of the present invention integrates seven functions. Through PCB technology, sensor chips and microcontrollers with different functions are integrated on the main control board. The main control board is packaged inside the building block and powered by a built-in lithium battery. An embedded operating system is installed in the microcontroller. The MQTT communication protocol is used to exchange data between each sensor chip and the microcontroller. In order to ensure that each sensor is smooth and unblocked during data transmission, the timer in the microcontroller is used to collect data from each sensor in a polling manner.

[0014] Utilizing the Bluetooth modules on each sensor chip and microcontroller, each sensor and microcontroller are organized into a Mesh network through BLE Bluetooth. Each sensor Mesh node serves as a terminal node and a routing node at the same time. At the same time, each sensor Mesh node has unique address information. The sensor packages the collected information and its own address information and sends it to the microcontroller. In the Mesh network, each sensor is set in terminal node mode and does not need to care about other devices. It only needs to upload its own sensor data when it is polled. The rest of the time, it is in sleep mode to achieve low-power operation. At the same time, the mobile phone is connected to the Mesh network through BLE Bluetooth. The mobile phone communicates with the microcontroller through the General Agreement on Tariffs and Trade (GATT) protocol of standard low-power Bluetooth, so as to realize command and reading of sensor information through the mobile phone.

[0015] After adopting the above technical scheme, the beneficial effects of the present invention are as follows: the present invention integrates multiple sensor functions into one, while meeting the basic functions, it can reduce the usage of microcontrollers and wireless sensor chips, greatly reducing the cost of use. At the same time, the wireless Mesh network composed of sensors and microcontrollers has the characteristics of fast Mesh node deployment, simple installation and high network topology flexibility. When the sensor on a node is damaged, it will not affect the function of the entire network. In addition, the network can use the Bluetooth module on the mobile phone to connect to the mobile phone, which is convenient for monitoring and accessing various devices on the entire network, and is more convenient to use. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0017] Figure 1 It is a schematic diagram of the structure of the present invention;

[0018] Figure 2 This is a structural schematic diagram of a common base of a building block sensor module structure of the utility model;

[0019] Figure 3 yes Figure 2 A schematic diagram of the structure from another angle;

[0020] Figure 4 It is a schematic diagram of the exploded structure of a common base of a building block sensor module structure of the utility model;

[0021] Figure 5It is a structural schematic diagram of a sensor seat of a building block sensor module structure of the utility model;

[0022] Figure 6 yes Figure 5 A schematic diagram of the structure from another angle;

[0023] Figure 7 is a schematic diagram of the structure of the sensor assembly 23;

[0024] Figure 8 yes Figure 7 Left view of

[0025] Fig. 9 is a network topology diagram of the present invention;

[0026] Explanation of the accompanying drawings: common base 1, sensor base 2, first connecting terminal 11, first magnet 12, pin hole 13, mounting hole 14, control switch 15, reset switch hole 16, charging interface 17, second connecting terminal 21, second magnet 22, sensor assembly 23, infrared sensor 231, color sensor 232, gesture sensor 233, sound intensity sensor 234, light intensity sensor 235, somatosensory sensor 236, base upper cover 101, base middle frame 102, base lower cover 103, main control board 104, battery 105. Implementation

[0027] See also Figure 1-Figure 9As shown, the technical solution adopted in this specific embodiment is: it includes a common base 1 and a sensor base 2, wherein the common base 1 is provided with a main control board 104 and a battery 105 electrically connected to the main control board 104, wherein the battery 105 is a 180 mAh lithium battery, wherein the upper end of the common base 1 is provided with a first connecting terminal 11 electrically connected to the main control board 104, wherein the upper end of the sensor base 2 is provided with a sensor assembly 23, wherein the sensor assembly 23 is cylindrical, wherein the sensor assembly 23 includes an infrared sensor 231, a color sensor 232, a gesture sensor 233, a sound intensity sensor 234, a light intensity sensor 235, a body sensor 236 and an LED patch light, wherein the sensing head of the gesture sensor 233 is arranged at the center of the top surface of the sensor assembly 23, wherein the sensing head of the infrared sensor 231 is arranged at the upper left side of the sensing head of the gesture sensor 233, and the sensing head of the color sensor 232 is arranged at the lower left side of the sensing head of the gesture sensor 233, The sensing head of the sound intensity sensor 234 is arranged on the lower right side of the sensing head of the gesture sensor 233, the light intensity sensor 235 is arranged on the symmetrical two side surfaces of the sensor component 23, the LED patch light is arranged below the top surface of the sensor component 23, the infrared sensor 231 is used to detect the obstacle distance in the range of 0~20CM, the color sensor 232 can identify five colors: red, green, blue, black and white, the gesture sensor 233 can detect the direction and orientation of the gesture moving above it through its sensing head located in the middle of the top surface of the wireless sensor, the sound intensity sensor 234 can identify the sound intensity range of 0~255dB in the environment, the light intensity sensor 235 can detect the light intensity on both sides through two gray light sensing chips symmetrically on the top surface of the wireless sensor, and its detection range is 0~255lux, the somatosensory sensor 236 can detect the posture direction of the current building block, and the LED patch light directly lights up the specified RGB color through the controller.

[0028] The main control board 104 integrates chips and a microcontroller of an infrared sensor 231, a color sensor 232, a gesture sensor 233, a sound intensity sensor 234, a light intensity sensor 235 and a somatosensory sensor 236. The microcontroller is provided with a 2.4GRF channel, which can perform two-way data communication with the main control. The microcontroller is installed with a Contiki embedded operating system. The microcontroller and the chips of the infrared sensor 231, the color sensor 232, the gesture sensor 233, the sound intensity sensor 234, the light intensity sensor 235 and the somatosensory sensor 236 use the MQTT communication protocol. The microcontroller uses a built-in timer to collect sensor data in a polling manner. The infrared sensor chip, the color sensor chip, the gesture sensor chip, the sound intensity sensor chip, the light intensity sensor chip, the somatosensory sensor chip and the microcontroller contain a Bluetooth module, and the Bluetooth module has BLE Mesh protocol stack, the infrared sensor 231, color sensor 232, gesture sensor 233, sound intensity sensor 234, light intensity sensor 235 and body sensor 236 constitute a sensor system; the sensor system is a Mesh network composed of BLE Bluetooth, and the sensor system uses the Bluetooth communication protocol to enable the microcontroller to join the Mesh network to form a building block wireless Mesh network, and each sensor and the microcontroller exchange data through the UART protocol, and the Mesh network is connected to the mobile phone through Bluetooth.

[0029] The sensor base 2 has a second connection terminal 21 at the lower end thereof adapted to the first connection terminal 11, a first magnet 12 is provided on the inner side of the upper end of the common base 1, and a second magnet 22 adapted to the first magnet 12 is also provided on the inner side of the lower end of the sensor base 2, the common base 1 comprises a base middle frame 102, a base upper cover 101, and a base lower cover 103, the main control board 104 is installed in the base middle frame 102, the base lower cover 103 is provided with a battery compartment, the battery 105 is installed in the battery compartment, the base middle frame 102 is provided with a control switch 15, a charging interface 17 and a reset switch hole 16, the control switch 15 and the charging interface 17 are both electrically connected to the main control board 104, the reset switch hole corresponds to the reset switch on the main control board 104, and the charging interface 17 is an independent USB charging port, through which the software can be upgraded by firmware burning.

[0030] A plurality of latch holes 13 are symmetrically provided on both sides of the base middle frame 102 .

[0031] The operation steps of the building block wireless mesh network are as follows:

[0032] 1) Each sensor acts as a node in the Mesh network and there is at least one other sensor Mesh node within the communication range of any sensor Mesh node. Each sensor Mesh node exchanges data with the microcontroller through the UART protocol;

[0033] 2) The microcontroller assigns a unique address information to each sensor Mesh node;

[0034] 3) Each sensor Mesh node collects relevant data about its location, packages the collected data with its own address information, and sends it to the microcontroller through the Mesh network. The microcontroller uploads the collected information to the mobile phone through the Mesh network;

[0035] The building block sensor of the present invention integrates seven functions. Through the PCB process, sensor chips and microcontrollers with different functions are integrated on the main control board. The main control board is packaged inside the building block and powered by a built-in lithium battery. An embedded operating system is installed in the microcontroller. The MQTT communication protocol is used to exchange data between each sensor chip and the microcontroller. In order to ensure that each sensor is smooth and unblocked during data transmission, the timer in the microcontroller is used to collect data from each sensor in a polling manner.

[0036] Using the Bluetooth modules on each sensor chip and microcontroller, each sensor and microcontroller are organized into a Mesh network through BLE Bluetooth. Each sensor Mesh node serves as a terminal node and a routing node at the same time. At the same time, each sensor Mesh node has unique address information. The sensor packages the collected information and its own address information and sends it to the microcontroller. In the Mesh network, each sensor is set in terminal node mode. There is no need to care about other devices. It only needs to upload its own sensor data when it is polled. The rest of the time, it is in a dormant state to achieve low-power operation. At the same time, the mobile phone is connected to the Mesh network through BLE Bluetooth. The mobile phone communicates with the microcontroller through the General Agreement on Tariffs and Trade (GATT) protocol of standard low-power Bluetooth, and realizes command and reading of sensor information through the bottom of the mobile phone. Figure 8 This is a network topology diagram consisting of various sensors, microcontrollers and mobile phones.

[0037] When the system is working, first start the system. After the system is started, the system and various sensors and microcontrollers are initialized to form a Mesh network. Each sensor and microcontroller on the Mesh network broadcasts its unique address information on the network. When the mobile phone matches the network, the mobile phone obtains the address information of the microcontroller and the match is successful. After the match is successful, the mobile phone can access the relevant information of the sensors and microcontrollers on the network.

[0038] The above description is only used to illustrate the technical solution of the present invention rather than to limit it. Other modifications or equivalent substitutions made to the technical solution of the present invention by ordinary technicians in this field should be included in the scope of the claims of the present invention as long as they do not depart from the spirit and scope of the technical solution of the present invention.

Claims

1. A building block wireless sensor system based on Mesh network, characterized by: The invention comprises a common base (1) and a sensor base (2), wherein the common base (1) is provided with a main control board (104) and a battery (105) electrically connected to the main control board (104), the upper end of the common base (1) is provided with a first connection terminal (11) electrically connected to the main control board (104), the upper end of the sensor base (2) is provided with a sensor assembly (23), the sensor assembly (23) is cylindrical, and the sensor assembly (23) comprises an infrared sensor (231), a color sensor (232), a gesture sensor (233), a sound intensity sensor (234), a light intensity sensor (235), and a body sensor (23 6) and an LED patch light, the sensing head of the gesture sensor (233) is arranged at the center of the top surface of the sensor assembly (23), the sensing head of the infrared sensor (231) is arranged on the upper left side of the sensing head of the gesture sensor (233), the sensing head of the color sensor (232) is arranged on the lower left side of the sensing head of the gesture sensor (233), the sensing head of the sound intensity sensor (234) is arranged on the lower right side of the sensing head of the gesture sensor (233), the light intensity sensor (235) is arranged on both symmetrical sides of the sensor assembly (23), and the LED patch light is arranged below the top surface of the sensor assembly (23); The main control board (104) is integrated with chips and a microcontroller of an infrared sensor (231), a color sensor (232), a gesture sensor (233), a sound intensity sensor (234), a light intensity sensor (235) and a somatosensory sensor (236); the microcontroller is installed with an embedded operating system; the microcontroller and the chips of the infrared sensor (231), the color sensor (232), the gesture sensor (233), the sound intensity sensor (234), the light intensity sensor (235) and the somatosensory sensor (236) use the MQTT communication protocol; the microcontroller uses a built-in timer to collect sensor data in a polling manner; the infrared sensor chip, the color sensor chip, the gesture sensor chip, the sound intensity sensor chip, the light intensity sensor chip, the somatosensory sensor chip and the microcontroller all contain a Bluetooth module; the Bluetooth module has a BLE Mesh protocol stack, the infrared sensor (231), the color sensor (232), the gesture sensor (233), the sound intensity sensor (234), the light intensity sensor (235) and the body sensor (236) form a sensor system; the sensor system is a Mesh network formed by BLE Bluetooth, the sensor system enables a microcontroller to join the Mesh network through the Bluetooth communication protocol to form a building block wireless Mesh network, and the Mesh network is connected to a mobile phone through Bluetooth; The operation steps of the building block wireless mesh network are as follows: 1) Each sensor acts as a node in the Mesh network and there is at least one other sensor Mesh node within the communication range of any sensor Mesh node. Each sensor Mesh node exchanges data with the microcontroller via Bluetooth; 2) The microcontroller assigns a unique address information to each sensor Mesh node; 3) Each sensor Mesh node collects relevant data about its location, packages the collected data with its own address information, and sends it to the microcontroller through the Mesh network. The microcontroller uploads the collected information to the mobile phone through the Mesh network.

2. The building block wireless sensor system based on Mesh network according to claim 1, characterized in that: The lower end of the sensor seat (2) is provided with a second connection terminal (21) adapted to the first connection terminal (11); the inner side of the upper end of the common base (1) is provided with a first magnet (12); the inner side of the lower end of the sensor seat (2) is also provided with a second magnet (22) adapted to the first magnet (12); the common base (1) comprises a base middle frame (102), a base upper cover (101), and a base lower cover (103); the main control board (104) is installed in the base middle frame (102); the base lower cover (103) is provided with a battery compartment; the battery (105) is installed in the battery compartment; the base middle frame (102) is provided with a control switch (15), a charging interface (17), and a reset switch hole (16); the control switch (15) and the charging interface (17) are both electrically connected to the main control board (104); and the reset switch hole corresponds to the reset switch on the main control board (104).

3. The building block wireless sensor system based on Mesh network according to claim 2 is characterized in that: A plurality of latch holes (13) are symmetrically arranged on both sides of the base middle frame (102).

Citation Information

Patent Citations

  • Mesh wireless sensor network-based intelligent parking detection device

    CN102347970A

  • Robot learning and collaborating system based on Bluetooth mesh

    CN109118880A