Online information flow intelligent gateway communication control method
Through the online information flow intelligent gateway communication control method, the equipment communication of multiple control units and the TCP/IP and MODBUS-RTU upload functions are used to solve the problem of low data transmission efficiency of multiple multi-signal terminals, and the effective transmission and callback of real-time data and node signals are realized.
Patent Information
- Application Number
- CN202411861831.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-05-02
AI Technical Summary
In the signal data transmission of multiple multi-signal terminals, the coordination and transmission efficiency of communication protocols need to be improved due to different transmission protocols, and it is difficult to achieve effective transmission and callback of real-time data and node signals.
The online information flow intelligent gateway communication control method is adopted, and the control logic and communication output are realized according to the needs of the equipment communication of multiple control units and the TCP/IP and MODBUS-RTU upload functions.
It realizes the function of managing communications of various sensors and multiple intelligent auxiliary devices, and has the equipment communication of multiple control units and the TCP/IP and MODBUS-RTU upload functions, which can realize control logic and communication output, improving the efficiency and real-timeness of data transmission.
Smart Images

Figure BDA0005193378360000021 
Figure BDA0005193378360000031
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of communication technology, and in particular relates to an online information flow intelligent gateway communication control method. Background Art
[0002] At present, the background of big data Internet value-added services involves multiple multi-signal terminals. Due to different transmission protocols, the signal data transmission of different upper and lower terminals needs to be improved in coordination and transmission efficiency. It is necessary to control and coordinate each terminal to realize the transmission and collection of real-time data and node signals, and call back the data to the background, and finally realize remote and online output scheduling control to achieve real-time status monitoring of the data platform. Summary of the invention
[0003] Purpose of the invention: In view of the problems existing in the prior art, the present invention provides an online information flow intelligent gateway communication control method, which has the device communication of multiple control units and TCP / IP and MODBUS-RTU upload functions, can realize the control logic and realize the control communication output according to the needs.
[0004] Invention content: To solve the above technical problems, the present invention adopts the following technical solutions: an online information flow intelligent gateway communication control method, comprising the following steps:
[0005] S1, the main program starts and performs initialization settings;
[0006] S2, determine whether the program communication is on or off, and proceed as follows:
[0007] When judging the open state,
[0008] (1) The communication host receives the serial communication data packet and combines the host address data through the Port-Task;
[0009] (2) obtaining slave information, wherein the slave information includes: a collection address, a feature code, and a length code; and storing the slave information in a database and sending it to the next slave;
[0010] (3) After receiving the information from the previous master, the next slave repeats steps (1) and (2) until the last slave completes the data update and transmits it back to the Can end for processing;
[0011] When the interruption status is determined, after the data is interrupted, the data interruption information is cleared; and the data request is sent again. After the host agrees to receive the data, it is returned to the host, and the host determines the start or interruption status and returns to step (1);
[0012] S3, after processing, the host Can returns to the main program to exchange data.
[0013] Furthermore, the parameters initialized in step S1 include Ethernet address, host and slave serial ports, and CAN bus.
[0014] Beneficial effects: Compared with the prior art, the present invention realizes the function of managing the communication of various sensors and multiple intelligent auxiliary devices; it has the device communication of multiple control units and TCP / IP and MODBUS-RTU upload functions, which can realize the control logic and realize the control communication output according to the needs. DETAILED DESCRIPTION
[0015] The present invention will be further described below in conjunction with specific examples. It should be understood that these examples are only used to illustrate the present invention and are not intended to limit the scope of the present invention. After reading the present invention, modifications to various equivalent forms of the present invention by those skilled in the art all fall within the scope defined by the appended claims of the present application.
[0016] The online information flow intelligent gateway communication control method of the present invention, the control system defaults port1, port2 serial ports as Modbus slave stations, port3 port as CanBus bus interface, port4, port5 serial ports as Modbus master stations, can simultaneously access two dynamic ring systems, responsible for forwarding Port1 ~ Port3 ports to collect various types of data; and at the same time has the Ethernet interface (RJ45) server-side function, responsible for the corresponding TCP / IP Modbus protocol client access request. The specific steps are as follows:
[0017] S1, the main program starts and performs initialization settings;
[0018] S2, determine whether the program communication is on or off, and proceed as follows:
[0019] When judging the open state,
[0020] (1) The communication host receives the serial communication data packet and combines the host address data through the Port-Task;
[0021] (2) obtaining slave information, wherein the slave information includes: a collection address, a feature code, and a length code; and storing the slave information in a database and sending it to the next slave;
[0022] (3) After receiving the information from the previous master, the next slave repeats steps (1) and (2) until the last slave completes the data update and transmits it back to the Can end for processing;
[0023] When the interruption status is determined, after the data is interrupted, the data interruption information is cleared; and the data request is sent again. After the host agrees to receive the data, it is returned to the host, and the host determines the start or interruption status and returns to step (1);
[0024] S3, after processing, the host Can returns to the main program to exchange data.
[0025] The parameters initialized in step S1 of the present invention include Ethernet address, host and slave serial ports, and CAN bus. The control system defaults to the distributed device access bus serial port number and serial bus address, and pre-reads the corresponding external communication cache address through a predetermined rule (as shown in Table 1 below). After the gateway is requested, it performs centralized data conversion and transmission.
[0026] Table 1
[0027]
[0028]
[0029] The present invention adopts modular design, 32-bit high-performance embedded microcomputer processor, large-capacity RAM and Flash Memory, strong data processing, logic operation and information storage capabilities, fast operation speed and high reliability, so that resources can be fully shared to achieve centralized, efficient and convenient use, control and management of operation information.
[0030] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for controlling online information flow intelligent gateway communication, characterized in that The following steps are involved: S1, the main program starts and performs initialization settings; S2, determine whether the program communication is on or off, and proceed as follows: When judging the open state, (1) The communication host receives the serial communication data packet and combines the host address data through the Port-Task; (2) Obtaining slave information, the slave information including: acquisition address, feature code, length code; and storing the slave information in a database while sending it to the next slave; (3) After receiving the information from the previous master, the next slave repeats steps (1) and (2) until the last slave completes the data update and transmits it back to the Can end for processing; When judging the interrupt status, After the data is interrupted, the data interruption information is cleared; and the data request is sent again. After the host agrees to receive the data, the data is returned to the host, and the host determines the start or interruption status and returns to step (1); S3, after processing, the host Can returns to the main program to exchange data.
2. According to claim 1, the online information flow intelligent gateway communication control method is characterized by: The parameters initialized in step S1 include Ethernet address, host and slave serial ports, and CAN bus.