Temperature monitoring system based on wireless sensor network
By constructing a wireless sensor network in the wireless temperature measurement system and using the coordinator, terminal nodes and routers to form a ZigBee network, the problem of a single communication structure and limited distance is solved, the flexibility and stability of the system are improved, and the communication coverage is expanded. scope.
Patent Information
- Application Number
- CN202322853046.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-23
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2033-10-23
AI Technical Summary
The existing wireless temperature measurement system has a single communication structure, is easily affected by convergence node failures, has limited communication distance, and lacks flexibility, making it impossible to achieve long-distance transmission and multi-point communication.
A temperature monitoring system based on wireless sensor networks is adopted, and a wireless LAN is constructed through the cooperation of the coordinator and multiple terminal nodes and routers, so that any node can be used as a temperature collection point or collection point, and the ZigBee protocol stack is used to realize network establishment and data transmission. Use CC2530 chip for data processing and transmission.
It improves the stability and flexibility of the system, expands the communication coverage, avoids the limitations of point-to-point communication, ensures that the system can still operate normally when a node fails, and extends the communication distance.
Smart Images

Figure CN221842701U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of temperature monitoring systems, in particular to a temperature monitoring system based on a wireless sensor network. Background Art
[0002] In the process of industrial and agricultural production, temperature is an important parameter, and sometimes it is necessary to monitor the temperature in real time. In today's society, wireless communication has become the mainstream, and wireless communication is undoubtedly the first choice for temperature monitoring. Compared with wired methods, wireless communication has the advantages of flexible layout and easy installation.
[0003] Common wireless temperature measurement system solutions such as Figure 3 As shown in the figure, the whole system consists of four parts: temperature sensor, microprocessor module, wireless transmission module and computer terminal. The whole system uses microprocessor as the core device. It is a main chip that undertakes the functions of data processing, analysis and transmission; the wireless transmission module is a radio frequency chip, which is mainly responsible for sending and receiving data wirelessly; the temperature sensor is responsible for collecting the required temperature data; finally, the temperature value is displayed on the computer terminal to achieve the purpose of monitoring. The composition of the temperature acquisition system: a temperature sensor, a microprocessor module and a wireless transmission module are integrated on a circuit board as a temperature acquisition point, which is placed where the temperature needs to be detected; and a microprocessor module and a wireless transmission module are integrated on another circuit board as a temperature receiving point, which is directly connected to the computer, thus completing the deployment of a temperature measurement point. To complete multi-point temperature measurement, you only need to add multiple temperature acquisition points and communicate with the temperature receiving points respectively to achieve multi-point temperature measurement.
[0004] However, the communication structure of the above multi-point wireless temperature measurement solution is as follows Figure 4 As shown: It consists of many temperature measurement nodes and a data collection node. Many temperature measurement nodes communicate with a data collection node wirelessly. Finally, the data collection point sends all temperature data to the computer for display. This point-to-point communication method has the following main disadvantages:
[0005] 1. If the data collection point fails, the entire system will be paralyzed;
[0006] 2. The point-to-point wireless communication distance is usually tens of meters to hundreds of meters, and this communication method cannot achieve long-distance transmission;
[0007] 3. The structure is simple and lacks flexibility. The aggregation node must be located in the center of the temperature measurement area to achieve normal communication at each point.
[0008] To this end, we need to propose a temperature monitoring system based on wireless sensor networks to solve the above-mentioned problems, improve system stability, expand the coverage of communication and improve the flexibility of the system. Utility Model Content
[0009] The purpose of the utility model is to provide a temperature monitoring system based on a wireless sensor network. Through the cooperation of a coordinator with multiple terminal nodes and routers, a wireless sensor network is constructed using wireless communication technology. It is no longer limited to a point-to-point temperature measurement mode, so that each temperature measurement point forms a wireless local area network that communicates with each other. Any node can be used as a temperature collection point or a temperature collection point, so as to solve the problems of a single communication structure, the impact of collection node failure on system operation, and low system flexibility, so as to solve the problems raised in the background technology.
[0010] To achieve the above object, the utility model provides the following technical solution: a temperature monitoring system based on a wireless sensor network, comprising a coordinator and a plurality of terminal nodes and a router, wherein the plurality of terminal nodes are electrically connected to the coordinator and the router respectively, and the router is electrically connected to the coordinator;
[0011] The terminal node and the router both include a temperature and humidity sensor and a low-power wireless chip, and the temperature and humidity sensor is bidirectionally connected to the low-power wireless chip;
[0012] The coordinator includes a computer and a low-power wireless communication chip, and the computer and the wireless communication chip are connected via serial port communication.
[0013] Preferably, the low-power wireless chip and the wireless communication chip are both configured as CC2530 chips mainly composed of a microprocessor and a wireless transceiver module, and the microprocessor is electrically connected to the wireless transceiver module.
[0014] Preferably, the temperature and humidity sensor is a single bus sensor with built-in A / D conversion, and the temperature and humidity sensor is connected to a low-power wireless chip via a wire.
[0015] Preferably, two adjacent routers among the plurality of routers are connected via a wire, and the plurality of routers are all connected to the coordinator via a wire.
[0016] Compared with the prior art, the beneficial effects of the utility model are:
[0017] 1. The utility model uses wireless communication technology to build a wireless sensor network through the cooperation of a coordinator with multiple terminal nodes and routers. It is no longer limited to the point-to-point temperature measurement mode, so that each temperature measurement point forms a wireless local area network that communicates with each other. Any node can be used as a temperature collection point or a temperature collection point, so as to solve the problems of single communication structure, failure of the collection node affecting the system operation, and low system flexibility.
[0018] 2. The nodes of the entire system of the utility model are no longer restricted to fixed positions, and each node is in a distributable and movable state, which improves the flexibility of the system.
[0019] 3. The utility model only needs one CC2530 chip to realize the two functions of data processing and wireless data transmission. Any node can realize different functions through configuration. If a node fails, it will not affect the normal operation of the system, which greatly improves the stability of the system. Since the nodes form a sheet network, it is no longer limited to the point-to-point communication mode, and the routers in the network act as communication relays, which extend the communication distance and expand the coverage of communication. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 This is a system block diagram of the utility model;
[0021] Figure 2 It is a schematic diagram of the communication structure of the utility model;
[0022] Figure 3 It is a system block diagram of a wireless temperature measurement system in the prior art;
[0023] Figure 4 The figure is a schematic diagram of the communication structure of the prior art multi-point wireless temperature measurement solution. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the technical solutions in the embodiments of the utility model. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments in the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.
[0025] See also Figure 1-2The utility model provides a technical solution: a temperature monitoring system based on a wireless sensor network, a temperature monitoring system based on a wireless sensor network, comprising a coordinator and a plurality of terminal nodes and a router, wherein the plurality of terminal nodes are electrically connected to the coordinator and the router respectively, and the router is electrically connected to the coordinator; the terminal nodes and the router both comprise a temperature and humidity sensor and a low-power wireless chip, and the temperature and humidity sensor is bidirectionally connected to the low-power wireless chip; the coordinator comprises a computer and a low-power wireless communication chip, and the computer is connected to the wireless communication chip via a serial port communication;
[0026] Through the cooperation of the coordinator with multiple terminal nodes and routers, a wireless sensor network is constructed using wireless communication technology. It is no longer limited to the point-to-point temperature measurement mode, and each temperature measurement point forms a wireless local area network that communicates with each other. Any node can be used as a temperature collection point or temperature aggregation point, so as to solve the problems of single communication structure, aggregation node failure affecting system operation, and low system flexibility.
[0027] The low-power wireless chip and the wireless communication chip are both configured as CC2530 chips mainly composed of a microprocessor and a wireless transceiver module. The microprocessor is electrically connected to the wireless transceiver module. Only one CC2530 chip is needed to realize the two functions of data processing and wireless data transmission. Any node can realize different functions through configuration. If a node fails, it will not affect the normal operation of the system, which greatly improves the system stability. Since the nodes form a sheet network, it is no longer limited to a point-to-point communication mode, and the routers in the network act as communication relays, which extend the communication distance and expand the communication coverage.
[0028] The temperature and humidity sensor is a single bus sensor with built-in A / D conversion, and the temperature and humidity sensor is connected to a low-power wireless chip through a wire.
[0029] Two adjacent routers among the plurality of routers are connected via a wire, and the plurality of routers are all connected to the coordinator via a wire.
[0030] The ZigBee network is composed of coordinators, routers and terminal nodes (node type is a concept of the network layer, reflecting the topology of the network). The coordinator is responsible for building the network and managing other sub-nodes, and is the core of the entire network; the router is the intermediate device between the terminal node and the coordinating node, and is mainly responsible for forwarding data packets; the terminal node is at the front end, responsible for collecting temperature information and sending the corresponding data to the coordinator or router.
[0031] A ZigBee network consists of a coordinator and numerous terminal nodes and routers, as follows Figure 2As shown in the figure, the terminal node sends data to the router, and can also communicate directly with the coordinator; the router receives the data from the terminal node and sends it to the coordinator, or collects data and sends it to the coordinator, and it can also communicate with any other router; the coordinator can communicate with all nodes.
[0032] Any node can become a terminal node, router or coordinator, and users can configure it according to actual needs. Different node types determine their different job responsibilities: the terminal node is responsible for collecting temperature; the router is responsible for forwarding and extending the communication distance; the coordinator aggregates the data of all nodes and packages it for display on the computer.
[0033] When the utility model performs temperature monitoring, it needs to go through the following three parts: the hardware circuit construction of the system, the formation process of the wireless local area network and the process of wireless data transmission.
[0034] 1. Hardware circuit construction of the system
[0035] The core device used is CC2530 chip, which is a wireless RF chip developed by Texas Instruments and supports ZigBee underlying protocol. The chip integrates microprocessor and wireless communication module, which can realize data transmission, processing and analysis. The temperature sensor DHT11 is a single bus sensor with built-in A / D conversion, which has the advantage of low power consumption.
[0036] The hardware of the whole system is divided into two parts: data acquisition part and data aggregation part. The system hardware block diagram is as follows Figure 1 As shown, by connecting the temperature sensor DHT11 with the main chip CC2530, a terminal node or a router is formed. Then a main chip CC2530 is used as a coordinator and directly connected to the computer through the serial port.
[0037] The entire hardware system consists of many terminal nodes and router nodes, which are the data collection part, and a coordinator, which is the data aggregation part.
[0038] 2. The process of establishing a wireless LAN
[0039] After building the hardware circuit, you can use ZigBee technology to build a wireless sensor network. To build a ZigBee network, you need to use the ZigBee protocol stack Z-stake, which is a program file package that contains various ZigBee network protocols and data packets for three types of nodes.
[0040] Before building a network, you need to configure the type of each node. Specific steps: open the protocol stack Z-stake file, select the corresponding node type data packet, burn it into the main chip CC2530, and complete the configuration.
[0041] The work of creating a network is completed by the coordinator module. The first thing the coordinator module does after powering on is to create a network and then wait for terminal nodes and routers to join. The specific steps are as follows:
[0042] (1) Network initialization process
[0043] ① Determine the network coordinator: ZigBee network initialization can only be initiated by the network coordinator. Before forming a network, the coordinator will determine whether other networks already exist. Through active scanning, a beacon request frame is sent, and this frame will also receive replies from the surrounding coordinator nodes. The coordinator gets these beacon reply frames to determine the surrounding network conditions.
[0044] ②Channel selection: The coordinator can select a suitable channel through active scanning. Of course, the user can also specify the channel in the protocol stack code.
[0045] ③ Set PANID: After selecting the appropriate channel, the coordinator will select a network identifier PANID for the network to distinguish different networks. The coordinator can listen to the PANIDs of the surrounding networks and then select an ID that will not conflict. Users can also set a PANID that does not conflict with other networks.
[0046] ④Assign network address: In a ZigBee network, the network address is used to identify devices in the local network.
[0047] In a network, each device has a unique network address. When a terminal node or router joins the network, it is assigned by the coordinator, which uses the network address to identify the communication object. The network address of the coordinator is usually 0x0000.
[0048] (2) Process of connecting terminal nodes and routers to the network
[0049] Any ZigBee module that joins the network must have a network node as the introducing node. The introducing node and the introduced node are in a parent-child relationship and can communicate with each other. After the coordinator is determined, the terminal node and / or router needs to establish a connection with the coordinator after powering on to join the network. The specific process is as follows:
[0050] ① Find the coordinator: First set the PANID of the terminal nodes and routers, and then they will find the coordinator with the same PANID as their own and request to join its network.
[0051] ②Assigning network addresses: When a terminal node or router finds a coordinator for the network, it sends a frame with its MAC address to the coordinator. The coordinator randomly assigns a network address to the terminal node or router based on the MAC address.
[0052] The network identifier PANID is the ID of a network, and the network address is the ID of each node. After setting these two important parameters, a network is successfully established.
[0053] 3. Implementation of Wireless Data Transmission
[0054] The wireless data transmission and reception process is also implemented in the ZigBee protocol stack. By writing program code in the ZigBee protocol stack, the wireless communication process of the entire system can be realized.
[0055] The coordinator is responsible for completing the network formation. It is the center of the network and needs to be started first. After power is turned on, the network is established first. After the terminal node or router is powered on, it must first join the network and then perform the corresponding functions. The networking process has been described in detail above and will not be repeated here. After the network is successfully established, the ZigBee protocol stack starts working.
[0056] Data receiving and sending process: When the terminal node reads the temperature and humidity data, the ZigBee protocol stack will execute the task event function SYS_EVENT_MSG to send the data packet, and then send the data to the coordinator or router through the AF_DataRequest function; the router also executes the above function to forward the data to the coordinator. The coordinator receives the temperature data packet from the sensor node and transmits it to the computer through the serial port.
[0057] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A temperature monitoring system based on a wireless sensor network, including a coordinator and multiple terminal nodes and routers. Features: The plurality of terminal nodes are electrically connected to the coordinator and the router respectively, and the router is electrically connected to the coordinator; The terminal node and the router both include a temperature and humidity sensor and a low-power wireless chip, and the temperature and humidity sensor is bidirectionally connected to the low-power wireless chip; The coordinator includes a computer and a low-power wireless communication chip, and the computer and the wireless communication chip are connected via serial port communication.
2. The temperature monitoring system based on wireless sensor network according to claim 1, Features: The low-power wireless chip and the wireless communication chip are both configured as CC2530 chips mainly composed of a microprocessor and a wireless transceiver module, and the microprocessor is electrically connected to the wireless transceiver module.
3. The temperature monitoring system based on wireless sensor network according to claim 2, Features: Two adjacent routers among the plurality of routers are connected via a wire, and the plurality of routers are all connected to the coordinator via a wire.
