A terminal data transmission method and system based on the Internet of Things
By introducing terminal access service module and message forwarding module in the distribution IoT system, the real-time data of IoT terminals is processed, and compatibility issues are solved, and the plug-and-play IoT terminals are realized, and compatible with traditional terminal modes are achieved. , reduces configuration workload and improves data acquisition accuracy.
Patent Information
- Application Number
- CN202011224022.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-05
- Publication Date
- 2025-01-17
- Estimated Expiration
- 2040-11-05
AI Technical Summary
The prior art is difficult to process real-time data of IoT terminals on the basis of compatibility with traditional terminals, resulting in the impact of system functions.
By introducing terminal access service modules, data adaptation modules, message forwarding modules, etc. into the system, we receive and process remote control, telemetry and remote signal data of IoT terminals and send them to the same set from different transmission channels. Processing is carried out in the system and stored in a real-time database.
It realizes unified processing between traditional terminals and IoT terminals, ensures overall system compatibility, supports flexible expansion of IoT terminals, avoids impact on existing systems, realizes zero configuration of equipment online operation, and reduces construction site The configuration workload improves the accuracy of data acquisition.
Smart Images

Figure CN112347157B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field related to the Internet of Things for power distribution systems, and in particular to a terminal data transmission method and system based on the Internet of Things. Background Art
[0002] The distribution Internet of Things is a new form of power network operation that is the result of the deep integration of traditional power industry technology and Internet of Things technology. Through advanced information and communication technology and Internet of Things communication protocols, it realizes functions such as interconnection and intercommunication between distribution and transformation terminals and low-voltage equipment, and human-computer interaction. It builds a highly flexible and distributed intelligent collaborative distribution network system based on software definition, and realizes comprehensive perception, data fusion and intelligent application of the distribution network.
[0003] Huawei's IoT platform provides a large number of API interfaces for third-party application developers. By calling the platform's interfaces, developers can develop applications based on various industry devices, such as public utilities, smart homes, etc., thereby realizing functions such as device management (including adding, deleting, querying, and modifying devices), data collection, command issuance, and message push.
[0004] The existing real-time data processing process can only process real-time data sent by traditional terminals. If you want to process real-time data from IoT terminals, you need to generate a new processing mode based on the existing method. Summary of the invention
[0005] Based on the above situation of the prior art, in order to ensure that the processing of the Internet of Things terminal mode is taken into account while being compatible with traditional terminals, different message processing modes must be used to process different terminal messages. Based on the uniqueness of the Internet of Things terminal and the traditional terminal in the system, the present invention sends them to the same system through different transmission channels for processing, so the processing results of real-time data can be uniformly stored in the same real-time database, thereby ensuring that the overall function of the system is not affected by the access of the Internet of Things terminal.
[0006] To achieve the above object, according to one aspect of the present invention, a terminal data transmission method based on the Internet of Things is provided, and the data transmission method comprises the following steps:
[0007] The terminal access service module receives remote control, telemetry and telecommunication data sent by the Internet of Things terminal;
[0008] The data adaptation module located in the fourth zone receives the telemetry and telesignaling data forwarded by the terminal access service module, writes the data into the REDIS database, and the data is equivalent from the fourth zone to the first zone in the REDIS database. After the fourth zone receives the data, the interface displays the data, and after the first zone receives the data, the corresponding system logic processing is performed;
[0009] The message forwarding module located in the fourth zone receives the remote control data forwarded by the terminal access service module, sends the remote control data to the TC module for message parsing, and synchronously forwards the remote control data to the TC module located in the first zone for message parsing;
[0010] The TC modules located in the first zone and the fourth zone output the parsed messages to the binary module and / or the state grasping module.
[0011] Furthermore, after the parsed message is output to the status grasping module, the processing result of the Internet of Things terminal is written into the existing database. If alarm information needs to be generated, the message is sent to the accident handling module.
[0012] Furthermore, the accident processing module processes the corresponding alarm information, generates an alarm information processing process, and pushes it to the screen module.
[0013] Furthermore, the screen module displays the processing results on a corresponding display interface and classifies the alarms.
[0014] Furthermore, the message forwarding module sends the received remote control data uplink to the TC module, and receives the data transmitted by the TC module and sends it downlink to the terminal access service module.
[0015] According to another aspect of the present invention, a terminal data transmission system based on the Internet of Things is provided, comprising a terminal access service module, a data adaptation module, a message forwarding module, a TC module, a binary module, a state grasping module and an accident handling module; wherein,
[0016] The terminal access service module receives remote control, telemetry and telecommunication data sent by the Internet of Things terminal;
[0017] The data adaptation module is arranged in the fourth zone, receives the telemetry and telesignaling data forwarded by the terminal access service module, writes the data into the REDIS database, and the data is equivalent from the fourth zone to the first zone in the REDIS database;
[0018] The message forwarding module is arranged in the fourth zone, receives the remote control data forwarded by the terminal access service module, sends the remote control data to the TC module for message parsing, and synchronously forwards the remote control data to the TC module located in the first zone for message parsing;
[0019] The TC module is located in the first area and the fourth area, and outputs the parsed message to the binary module located in the first area and the fourth area and / or the state grasping module located in the first area.
[0020] Furthermore, the state grasping module receives the parsed message, writes the processing result of the Internet of Things terminal into the existing database, and sends the message to the accident handling module if alarm information needs to be generated.
[0021] Furthermore, the accident processing module processes the corresponding alarm information, generates an alarm information processing process, and pushes it to the screen module.
[0022] Furthermore, the screen module displays the processing results on a corresponding display interface and classifies the alarms.
[0023] Furthermore, the message forwarding module includes a message uplink module and a message downlink module.
[0024] In summary, the present invention provides a terminal data transmission method and system based on the Internet of Things. Through the data adaptation module and the message forwarding module located in the four zones, various types of data such as remote control, telemetry and telesignaling forwarded by the terminal access service module are received respectively, and each data is equivalent from the four zones to one zone. By sending the real-time data from different transmission channels to the same system for processing, the processing results of the real-time data can be uniformly stored in the same real-time database, thereby ensuring that the overall function of the system is not affected by the access of the Internet of Things terminal.
[0025] The technical solution of the present invention has the following beneficial technical effects:
[0026] (1) The processing results of traditional terminals and IoT terminals are stored in the same real-time database to ensure the overall compatibility of the system;
[0027] (2) The real-time messages from the terminals connected to the IoT platform are transmitted to the real-time monitoring system through the Kafka mode (mainly processing the uplink messages sent to the system) and the RESTful mode (mainly processing the downlink messages sent to the terminals). The above messages are converted and merged into the original system processing mode through the newly added module, so that the IoT terminals can be flexibly expanded without being restricted by the transmission-type terminal point table. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 It is a flow chart of the terminal data transmission method based on the Internet of Things of the present invention;
[0029] Figure 2 It is a schematic diagram of the real-time data sorting and processing flow of the terminal data transmission method based on the Internet of Things of the present invention;
[0030] Figure 3 It is a structural diagram of the terminal access service module of the present invention;
[0031] Figure 4 It is a structural schematic diagram of the message forwarding module of the present invention. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. In addition, in the following description, the description of well-known structures and technologies is omitted to avoid unnecessary confusion of the concept of the present invention.
[0033] The technical solution of the present invention is described in detail below with reference to the accompanying drawings. In one embodiment of the present invention, a terminal data transmission method based on the Internet of Things is provided. The flow chart of the data transmission method is shown in FIG. Figure 1 As shown, at the same time, combined with the practical application of this data transmission method in the power distribution Internet of Things, Figure 2 The schematic diagram of the real-time data sorting process of the data transmission method is shown in FIG. Figure 2 As shown in the figure, the terminal access service module is deployed on the IoT platform and is responsible for receiving the real-time data content pushed by the IoT platform. The terminal access service module pushes the corresponding message file to the background real-time data processing module through Kafka. The background real-time data processing module parses the corresponding message content and forwards it to the corresponding area for processing, integrating it into the existing real-time data processing process. Specifically, combined with Figure 1 , the data transmission method comprises the following steps:
[0034] The terminal access service module receives remote control, remote measurement and remote communication data sent by the Internet of Things terminal.
[0035] The data adapter module located in the fourth zone receives the telemetry and telesignaling data forwarded by the terminal access service module, and writes the data into the REDIS database. The data is equivalent from the fourth zone to the first zone in the REDIS database. Specifically, during the data online process, the Internet of Things actively sends data, such as configuration point table data. Through the data adapter module in the fourth zone, the corresponding point table is written into the REDIS database, and is equivalent to the REDIS database in the first zone at the same time. Among them, during the configuration process, it is necessary to modify the contents of fields such as bsts in the real-time library of the switch according to whether the point table exists. The implementation scheme generates the corresponding point table by reading the data in kafka according to certain rules. REDIS is a real-time database used to store data such as device status.
[0036] The message forwarding module located in the fourth area receives the remote control data forwarded by the terminal access service module, sends the remote control data to the TC module for message parsing, and synchronously forwards it to the TC module located in the first area for message parsing. The message forwarding module includes a message uplink module and a message downlink module. The message parsing and forwarding module in the fourth area receives the corresponding message in the Internet of Things, parses the corresponding file and sends it to the TC module, and forwards the corresponding file to the first area through an equivalent program. The distribution network system is generally deployed in the first area and the fourth area. The first area is mainly used for dispatching, and the fourth area is mainly used for operation and maintenance.
[0037] The TC modules located in zones 1 and 4 output the parsed messages to the binary module and / or the state grasping module. The TC module processes the corresponding messages according to the corresponding point number content in the REDIS database and sends them to the binary module and the state grasping module. The point table mainly includes telesignal types, such as close-open telesignal, and the point number value close-open telesignal is configured as point 1. Further, after the parsed message is output to the state grasping module, the processing result of the Internet of Things terminal is written into the existing database. If an alarm message needs to be generated, the message is sent to the accident processing module. The accident processing module processes the corresponding alarm information, generates an alarm information processing process, and pushes it to the screen module. The screen module displays the processing result on the corresponding display interface and classifies the alarm. The TC module is used to receive the message released by the terminal and transmit the file to other services such as binary value for processing. Among them, the binary service mainly processes message comparison, compares the current state of the device, such as close-open state, with the state sent by the message, and transmits the device message with changed state to the state grasping service. The status grasping business mainly processes the changes of equipment telesignaling and generates the current topu data of the system according to the changes of telesignaling.
[0038] In another embodiment of the present invention, a terminal data transmission system based on the Internet of Things is provided, which includes a terminal access service module, a data adaptation module, a message forwarding module, a TC module, a binary module, a state grasping module and an accident handling module.
[0039] The terminal access service module receives remote control, telemetry and telesignaling data sent by the IoT terminal. Figure 3As shown. The terminal access service module connects the DASIV of the prefecture-level city through the KAFKA bus, and the four distribution network districts can be deployed in the whole province. Then it is necessary to upload the data of the four districts of each prefecture-level city to the provincial four-district system. And the low-voltage system and the various functional modules of the Internet of Things are interconnected to realize data transmission and exchange. Among them, each functional module includes: terminal capability processing module, medium-voltage data conversion, low-voltage data processing module and command corresponding output module, and each of the above functional modules is a microservice module. The terminal access service module specifically also includes the functional modules shown in Table 1 below.
[0040] Table 1
[0041]
[0042] The data adaptation module is arranged in the fourth zone, receives the telemetry and telesignaling data forwarded by the terminal access service module, and writes the data into the REDIS database. The data is equivalent from the fourth zone to the first zone in the REDIS database.
[0043] The message forwarding module is arranged in the fourth zone, receives the remote control data forwarded by the terminal access service module, sends the remote control data to the TC module for message parsing, and synchronously forwards it to the TC module located in the first zone for message parsing. The message forwarding module includes a message uplink module and a message downlink module. The structural diagram of the message forwarding module is shown in FIG. Figure 4 As shown in the figure, this process describes the uplink and downlink processes of IoT terminal processing. The uplink process is mainly telemetry and telesignaling processing, and the downlink process is mainly remote control processing. Uplink process: through the Kafka bus, the uplink is transmitted to the terminal data conversion module, and the terminal data conversion module writes to the database, which is equivalent to one zone at the same time. Downlink module: the four-zone remote control data conversion module, after receiving the remote control command, sends the terminal process.
[0044] In the message forwarding module, the process of converting messages is as follows:
[0045] 1. Terminal data transformation C language program flow: Receive KAFKA messages published from the Internet of Things platform (subscription topics include: topic_yx_data, topic_yc_data, topic_dd_data, topic_status, topic_ykrsp), parse the JSON message format, and convert the JSON message into TC business data through the dot information in the REDIS database, and send it to the TC business in zone one through the equivalence of zones one and four.
[0046] 2. Remote control data conversion C language program flow: Receive the remote control command of zone 1, convert it into JSON message format, and the remote control conversion module sends it downstream to KAFKA. The subscription topic is: DAS_YKREQ_DAT, each topic represents a terminal processing mode, and DAS_YKREQ_DAT represents remote control.
[0047] 3. Remote control calling JAVA language program flow: After receiving the message sent by the remote control data conversion C language program from KAFKA (remote control topic: DAS_YKREQ_DAT), directly call the restFul communication method / xj / zhxjz / tc / tas / north / commandreq to send a remote control request.
[0048] The TC module is located in area 1 and area 4, and outputs the parsed message to the binary module located in area 1 and area 4 and / or the state grasping module located in area 1. Further, the state grasping module receives the parsed message, writes the processing result of the IoT terminal into the existing database, and sends the message to the accident handling module if alarm information needs to be generated. The accident handling module processes the corresponding alarm information, generates an alarm information processing process, and pushes it to the screen module. The screen module displays the processing result on the corresponding display interface and classifies the alarm.
[0049] In summary, the present invention relates to a terminal data transmission method and system based on the Internet of Things. Through the data adaptation module and the message forwarding module located in the four zones, various types of data such as remote control, telemetry and telesignaling forwarded by the terminal access service module are received respectively, and each data is equivalent to one zone from the four zones. By sending the real-time data from different transmission channels to the same system for processing, the processing results of the real-time data can be uniformly stored in the same real-time database, thereby ensuring that the overall function of the system is not affected by the access of the Internet of Things terminal. Through the above technical scheme, the present invention realizes the unified processing of traditional terminals and Internet of Things terminals, ensures the plug-and-play of the Internet of Things terminals, and is also compatible with the patterned processing of traditional terminals, so that the new technology can be smoothly accessed in the power system without causing a fatal impact on the existing system. The master station actively discovers the newly installed or replaced equipment in the system, and realizes the zero-configuration online operation of the equipment under the premise of model and communication standardization, reduces the workload of construction site configuration, and improves the accuracy of data collection. The plug-and-play of the distribution Internet of Things includes two parts: the plug-and-play of the end device automatically registering with the cloud master station through the edge device and the plug-and-play of the edge device automatically registering with the cloud master station.
[0050] It should be understood that the above specific embodiments of the present invention are only used to illustrate or explain the principles of the present invention, and do not constitute a limitation of the present invention. Therefore, any modifications, equivalent substitutions, improvements, etc. made without departing from the spirit and scope of the present invention should be included in the protection scope of the present invention. In addition, the appended claims of the present invention are intended to cover all changes and modifications that fall within the scope and boundaries of the appended claims, or the equivalent forms of such scope and boundaries.
Claims
1. A data transmission method based on an Internet of Things terminal, characterized in that: The data transmission method comprises the following steps: The terminal access service module receives remote control data, telemetry data and telesignaling data sent by the IoT terminal; The data adaptation module located in the fourth zone receives the telemetry data and telesignaling data forwarded by the terminal access service module, writes the data into the REDIS database, and the data is equivalent from the fourth zone to the first zone in the REDIS database. After the fourth zone receives the data, the interface displays the data, and after the first zone receives the data, the corresponding system logic processing is performed; The message forwarding module located in the fourth zone receives the remote control data forwarded by the terminal access service module, sends the remote control data uplink to the TC module located in the fourth zone for message parsing, and synchronously forwards the remote control data to the TC module located in the first zone for message parsing, and receives the data transmitted by the TC module located in the first zone and sends it downlink to the terminal access service module; The TC module located in the fourth zone outputs the parsed message to the binary module; the TC module located in the first zone outputs the parsed message to the binary module and the state grasping module; After the parsed message is output to the status grasping module, the processing result of the Internet of Things terminal is written into the real-time database. If alarm information needs to be generated, the message is sent to the accident handling module.
2. The terminal data transmission method according to claim 1, characterized in that: The accident processing module processes the corresponding alarm information, generates an alarm information processing process, and pushes it to the screen module.
3. The terminal data transmission method according to claim 2, characterized in that: The screen module displays the processing results on a corresponding display interface and classifies the alarms.
4. A data transmission system based on an Internet of Things terminal, characterized in that: It includes terminal access service module, data adaptation module, message forwarding module, TC module, binary module, status grasping module and accident handling module; among them, The terminal access service module receives remote control data, telemetry data and telesignaling data sent by the Internet of Things terminal; The data adaptation module is arranged in the fourth zone, receives the telemetry data and telesignaling data forwarded by the terminal access service module, writes the data into the REDIS database, and the data is equivalent from the fourth zone to the first zone in the REDIS database; The message forwarding module is arranged in the fourth zone, and includes a message uplink module and a message downlink module, receives the remote control data forwarded by the terminal access service module, sends the remote control data uplink to the TC module located in the fourth zone for message parsing, and synchronously forwards the remote control data to the TC module located in the first zone for message parsing, and receives the data transmitted by the TC module located in the first zone and sends it downlink to the terminal access service module; The TC module located in the fourth zone outputs the parsed message to the binary module; the TC module located in the first zone outputs the parsed message to the binary module and the state grasping module; The state grasping module receives the parsed message, writes the processing result of the Internet of Things terminal into the existing database, and sends the message to the accident handling module if alarm information needs to be generated.
5. The terminal data transmission system according to claim 4, characterized in that: The accident processing module processes the corresponding alarm information, generates an alarm information processing process, and pushes it to the screen module.
6. The terminal data transmission system according to claim 5, characterized in that: The screen module displays the processing results on a corresponding display interface and classifies the alarms.