Simulation debugging method and device for wireless Lora sensor in power transformation and distribution station room

By creating sensor equipment models in the substation site and using wireless LoRa message simulator to simulate and generate data point values, the development and testing inefficiency caused by wireless LoRa sensor sleep and incomplete types is solved, and more efficient data packet development and testing is achieved.

CN119676748AInactive Publication Date: 2025-03-21NANJING ZHENGTU INFORMATION TECH CO LTD

Patent Information

Application Number
CN202411858011.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-17
Publication Date
2025-03-21
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In substations, the dormant state and incomplete types of wireless LoRa sensors lead to inefficient data packet development and testing.

Method used

By creating a sensor device model in the gateway and using a wireless LoRa message simulator to configure sensor data points, establish a one-to-one correspondence between the model data points and the sensor data points, simulate and generate data point values ​​that meet the sensor data point parameter information requirements, and assemble them into messages for sending.

Benefits of technology

It improves the efficiency of wireless LoRa sensor data packet development and testing, and solves the inefficiency problem caused by sensor dormant or incomplete types.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119676748A_ABST
    Figure CN119676748A_ABST
Patent Text Reader

Abstract

The invention discloses a simulation debugging method and device for a wireless Lora sensor in a power transformation and distribution station room, and the method comprises the steps: creating a sensor equipment model for the wireless Lora sensor of each sensor type in a gateway machine, and defining the parameter information of the sensor model and the parameter information of a model data point; the parameter information of the sensor model comprises a unique code of the model; configuring sensor data points in a configuration file of the wireless Lora message simulator, constructing a mapping relation between a sensor type serial number and a model unique code, and further establishing a one-to-one correspondence relation between model data points and the sensor data points; in a wireless Lora message simulator, firstly, sensor equipment and sensor data points are added in a mode of loading a sensor equipment model, then, data point values meeting parameter information requirements of the sensor data points are generated through simulation, and finally, the data point values generated through simulation are sent according to a set message sending mode. According to the method, the wireless LoRa sensor can be simulated to generate the data point value of the sensor, and the problem of low data message development and test efficiency caused by dormancy of the wireless LoRa sensor or incomplete type of the wireless LoRa sensor is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a simulation debugging method and device for a wireless Lora sensor in a transformer substation, and in particular to a simulation development and testing technology for data messages of the wireless Lora sensor, belonging to a smart transformer substation technology. Background Art

[0002] "Q / GDW 12184-2021 Transmission and Transformation Equipment IoT Sensor Data Specification" is a standard proposed by the Equipment Management Department of State Grid Corporation of China. This standard regulates the message format used for sensor data transmission in the IoT perception layer of transmission and transformation equipment, and provides a reference for the standardization and unification of sensor and data message transmission. The standard clarifies the message format and requirements for business data, detection data, and alarm data. Sensors are distinguished by sensor SN, and each sensor data point has customized parameters and is different.

[0003] Wireless LoRa (Long Range) communication technology is a radio frequency technology based on spread spectrum communication. Due to its unique spread spectrum modulation method and efficient data transmission strategy, it can achieve long-distance communication transmission while maintaining low power consumption. It has the characteristics of low power consumption, long transmission distance, and strong anti-interference. At present, wireless LoRa sensors have been increasingly widely used in substations, such as wireless temperature and humidity sensors, wireless water immersion sensors, wireless air conditioning sensors, etc. These sensors use wireless LoRa communication technology to collect environmental data information in substations, laying a solid foundation for promoting the development of the power Internet of Things.

[0004] In order to realize the data transmission of wireless LoRa sensors in the substation, it is necessary to add a wireless LoRa access module in the gateway machine, and realize the data interaction between the gateway machine and the wireless LoRa sensor through the wireless LoRa access module; the wireless LoRa access module needs to encapsulate the downlink data from the wireless LoRa sensor, convert it into Mqtt message data or other network data, and then transmit it to the uplink platform. The encapsulated Mqtt message data structure is the encrypted data of the wireless LoRa sensor, and after decryption, it still complies with the "Q / GDW 12184-2021 Transmission and Substation Equipment Internet of Things Sensor Data Specification" standard.

[0005] Before connecting the wireless LoRa sensor to the gateway, the data message needs to be developed and tested first, and the downlink data from the wireless LoRa sensor needs to be obtained frequently and in large quantities; however, the wireless LoRa sensor usually has a reporting cycle and a processing cycle, and is usually in a dormant state for the rest of the time, so a batch of downlink data can only be obtained after a period of time, which greatly affects the development and testing efficiency; in order to increase the frequency and amount of downlink data reception, it is often necessary to directly operate the wireless LoRa sensor, but this increases the workload of development and testing; in addition, each type of wireless LoRa sensor needs to be developed and tested one by one, and it is difficult to gather all types of wireless LoRa sensors during the development and testing phase, which further increases the difficulty of development and testing. Summary of the invention

[0006] Purpose of the invention: In order to overcome the deficiencies in the prior art, the present invention provides a simulation debugging method and device for wireless LoRa sensors in a transformer substation room, so as to solve the problem of low efficiency in data message development and testing caused by dormancy of wireless LoRa sensors or incomplete types of wireless LoRa sensors.

[0007] Technical solution: To achieve the above purpose, the technical solution adopted by the present invention is: A simulation debugging method for a wireless Lora sensor in a transformer substation room comprises the following steps: creating a sensor device model for each type of wireless Lora sensor in a gateway machine, defining parameter information of the sensor model and parameter information of a model data point, wherein the parameter information of the sensor model includes a model unique code; configuring sensor data points in a configuration file of a wireless Lora message simulator, wherein the configuration information includes a sensor type serial number, a sensor type name and parameter information of the sensor data point; constructing a mapping relationship between the sensor type serial number and the model unique code, and then establishing a one-to-one correspondence between the model data point and the sensor data point, wherein the corresponding model data point and the sensor data point have the same data type, data length and data point parameter; in the wireless Lora message simulator, adding sensor devices and sensor data points by loading the sensor device model, using the added sensor devices and sensor data points to simulate and generate data point values ​​that meet the parameter information requirements of the sensor data points, and assembling the simulated data point values ​​into a message for transmission according to a set message transmission mode.

[0008] The present invention constructs a sensor device model and uses a wireless Lora message simulator to call the corresponding sensor device model to simulate sensor data points. The simulated data point values ​​can be obtained according to the needs of development and testing, thereby improving the efficiency of development and testing.

[0009] Specifically, the method of adding sensor devices and sensor data points in the wireless Lora message simulator is manual addition or remote loading; if it is manual addition, first select the sensor type serial number and / or sensor type name in the configuration file (usually displayed as the sensor name on the interface, the sensor name, sensor type serial number and sensor type name all point to the same object), then set the sensor SN code, and use the model data point corresponding to the sensor type serial number to add the sensor device and sensor data point; if it is remote loading, first remotely obtain the model unique code and sensor SN code of the sensor device model in the gateway machine, and then use the sensor type serial number and the parameter information of the sensor data point to add the sensor device and sensor data point according to the mapping relationship between the sensor type serial number and the model unique code, and set the sensor SN code.

[0010] Specifically, the wireless Lora message simulator assembles the simulated data point values ​​into messages for transmission in units of sensors or sensor data points according to the set message transmission mode.

[0011] Specifically, the message sending method is a binary data message or an Mqtt message; if it is a binary data message, the sensor SN number, data point parameters and data point values ​​are assembled into a binary data message; if it is an Mqtt message, the sensor SN number, data point parameters and data point values ​​are first assembled into a binary data message, and then the binary data message is Base64 encrypted and then encapsulated into an Mqtt message for the second time; both binary data messages and Mqtt messages are messages that comply with the "Q / GDW 12184-2021 Internet of Things Sensor Data Specification for Power Transmission and Transformation Equipment".

[0012] Specifically, after starting the wireless Lora message simulator, first load the configuration file of the sensor data point, and then summarize all sensor data points belonging to the same sensor type according to the sensor type serial number; in the process of adding sensor devices and sensor data points, first select the sensor type serial number and / or sensor type name, and then add the corresponding sensor data point according to the parameter information of the corresponding sensor device model.

[0013] Specifically, the parameter information of the model data point includes data type, data length, data parsing method and data point parameter; the parameter information of the sensor data point includes data point name, data point parameter, unit, data type, data length, value range, four remote types and associated data point parameter. It is necessary to keep the corresponding model data point and sensor data point with the same data type, data length, data parsing method and data point parameter.

[0014] Specifically, the four remote control types are remote signaling, remote measurement, remote control and remote adjustment.

[0015] Specifically, the wireless Lora message simulator triggers message sending in a periodic random manner or a manual triggering manner; if it is a periodic random manner, then the offset time of the periodic sending is set for each sensor data point at the initial startup of the wireless Lora message simulator, and the offset time of different sensor data points in each sending cycle is different, the message sending time of different sensor data points is different, or the message sending time of different sensors is different; if it is a manual triggering manner, then the sending interface of a certain sensor or sensor data point is manually selected, and the sensor data sending test is performed separately, which has strong mobility and is particularly suitable for the development and testing of a certain data point or sensor.

[0016] Specifically, when the wireless Lora message simulator receives a control message sent by the gateway, it parses the control message to obtain the corresponding sensor SN code, data point parameters and data point control value, and refreshes the data point value of the corresponding sensor in the wireless Lora message simulator according to the data point control value. At the same time, according to the associated data point parameters, it obtains the associated sensor data points, refreshes the associated data point values, and composes the sensor SN code, associated data point parameters and associated data point values ​​into a Lora response message as control feedback for reporting.

[0017] Specifically, the method comprises the following steps: Step 1. In the gateway, create a sensor device model for each type of wireless Lora sensor. Wireless Lora sensors of the same sensor type have the same list of sensor data points, and the parameter information of the same sensor data point of wireless Lora sensors of the same sensor type is consistent; the sensor device model includes two parts: sensor model and model data point. The parameter information of the sensor model includes model ID, model name and model unique code. The model unique code is a string identifier used to identify the sensor type, and its uniqueness is guaranteed in the gateway; the parameter information of the model data point includes model data point ID, model data point name, model ID, data type, data length, data parsing method and data point parameter; Step 2. In the simulation configuration module, configure the sensor data points. The configuration information includes the sensor type serial number, sensor type name, data point name, data point parameter, unit, data type, data length, value range, four remote types and associated data point parameters; each sensor type serial number corresponds to a sensor type; Step 3. In the configuration file of the sensor data point, add the mapping relationship between the sensor type serial number and the model unique code of the device model in the gateway, and then establish a one-to-one correspondence between the model data point and the sensor data point. The corresponding model data point and sensor data point have the same data type, data length, data parsing method and data point parameters. Step 4, start the wireless Lora message simulator, first load the configuration file of the sensor data point, then summarize all the sensor data points belonging to the same sensor type according to the sensor type serial number, and obtain the parameter information of the sensor data point, including the data point name, data point parameter, unit, data type, data length, data parsing method, value range, four remote types and related data point parameters; Step 5. In the wireless Lora message simulator, load the mapping relationship between the sensor type serial number in the sensor configuration file and the model unique code of the device model in the gateway; Step 6. In the wireless Lora message simulator, add sensor devices and sensor data points by loading sensor models and model data points: (1) Manual addition: Select the sensor type serial number loaded in Step 4, set the sensor SN code, and use the sensor model and model data point corresponding to the sensor type serial number to add the sensor device and sensor data point; (2) Remote loading: Remotely obtain the model unique code and sensor SN code of the sensor device model in the gateway machine, obtain the sensor type serial number in the configuration file of the sensor data point according to the mapping relationship loaded in Step 5, set the sensor SN code, and then use the sensor type serial number and the parameter information of the sensor data point to add the sensor device and sensor data point according to the mapping relationship between the sensor type serial number and the model unique code, and set the sensor SN code; Step 7, the sensor device and sensor data point in the wireless Lora message simulator are simulated to generate data point values ​​that meet the parameter information requirements of the sensor data point; Step 8. The wireless Lora message simulator assembles the simulated data point values ​​into messages for transmission in units of sensors or sensor data points according to the set message transmission mode. The message transmission mode is a binary data message or an Mqtt message. If it is a binary data message, the sensor SN number, data point parameters and data point values ​​are assembled into a binary data message. If it is an Mqtt message, the binary data message is encrypted with Base64 and then encapsulated into an Mqtt message. Step 9. The wireless Lora message simulator uses a periodic random method or a manual trigger method to trigger message sending. If it is a periodic random method, the offset time of the periodic sending is set for each sensor data point at the initial startup of the wireless Lora message simulator, and the offset time of different sensor data points in each sending cycle is different. If it is a manual trigger method, manually select the sending interface of a certain sensor or sensor data point, and perform the sensor data sending test separately.

[0018] Step 10. When the wireless Lora message simulator receives the control message sent by the gateway, it parses the control message to obtain the corresponding sensor SN code, data point parameters and data point control value, and refreshes the data point value of the corresponding sensor in the wireless Lora message simulator according to the data point control value. At the same time, according to the associated data point parameters, it obtains the associated sensor data point, refreshes the associated data point value, and composes the sensor SN code, associated data point parameters and associated data point value into a Lora response message as control feedback for reporting.

[0019] A simulation debugging device for a wireless Lora sensor in a transformer substation room for implementing the above method, comprising a sensor device model library stored in a gateway machine, a simulation configuration module and a wireless Lora message simulator; The sensor device model library is used to store sensor device models, in which parameter information of the sensor model and parameter information of the model data points are defined, and the parameter information of the sensor model includes a unique model code unique to the gateway machine; The simulation configuration module is used to configure the sensor data points to form a configuration file, wherein the configuration information includes the sensor type serial number, the sensor type name and the parameter information of the sensor data point; a mapping relationship between the sensor type serial number and the model unique code is constructed, and then a one-to-one correspondence between the model data point and the sensor data point is established, and the corresponding model data point and sensor data point have the same data type, data length and data point parameter; The wireless Lora message simulator comprises a configuration file loading unit, a sensor model and a model data point adding unit, a data point value simulation generating unit and a message sending unit; The configuration file loading unit is used to load the configuration file; The sensor model and model data point adding unit adds sensor devices and sensor data points by loading the sensor device model based on the mapping relationship between the sensor type serial number and the model unique code; The data point value simulation generating unit uses the added sensor device and the sensor data point to simulate and generate the data point value that meets the parameter information requirements of the sensor data point; The message sending unit assembles the simulated data point values ​​into a message for sending according to a set message sending mode.

[0020] Beneficial effect: The simulation debugging method and device of the wireless Lora sensor in the transformer substation provided by the present invention have the following advantages over the prior art: 1. It can simulate the wireless LoRa sensor to generate the data point value of the sensor, and solve the problem of low efficiency of data message development and testing caused by the dormancy of the wireless LoRa sensor or the incomplete types of wireless LoRa sensors; 2. According to the sensor equipment of different manufacturers, the data point information of the corresponding sensor equipment can be loaded by restarting the wireless Lora message simulator after modifying the configuration file; 3. The sensor equipment can be manually created according to the sensor type or the remote loading method can be adopted, and the configuration is more flexible, especially for the situation where there are many sensors configured on the gateway device, which saves the time of manual configuration and improves the configuration efficiency and accuracy; 4. It can be set to periodic random transmission, or manually triggered transmission, and the set periodic transmission offset time can avoid the problem of data packet accumulation when the period is fixed; 5. It can be set to send a single data point separately in a frame, or the entire sensor data in a frame, which can simulate the situation of sensor transmission during actual use on site. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 Schematic diagram of adding sensor devices and sensor data points to the wireless Lora message simulator; Figure 2 A schematic diagram of the process of simulating the generated data points and sending messages for the wireless Lora message simulator; Figure 3 This is a schematic diagram of the processing flow when the wireless Lora message simulator receives a control message sent by a gateway. DETAILED DESCRIPTION

[0022] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0023] A simulation debugging method for a wireless Lora sensor in a transformer substation room comprises the following steps: creating a sensor device model for each type of wireless Lora sensor in a gateway machine, defining parameter information of the sensor model and parameter information of a model data point, wherein the parameter information of the sensor model includes a model unique code; configuring sensor data points in a configuration file of a wireless Lora message simulator, wherein the configuration information includes a sensor type serial number, a sensor type name and parameter information of the sensor data point; constructing a mapping relationship between the sensor type serial number and the model unique code, and then establishing a one-to-one correspondence between the model data point and the sensor data point, wherein the corresponding model data point and the sensor data point have the same data type, data length and data point parameter; in the wireless Lora message simulator, adding sensor devices and sensor data points by loading the sensor device model, using the added sensor devices and sensor data points to simulate and generate data point values ​​that meet the parameter information requirements of the sensor data points, and assembling the simulated data point values ​​into a message for transmission according to a set message transmission mode.

[0024] A simulation debugging device for a wireless Lora sensor in a transformer substation for implementing the above method comprises a sensor device model library stored in a gateway machine, a simulation configuration module and a wireless Lora message simulator, wherein the wireless Lora message simulator comprises a configuration file loading unit, a sensor model and a model data point adding unit, a data point value simulation generating unit, a message sending unit and a control message replying unit.

[0025] The sensor device model library is used to store sensor device models, and parameter information of the sensor model and parameter information of the model data points are defined in the sensor device model. The parameter information of the sensor model includes a unique model code that is unique in the gateway machine.

[0026] The simulation configuration module is used to configure the sensor data points to form a configuration file, the configuration information includes the sensor type serial number, the sensor type name and the parameter information of the sensor data point; construct a mapping relationship between the sensor type serial number and the model unique code, and then establish a one-to-one correspondence between the model data point and the sensor data point. The corresponding model data point and sensor data point have the same data type, data length and data point parameters.

[0027] The wireless Lora message simulator comprises a configuration file loading unit, a sensor model and a model data point adding unit, a data point value simulation generating unit and a message sending unit.

[0028] The configuration file loading unit is used to load the configuration file.

[0029] The sensor model and model data point adding unit adds sensor devices and sensor data points by loading the sensor device model based on the mapping relationship between the sensor type serial number and the model unique code; The data point value simulation generation unit uses the added sensor device and sensor data point to simulate and generate data point values ​​that meet the parameter information requirements of the sensor data point.

[0030] The message sending unit assembles the simulated data point values ​​into a message for sending according to a set message sending mode.

[0031] The present invention is described in detail below in conjunction with specific implementation steps.

[0032] Step 1: Create a sensor device model in the gateway A sensor device model library is set up in the gateway machine to store sensor device models; a sensor device model is created for each sensor type of wireless Lora sensor, wireless Lora sensors of the same sensor type have the same sensor data point list, and parameter information of the same sensor data point of wireless Lora sensors of the same sensor type is consistent.

[0033] The sensor device model includes two parts: sensor model and model data point; the parameter information of the sensor model includes model ID, model name and model unique code, the model unique code is a string identifier used to identify the sensor type, and the uniqueness is guaranteed in the gateway; the parameter information of the model data point includes model data point ID, model data point name, model ID, data type, data length, data parsing method and data point parameters.

[0034] Step 2. Create a configuration file for the sensor data point in the simulation configuration module According to the design requirements of each sensor type, write the configuration file of the sensor data point. The configuration information includes the sensor type serial number, sensor type name, data point name, data point parameter, unit, data type, data length, value range, four remote types (telesignaling, telemetering, remote control and remote adjustment) and related data point parameters; each sensor type serial number corresponds to a sensor type.

[0035] Step 3. Add the mapping relationship between the sensor type serial number and the model unique code in the configuration file In the configuration file of the sensor data point, add the mapping relationship between the sensor type serial number and the model unique code of the device model in the gateway machine, and then establish a one-to-one correspondence between the model data point and the sensor data point. The corresponding model data point and sensor data point have the same data type, data length, data parsing method and data point parameters.

[0036] Step 4. Start the wireless Lora message simulator After starting the wireless Lora message simulator, first load the configuration file of the sensor data point, then summarize all sensor data points belonging to the same sensor type according to the sensor type serial number, and obtain the parameter information of the sensor data point, including data point name, data point parameter, unit, data type, data length, data parsing method, value range, four remote types and associated data point parameters; the corresponding model data point and sensor data point have the same data type, data length, data parsing method and data point parameter.

[0037] Step 5: Load the mapping relationship between the sensor type serial number and the model unique code In the wireless Lora message simulator, first load the mapping relationship between the sensor type serial number in the sensor configuration file and the model unique code of the gateway internal device model, and then summarize all sensor data points belonging to the same sensor type according to the sensor type serial number.

[0038] Step 6. Set the adding and sending methods of sensor devices and sensor data points like Figure 1 As shown in the figure, in the wireless Lora message simulator, add sensor devices and sensor data points by loading sensor models and model data points. First, select the sensor type serial number and / or sensor type name, and then add the corresponding sensor data points according to the parameter information of the corresponding sensor device model: (1) Manual addition: Select the sensor type serial number loaded in Step 4, set the sensor SN code, and use the sensor model and model data points corresponding to the sensor type serial number to add sensor devices and sensor data points.

[0039] (2) Remote loading: Remotely obtain the model unique code and sensor SN code of the sensor device model in the gateway machine, obtain the sensor type serial number in the configuration file of the sensor data point according to the mapping relationship loaded in Step 5, set the sensor SN code, and then use the sensor type serial number and the parameter information of the sensor data point to add the sensor device and sensor data point according to the mapping relationship between the sensor type serial number and the model unique code, and set the sensor SN code.

[0040] The wireless Lora message simulator uses periodic random mode or manual trigger mode to trigger message sending: (1) Periodic random method: At the initial startup of the wireless Lora message simulator, an offset time for periodic transmission is set for each sensor data point. The offset time of different sensor data points in each transmission cycle is different.

[0041] (2) Manual trigger mode: Manually select the sending interface of a sensor or sensor data point and perform sensor data sending test separately.

[0042] Step 7: Simulate and generate data point values The sensor devices and sensor data points in the wireless Lora message simulator are simulated to generate data point values ​​that meet the parameter information requirements of the sensor data points.

[0043] Step 8: Simulate the generated data point value according to the set message sending method like Figure 2 As shown, the wireless Lora message simulator assembles the simulated data point values ​​into messages for transmission in units of sensors or sensor data points according to the set message sending method. The message sending method is a binary data message or Mqtt message that complies with the "Q / GDW 12184-2021 Internet of Things Sensor Data Specification for Power Transmission and Transformation Equipment".

[0044] (1) Binary data message: assemble the sensor SN number, data point parameters and data point values ​​into a binary data message, send the message via a serial port or network, and create a communication interface according to the communication protocol.

[0045] (2) For Mqtt messages, the binary data message is encrypted with Base64 and then re-encapsulated into an Mqtt message. The message sending method requires setting the MqttBrocker parameters and creating a communication interface according to the communication protocol.

[0046] Step 9: Message response like Figure 3 As shown, when the wireless Lora message simulator receives the control message sent by the gateway, it parses the control message to obtain the corresponding sensor SN code, data point parameters and data point control value, and refreshes the data point value of the corresponding sensor in the wireless Lora message simulator according to the data point control value.

[0047] If the controlled sensor data point has an associated data point, the associated sensor data point is obtained according to the associated data point parameters, the associated data point value is refreshed, and the sensor SN code, associated data point parameters and associated data point value are combined into a Lora response message for reporting as control feedback.

[0048] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the above embodiments do not limit the present invention in any form, and any technical solution obtained by equivalent replacement or equivalent transformation falls within the protection scope of the present invention.

Claims

1. A simulation debugging method for a wireless Lora sensor in a transformer substation, characterized in that: A sensor device model is created for each type of wireless Lora sensor in the gateway machine, and the parameter information of the sensor model and the parameter information of the model data point are defined. The parameter information of the sensor model includes the model unique code; the sensor data point is configured in the configuration file of the wireless Lora message simulator, and the configuration information includes the sensor type serial number, the sensor type name and the parameter information of the sensor data point; a mapping relationship between the sensor type serial number and the model unique code is constructed, and then a one-to-one correspondence between the model data point and the sensor data point is established, and the corresponding model data point and sensor data point have the same data type, data length and data point parameters; in the wireless Lora message simulator, sensor devices and sensor data points are added by loading the sensor device model, and the added sensor devices and sensor data points are used to simulate and generate data point values ​​that meet the parameter information requirements of the sensor data points, and the simulated data point values ​​are assembled into a message for sending according to the set message sending method.

2. The simulation debugging method of the wireless Lora sensor in the transformer substation room according to claim 1 is characterized in that: The way to add sensor devices and sensor data points in the wireless Lora message simulator is manual addition or remote loading; if it is manual addition, first select the sensor type serial number in the configuration file, then set the sensor SN code, and use the model data point corresponding to the sensor type serial number to add the sensor device and sensor data point; If it is remote loading, first remotely obtain the model unique code and sensor SN code of the sensor device model in the gateway machine, and then use the sensor type serial number and the parameter information of the sensor data point to add the sensor device and sensor data point according to the mapping relationship between the sensor type serial number and the model unique code, and set the sensor SN code.

3. The simulation debugging method of the wireless Lora sensor in the transformer substation room according to claim 1 is characterized in that: The wireless Lora message simulator assembles the simulated data point values ​​into messages for transmission in units of sensors or sensor data points according to the set message transmission mode.

4. The simulation debugging method of the wireless Lora sensor in the transformer substation room according to claim 1 is characterized in that: The message sending mode is binary data message or Mqtt message; if it is a binary data message, the sensor SN number, data point parameters and data point values ​​are assembled into a binary data message; if it is an Mqtt message, the sensor SN number, data point parameters and data point values ​​are first assembled into a binary data message, and then the binary data message is Base64 encrypted and re-encapsulated into an Mqtt message.

5. The simulation debugging method of the wireless Lora sensor in the transformer substation room according to claim 1 is characterized in that: After starting the wireless Lora message simulator, first load the configuration file of the sensor data point, and then summarize all sensor data points belonging to the same sensor type according to the sensor type serial number; in the process of adding sensor devices and sensor data points, first select the sensor type serial number, and then add the corresponding sensor data point according to the parameter information of the corresponding sensor device model.

6. The simulation debugging method of the wireless Lora sensor in the transformer substation room according to claim 1 is characterized in that: The parameter information of the model data point includes data type, data length, data parsing method and data point parameters; the parameter information of the sensor data point includes data point name, data point parameter, unit, data type, data length, value range, four remote control types and associated data point parameters.

7. The simulation debugging method of the wireless Lora sensor in the transformer substation room according to claim 1 is characterized in that: The wireless Lora message simulator uses a periodic random method or a manual trigger method to trigger message sending; if it is a periodic random method, the offset time of the periodic sending is set for each sensor data point at the initial startup of the wireless Lora message simulator, and the offset time of different sensor data points in each sending cycle is different; if it is a manual trigger method, the sending interface of a certain sensor or sensor data point is manually selected, and the sensor data sending test is performed separately.

8. The simulation debugging method of the wireless Lora sensor in the transformer substation room according to claim 1 is characterized in that: When the wireless Lora message simulator receives a control message sent by the gateway, it parses the control message to obtain the corresponding sensor SN code, data point parameters and data point control value, and refreshes the data point value of the corresponding sensor in the wireless Lora message simulator according to the data point control value. At the same time, according to the associated data point parameters, it obtains the associated sensor data point, refreshes the associated data point value, and composes the sensor SN code, associated data point parameters and associated data point value into a Lora response message for reporting as control feedback.

9. The simulation debugging method of the wireless Lora sensor in the transformer substation room according to claim 1 is characterized in that: The method comprises the following steps: Step 1. In the gateway, create a sensor device model for each type of wireless Lora sensor. Wireless Lora sensors of the same sensor type have the same list of sensor data points, and the parameter information of the same sensor data point of wireless Lora sensors of the same sensor type is consistent; the sensor device model includes two parts: sensor model and model data point. The parameter information of the sensor model includes model ID, model name and model unique code. The model unique code is a string identifier used to identify the sensor type, and its uniqueness is guaranteed in the gateway; the parameter information of the model data point includes model data point ID, model data point name, model ID, data type, data length, data parsing method and data point parameter; Step 2. In the simulation configuration module, configure the sensor data points. The configuration information includes the sensor type serial number, sensor type name, data point name, data point parameter, unit, data type, data length, value range, four remote types and associated data point parameters; each sensor type serial number corresponds to a sensor type; Step 3. In the configuration file of the sensor data point, add the mapping relationship between the sensor type serial number and the model unique code of the device model in the gateway, and then establish a one-to-one correspondence between the model data point and the sensor data point. The corresponding model data point and sensor data point have the same data type, data length, data parsing method and data point parameters. Step 4, start the wireless Lora message simulator, first load the configuration file of the sensor data point, then summarize all the sensor data points belonging to the same sensor type according to the sensor type serial number, and obtain the parameter information of the sensor data point, including the data point name, data point parameter, unit, data type, data length, data parsing method, value range, four remote types and related data point parameters; Step 5. In the wireless Lora message simulator, load the mapping relationship between the sensor type serial number in the sensor configuration file and the model unique code of the device model in the gateway; Step 6. In the wireless Lora message simulator, add sensor devices and sensor data points by loading sensor models and model data points: (1) Manual addition: Select the sensor type serial number loaded in Step 4, set the sensor SN code, and use the sensor model and model data point corresponding to the sensor type serial number to add the sensor device and sensor data point; (2) Remote loading: Remotely obtain the model unique code and sensor SN code of the sensor device model in the gateway machine, obtain the sensor type serial number in the configuration file of the sensor data point according to the mapping relationship loaded in Step 5, set the sensor SN code, and then use the sensor type serial number and the parameter information of the sensor data point to add the sensor device and sensor data point according to the mapping relationship between the sensor type serial number and the model unique code, and set the sensor SN code; Step 7, the sensor device and sensor data point in the wireless Lora message simulator are simulated to generate data point values ​​that meet the parameter information requirements of the sensor data point; Step 8, the wireless Lora message simulator assembles the simulated data point values ​​into messages for transmission in units of sensors or sensor data points according to the set message transmission mode, and the message transmission mode is a binary data message or an Mqtt message; If it is a binary data message, the sensor SN number, data point parameter and data point value are assembled into a binary data message; if it is an Mqtt message, the binary data message is Base64 encrypted and then re-encapsulated into an Mqtt message; Step 9. The wireless Lora message simulator uses a periodic random method or a manual trigger method to trigger message sending. If it is a periodic random method, the offset time of periodic sending is set for each sensor data point at the initial startup of the wireless Lora message simulator, and the offset time of different sensor data points in each sending cycle is different. If it is a manual trigger method, manually select the sending interface of a certain sensor or sensor data point, and perform the sensor data sending test separately. Step 10. When the wireless Lora message simulator receives the control message sent by the gateway, it parses the control message to obtain the corresponding sensor SN code, data point parameters and data point control value, and refreshes the data point value of the corresponding sensor in the wireless Lora message simulator according to the data point control value. At the same time, according to the associated data point parameters, it obtains the associated sensor data point, refreshes the associated data point value, and composes the sensor SN code, associated data point parameters and associated data point value into a Lora response message as control feedback for reporting.

10. A simulation debugging device for wireless Lora sensors in a transformer substation, characterized in that: It includes a sensor device model library, a simulation configuration module and a wireless Lora message simulator stored in the gateway machine; The sensor device model library is used to store sensor device models, in which parameter information of the sensor model and parameter information of the model data points are defined, and the parameter information of the sensor model includes a unique model code unique to the gateway machine; The simulation configuration module is used to configure the sensor data points to form a configuration file, wherein the configuration information includes the sensor type serial number, the sensor type name and the parameter information of the sensor data point; a mapping relationship between the sensor type serial number and the model unique code is constructed, and then a one-to-one correspondence between the model data point and the sensor data point is established, and the corresponding model data point and sensor data point have the same data type, data length and data point parameter; The wireless Lora message simulator comprises a configuration file loading unit, a sensor model and a model data point adding unit, a data point value simulation generating unit and a message sending unit; The configuration file loading unit is used to load the configuration file; The sensor model and model data point adding unit adds sensor devices and sensor data points by loading the sensor device model based on the mapping relationship between the sensor type serial number and the model unique code; The data point value simulation generation unit uses the added sensor device and the sensor data point to simulate and generate data point values ​​that meet the parameter information requirements of the sensor data point; The message sending unit assembles the simulated data point values ​​into a message for sending according to a set message sending mode.

Citation Information

Patent Citations

  • Coal mine central station monitoring system testing method and device and substation simulation system

    CN111088998A

  • Power distribution intelligent gateway test system and method

    CN115622914A

  • Simulation test system and method for on-line monitoring terminal of primary equipment of intelligent substation

    CN116132343A

  • Intelligent gateway machine wireless sensor automatic identification access method and system

    CN117528571A

  • Substation auxiliary equipment sensor simulation method, system and device

    CN117763825A

Cited By

  • Gateway machine wired sensor message simulation test method and simulation test device

    CN120358169A