Multi-type sensor data acquisition and transmission method and device

By designing a multi-type sensor data acquisition and transmission system, using the MCU and uc/OS operating system to realize real-time acquisition of sensor data and wireless self-organizing network transmission, the problem of difficulty in transmitting sensor data in mountainous areas is solved and the safety and disasters of railway operations are ensured. Real-time monitoring.

CN118945613APending Publication Date: 2024-11-12CHINA RAILWAY ERYUAN ENGINEERING GROUP CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202411222399.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-02
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

In difficult and complex mountainous areas, there are difficulties in collecting and transmitting sensor data, especially due to the undulating terrain and unstable wireless data transmission caused by trees, which cannot meet the needs of railway infrastructure and geological disaster monitoring.

Method used

A multi-type sensor data acquisition and transmission system is designed, and the hardware channel switching is controlled through the MCU, combined with the uc/os operating system to realize the time-sharing acquisition of sensor data and the establishment and maintenance of wireless self-organizing networks, and the data is uploaded to the remote using the GPRS module. Server, ensure real-time online monitoring.

Benefits of technology

Real-time acquisition of multi-type sensor data and wireless self-organizing network transmission are realized, overcoming the difficulties in wireless data transmission caused by the ups and downs of mountainous areas and tree occlusion, ensuring the safety of railway operations along the line and real-time monitoring of disasters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118945613A_ABST
    Figure CN118945613A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of monitoring equipment, in particular to a multi-type sensor data acquisition and transmission method and device. The multi-type sensor data acquisition and transmission device comprises sensors, a main control chip, a terminal node and an aggregation node, the main control chip controls the terminal node to collect sensor data and upload the sensor data to the sink node, the main control chip controls the sink node to summarize the sensor data and then upload the sensor data to the data center, and the data center stores and analyzes the sensor data in real time; the sensor data is collected by a plurality of digital quantity sensors and a plurality of analog quantity sensors. In actual operation of the system, hardware channel switching is controlled through the MCU, and matching of an access channel and a sensor type is completed. Therefore, real-time on-line remote monitoring of hard and complex mountain area disasters is realized, and the operation safety of railways along the line is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of sensor data acquisition and transmission, and in particular to a method and device for acquiring and transmitting data of multiple types of sensors. Background Art

[0002] Due to the harsh environment in difficult and complex mountainous areas, sensor deployment and data transmission are very difficult, and a sensor data acquisition and transmission device based on wireless network is urgently needed. In actual engineering applications, single-hop wireless star network transmission has the disadvantages of being easily blocked by obstacles and having a small monitoring range. It cannot meet the requirements of use in complex mountainous areas with large terrain fluctuations and severe tree obstruction. Therefore, it is urgent to develop a damage-resistant, self-organizing wireless sensor monitoring system.

[0003] In combination with the current development status of the Internet of Things, data collection and transmission, and aimed at the problems of multiple sensor types and difficult wireless data transmission in the automated monitoring of railway infrastructure and geological disasters in dangerous and complex mountainous areas, this paper designs a multi-type sensor data collection and transmission system, which can realize data collection of multiple channels and multiple types of sensors, and at the same time overcome the difficulties in wireless data transmission caused by the undulating terrain and severe tree obstruction in mountainous areas.

[0004] In actual operation of the system, the MCU controls the switching of hardware channels to match the access channel with the sensor type. The uc / os operating system completes the time-sharing collection of sensor data, the establishment and maintenance of the wireless self-organizing network, and transmits the sensor data collected by the node to the aggregation node in real time. Finally, the aggregation point summarizes and uploads it to the remote server via GPRS. This realizes real-time online remote monitoring of disasters in difficult and complex mountainous areas, ensuring the safety of railway operations along the line. Summary of the invention

[0005] The method of the present invention collects data of multiple different types of sensors through multiple channels, and proposes a method and device for collecting and transmitting data of multiple types of sensors, so as to realize real-time online remote monitoring of disasters in difficult and complex mountainous areas and ensure the safety of railway operations along the line.

[0006] In order to achieve the above objectives, the following technical solutions are proposed:

[0007] A multi-type sensor data collection and transmission device, including sensors, a main control chip, terminal nodes and aggregation nodes;

[0008] The main control chip controls the terminal node to collect sensor data and upload it to the aggregation node. The main control chip controls the aggregation node to aggregate the sensor data and upload it to the data center. The data center stores and analyzes the sensor data in real time.

[0009] The sensor data is collected by a plurality of digital sensors and a plurality of analog sensors.

[0010] The device can be used in automated monitoring of railways in dangerous and complex mountainous areas to achieve real-time collection of multi-type sensor data and wireless self-organizing network transmission, with good operating results.

[0011] Preferably, the main control chip adopts STM32F103.

[0012] Preferably, the terminal node includes a data acquisition module, a power monitoring module, a wireless 433MHz module, and a serial communication module;

[0013] The data acquisition module includes a digital sensor, an analog sensor and a vibrating string sensor; the data acquisition module collects the sensor data and inputs it into the main control chip;

[0014] The power monitoring module monitors the battery power of the terminal node by connecting to the main control chip;

[0015] The serial communication module converts the sensor data into actual physical quantities by connecting to the main control chip;

[0016] The wireless 433MHz module transmits the sensor data by connecting to the main control chip and the aggregation node.

[0017] Preferably, the aggregation node includes a GPRS module, a wireless 433MHz module, an SD card storage module and a clock module;

[0018] The wireless 433MHz module wirelessly transmits the sensor data by connecting to the main control chip and the terminal node;

[0019] The GPRS module is connected to the main control chip and the remote server to transmit the sensor data;

[0020] The SD card storage module and the clock module are connected to the main control chip, and the SD card storage module stores the sensor data through the SD card when the GPRS module network is offline;

[0021] The clock module performs time marking on the aggregation node by connecting to the main control chip.

[0022] Preferably, the circuit of the analog quantity sensor includes several analog quantity sensors, a multi-channel selection switch, a signal conditioning circuit selection switch, a signal conditioning circuit, an AD conversion circuit and a wireless 433MHz module;

[0023] The several analog sensors are connected to the terminal node, sampling channels are selected through the multi-channel selection switch, and the signal conditioning circuits corresponding to the several analog sensors are selected through the signal conditioning circuit selection switch. The analog signals output by the analog sensors are input into the AD conversion circuit after passing through the signal conditioning circuit. The AD conversion circuit converts the analog signals into digital signals. The main control chip processes the digital signals and sends them to the aggregation node.

[0024] Preferably, the analog quantity sensor comprises a vibrating string sensor, and the circuit of the vibrating string sensor comprises a vibrating string sensor, an electronic switch, an excitation circuit and a vibration pickup circuit;

[0025] The excitation circuit includes a frequency sweeping excitation source, a power amplifier circuit and an isolation protection circuit; the vibration pickup circuit includes a passive high-pass filter circuit, a first amplifier circuit, a second active band-pass filter circuit, a second amplifier circuit, a waveform shaping circuit and an optocoupler isolation circuit;

[0026] The excitation circuit outputs a frequency-adjustable sweep frequency excitation signal through the main control chip, and the sweep frequency excitation signal passes through the power amplifier circuit and the isolation protection circuit and then is controlled by the electronic switch in a time-sharing manner to excite the vibrating string sensor to oscillate;

[0027] The vibrating-string sensor generates a millivolt-level attenuated oscillating sinusoidal signal after being vibrated by the swept-frequency excitation signal. The sinusoidal signal first passes through the passive high-pass filter circuit to filter out the power frequency interference, then passes through the first amplification circuit to amplify the sinusoidal signal 100 times, and then passes through the second-order active band-pass filter circuit to filter out low-frequency and high-frequency noise; then passes through the second amplification circuit to amplify the signal 37 times again, and the signal is amplified to the input range of the main control chip. Finally, the sinusoidal signal is converted into a standard square wave signal by the waveform shaping circuit. The square wave signal is finally input into the pulse capture input port of the main control chip through the optocoupler isolation circuit to complete the measurement of the signal frequency.

[0028] Based on the same concept, a multi-type sensor data collection and transmission method is also proposed, including the following steps:

[0029] Call corresponding sensor software programs according to digital sensors and analog sensors to collect sensor data;

[0030] A wireless self-organizing sensor network is established to transmit the sensor data; the terminal node collects the sensor data and uploads it to the aggregation node, the aggregation node aggregates the sensor data and uploads it to the data center, and the data center stores and analyzes the sensor data in real time.

[0031] Preferably, the data acquisition software process of the terminal node for the analog sensor includes the following steps:

[0032] 1. Configuration parameters, including the number of access channels, access channel numbers, channel conversion parameters, sensor numbers, and over-limit thresholds;

[0033] 2. Read the parameters and activate the driver of the corresponding analog sensor;

[0034] 3. Complete channel selection and signal processing circuit selection in the circuit of the analog sensor according to the driver program;

[0035] 4. After completing the selection, read the sensor data to determine whether the data exceeds the limit. If so, issue an alarm. Otherwise, read the sensor data again.

[0036] Preferably, the data acquisition software process of the terminal node for the vibrating string sensor comprises the following steps:

[0037] Set the relevant parameters for initialization, control the electronic switch to connect the excitation circuit, the main control chip sends out a PWM wave of the set frequency to excite the sensor, and after the sensor starts to vibrate, control the electronic switch to connect the vibration pickup circuit, condition the frequency signal transmitted back by the sensor and calculate the frequency value, compare the measured frequency with the set excitation frequency value, and determine whether the sensor resonates. If resonance occurs, the measured frequency is the natural frequency of the sensor at this time;

[0038] If resonance does not occur, the PWM wave frequency needs to be increased by the set step value, and it is necessary to determine whether the PWM wave frequency value exceeds the set range. If it exceeds the range, it means that the vibration effect of the sensor steel string is poor and the measurement fails. If it does not exceed the range, the excitation frequency measurement process is repeated until the sensor resonates. The measured frequency value at this time is the natural frequency of the sensor, which is the output frequency value.

[0039] Preferably, the wireless 433MHz module constitutes a wireless self-organizing sensor network, and the specific implementation steps include:

[0040] The aggregation node broadcasts the networking information;

[0041] The terminal node perceives the network information, updates the neighbor node routing information table, and calculates its own routing weight value;

[0042] The node receives new neighbor information, continuously updates the information table, and calculates its own routing weight value;

[0043] By comparing the node routing weight values ​​in the node information table, the local optimal routing node is added, and the neighbor node information collected by the node is uploaded. Each node selects the optimal routing parent node from the neighbor information, and waits for a period of time until there is no new neighbor node information, and then uploads the collected neighbor node information table and the current energy value of its own node to the remote server.

[0044] Compared with the prior art, the present invention has the following beneficial effects: the method of the present invention can realize data collection of multiple channels and multiple types of sensors, while overcoming the difficulties in wireless data transmission caused by the rugged terrain and severe tree obstruction in mountainous areas. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 is a flow chart of the present invention;

[0046] Figure 2 It is a schematic diagram of the system structure of the present invention;

[0047] Figure 3 This is a diagram of the hardware design framework of the aggregation node of Example 1;

[0048] Figure 4 This is a diagram of the terminal node hardware design framework of Example 1;

[0049] Figure 5 The circuit design framework diagram of the terminal node analog quantity acquisition module of Example 1;

[0050] Figure 6 A circuit design framework for the terminal node vibrating string acquisition module of Example 1;

[0051] Figure 7 This is a flow chart of terminal node analog signal acquisition in Example 1;

[0052] Figure 8 This is a flow chart of the vibrating string sensor signal acquisition software of Example 1. DETAILED DESCRIPTION

[0053] The present invention is further described in detail below in conjunction with test examples and specific implementation methods. However, this should not be understood as the scope of the above subject matter of the present invention being limited to the following embodiments, and all technologies realized based on the content of the present invention belong to the scope of the present invention.

[0054] Unless otherwise specified, in the description of the specific embodiments of the present invention, the terms indicating the orientation or position relationship such as "up", "down", "left", "right", "center", "inside", "outside", etc. are all based on the expression of the orientation or position relationship shown in the drawings, or are the orientation or position relationship when the invented product / equipment / device is usually used. These terms of orientation or position relationship are only for the convenience of describing the scheme of the present invention or simplifying the description in the specific embodiments, so as to facilitate the technicians to quickly understand the scheme, and do not indicate or imply that a specific device / component / element must have a specific orientation, or be constructed and operated in a specific position relationship, and therefore cannot be understood as a limitation on the present invention.

[0055] In addition, in the description of the embodiments of the present invention, "several", "plurality" and "a number" represent at least 2. It can be any number such as 2, 3, 4, 5, 6, 7, 8, 9, and even more than 9.

[0056] In addition, in the description of the technical solution of the present invention, unless otherwise clearly specified / defined / restricted, the terms "set", "install", "connect", "connected", "provided with", "laid", and "arranged" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection, and can be welding, riveting, bolting, threading, and other commonly used connection means in the field. This connection can be a mechanical connection, an electrical connection, or a communication connection; it can be a direct connection, or an indirect connection through an intermediate medium, and it can be the internal connection of two elements.

[0057] Example 1

[0058] like Figure 1 As shown, a multi-type sensor data collection and transmission device includes sensors, a main control chip, terminal nodes and aggregation nodes;

[0059] The main control chip controls the terminal node to collect sensor data and upload it to the aggregation node. The main control chip controls the aggregation node to aggregate the sensor data and upload it to the data center. The data center stores and analyzes the sensor data in real time.

[0060] The sensor data is collected by a plurality of digital sensors and a plurality of analog sensors.

[0061] The field monitoring equipment is mainly composed of terminal nodes, sensors, and aggregation nodes. The terminal nodes collect data from sensors deployed on site, and transmit the data to the aggregation nodes through the multi-hop self-organizing local area network composed of 433MHz monitoring area. The aggregation nodes summarize the data and upload it to the remote data center through the GPRS network. The data center stores and analyzes the received data in real time, and pushes the monitoring data and alarm information to the maintenance personnel and dispatchers in real time. The specific system structure is shown in the figure below. Figure 2 shown.

[0062] The aggregation node aggregates the sensor data collected by all terminal nodes and uploads it to the remote server through the GPRS module; the terminal node is both a sensor data acquisition terminal device and has a routing forwarding function, which can collect and upload sensor data to the aggregation node in real time via a 433MHz wireless network.

[0063] The aggregation node is composed of a GPRS module, a wireless 433MHz module, an SD card storage module and a clock module, and the main control chip uses STM32F103. The GPRS module is used for data communication between the aggregation node and the remote server to realize long-distance wireless data transmission. The wireless 433MHz module is used for data communication between the aggregation node and the front-end terminal node. The point-to-point communication distance can reach 3km under unobstructed conditions. In mountainous outdoor environments, the maximum distance of the point design is usually 1km. In the case of obstruction, the network realizes multi-hop self-organizing network communication. The SD card storage module is used to store important data in the SD card when the GPRS network signal is disconnected and the aggregation node is temporarily unable to upload data to the remote server. After the network is restored, the data stored in the SD card is automatically uploaded to the remote server. The clock module is used for time stamping of the aggregation node. The use of the clock chip DS3231 can reduce the clock drift of the aggregation node. The specific hardware design framework of the aggregation node is as follows: Figure 3 shown.

[0064] The terminal node consists of a data acquisition module, a power monitoring module, a wireless 433MHz module, and a serial communication module. The main control chip uses STM32F103. The data acquisition module is divided into three types according to the sensor type: digital, analog, and vibrating string. It can be used to collect data from various types of sensors and realize a universal sensor data acquisition platform. The wireless 433MHz module is used for network communication between terminal nodes and aggregation nodes to realize local area network data transmission. The serial communication module is used for terminal node parameter configuration to realize the conversion between different sensor output signals and actual physical quantities. The power monitoring module is used to monitor the battery power of the terminal node, and the monitoring result is used as a parameter for node routing energy calculation. The specific hardware design framework of the terminal node is as follows: Figure 4 shown.

[0065] Analog sensors are divided into voltage type, current type, resistance type, etc. according to the output data type. The output data range of voltage type and current type sensors of different manufacturers is also different. The analog data acquisition module should be compatible with multiple types of sensors and can collect data from sensors of multiple channels at the same time. The hardware design framework of the analog data acquisition module is as follows: Figure 5 As shown. After different types of analog sensors are connected to the terminal node, the sampling channel is selected through the multi-channel selection switch, and the signal conditioning circuit corresponding to the type of analog sensor is selected through the back-end signal conditioning circuit selection switch. The actions of the two selection switches are controlled by the host computer configuration software. The signal output by the analog sensor is input into the AD conversion circuit after the signal conditioning circuit to convert the analog quantity into a digital quantity, and the main control chip STM32F103 can process the converted digital quantity. The main control chip is also connected to the wireless 433MHz module, and the collected data can be sent to the aggregation node in a wireless form.

[0066] The output of the vibrating string sensor is a frequency signal. Compared with analog sensors, it has the advantages of strong anti-interference ability and easy long-distance transmission. Therefore, the vibrating string sensor is widely used in the engineering field. The hardware design framework of the vibrating string data acquisition module is as follows: Figure 6 As shown, it is mainly divided into the excitation circuit and the vibration pickup circuit.

[0067] The excitation circuit uses low-voltage sweep frequency excitation technology, and outputs a frequency-adjustable sweep frequency excitation signal through the main control chip STM32F103. The excitation signal passes through the power amplifier circuit and the isolation protection circuit, and then through the time-sharing control of the electronic switch to excite the vibrating string sensor to oscillate. The power amplifier circuit can improve the driving ability of the excitation signal, and the isolation protection circuit can effectively protect the subsequent circuit from surge voltage and static electricity threats.

[0068] The vibrating string sensor generates a mV-level attenuated oscillating sinusoidal signal after being vibrated by the excitation signal. The vibration pickup circuit needs to condition the signal into a signal that can be collected by the main control chip. The mV-level sinusoidal signal first passes through a passive high-pass filter circuit to filter out power frequency interference, and then passes through the first amplification circuit to amplify the signal 100 times. The signal after the first amplification passes through a second-order active bandpass filter circuit to filter out low-frequency and high-frequency noise. The signal after filtering out noise passes through the second amplification circuit again to amplify the signal 37 times, so that the signal is amplified to the input range of the main control chip. Finally, the waveform shaping circuit composed of a zero comparator and a Schmitt trigger converts the sinusoidal signal into a standard square wave signal, and finally the shaped signal is input into the pulse capture input port of the main control chip through an optocoupler isolation circuit to complete the measurement of the signal frequency.

[0069] The terminal node for data collection is based on the UC / OS operating system, and processes multiple tasks such as sensor data collection and wireless network self-organization transmission in a time-sharing manner. Sensor data collection is classified and collected according to the type of sensors connected to the monitoring design. Wireless network self-organization transmission includes multiple tasks such as network establishment, network maintenance and data transmission, realizing real-time sensor data collection and transmission of terminal nodes.

[0070] The terminal node classifies different sensor types and writes corresponding driver libraries. Sensor output signal categories are usually analog signals, digital signals, pulse signals, and vibrating string signals, so the software uses four threads to read the four major types of devices, and calls specific sensor device drivers in each thread to read data.

[0071] Analog sensors are not only of various types, but also have different output signal ranges. Therefore, in order for the terminal node hardware circuit to be able to handle the corresponding processing, parameter configuration must be performed first. The configuration information is shown in Table 1.

[0072] Table 1 Channel information configuration table

[0073]

[0074] Find the corresponding sensor driver through the sensor number in the parameter table, pass the other information in the parameter table as parameters to the driver, and complete the sensor data reading and physical conversion. See the process for details. Figure 7 .

[0075] The software design for reading vibrating string sensor signals is divided into two parts: excitation and frequency measurement. The specific software process is as follows: Figure 8 shown.

[0076] After setting the parameters and initializing them, control the electronic switch to connect the excitation circuit, and the main control chip STM32F103 sends out a PWM wave of the set frequency to excite the sensor. After the sensor starts to vibrate, control the electronic switch to connect the vibration pickup circuit, condition the frequency signal transmitted back by the sensor and calculate the frequency value, compare the measured frequency with the set excitation frequency value, and determine whether the sensor resonates. If resonance occurs, the measured frequency is the natural frequency of the sensor at this time; if no resonance occurs, the PWM wave frequency needs to be increased by the set step value, and determine whether the PWM wave frequency value exceeds the set range. If it exceeds the range, it means that the sensor steel string vibration effect is poor and the measurement fails; if it does not exceed the range, the excitation frequency measurement process is repeated until the sensor resonates. The measured frequency value at this time is the natural frequency of the sensor, and the output frequency value.

[0077] Example 2

[0078] The power consumption of wireless sensor systems mainly comes from two parts: network communication between nodes and consumption of sensors connected to the nodes. Therefore, a wireless self-organizing sensor network data transmission method based on connectivity and node energy optimization is proposed.

[0079] (1) Analysis of energy consumption of network communication between nodes

[0080] The energy consumption model of sending data during wireless communication between nodes is as follows:

[0081] E Tx (k,d)=kE elec +kεd 2 (1)

[0082] Where: k is the length of the data sent (bits), E elec is the energy consumption of the circuit for sending or receiving each bit of data, ε is the power consumption level of the wireless module when sending data, and d is the transmission distance.

[0083] The energy consumption of a node receiving k bits of data is:

[0084] E Rx (k) = kE elec (2)

[0085] Assuming that the number of nodes in cluster head j is n, the energy consumption model required for the cluster head as a routing node to receive and forward data is as follows:

[0086]

[0087] Where: k is the current data sending node in the cluster, and m is the number of bytes that the cluster head node needs to forward to the upper node after aggregation.

[0088] From formulas (1) to (3), we can see that the transmission distance d and the number of bytes sent m are the key factors affecting the energy consumption of the cluster head node. The cluster head node is the point with the largest energy consumption in the cluster. Therefore, optimizing cluster head selection and data transmission path can effectively reduce energy consumption.

[0089] (2) Node sensor power consumption

[0090] The node sensor energy consumption model is as follows:

[0091]

[0092] Where: P k is the connected sensor power, t is the sensor power-on working time, and n is the total number of connected sensors. When the sensor power and the number of connected sensors are constant, optimizing the sensor working time t can effectively reduce the node energy consumption.

[0093] The sensor working time optimization model is as follows:

[0094] M=f samp / f Electrify (5)

[0095] Where: M is the duty cycle of the sensor power-on time, f samp is the sensor sampling frequency, f Electrify is the sensor operating frequency. Therefore, reduce f samp , while increasing f Electrify , which can effectively shorten the M value and reduce the power consumption of node sensors.

[0096] Wireless sensor networks conduct routing design from two aspects: ensuring network connectivity and minimizing energy loss. They adopt a combination of front-end node perception routing and back-end server path optimization adjustment to ensure that network node data transmission is not lost and energy consumption is balanced. The specific implementation is as follows:

[0097] (1) Front-end node aware routing

[0098] Without the assistance of geographic location information, the layout of wireless sensor network nodes is random. Therefore, information exchange must be adopted between nodes to achieve network connectivity by sensing neighbor node information. The neighbor node storage information is shown in Table 2.

[0099] Table 2 Neighbor node information table

[0100]

[0101] The specific routing implementation steps are as follows:

[0102] In the first step, the aggregation node broadcasts the networking information, and its routing weight value is the largest, that is, weight = 255;

[0103] In the second step, the terminal node perceives the network information, updates the neighbor node routing information table, and calculates its own routing weight value:

[0104] weight = (parent node weight + parent node rssi + own weight) / 2

[0105] Join the parent node and broadcast your own node information at the same time.

[0106] In the third step, the node receives new neighbor information, continuously updates the information table, and calculates its own routing weight value:

[0107] weight = (neighboring node rssi + node hop weight hopweight * (maximum supported node hop maxhop - neighboring node hop) + neighboring node weight / 2)

[0108] By comparing the node routing weight values ​​in the node information table, the local optimal routing node is added, and the neighbor node information collected by the node is uploaded. Each node selects the optimal routing parent node from the neighbor information, and waits for a period of time until there is no new neighbor node information, and then uploads the collected neighbor node information table and the current energy value of its own node to the remote server.

[0109] (2) Backend path optimization adjustment

[0110] Through the preliminary network established by the front-end network nodes based on connectivity, all node-perceived neighbor information is uploaded to the back-end server. The server summarizes the connection matrix A based on signal strength between all nodes and the node residual energy information matrix E according to the neighbor information table and residual energy of all nodes received:

[0111]

[0112] E=(e1,e2...e n ) (7)

[0113] Where a nk is the signal strength value between the node with ID number n and node k, e n is the remaining energy percentage of the node with ID number n.

[0114] Extract the first column value of matrix A and convert a j1 >100 (the maximum signal strength is 255) is taken as a hop and routing node to obtain the matrix T:

[0115] T=(t1,t2...t n ) (8)

[0116] If(a j1 ≥100)t j =1else t j =0

[0117] Calculate the quality of each routing node, and update the routing matrix T through its signal strength with the aggregation node and its own energy. After updating, the routing quality matrix T' is obtained:

[0118] T'=(t1',t'2...t' n ) (9)

[0119] t i '=t i *(C*a i1 +K*e i ) (10)

[0120] Where t i is the routing node matrix T element, C is the signal strength weight value, ai1 is the element in the connection matrix A, K is the energy weight value, e i It is the element in the node energy matrix E.

[0121] After the routing node is determined, the remaining child nodes select the optimal routing parent node based on signal strength, routing node quality and the number of child nodes that have been added to the routing. The specific selection method is as follows:

[0122] R ij =C*a ij +M*t' j -Z*N j (11)

[0123] Where R ij is the evaluation value of child node i to the candidate routing parent node j, C is the signal strength weight value, a ij is the element in the connection matrix A, M is the routing quality weight value, t′ j is the element of the routing quality matrix T', N j is the number of child nodes connected to the candidate routing parent node, and Z is the weight value of the number of connected child nodes. The more child nodes the candidate routing node connects to, the greater its energy loss is, and the weight Z is used to limit the number of its child nodes connected.

[0124] Each terminal node in the secondary network is calculated by R ij The maximum value is selected as the routing parent node. So far, the routing node matrix T and the best parent node are used to select R ij , a two-hop network path planning based on energy and connectivity can be obtained.

[0125] The multi-type sensor data acquisition and transmission system uses a 433MHz wireless module for communication. Its point-to-point communication distance can reach 3km under unobstructed conditions, and it has strong obstacle diffraction ability, which is very suitable for outdoor communication. The anti-damage, self-organizing wireless self-organizing sensor network data transmission method further solves the problem of unstable data transmission and node energy exhaustion to network paralysis in the difficult and complex mountainous areas with large terrain fluctuations and severe tree obstruction.

[0126] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A multi-type sensor data acquisition and transmission device, characterized in that: Includes sensors, main control chips, terminal nodes and aggregation nodes; The main control chip controls the terminal node to collect sensor data and upload it to the aggregation node. The main control chip controls the aggregation node to aggregate the sensor data and upload it to the data center. The data center stores and analyzes the sensor data in real time. The sensor data is collected by a plurality of digital sensors and a plurality of analog sensors.

2. A multi-type sensor data acquisition and transmission device according to claim 1, characterized in that: The aggregation node includes a GPRS module, a wireless 433MHz module, an SD card storage module and a clock module; The wireless 433MHz module wirelessly transmits the sensor data by connecting to the main control chip and the terminal node; The GPRS module is connected to the main control chip and the remote server to transmit the sensor data; The SD card storage module and the clock module are connected to the main control chip. The SD card storage module stores the sensor data through the SD card when the GPRS module network is offline.

3. The multi-type sensor data acquisition and transmission device according to claim 1, characterized in that: The terminal node includes a data acquisition module, a power monitoring module, a wireless 433MHz module, and a serial communication module; The data acquisition module collects the sensor data and inputs it into the main control chip; The power monitoring module monitors the battery power of the terminal node by connecting to the main control chip; The serial communication module converts the sensor data into actual physical quantities by connecting to the main control chip; The wireless 433 MHz module transmits the sensor data by connecting to the main control chip and the aggregation node.

4. The multi-type sensor data acquisition and transmission device according to claim 2, characterized in that: The main control chip adopts STM32F103.

5. The multi-type sensor data acquisition and transmission device according to claim 2, characterized in that: The circuit of the analog quantity sensor includes several analog quantity sensors, a multi-channel selection switch, a signal conditioning circuit selection switch, a signal conditioning circuit, an AD conversion circuit and a wireless 433MHz module; The several analog sensors are connected to the terminal node, sampling channels are selected through the multi-channel selection switch, and the signal conditioning circuits corresponding to the several analog sensors are selected through the signal conditioning circuit selection switch. The analog signals output by the analog sensors are input into the AD conversion circuit after passing through the signal conditioning circuit. The AD conversion circuit converts the analog signals into digital signals. The main control chip processes the digital signals and sends them to the aggregation node.

6. The multi-type sensor data acquisition and transmission device according to claim 2, characterized in that: The analog quantity sensor comprises a vibrating string sensor, and the circuit of the vibrating string sensor comprises a vibrating string sensor, an electronic switch, an excitation circuit and a vibration pickup circuit; The excitation circuit includes a frequency sweeping excitation source, a power amplifier circuit and an isolation protection circuit; the vibration pickup circuit includes a passive high-pass filter circuit, a first amplifier circuit, a second-order active band-pass filter circuit, a second amplifier circuit, a waveform shaping circuit and an optical coupling isolation circuit; The excitation circuit outputs a frequency-adjustable sweep frequency excitation signal through the main control chip, and the sweep frequency excitation signal passes through the power amplifier circuit and the isolation protection circuit and then excites the vibrating string sensor to oscillate through the time-sharing control of the electronic switch; The vibrating-string sensor generates a millivolt-level attenuated oscillating sinusoidal signal after being vibrated by the swept-frequency excitation signal. The sinusoidal signal first passes through the passive high-pass filter circuit to filter out the power frequency interference, then passes through the first amplification circuit to amplify the sinusoidal signal 100 times, then passes through the second-order active bandpass filter circuit to filter out low-frequency and high-frequency noise, then passes through the second amplification circuit to amplify 37 times, and finally passes through the waveform shaping circuit to convert the sinusoidal signal into a standard square wave signal. The square wave signal is finally input into the pulse capture input port of the main control chip through the optocoupler isolation circuit to complete the measurement of the signal frequency.

7. A method for collecting and transmitting data from multiple types of sensors, characterized in that: The following steps are involved: S61: Calling corresponding sensor software programs according to digital sensors and analog sensors to collect sensor data; S62: Establishing a wireless self-organizing sensor network to transmit the sensor data; The terminal nodes collect sensor data and upload them to the aggregation node. The aggregation node aggregates the sensor data and uploads them to the data center. The data center stores and analyzes the sensor data in real time.

8. A method for collecting and transmitting data of multiple types of sensors according to claim 7, characterized in that: The data acquisition software process of the analog sensor includes the following steps: S71: Configuration parameters, including the number of access channels, access channel numbers, channel conversion parameters, sensor numbers, and over-limit thresholds; S72: Read the parameters and activate the driver of the corresponding analog sensor; S73: completing the channel selection and signal processing circuit selection of the analog sensor circuit according to the driver program; S74: After completing the channel selection and signal processing circuit selection, the sensor data is read to determine whether the data exceeds the limit. If it exceeds the limit, an alarm is issued, otherwise the sensor data is read again.

9. The method for collecting and transmitting data of multiple types of sensors according to claim 7, characterized in that: The data acquisition software process of the vibrating wire sensor includes the following steps: S81: Control the electronic switch to connect the excitation circuit, the main control chip sends a PWM wave of the set frequency to excite the sensor, and after the excitation sensor starts to vibrate, control the electronic switch to connect the vibration pickup circuit, adjust the frequency signal transmitted back by the excitation sensor and calculate the frequency value to obtain the measured frequency; S82: Compare the measured frequency with the set frequency to determine whether the excitation sensor resonates. If resonance occurs, the measured frequency is the natural frequency of the sensor at this time, and the natural frequency value is output; if no resonance occurs, increase the PWM wave frequency by the set step value, and determine whether the PWM wave frequency value exceeds the set range. If it exceeds the range, the measurement fails; if it does not exceed the range, repeat the steps in S1 until the sensor resonates. The measured frequency value at this time is the natural frequency of the sensor, and the frequency value is output.

10. The method for collecting and transmitting data of multiple types of sensors according to claim 7, characterized in that: The wireless self-organizing sensor network is composed of a wireless 433MHz module, and the specific implementation steps of the front-end node of the wireless self-organizing sensor network sensing routing include: S91: Setting the neighbor node information table, the aggregation node broadcasts the networking information; S92: The terminal node perceives the networking information, updates the neighbor node routing information table, calculates the routing weight value of the terminal node, joins the parent node, and broadcasts the terminal node information at the same time; S93: The terminal node continuously updates the neighbor node information table by receiving new networking information of the neighbor node, and calculates the routing weight value of the terminal node; S94: By comparing the node routing weight values ​​in the node information table, adding the local optimal routing node, and uploading the neighbor node information collected by the terminal node, each node selects the optimal parent node from the neighbor information, and waits for a period of time until there is no new neighbor node information, and then uploads the collected neighbor node information table and the current energy value of its own node to the remote server.

Citation Information

Cited By

  • Complex environment information acquisition method based on sensor network

    CN119789145A

  • Large-scale sensor data aggregation method based on multiple paths

    CN119815302A

  • A multi-path based large-scale sensor data aggregation method

    CN119815302B