Wireless sensor data transmission apparatus, method and device

CN116684842BActive Publication Date: 2026-09-25STATE GRID HEBEI ELECTRIC POWER RES INST +2
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310627892.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-30
Publication Date
2026-09-25
Estimated Expiration
2043-05-30

AI Technical Summary

Technical Problem

[0004]本发明实施例提供了一种无线传感器数据传输装置、方法及设备,以解决无法及时上报传感器的遥信数据的问题

Benefits of technology

[0033]本发明实施例提供一种无线传感器数据传输装置、方法及设备,该装置包括采集汇聚模块、协议转换模块和协议解析模块;协议解析模块设置有多个寄存器,通过使每个传感器分别对应一个寄存器,可以实现传感器和寄存器的关联,在协议转换模块转换存储的过程中,可以将每个传感器的遥测数据转换存储至传感器对应的寄存器内,同时,协议转换模块还可以将每个传感器的遥信数据转换存储至所有的寄存器内,即在每个传感器对应的寄存器内都存储有该传感器对应的遥测数据和所有的传感器的遥信数据;因此,在接收到任意一个传感器的传感数据轮询指令时,都可以将所有的传感器的遥信数据传输至融合终端,无需逐个获取每个传感器对应的寄存器内的数据,从而能够保证融合终端及时获取重要的遥信数据,实现对所有传感器的遥信的监测;同时,每个传感器分别对应一个寄存器,能够将各个传感器的遥测数据分别进行存储,在传感器数据传输的过程中,可以仅将需要传感器的遥测数据传输至融合终端,无需将所有的传感器的遥测数据都上传,可以减少上传的数据量,从而提高数据传输的效率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116684842B_ABST
    Figure CN116684842B_ABST
Patent Text Reader

Abstract

The application provides a wireless sensor data transmission device, method and equipment. The method comprises: a collection and convergence module, a protocol conversion module and a protocol analysis module; the protocol analysis module is provided with a plurality of registers, and each sensor corresponds to a register; the collection and convergence module is used for collecting sensor data of each sensor and storing the sensor data of each sensor into a corresponding storage unit, and the sensor data comprises remote signaling data and remote measurement data; the protocol conversion module is used for converting and storing each remote signaling data into all registers and converting and storing each remote measurement data into a register of the corresponding sensor; and the protocol analysis module is used for receiving a sensor data polling instruction of a fusion terminal and transmitting remote measurement data in a register corresponding to the sensor data polling instruction and all remote signaling data to the fusion terminal. The application can timely report remote signaling data of the sensor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data transmission technology, and in particular to a wireless sensor data transmission device, method, and apparatus. Background Technology

[0002] With the continuous advancement of power distribution network transparency construction, the proportion of sensors connected to the power distribution network is constantly increasing. It is necessary to configure the sensors through fusion terminals and report the sensor data to the power distribution automation master station.

[0003] The existing communication protocol between wireless sensors and fusion terminals needs to be converted from the wireless sensor protocol to the Modbus protocol to enable communication between the wireless sensors and the fusion terminal. The Modbus protocol using serial ports is a half-duplex protocol. The power distribution automation master station needs to copy the registers of all communication addresses one by one to obtain the data of all sensors. Therefore, there may be situations where the data of the wireless sensors has been sent and converted to the Modbus protocol format, but the information in the registers of the Modbus protocol may not be copied in time, resulting in the inability to report important remote signaling data in a timely manner. Summary of the Invention

[0004] This invention provides a wireless sensor data transmission device, method, and apparatus to solve the problem of the inability to report remote signaling data from sensors in a timely manner.

[0005] In a first aspect, embodiments of the present invention provide a wireless sensor data transmission device, comprising: a data acquisition and aggregation module, a protocol conversion module, and a protocol parsing module; the protocol parsing module is provided with multiple registers, with each sensor corresponding to one register;

[0006] The data acquisition and aggregation module is used to acquire the sensing data of each sensor and store the sensing data of each sensor into the corresponding storage unit of each sensor. The sensing data includes remote signaling data and telemetry data. The protocol conversion module is used to convert and store each remote signaling data into all registers, and to convert and store each telemetry data into the register of the corresponding sensor. The protocol parsing module is used to receive the sensor data polling command from the fusion terminal and transmit the telemetry data in the register corresponding to the sensor data polling command and all remote signaling data to the fusion terminal.

[0007] In one possible implementation, the sensing data also includes device information; each register includes at least one first register address and multiple second register addresses corresponding one-to-one with the sensor.

[0008] The protocol conversion module is specifically used for:

[0009] Based on the device information of each sensor, the telemetry data corresponding to each sensor is converted and stored in the first register address of the corresponding register;

[0010] In addition, based on the device information of each sensor, the remote signaling data corresponding to each sensor is converted and stored in the second register address corresponding to that sensor in all registers.

[0011] In one possible implementation, the protocol conversion module is also used for:

[0012] Based on the device information of each sensor, check whether there is a matching register for each sensor;

[0013] If a sensor does not have a matching register, then a corresponding register is allocated for the sensor, and the corresponding first register address and second register address are allocated for the sensor within the corresponding register.

[0014] In one possible implementation, the data acquisition and aggregation module has multiple pre-set acquisition models, with each sensor corresponding to one acquisition model.

[0015] The data acquisition and aggregation module is specifically used for:

[0016] Sensing data from each sensor is collected according to each acquisition model.

[0017] In one possible implementation, before acquiring the sensing data from each sensor according to each acquisition model, the acquisition and aggregation module is also used for:

[0018] Determine the data structure of the sensor data transmitted by each sensor, and based on the data structure corresponding to each sensor, determine the data format in each acquisition model and each storage unit.

[0019] In one possible implementation, the protocol parsing module is also used for:

[0020] The device receives the self-describing information polling command from the fusion terminal and transmits the device information in all registers to the fusion terminal so that the fusion terminal can register each sensor according to the device information.

[0021] Secondly, embodiments of the present invention provide a wireless sensor data transmission method, comprising: an apparatus applied to the first aspect or any possible implementation thereof, the method comprising:

[0022] The data acquisition and aggregation module collects the sensing data from each sensor and stores the sensing data from each sensor into the corresponding storage unit of each sensor. The sensing data includes remote signaling data and telemetry data.

[0023] The protocol conversion module converts and stores each remote signaling data into all registers, and converts and stores each telemetry data into the register of the corresponding sensor;

[0024] When the protocol parsing module receives the sensor data polling instruction from the fusion terminal, it transmits the telemetry data and all remote signaling data in the register corresponding to the sensor data polling instruction to the fusion terminal.

[0025] In one possible implementation, the sensing data also includes device information; each register includes at least one first register address and multiple second register addresses corresponding one-to-one with the sensor.

[0026] The protocol conversion module converts and stores each teleindication data point into all registers, and converts and stores each telemetry data point into the register of the corresponding sensor, including:

[0027] The protocol conversion module converts and stores the telemetry data corresponding to each sensor into the first register address in the corresponding register according to the device information of each sensor.

[0028] In addition, based on the device information of each sensor, the remote signaling data corresponding to each sensor is converted and stored in the second register address corresponding to that sensor in all registers.

[0029] In one possible implementation, the data acquisition and aggregation module has multiple pre-set acquisition models, with each sensor corresponding to one acquisition model.

[0030] The data acquisition and aggregation module collects sensing data from each sensor, including:

[0031] The data acquisition and aggregation module collects the sensor data from each sensor according to each acquisition model.

[0032] Thirdly, embodiments of the present invention provide a wireless sensor data transmission device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method described in the second aspect above or any possible implementation of the second aspect.

[0033] This invention provides a wireless sensor data transmission device, method, and apparatus. The device includes a data acquisition and aggregation module, a protocol conversion module, and a protocol parsing module. The protocol parsing module has multiple registers. By assigning a register to each sensor, the association between sensors and registers can be achieved. During the conversion and storage process in the protocol conversion module, the telemetry data of each sensor can be converted and stored in the corresponding register. Simultaneously, the protocol conversion module can also convert and store the remote signaling data of each sensor in all registers. That is, each sensor's corresponding register stores both the telemetry data of that sensor and the remote signaling data of all sensors. Therefore, when a polling command for sensor data is received from any sensor, the remote signaling data of all sensors can be transmitted to the fusion terminal without having to acquire the data in each sensor's corresponding register individually. This ensures that the fusion terminal can acquire important remote signaling data in a timely manner and achieve remote signaling monitoring of all sensors. Furthermore, since each sensor corresponds to a register, the telemetry data of each sensor can be stored separately. During sensor data transmission, only the telemetry data of the sensors that need it can be transmitted to the fusion terminal, without uploading the telemetry data of all sensors, thus reducing the amount of data uploaded and improving data transmission efficiency. Attached Figure Description

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

[0035] Figure 1 This is an application scenario diagram of the wireless sensor data transmission device provided in the embodiments of the present invention;

[0036] Figure 2 This is a schematic diagram of the structure of the wireless sensor data transmission device provided in an embodiment of the present invention;

[0037] Figure 3(a) is a schematic diagram of the structure of the register corresponding to the sensor provided in an embodiment of the present invention;

[0038] Figure 3(b) is a schematic diagram of the register structure corresponding to the temperature and humidity sensor provided in the embodiment of the present invention;

[0039] Figure 3(c) is a schematic diagram of the structure of the register corresponding to the smoke sensor provided in the embodiment of the present invention;

[0040] Figure 3(d) is a schematic diagram of the structure of the register corresponding to the water level sensor provided in the embodiment of the present invention;

[0041] Figure 4(a) is a schematic diagram of the application of the register corresponding to the temperature and humidity sensor provided in the embodiment of the present invention;

[0042] Figure 4(b) is a schematic diagram of the application of the register corresponding to the water level sensor provided in the embodiment of the present invention;

[0043] Figure 5 This is a flowchart illustrating the implementation of the wireless sensor data transmission method provided in this embodiment of the invention.

[0044] Figure 6 This is a schematic diagram of a wireless sensor data transmission device provided in an embodiment of the present invention. Detailed Implementation

[0045] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of the invention. However, those skilled in the art will understand that the invention can be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods are omitted so as not to obscure the description of the invention with unnecessary detail.

[0046] To make the objectives, technical solutions, and advantages of the present invention clearer, specific embodiments will be described below in conjunction with the accompanying drawings.

[0047] Figure 1 This is an application scenario diagram of the wireless sensor data transmission device provided in this embodiment of the invention. The wireless sensor data transmission device 20 is connected to at least one sensor 10 via wireless communication to collect the sensing data of each sensor 10. The wireless sensor data transmission device 20 is also connected to a fusion terminal 30 via a serial port to transmit the collected sensor data to the fusion terminal 30. The fusion terminal 30 is connected to a power distribution automation master station 40 via wireless communication to transmit the sensor data to the power distribution automation master station 40 for display.

[0048] Figure 2 This is a schematic diagram of the wireless sensor data transmission device provided in an embodiment of the present invention, which is described in detail below:

[0049] like Figure 2 As shown, the wireless sensor data transmission device 20 includes: a data acquisition and aggregation module 21, a protocol conversion module 22, and a protocol parsing module 23; the protocol parsing module 23 is equipped with multiple registers, with each sensor 10 corresponding to one register.

[0050] In this embodiment, the protocol parsing module 23 is equipped with a register corresponding to each sensor 10. See Figure 3(a) for a schematic diagram of the register structure corresponding to each sensor. The register mainly consists of three parts: a part for storing remote signaling data of all sensors, a part for representing the device information of the sensor corresponding to the register, and a part for storing telemetry data of the sensor corresponding to the register. The number of bits used to store remote signaling data in the register can be 8 bits, 16 bits, or 32 bits, etc. An 8-bit register means there are 8 bits, and each bit can store one remote signal. If the number of bits currently storing remote signaling data is too small to store all the remote signaling data of all sensors, the number of bytes in the register can be increased, i.e., the number of bits in the register can be increased. Alternatively, additional registers can be added to form a register group corresponding to each sensor to store all the remote signaling data. For example, if the register is pre-set with 8 bits, and all sensors have 12 remote signals, then one byte can be added to the register, i.e., 4 bits, to store the remaining 4 remote signals.

[0051] In addition, in the part of each register used to store remote signaling data, each bit corresponds to a specific sensor and a specific remote signaling data in a pre-set manner, meaning there is a one-to-one correspondence between bits and remote signaling data. For example, if sensor 1 includes a temperature and humidity sensor, a smoke sensor, and a water level sensor, then each bit in the register can be set as follows: 01 corresponds to a temperature alarm, 02 corresponds to a humidity alarm, 03 corresponds to a smoke alarm, 04 corresponds to a water level alarm, and 05, 06, 07, 08... also correspond to a remote signaling data; where 01, 02, 03, 04... are register addresses.

[0052] The device information in the sensing data can be a sensor ID containing the device type of the sensor. Different types of sensors 10 correspond to different numbers, which are then encoded into the sensor ID. Since each sensor 10 corresponds to a register, the device information in the register is used to indicate the sensor corresponding to that register. Specifically, this can be either the sensor ID or the number corresponding to the sensor's device type.

[0053] The portion of the register used to store the telemetry data of the corresponding sensor 10 is also set according to the telemetry data of the sensor 10. The corresponding positions in the register are divided and set according to the quantity or format of the telemetry data. Specifically, refer to the structural diagram of the register corresponding to the temperature and humidity sensor shown in Figure 3(b). The sensing data of the temperature and humidity sensor includes two types of telemetry data: temperature and humidity. The portion of the register corresponding to the temperature and humidity sensor used to store the telemetry data is also set with two storage positions for temperature and humidity. Refer to the structural diagram of the register corresponding to the smoke sensor shown in Figure 3(c). The sensing data of the smoke sensor only includes one type of telemetry data: smoke value. Therefore, the portion of the register corresponding to the smoke sensor used to store the telemetry data is also set with only one storage position for smoke value. Similarly, refer to the structural diagram of the register corresponding to the water level sensor shown in Figure 3(d). The sensing data of the water level sensor only includes one type of telemetry data: water level value. Therefore, the portion of the register corresponding to the water level sensor used to store the telemetry data is also set with only one storage position for water level value.

[0054] The data acquisition and aggregation module 21 is used to acquire the sensing data of each sensor 10 and store the sensing data of each sensor 10 into the corresponding storage unit of each sensor 10. The sensing data includes remote signaling data and telemetry data.

[0055] Optionally, the data acquisition and aggregation module 21 has multiple preset acquisition models, with each sensor 10 corresponding to one acquisition model; the data acquisition and aggregation module 21 is specifically used to: acquire the sensing data of each sensor 10 according to each acquisition model.

[0056] In this embodiment, the data acquisition and aggregation module 21 has a preset acquisition model corresponding to each sensor 10. When acquiring sensor data, the acquisition is performed according to the acquisition model, so only the necessary sensor data can be acquired, that is, only the device information, remote signaling data and telemetry data can be acquired, which can reduce the amount of data acquired.

[0057] Furthermore, before acquiring the sensing data of each sensor 10 according to each acquisition model, the acquisition and aggregation module 21 is also used to: determine the data structure of the sensing data transmitted by each sensor 10, and determine the data format in each acquisition model and each storage unit according to the data structure corresponding to each sensor 10.

[0058] In this embodiment, the data structures of the sensing data transmitted by different sensors 10 are different. Specifically, the sensing data of the temperature and humidity sensor includes temperature alarm, humidity alarm, temperature value, and humidity value, where temperature alarm and humidity alarm are two remote signaling signals, and temperature value and humidity value are two telemetry signals. The sensing data of the water level sensor includes water level alarm and water level value, where water level alarm is one remote signaling signal, and water level value is one telemetry signal. Therefore, it is clear that the data structures of different sensors 10 are different. Thus, it is necessary to set the acquisition model of each sensor 10 according to its data structure to selectively collect the sensing data of the sensor 10, achieving the acquisition of only the necessary sensing data, namely device information, remote signaling data, and telemetry data. Correspondingly, the collected sensing data of the sensor 10 is stored in a storage unit, so it is also necessary to set the data format of the storage unit corresponding to the sensor 10 according to its data structure.

[0059] The protocol conversion module 22 is used to convert and store each remote signaling data into all registers, and to convert and store each telemetry data into the register of the corresponding sensor 10.

[0060] In this embodiment, each sensor 10 corresponds to a register, enabling the association between the sensor 10 and the register. During the conversion and storage process of the protocol conversion module 22, the telemetry data of each sensor 10 can be converted and stored in the corresponding register of the sensor 10. At the same time, the protocol conversion module 22 can also convert and store the remote signaling data of each sensor 10 into all registers. That is, the register corresponding to each sensor 10 stores the telemetry data of that sensor 10 and the remote signaling data of all sensors 10. Thus, when the sensor data is subsequently uploaded to the fusion terminal 30, regardless of which register the fusion terminal 30 obtains the data from, the wireless sensor data transmission device 20 in this embodiment can upload the remote signaling data of all sensors 10 to the fusion terminal 30, enabling the fusion terminal 30 to obtain the remote signaling data of all sensors 1 in a timely manner and realize the monitoring of the fusion terminal 30.

[0061] Furthermore, each sensor 10 corresponds to a register, and each register stores only the telemetry data of the corresponding sensor 10. During the protocol conversion process, the protocol conversion module 22 can directly store the extracted remote signaling data and telemetry data into the corresponding registers without needing to match specific parameter addresses and register addresses one by one. This enables more convenient and faster conversion of sensor data from wireless sensor protocols to Modbus protocols, improving protocol conversion efficiency. During sensor data transmission, data in a specific register can also be uploaded individually, meaning only the telemetry data from the required sensor 10 is transmitted to the fusion terminal 30, without uploading all the telemetry data from all sensors 10. This reduces the amount of data uploaded to the fusion terminal 30, thereby improving data transmission efficiency.

[0062] Optionally, the sensing data also includes device information; each register includes at least one first register address and multiple second register addresses corresponding one-to-one with each sensor 10. The protocol conversion module 22 is specifically used to: convert and store the telemetry data corresponding to each sensor 10 to the first register address in the corresponding register according to the device information of each sensor 10; and convert and store the remote signaling data corresponding to each sensor 10 to the second register address corresponding to that sensor 10 in all registers according to the device information of each sensor 10.

[0063] In this embodiment, the register mainly includes three parts. The storage address of the part used to store the telemetry data of the sensor 10 corresponding to the register is the first register address, and each telemetry data corresponds to a first register address. For example, the sensing data of the smoke sensor includes smoke alarm and smoke value, that is, it includes one telemetry data including smoke value. Therefore, the register corresponding to the smoke sensor includes a first register address, and the smoke value is stored under the first register address. The sensing data of the temperature and humidity sensor includes two telemetry data: temperature and humidity. Therefore, the register corresponding to the temperature and humidity sensor includes two first register addresses, and the temperature and humidity are stored under these two first register addresses respectively.

[0064] The storage address for storing the remote signaling data of all sensors 10 is the second register address. Each piece of remote signaling data collected by the wireless sensor data transmission device 20 corresponds to a second register address, and the same remote signaling data is stored under the same second register address in each register. For example, if the wireless sensor data transmission device 20 is connected to temperature and humidity sensors, smoke sensors, water level sensors, and noise sensors, the corresponding remote signaling data includes temperature alarms, humidity alarms, smoke alarms, water level alarms, and noise alarms. Each piece of remote signaling data corresponds to a second register address. Temperature alarms are stored under second register address 01, humidity alarms are stored under second register address 02, smoke alarms are stored under second register address 03, water level alarms are stored under second register address 04, and noise alarms are stored under second register address 05.

[0065] Optionally, the protocol conversion module 22 is further configured to: detect whether each sensor 10 has a matching register based on the device information of each sensor 10; if a sensor 10 does not have a matching register, then allocate a corresponding register for the sensor 10, and allocate a corresponding first register address and a second register address for the sensor 10 in the corresponding register.

[0066] In this embodiment, if a matching register is not found for a certain sensor 10, it indicates that the sensor 10 may be newly connected to the wireless sensor data transmission device 20, i.e., the sensor 10 is being used for the first time. Therefore, a corresponding register is assigned to the sensor 10, and each register has a corresponding communication address. This also means that a corresponding communication address is assigned to the sensor 10 so that the corresponding register can be determined through the pre-assigned communication address during subsequent protocol conversion. Furthermore, since the sensing data of the sensor 10 includes remote signaling data and telemetry data, which are stored in different register addresses, a first register address needs to be assigned to the telemetry data of the sensor 10, and a second register address needs to be assigned to the remote signaling data of the sensor 10. The first register address applies only to the register corresponding to the sensor 10, while the second register address applies to all registers.

[0067] The protocol parsing module 23 is used to receive the sensor data polling instruction from the fusion terminal 30, and transmit the telemetry data and all remote signaling data in the register corresponding to the sensor data polling instruction to the fusion terminal 30.

[0068] In this embodiment, the sensor data polling instruction is generally a polling instruction for a specific sensor 10. The data in the register corresponding to the sensor 10 is then transmitted to the fusion terminal 30. That is, the telemetry data of the sensor 10 and the remote signaling data of all sensors 10 are stored in the corresponding register. Furthermore, since each register stores the remote signaling data of all sensors 10, when the sensor data polling instruction is received, the protocol parsing module 23 transmits the remote signaling data of all sensors 10 to the fusion terminal 30, ensuring the timeliness of the transmission of remote signaling data of each sensor 10. This enables the distribution automation master station 40 to obtain the alarm information of each sensor 10 in a timely manner and process the alarm information promptly.

[0069] Optionally, the protocol parsing module 23 is also used to: receive the self-describing information polling instruction from the fusion terminal 30, and transmit the device information in all registers to the fusion terminal 30, so that the fusion terminal 30 can register each sensor 10 according to the device information.

[0070] In this embodiment, when sensor 10 first connects to wireless sensor data transmission device 30, the power distribution automation master station 40 may not have device information for each sensor 10. Therefore, it needs to obtain the device information of sensor 10 and register the device to prepare for obtaining remote signaling data and telemetry data of sensor 10 later. The self-describing polling instruction is used to obtain the device information of each sensor 10 for device registration.

[0071] Furthermore, when the protocol parsing module 23 receives the self-describing information polling instruction from the fusion terminal 30, it can also transmit the device information and the corresponding remote signaling data or telemetry data to the fusion terminal 30. Each register has a corresponding communication address. When the fusion terminal 30 receives the device information, remote signaling data and telemetry data transmitted by the protocol parsing module 23, it can also obtain the communication address of the transmitted register. Based on the device information and the communication address corresponding to the sensor, device registration at the distribution automation master station 40 can be realized.

[0072] By combining device information and self-describing information polling commands, sensor 10 can be plug-and-play: after a new sensor 10 is connected to the wireless sensor data transmission device 20, self-describing information polling can be performed to obtain the device information and corresponding communication address of the new sensor 10, so as to register the device of the sensor 10. After the device is registered, the remote signaling data and telemetry data of the sensor 10 can be obtained normally, thus realizing the rapid use of sensor 10 and reducing the pressure of configuring the fusion terminal 30 on site.

[0073] In one specific embodiment, the temperature and humidity sensor and the water level sensor are connected to the fusion terminal 30 through a wireless sensor data acquisition and transmission device. The device information of the temperature and humidity sensor, i.e., the sensor ID, is 05011001, and the device information of the water level sensor, i.e., the sensor ID, is 05031001. The third and fourth bits in the sensor ID represent the device type, with 01 indicating the temperature and humidity sensor and 03 indicating the water level sensor.

[0074] After the sensors 10 are networked, the acquisition and aggregation module 21 in the wireless sensor data transmission device 20 acquires the sensor data, obtains the ID 05011001 of the temperature and humidity sensor, temperature 23.3, humidity 90, temperature alarm 0, humidity alarm 1, and the ID 05031001 of the water level sensor, water level 10, water level alarm 1, and stores the acquired sensor data in the storage unit.

[0075] Protocol conversion module 22 distinguishes sensor device types as temperature and humidity sensors and water level sensors according to the third and fourth bits of the ID (01 for temperature and humidity, 03 for water level sensor). Specifically, refer to the application diagram of the register corresponding to the temperature and humidity sensor shown in Figure 4(a) and the application diagram of the register corresponding to the water level sensor shown in Figure 4(b). The register assigned to temperature and humidity sensor 05011001 is the register with communication address 61 under the Modbus protocol (the communication address of the register corresponding to this temperature and humidity sensor is assigned as 61, where 61-70 is the address range of the temperature and humidity sensor). Therefore, the telemetry data of the temperature and humidity sensor is extracted into the part of the register with communication address 61 for storing telemetry data; the remote signaling of the temperature and humidity sensor is... The alarm data is extracted to the first and second bits of the portion of each register used for storing remote signaling data, which are displayed as 0 and 1 respectively. That is, the second register address for temperature alarm is 01, and the second register address for humidity alarm is 02. Similarly, the register assigned to water level sensor 05031001 is the register with communication address 81 under the Modbus protocol (the communication address of the register corresponding to this water level sensor is assigned as 81, where 81-90 is the address range of the water level sensor). Therefore, the telemetry data of this water level sensor is extracted to the portion of the register with communication address 81 used for storing telemetry data. The remote signaling alarm of this water level sensor is extracted to the fourth bit of the portion of each register used for storing remote signaling data, which is displayed as 1. That is, the second register address for water level alarm is 40.

[0076] When the protocol parsing module 23 receives the self-describing information polling instruction from the fusion terminal 30, it transmits the device information, telemetry data and all remote signaling data in the corresponding register to the fusion terminal 30. After receiving the data, the fusion terminal 30 can obtain the communication address of the corresponding register and use the device information and the corresponding communication address to register the sensor 10.

[0077] When the protocol parsing module 23 receives a polling instruction for the sensing data of a sensor 10 from the fusion terminal 30, it transmits the telemetry data in the register and all remote signaling data to the fusion terminal 30. Specifically, when the protocol parsing module 23 receives a polling instruction for the sensing data of a temperature and humidity sensor, it transmits the telemetry data stored in the register under communication address 61 and all remote signaling data to the fusion terminal 30. Correspondingly, when the protocol parsing module 23 receives a polling instruction for the sensing data of a water level sensor, it transmits the telemetry data stored in the register under communication address 81 and all remote signaling data to the fusion terminal 30.

[0078] This invention, by assigning a register to each sensor, establishes a connection between sensors and registers. During the protocol conversion module's conversion and storage process, telemetry data from each sensor can be converted and stored in its corresponding register. Simultaneously, the protocol conversion module can also convert and store remote signaling data from each sensor in all registers. That is, each sensor's corresponding register stores both its telemetry data and the remote signaling data from all sensors. Therefore, upon receiving a polling command for any sensor's data, the remote signaling data from all sensors can be transmitted to the fusion terminal without needing to retrieve the data from each sensor's register individually. This system ensures that the fusion terminal can acquire important remote signaling data in a timely manner, enabling remote signaling monitoring of all sensors. Furthermore, by setting an acquisition model in the acquisition and aggregation module, sensor data can be transmitted according to this model, allowing only the necessary remote signaling and telemetry data to be collected, eliminating the need for other irrelevant data and reducing the amount of data collected. Additionally, each sensor has its own register, allowing for the separate storage of telemetry data from each sensor. During sensor data transmission, only the necessary sensor's telemetry data can be transmitted to the fusion terminal, reducing the amount of data uploaded and improving data transmission efficiency.

[0079] The following are method embodiments of the present invention. For details not described in detail, please refer to the corresponding device embodiments described above.

[0080] Figure 5The flowchart illustrating the implementation of the wireless sensor data transmission method provided in this embodiment of the invention is shown. This wireless sensor data transmission method is applied to any possible implementation of the apparatus described in the above embodiments. For ease of explanation, only the parts relevant to this embodiment are shown, and are detailed below:

[0081] Step S501: The data acquisition and aggregation module 21 acquires the sensing data of each sensor 10 and stores the sensing data of each sensor 10 into the corresponding storage unit of each sensor 10. The sensing data includes remote signaling data and telemetry data.

[0082] In step S502, the protocol conversion module 22 converts and stores each remote signaling data into all registers, and converts and stores each telemetry data into the register of the corresponding sensor 10.

[0083] In step S503, when the protocol parsing module 23 receives the sensor data polling instruction from the fusion terminal 30, it transmits the telemetry data and all remote signaling data in the register corresponding to the sensor data polling instruction to the fusion terminal 30.

[0084] In one possible implementation, the sensing data also includes device information; each register includes at least one first register address and multiple second register addresses corresponding one-to-one with sensor 10.

[0085] Step S502, the protocol conversion module 22 converts and stores each remote signaling data into all registers, and converts and stores each telemetry data into the register of the corresponding sensor 10. This can be described in detail as follows: the protocol conversion module 22 converts and stores the telemetry data corresponding to each sensor 10 into the first register address in the corresponding register according to the device information of each sensor 10; and converts and stores the remote signaling data corresponding to each sensor 10 into the second register address corresponding to that sensor 10 in all registers according to the device information of each sensor 10.

[0086] In one possible implementation, the data acquisition module 21 has multiple preset acquisition models, with each sensor 10 corresponding to one acquisition model.

[0087] In step S501, the acquisition and aggregation module 21 acquires the sensing data of each sensor 1, which can be described in detail as follows: The acquisition and aggregation module 21 acquires the sensing data of each sensor 10 according to each acquisition model.

[0088] This invention, by assigning a register to each sensor, establishes a connection between sensors and registers. During the protocol conversion module's conversion and storage process, telemetry data from each sensor can be converted and stored in its corresponding register. Simultaneously, the protocol conversion module can also convert and store remote signaling data from each sensor in all registers. That is, each sensor's corresponding register stores both its telemetry data and the remote signaling data from all sensors. Therefore, upon receiving a polling command for any sensor's data, the remote signaling data from all sensors can be transmitted to the fusion terminal without needing to retrieve the data from each sensor's register individually. This system ensures that the fusion terminal can acquire important remote signaling data in a timely manner, enabling remote signaling monitoring of all sensors. Furthermore, by setting an acquisition model in the acquisition and aggregation module, sensor data can be transmitted according to this model, allowing only the necessary remote signaling and telemetry data to be collected, eliminating the need for other irrelevant data and reducing the amount of data collected. Additionally, each sensor has its own register, allowing for the separate storage of telemetry data from each sensor. During sensor data transmission, only the necessary sensor's telemetry data can be transmitted to the fusion terminal, reducing the amount of data uploaded and improving data transmission efficiency.

[0089] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0090] Figure 6 This is a schematic diagram of a wireless sensor data transmission device provided in an embodiment of the present invention. Figure 6 As shown, the device 6 in this embodiment includes a processor 60, a memory 61, and a computer program 62 stored in the memory 61 and executable on the processor 60. When the processor 60 executes the computer program 62, it implements the steps in the various wireless sensor data transmission method embodiments described above, for example... Figure 5 Steps S501 to S503 are shown. Alternatively, when processor 60 executes computer program 62, it implements the functions of each module in the above-described device embodiments, for example... Figure 2 The functions of modules 21 to 23 are shown.

[0091] For example, computer program 62 can be divided into one or more modules / units, one or more of which are stored in memory 61 and executed by processor 60 to complete the present invention. One or more modules / units can be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of computer program 62 in device 6. For example, computer program 62 can be divided into... Figure 2 Modules 21 to 23 are shown.

[0092] Device 6 may include, but is not limited to, processor 60 and memory 61. Those skilled in the art will understand that... Figure 6 This is merely an example of device 6 and does not constitute a limitation on device 6. It may include more or fewer components than shown, or combine certain components, or different components. For example, the device may also include input / output devices, network access devices, buses, etc.

[0093] The processor 60 may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.

[0094] The memory 61 can be an internal storage unit of the device 6, such as a hard disk or RAM of the device 6. The memory 61 can also be an external storage device of the device 6, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the device 6. Furthermore, the memory 61 can include both internal and external storage units of the device 6. The memory 61 is used to store computer programs and other programs and data required by the device. The memory 61 can also be used to temporarily store data that has been output or will be output.

[0095] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0096] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0097] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0098] In the embodiments provided by this invention, it should be understood that the disclosed apparatus / device and method can be implemented in other ways. For example, the apparatus / device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0099] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0100] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0101] If integrated modules / units are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc.

[0102] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.

Claims

1. A wireless sensor data transmission device, characterized in that, include: The system includes a data acquisition and aggregation module, a protocol conversion module, and a protocol parsing module; the protocol parsing module is equipped with multiple registers, with one register corresponding to each sensor. The data acquisition and aggregation module is used to acquire the sensing data of each sensor and store the sensing data of each sensor into the corresponding storage unit of each sensor. The sensing data includes remote signaling data and telemetry data. The protocol conversion module is used to convert and store each piece of remote signaling data into all registers and to convert and store each piece of telemetry data into the register of the corresponding sensor. The protocol parsing module is used to receive the sensor data polling command from the fusion terminal and transmit the telemetry data and all remote signaling data in the register corresponding to the sensor data polling command to the fusion terminal. The sensing data also includes device information; each register includes at least one first register address and multiple second register addresses that correspond one-to-one with the sensors; The protocol conversion module is specifically used for: Based on the device information of each sensor, the telemetry data corresponding to each sensor is converted and stored in the first register address of the corresponding register; In addition, based on the device information of each sensor, the remote signaling data corresponding to each sensor is converted and stored in the second register address corresponding to that sensor in all registers.

2. The wireless sensor data transmission device according to claim 1, characterized in that, The protocol conversion module is also used for: Based on the device information of each sensor, check whether there is a matching register for each sensor; If a sensor does not have a matching register, then a corresponding register is allocated for the sensor, and the corresponding first register address and second register address are allocated for the sensor within the corresponding register.

3. The wireless sensor data transmission device according to claim 1, characterized in that, The data acquisition and aggregation module has multiple preset data acquisition models, with each sensor corresponding to one data acquisition model. The data acquisition and aggregation module is specifically used for: Sensing data from each sensor is collected according to each acquisition model.

4. The wireless sensor data transmission device according to claim 3, characterized in that, Before acquiring the sensing data from each sensor according to each acquisition model, the acquisition and aggregation module is also used for: Determine the data structure of the sensor data transmitted by each sensor, and based on the data structure corresponding to each sensor, determine the data format in each acquisition model and each storage unit.

5. The wireless sensor data transmission device according to claim 1, characterized in that, The protocol parsing module is also used for: The device receives the self-describing information polling command from the fusion terminal and transmits the device information in all registers to the fusion terminal so that the fusion terminal can register each sensor according to the device information.

6. A wireless sensor data transmission method, characterized in that, The method, applied to any one of claims 1 to 5, comprises: The data acquisition and aggregation module acquires the sensing data from each sensor and stores the sensing data from each sensor into the corresponding storage unit of each sensor. The sensing data includes remote signaling data and telemetry data. The protocol conversion module converts and stores each remote signaling data into all registers, and converts and stores each telemetry data into the register of the corresponding sensor; When the protocol parsing module receives the sensor data polling instruction from the fusion terminal, it transmits the telemetry data and all remote signaling data in the register corresponding to the sensor data polling instruction to the fusion terminal. The sensing data also includes device information; each register includes at least one first register address and multiple second register addresses that correspond one-to-one with the sensors; The protocol conversion module converts and stores each remote signaling data into all registers, and converts and stores each telemetry data into the register of the corresponding sensor, including: The protocol conversion module converts and stores the telemetry data corresponding to each sensor into the first register address in the corresponding register according to the device information of each sensor. In addition, based on the device information of each sensor, the remote signaling data corresponding to each sensor is converted and stored in the second register address corresponding to that sensor in all registers.

7. The wireless sensor data transmission method according to claim 6, characterized in that, The data acquisition and aggregation module has multiple preset data acquisition models, with each sensor corresponding to one data acquisition model. The data acquisition and aggregation module acquires sensing data from each sensor, including: The data acquisition and aggregation module collects the sensing data from each sensor according to each acquisition model.

8. A wireless sensor data transmission device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor calls and runs the computer program stored in the memory, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in claim 6 or 7 above.

Citation Information

Patent Citations

  • Gateway communication protocol conversion method for wireless sensor network access Modbus bus

    CN101977167A