Communication control method, system, device and storage medium
By converting HART data into digital signals and encapsulating them into multiple data packets at the router, and adjusting the number of transmissions according to network performance parameters, the problems of large latency and poor stability of HART protocol data transmission under 5G network are solved, and efficient and reliable data transmission to DCS system is achieved.
Patent Information
- Application Number
- CN202211377771.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-04
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2042-11-04
AI Technical Summary
In existing technologies, transmitting HART protocol data through 5G networks suffers from problems such as large transmission latency and poor data transmission stability, which may lead to communication timeouts, especially in DCS systems.
The HART data is converted into digital signal data from the router, and the data interception length and number of transmissions are determined according to network performance parameters. The data is then encapsulated into multiple data packets, and the real-time performance and stability of the transmission are optimized by using a single-message multiple transmission mechanism. Finally, the main router transmits the data to the DCS system.
It reduces end-to-end interaction latency, improves data transmission stability, and ensures that HART instrument data can be transmitted to the DCS system in a timely and reliable manner.
Smart Images

Figure CN115720302B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication, and in particular to a communication control method, system, device and storage medium. BACKGROUND
[0002] HART (Highway Addressable Remote Transducer, Highway Addressable Remote Transducer) protocol is a communication protocol suitable for communication between intelligent instruments and control room devices, and is widely used in the industrial field. The protocol is originally based on twisted-pair analog line transmission of digital signals. With the development of 5G network, HART data transmitted by HART instrument can be transmitted through 5G network, and typical application scenarios are shown in Figure 1
[0003] When using 5G network to replace the original twisted-pair for data transmission, the current industry general method is to convert the data from HART protocol format to general serial port protocol format (such as MODBUS protocol format), and then perform secondary conversion to obtain IP packet. After reaching the opposite end, the corresponding conversion is performed to restore the data in HART protocol format. This way will have the problem of increased delay in serial-parallel conversion caused by protocol conversion in actual application.
[0004] When converting data from HART protocol format to general serial port protocol format and then to IP data packet for transmission, the encapsulated data needs to be restored after receiving the complete structure of the serial port protocol, and then the IP data packet is sent. Such conversion method is limited by the influence of HART protocol baud rate, which increases the time interval between adjacent data packets. The increased time interval is about 8 to 10 times the time of sending through the serial port communication protocol. With a high probability, it will exceed the time delay threshold value of the DCS system (Distributed Control System, Distributed Control System) receiving data, resulting in the DCS system determining that the HART instrument communication is timed out.
[0005] Moreover, due to the instability, multipath transmission, jitter and other characteristics of mobile network, the stability of wireless communication is obviously deteriorated compared with wired transmission, resulting in the problem of poor transmission stability of HART data during transmission.
[0006] Therefore, the existing technology of combining HART protocol with 5G network to transmit data has the problems of large transmission delay and poor data transmission stability. SUMMARY
[0007] In view of the above problems, the embodiments of the present application provide a communication control method, system, device and storage medium which overcome the above problems or at least partially solve the above problems.
[0008] In a first aspect, an embodiment of the present application provides a communication control method applied to a control system including a master router and N slave routers, and the method comprises the following steps:
[0009] The slave routers convert HART data sent by associated HART instruments into digital signal data, wherein each slave router is associated with at least one HART instrument;
[0010] The slave routers determine a first data interception length according to network performance parameters, and encapsulate the digital signal data into a plurality of data packets according to the first data interception length;
[0011] When sending each data packet in the plurality of data packets, the slave routers determine a sending number of a single data packet according to network performance parameters at a sending time, and repeatedly send the single data packet based on the sending number;
[0012] The master router receives the plurality of data packets sent by the slave routers, converts the plurality of data packets into the HART data, and transmits the HART data to a DCS system through a target communication line.
[0013] In a second aspect, an embodiment of the present application provides a communication control system including a master router and N slave routers.
[0014] The slave routers are configured to convert HART data sent by associated HART instruments into digital signal data, wherein each slave router is associated with at least one HART instrument;
[0015] The slave routers are further configured to determine a first data interception length according to network performance parameters, and encapsulate the digital signal data into a plurality of data packets according to the first data interception length;
[0016] The slave routers are further configured to, when sending each data packet in the plurality of data packets, determine a sending number of a single data packet according to network performance parameters at a sending time, and repeatedly send the single data packet based on the sending number;
[0017] The master router is configured to receive the plurality of data packets sent by the slave routers, convert the plurality of data packets into the HART data, and transmit the HART data to a DCS system through a target communication line.
[0018] In a third aspect, an embodiment of the present application provides an electronic device including a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the communication control method in the first aspect.
[0019] In a fourth aspect, the embodiments of the present application provide a computer readable storage medium, and the computer readable storage medium stores a computer program. When the computer program is executed by a processor, the steps of the communication control method in the first aspect are implemented.
[0020] The technical scheme of the embodiments of the present application determines the first data interception length based on the current corresponding network performance parameter after the router converts the HART data into digital signal data, and encapsulates the digital signal data into a plurality of data packets according to the first data interception length. The data interception length can be adjusted based on the network performance parameter to optimize the real-time performance of single-channel transmission and reduce the end-to-end interaction delay. When a single data packet is sent, the sending times of the single data packet are determined according to the network performance parameter corresponding to the sending time, and the single data packet is repeatedly sent based on the determined sending times. The communication stability can be improved through the single message multiple transmission mechanism. The master router converts the received data packet into HART data and transmits the HART data to the DCS system through the target communication line, so that the data provided by the HART instrument can be transmitted to the DCS system based on the mobile network (5G network) and the line between the master router and the DCS system. BRIEF DESCRIPTION OF DRAWINGS
[0021] Figure 1 An application scenario diagram in which an existing 5G network replaces a twisted pair line to transmit HART data is shown;
[0022] Figure 2 A diagram of the communication control method provided by the embodiments of the present application is shown;
[0023] Figure 3 A mapping relationship diagram of the basic bearer data format corresponding to the data packet and the HART protocol frame corresponding to the HART data provided by the embodiments of the present application is shown;
[0024] Figure 4 A diagram of the architecture of the router provided by the embodiments of the present application is shown;
[0025] Figure 5 A working principle diagram of the data encapsulation module provided by the embodiments of the present application is shown;
[0026] Figure 6 A working principle diagram of the data decapsulation module provided by the embodiments of the present application is shown;
[0027] Figure 7 A working process diagram of the router in the sending process provided by the embodiments of the present application is shown;
[0028] Figure 8 A working process diagram of the router in the receiving process provided by the embodiments of the present application is shown;
[0029] Figure 9 Fig. 1 shows a schematic diagram of an overall network architecture corresponding to an embodiment of the present application;
[0030] Figure 10 Fig. 2 shows a schematic diagram of an ad hoc network process corresponding to an embodiment of the present application;
[0031] Figure 11 Fig. 3 shows a schematic diagram of determining network abnormalities provided by an embodiment of the present application;
[0032] Figure 12 Fig. 4 shows a schematic diagram of a communication control system provided by an embodiment of the present application;
[0033] Figure 13 Fig. 5 shows a structural block diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0034] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of protection of the present application.
[0035] It should be understood that the term “one embodiment” or “an embodiment” mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, “in one embodiment” or “in an embodiment” appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner.
[0036] In various embodiments of the present application, it should be understood that the size of the serial number of each process below does not mean the order of execution, and the execution order of each process should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0037] The embodiments of the present application provide a communication control method, which is applied to a control system including a master router and N slave routers, N is an integer greater than or equal to 1, at least one slave router accesses a private network (a private mobile network established based on 5G technology) with the master router, the slave routers and the master router communicate through the private network, the control system further includes a communication control platform, the master router can directly communicate with the communication control platform, and the slave routers communicate with the communication control platform through the master router.
[0038] The main router is a router connected with the DCS system, the router connected with the DCS system is set as a master node by the communication control platform, and the remaining routers are slave nodes. After setting the master and slave nodes, the communication control platform sends relevant information to the master and slave routers. For each slave router, one or more HART instruments are hung under the slave router, and the HART instruments are connected to the slave router through a twisted pair, that is, each slave router is associated with one or more HART instruments.
[0039] Referring to Figure 2 According to the communication control method provided in the embodiments of the present application,
[0040] In step 201, the slave router converts the HART data sent by the associated HART instrument into digital signal data.
[0041] The slave router receives the HART data sent by the associated HART instrument based on the connection between the slave router and the associated HART instrument, and converts the received HART data into digital signal data. The HART data is in the format of the HART protocol, and the slave router demodulates the HART data (in the form of an analog signal) into digital signal data based on a modem module. It should be noted that when multiple HART instruments are associated with the slave router, the data transmitted by different HART instruments needs to be distinguished.
[0042] In step 202, the slave router determines a first data interception length according to a network performance parameter, and encapsulates the digital signal data into a plurality of data packets according to the first data interception length.
[0043] After the slave router converts the HART data into digital signal data, the current corresponding network performance parameter needs to be obtained, the first data interception length is determined based on the current corresponding network performance parameter, the number of bits of data that needs to be encapsulated into a data packet is determined according to the first data interception length, and then the digital signal data is encapsulated into a plurality of data packets.
[0044] By determining the first data interception length based on the network performance parameter, the data interception length can be adjusted based on the network performance parameter, so as to optimize the real-time performance of single-channel transmission and reduce the end-to-end interaction delay.
[0045] When encapsulating the data packet, the content in the payload can include an instrument ID, an instruction batch number, a data start and end position, data content, a data packet checksum, and a data packet sequence number. The mapping relationship between the basic bearing data format corresponding to the data packet and the HART protocol frame corresponding to the HART data is as follows: Figure 3As shown, the mapping process is: generating the instrument ID from the router based on the Address field of the HART data received from the HART instrument side, generating the instruction batch number based on the Preamble and Delimiter fields of the HART data, encapsulating the content in the HART data into different data packets in bit or byte order, and adding the packet header number and packet data check word in the data packet. Wherein, the mapping relationship between the basic bearer data format corresponding to the data packet and the HART protocol frame corresponding to the HART data is predetermined, and the data structure does not change after the HART data is converted into digital signal data. By predetermining the mapping relationship, subsequent data encapsulation based on the mapping relationship can be facilitated.
[0046] The basic bearer data format related fields are described as follows:
[0047] Instrument ID: used to identify HART instrument information; instruction batch number: identifies the corresponding serial number of the instruction issued by the DCS system; data start and end position: records the position of the data in the HART protocol frame, including the data start position and the data end position; data content: the actual data information sent, the data length corresponds to the data start and end position; data packet sequence number: used to detect packet loss or out-of-order and used for multi-transmission communication mechanism; data packet checksum: used to ensure the accuracy of the data packet information.
[0048] Step 203, the slave router determines the number of transmissions of a single data packet according to the network performance parameter at the transmission time when transmitting each data packet in the plurality of data packets, and repeatedly transmits the single data packet based on the number of transmissions.
[0049] After encapsulating the digital signal data into data packets, the slave router determines the number of transmissions of a single data packet according to the network performance parameter corresponding to the transmission time of the single data packet when transmitting each data packet, and repeatedly transmits the single data packet based on the determined number of transmissions. For each data packet, the number of transmissions corresponding to the data packet needs to be determined based on the latest network performance parameter before transmission. By monitoring the network performance parameter and determining the number of transmissions of the data packet based on the network performance parameter, the communication stability can be improved through the single message multi-transmission mechanism.
[0050] Step 204, the master router receives the plurality of data packets transmitted by the slave router, converts the plurality of data packets into the HART data, and transmits the HART data to the DCS system through the target communication line.
[0051] The router sends the plurality of data packets to the master router based on the network connection between the router and the master router, and the master router converts the received plurality of data packets into HART data and transmits the HART data to the DCS system through the target communication line, so as to realize transmission of data provided by the HART instrument to the DCS system based on the mobile network and the line between the master router and the DCS system. It should be noted that as long as the data content received by the master router is arranged in sequence, the master router can convert it into data in the HART protocol format.
[0052] The above implementation process of the present application determines the first data interception length based on the current corresponding network performance parameter after the router converts the HART data into digital signal data, and encapsulates the digital signal data into a plurality of data packets according to the first data interception length. The data interception length can be adjusted based on the network performance parameter to optimize the real-time performance of single-channel transmission and reduce the end-to-end interaction delay. When sending a single data packet, the sending frequency of the single data packet is determined according to the network performance parameter corresponding to the sending time, and the single data packet is repeatedly sent based on the determined sending frequency. The communication stability can be improved through the single message multiple transmission mechanism. The master router converts the received data packet into HART data and transmits the HART data to the DCS system through the target communication line, so as to realize transmission of data provided by the HART instrument to the DCS system based on the mobile network (5G network), the line between the master router and the DCS system.
[0053] The architecture of the router will be introduced below, referring to Figure 4 As shown in the figure, the router includes a modem module, a data packet encapsulation module, a communication module, a data packet disassembly module, and a control module.
[0054] For the router, the modem module is used to receive HART data sent by the HART instrument and demodulate it into digital signal data, and is also used to modulate the received digital signal data into HART data. For the master router, the modem module is used to receive digital signal data and modulate it into HART data, and can also demodulate HART data. The data packet encapsulation module receives the digital signal data sent by the modem module and encapsulates the data to obtain a data packet.
[0055] The communication module is used for data packet sending and receiving, and obtains network environment state by sending test packets and reports the control module, and the control module determines the number of data bits and the number of data packets sent. The data packet unpacking module is used for data unpacking of the received data packet, and judges whether the data packet information is repeated and complete, whether it is repeated with the previously received data packet, and selects whether to discard or retain the data content according to the judgment. The control module adjusts the number of data bits and the number of data packets sent, and each slave router obtains the device ID, IP address and other information of the master router from the control module of the slave router, and the control module of the master router obtains the device ID, IP address and other information of the mobile network card (5G card) of each slave router.
[0056] For the data packet packaging module, the corresponding processing logic can be seen from Figure 5 As shown in the figure, the digital signal data received by the data packet packaging module is input to the storage unit and the counting unit, the control module calculates the number of data bits to be sent according to the network performance parameters and sends it to the storage unit and the packaging unit, the storage unit combines the current counting value and gives the corresponding data to the packaging unit, the packaging unit requests the control module to confirm the number of data bits to be sent, obtains the instrument ID, instruction batch number, data start and end position, data content, data packet checksum, data packet serial number, end-to-end IP address and other information, completes data packet packaging, and outputs to the communication module.
[0057] For the data packet unpacking module, the corresponding processing logic can be seen from Figure 6 As shown in the figure, after the data packet unpacking module receives the data packet sent by the communication module, it obtains the end-to-end IP address, end-to-end device ID, instruction batch number, data bit number and other information through the unpacking unit and reports to the control module; The data unpacked by the unpacking unit is put into the storage unit, the storage unit confirms the data continuity, and sends it to the counting unit, the counting unit receives the data in the storage unit, and clearly indicates the specific data bits that can be sent at present, and prompts the storage unit according to the clock period, and the storage unit receives the indication of the counting unit and sends the corresponding data to the modulation and demodulation module bit by bit.
[0058] The sending process and receiving process of the router are introduced below. For the sending process, see Figure 7As shown, the HART data is input as a sending signal to the modulation and demodulation module, the HART data is demodulated by the modulation and demodulation module to output digital signal data, the data packet packaging module receives the digital signal data output by the modulation and demodulation module, the data packet packaging module reports the data bit number information of the digital signal data in the HART data to the control module, obtains the relevant information (such as instrument ID, instruction batch number, data start and end position, etc.) issued by the control module, and encapsulates the information issued by the control module and the digital signal data in a data packet. The communication module sends the data packet output by the data packet packaging module according to the sending times determined by the control module.
[0059] For the receiving process, referring to Figure 8 As shown, when the communication module receives the data packet, the data packet is sent to the data packet unpacking module for unpacking. After the data packet is unpacked, the data packet unpacking module reports the information in the data packet, such as the opposite IP address, the opposite device ID, the instruction batch number, and the data bit number, to the control module. The data packet unpacking module stores the received data according to the serial number and outputs the data bit by bit to the modulation and demodulation module. After the modulation and demodulation module receives the digital signal data transmitted by the data packet unpacking module, the digital signal data is modulated into HART data.
[0060] Among them, for the slave router, it receives the HART data sent by the associated HART instrument, converts the HART data into digital signal data, and then sends the digital signal data to the master router through the communication module. The master router converts the digital signal data into HART data and then transmits the HART data to the DCS system. For the master router, it can receive the HART data sent by the DCS system, convert the HART data into digital signal data, and then send the digital signal data to the slave router. The slave router converts the digital signal data into HART data and then transmits the HART data to the HART instrument.
[0061] In an embodiment of the present application, a plurality of ports of the master router are connected to the interface card through a plurality of communication lines, and the interface card is connected to the DCS system. The method further comprises:
[0062] The communication control platform obtains the instrument identifiers corresponding to the associated HART instruments of the N slave routers and the port identifiers corresponding to the plurality of ports of the master router.
[0063] The communication control platform establishes a mapping relationship between the port identifiers and the instrument identifiers to construct a network topology between the HART instruments, the slave routers, the master router, the interface card, and the DCS system.
[0064] The communication control platform sends the mapping relationship to the master router.
[0065] Referring to Figure 9As shown, it is a schematic diagram of the overall network architecture corresponding to the embodiment of the present application. One or more HART instruments are accessed from the router through twisted pair, realizing the association of the HART instrument and the slave router. The master router and the slave router can be connected through the mobile network (5G network). The communication control platform interacts with the master router, and the communication control platform interacts with the slave router through the master router, that is, the slave router realizes the interaction with the communication control platform through the transit of the master router. The multiple ports of the master router are connected to the interface card through multiple communication lines, the interface card is connected to the DCS system, realizing the connection of the master router and the DCS system.
[0066] The communication control platform can obtain the instrument identifiers corresponding to the associated HART instruments of the N slave routers, and the port identifiers corresponding to the multiple ports of the master router respectively. According to the obtained instrument identifiers and port identifiers, a mapping relationship between the port identifiers and the instrument identifiers is established, so as to construct the network topology between the HART instruments, the slave routers, the master router, the interface card and the DCS system based on the mapping relationship. Through the establishment of the mapping relationship, the system administrator can conveniently utilize the communication control platform to uniformly manage and maintain the topology and the docking relationship between the instruments and the DCS system, and to monitor and handle the data channel. After the communication control platform establishes the mapping relationship, the communication control platform can send the mapping relationship to the master router, so that the master router obtains and stores the mapping relationship.
[0067] For the communication control platform, through the establishment of the mapping relationship between the port identifiers and the instrument identifiers, the ad hoc network can be realized, so as to facilitate the transmission of data between the instruments and the DCS system. In the ad hoc network stage, after all the routers (5G routers) are accessed to the private network, the communication control platform sets the router docking with the DCS system as the master node (master router), and the remaining routers as the slave nodes (slave routers). After setting the master and slave nodes, the communication control platform sends the related information to each slave router and the master router.
[0068] For the master router, the master router receives the IP address of the slave router and the instrument ID of the associated HART instrument reported by each slave router. For the slave router, the slave router receives the IP address of the master router and the device ID transmitted by the master router. After receiving the information sent by the master router, the slave router sends the acquisition instruction to the HART instrument hung below in a broadcast manner, obtains the basic information of the HART instrument, and returns the basic information of the HART instrument to the communication control platform through the master router.
[0069] In wired HART protocol communication, the HART instrument and the DCS side interface card form a one-to-one corresponding relationship through a wired line. In the mode of 5G communication, there is no actual physical path, and the corresponding relationship of the HART instrument and the DCS side interface card cannot be determined. The communication control platform can plan a logical line and establish a mapping relationship between the instrument and the interface card line. Even if the slave router connected to the instrument is replaced, the data can be normally returned to the DCS system.
[0070] Referring to Figure 10 As shown in the figure, the specific process of the ad hoc network is as follows: after the communication control platform connects a router, the router is set as a master router, and other routers are slave routers. After the slave router establishes a network connection with the master router, the master router reports the instrument information of the HART instrument hung under the slave router to the communication control platform, and the instrument information at least includes the instrument identifier (such as instrument ID). The communication control platform obtains the instrument identifier reported by each slave router, obtains the port identifier reported by the master router, establishes a mapping relationship between the port identifier and the instrument identifier and sends it to the master router. Based on the established mapping relationship, the network topology between the HART instrument, the slave router, the master router, the interface card and the DCS system is constructed to complete the ad hoc network, so that the HART instrument and the DCS system establish communication.
[0071] In the above implementation process of the application, after the communication control platform obtains the instrument identifier and the port identifier, it establishes a mapping relationship between the port identifier and the instrument identifier, and establishes a network topology between the HART instrument and the DCS system based on the mapping relationship, so that the HART instrument and the DCS system can establish communication through a specific path.
[0072] In an optional embodiment of the application, after the communication control platform establishes a mapping relationship between the port identifier and the instrument identifier and the master router obtains the mapping relationship, when the master router transmits the HART data to the DCS system through a target communication line, it includes:
[0073] The master router determines the target port identifier matched with the HART instrument corresponding to the HART data according to the mapping relationship, and determines the communication line corresponding to the target port identifier as the target communication line;
[0074] The master router transmits the HART data to the interface card through the target communication line, and the interface card sends the HART data to the DCS system.
[0075] The master router receives the data packet reported from the router through the 5G UPF (User Plane Function) private line, converts the data packet into HART data, determines a target port corresponding to the HART data currently received from the master router in a plurality of ports according to the mapping relationship between the port identifier and the instrument identifier, determines a target communication line corresponding to the target port as the communication line of the interface card, and transmits the HART data to the interface card through the target communication line. The interface card transmits the HART data to the DCS system, so that the data reported by the HART instrument is transmitted to the DCS system through the corresponding communication line.
[0076] After the master router stores the mapping relationship between the port identifier and the instrument identifier, in the case of obtaining the data reported from the router and converting the data into HART data, the master router can determine a target port in a plurality of ports based on the mapping relationship, transmit the HART data to the DCS system through a target communication line corresponding to the target port, so as to realize transmission of data between the HART instrument and the DCS system based on the mapping relationship.
[0077] In an embodiment of the present application, after the network topology is constructed, the method further comprises:
[0078] The slave router receives the HART broadcast message sent by the DCS system and issues the HART broadcast message to the associated HART instrument.
[0079] The slave router receives the instrument identifier fed back by the associated HART instrument based on the HART broadcast message and feeds back the obtained instrument identifier to the DCS system.
[0080] The slave router performs HART instrument detection based on the instrument identifier fed back by the associated HART instrument, and reports to the communication control platform when a new HART instrument is detected, so that the communication control platform updates the network topology.
[0081] After the communication control platform establishes the mapping relationship and constructs the network topology, the slave router can receive the HART broadcast message sent by the DCS system based on the network topology, issue the received HART broadcast message to the associated HART instrument, and feed back the instrument identifier fed back by the associated HART instrument based on the HART broadcast message. After the slave router receives the instrument identifier fed back by the HART instrument, the instrument identifier is fed back to the DCS system based on the corresponding communication line, so that the DCS system obtains the relevant information of the HART instrument connected to each slave router.
[0082] It should be noted that, since the master router stores the mapping relationship between the port identifier and the instrument identifier, the instrument identifier can be reported through the corresponding port when reporting to the DCS system, that is, the instrument identifier is transmitted to the interface card through the matching communication line of the master router port, and is reported to the DCS system by the interface card.
[0083] For the slave router, after receiving the instrument identifier feedback by the associated HART instrument, the mounted HART instrument is detected, and when a new HART instrument is detected, the mapping relationship between the new HART instrument and the port can be reported to the communication control platform for updating the network topology, and when the instrument identifier of the new HART instrument is reported to the DCS system, it can be transmitted through the newly added communication line corresponding to the updated network topology.
[0084] The above implementation process of the application can make the DCS system obtain the situation of the HART instrument mounted by the slave router by reporting the instrument identifier to the DCS system; when the slave router detects a new HART instrument, it reports to the communication control platform, and the communication control platform updates the mapping relationship to update the network topology.
[0085] In an embodiment of the application, the method further comprises: the slave router sends a test packet to the communication control platform according to a first sending period, and determines the network performance parameter according to the feedback result of the communication control platform; wherein the network performance parameter at least includes: transmission delay corresponding to each test, packet loss situation corresponding to each test, and time delay jitter value corresponding to each test.
[0086] The slave router sends a test packet to the communication control platform according to a first sending period to perform ping test, and obtains the network state through the ping test. Since the duration of the first sending period is short, it can be understood that the slave router sends the test packet to the communication control platform in real time. The communication control platform feeds back the corresponding test result for each sent test packet, and the slave router can determine the network performance parameter according to one or more test results fed back by the communication control platform, determine the first data interception length based on the network performance parameter, and decompose the data to optimize the real-time performance of single-channel transmission and reduce the end-to-end interaction delay.
[0087] The slave router can send a test packet to the communication control platform to test the network state after forming a communication relationship with the communication control platform, and the test packet can be sent through the master router when sending the test packet. The network performance parameter can include transmission delay corresponding to each test, packet loss situation corresponding to each test, and time delay jitter value corresponding to each test; when the slave router determines the first data interception length according to the network performance parameter, it includes:
[0088] The slave router determines a current network performance parameter after converting the HART data into the digital signal data;
[0089] The slave router determines a minimum transmission time delay according to transmission time delays of multiple tests corresponding to the current network performance parameter, and determines a time delay jitter accumulation value according to time delay jitter values of the multiple tests corresponding to the current network performance parameter;
[0090] The slave router determines the first data interception length according to the minimum transmission time delay, the time delay jitter accumulation value, a test number, a preset timeout threshold, and a maximum instruction length;
[0091] The maximum instruction length is a maximum data length corresponding to sending of the HART data in an instruction format.
[0092] After receiving the HART data on the HART instrument and converting the HART data into the digital signal data, the slave router needs to determine a current network performance parameter according to test results of multiple tests, determine a minimum transmission time delay according to transmission time delays of the multiple tests corresponding to the current network performance parameter, and determine a time delay jitter accumulation value according to time delay jitter values of the multiple tests corresponding to the current network performance parameter. The time delay jitter value corresponding to each test is the difference between the time delay corresponding to the test and the minimum transmission time delay, and the time delay jitter accumulation value is the sum of the time delay jitter values corresponding to the multiple tests.
[0093] After determining the minimum transmission time delay corresponding to the multiple tests and the time delay jitter accumulation value corresponding to the multiple tests, the slave router determines a first data interception length according to the minimum transmission time delay, the time delay jitter accumulation value, a test number, a preset timeout threshold, and a maximum instruction length, and decomposes data according to the first data interception length to send the data to the master router. The preset timeout threshold is a preset timeout extreme value, which is a fixed value. The test number is the number of the multiple tests. The maximum instruction length is a maximum data length corresponding to sending of the HART data in an instruction format.
[0094] The determination of the first data interception length according to the minimum transmission time delay, the time delay jitter accumulation value, the test number, the preset timeout threshold, and the maximum instruction length includes:
[0095] A first parameter is determined based on a product of the maximum instruction length and a first coefficient;
[0096] A second parameter is determined based on a difference between the preset timeout threshold and the first parameter;
[0097] determining a third parameter based on a sum of the ratio of the time delay jitter accumulated value to the test number and the minimum transmission time delay;
[0098] determining a fourth parameter according to a product of the third parameter and the maximum instruction length;
[0099] determining the first data truncation length based on a ratio of the fourth parameter to the second parameter.
[0100] The specific process of how to determine the first data truncation length based on the related parameters is introduced as follows. The total time required for transmitting one data can be divided into several parts, the encapsulation time, the unpacking time and the network transmission time delay, which is expressed as follows:
[0101] Instruction transmission time = encapsulation time + unpacking time + network transmission time delay ≤ preset timeout threshold.
[0102] Among them, the transmission time corresponding to the encapsulation and transmission of digital signal data according to the first data truncation length N can be expressed as follows:
[0103]
[0104] Among them, is the encapsulation time and the unpacking time, transmission time delay i is the network transmission time delay, and 0.8 is calculated according to the transmission rate of HART protocol.
[0105] The expression of the above transmission time can be equivalent to the following form:
[0106]
[0107] Among them, the preset timeout threshold and the maximum instruction length are fixed values, the maximum instruction length is KN+k, where k=0, 1, 2…, N-1, K represents the multiple, and k represents the remainder. Therefore, we can get:
[0108]
[0109] When k is equal to 0, it can be regarded as:
[0110]
[0111] When k is not equal to 0, it can be regarded as:
[0112] That is,
[0113] Here K+1 is the number of data packets sent,
[0114] Since the accumulation of the difference between each transmission delay and the minimum transmission delay is the delay jitter accumulation value, the average delay jitter can be: average delay jitter = delay jitter accumulation value / test times. Substituting the average delay jitter into the corresponding expression, the following results can be obtained:
[0115] When k is equal to 0:
[0116]
[0117] When k is not equal to 0:
[0118]
[0119] Therefore, based on the above analysis, it can be determined that when determining the first data interception length, the first parameter is determined based on the product of the maximum instruction length and the first coefficient (1.6), that is, the first parameter is 1.6*maximum instruction length; the second parameter is determined based on the difference between the preset timeout threshold and the first parameter, that is, the second parameter is the preset timeout threshold minus 1.6*maximum instruction length; the third parameter is determined based on the sum of the ratio of the delay jitter accumulation value to the test times and the minimum transmission delay, that is, the third parameter is the sum of the first ratio and the minimum transmission delay, and the first ratio is the ratio of the delay jitter accumulation value to the test times; the fourth parameter is determined based on the product of the third parameter and the maximum instruction length, and finally the first data interception length is determined based on the ratio of the fourth parameter to the second parameter.
[0120] The ratio of the fourth parameter to the second parameter is a fixed value, and the first data interception length N needs to be greater than or equal to the fixed value.
[0121] The above implementation process of the application sends a test packet to the communication control platform, obtains network performance parameters based on the feedback result of the communication control platform, determines relevant calculation parameters based on the network performance parameters, and determines the first data interception length according to the relevant calculation parameters, so as to realize the optimization of the real-time performance of a single channel according to the network state adjustment data interception length, and reduce the end-to-end interaction delay.
[0122] In an embodiment of the application, the sending frequency of a single data packet is determined according to the network performance parameters at the sending time when the router sends each data packet in the plurality of data packets, including:
[0123] The delay jitter accumulation value is determined according to the delay jitter values of multiple tests corresponding to the network performance parameters at the sending time when the router sends a single data packet;
[0124] The sending frequency of a single data packet is determined by the router according to the delay jitter accumulation value, the preset timeout threshold, and the maximum instruction length;
[0125] The maximum instruction length is a maximum data length corresponding to the HART data sent in an instruction format.
[0126] The network performance parameter corresponding to the sending time of the single data packet is obtained from the router when the single data packet is sent, the delay jitter accumulation value corresponding to the multiple tests is determined according to the obtained network performance parameter, and then the sending number of the single data packet is determined based on the delay jitter accumulation value, the preset timeout threshold and the maximum instruction length.
[0127] In the determination of the sending number of the single data packet according to the delay jitter accumulation value, the preset timeout threshold and the maximum instruction length, the product of the maximum instruction length and the delay jitter accumulation value is calculated by the router, and the sending number of the single data packet is determined according to the ratio of the obtained product to the preset timeout threshold.
[0128] Since the maximum instruction length * average delay jitter ≤ preset timeout threshold, the average delay jitter = delay jitter accumulation value / sending number, then the maximum instruction length * delay jitter accumulation value / sending number ≤ preset timeout threshold, and therefore the sending number is greater than or equal to the maximum instruction length * delay jitter accumulation value / preset timeout threshold.
[0129] The above implementation process can improve the communication stability through the single-packet multi-transmission mechanism based on the determination of the sending number of the data packet according to the network performance parameter.
[0130] In an embodiment of the present application, the method further comprises: in the case that the total packet loss duration corresponding to the test packet is greater than a first threshold and less than or equal to a second threshold, the last data packet and the current data packet are sent after being overlapped by the router, the first threshold is a sending period corresponding to a single data packet, the second threshold is twice the sending period corresponding to a single data packet, and the first sending period is less than the sending period corresponding to a single data packet.
[0131] In the case that the total packet loss duration corresponding to the test packet is greater than the second threshold, the communication control platform performs fault judgment.
[0132] In the case that the total packet loss duration corresponding to the test packet is greater than a first threshold (a sending period corresponding to a single data packet, i.e. the number of encapsulated data bits * 0.8 ms) and less than or equal to a second threshold (twice the sending period corresponding to a single data packet, i.e. the number of encapsulated data bits * 0.8 ms * 2), it is determined that the test packet loss condition exceeds the corresponding packet loss threshold, and at this time the last data packet and the current data packet are sent after being overlapped; here, the number of encapsulated data bits is the first data length. By introducing the overlapping sending mechanism, different data packets can be sent after being overlapped, thereby improving the communication stability.
[0133] In a case where the total duration of packet loss corresponding to the test packets is greater than the second threshold, it is determined that the current network is unavailable, and the communication control platform enters the channel abnormality determination link to segmentally locate the abnormality cause. The first transmission period corresponding to the test packets is less than the transmission period of a single data packet. Packet loss can be understood as follows: if no test packet is received within the time range in which the test packet should be received, it is determined that packet loss occurs, for example, after sending test packet 1, if no test packet 1 is received at the time of sending test packet 2 and no test packet 1 is received after a period of time, it is determined that packet loss occurs. The total duration of packet loss corresponding to the test packets can be understood as follows: the time at which the last test packet is received is determined as the starting time of the total duration of packet loss, and the current time is taken as the termination time to determine the total duration of packet loss.
[0134] In the fault judgment of the communication control platform, the following steps are included:
[0135] The communication control platform determines that the target slave router is abnormal in communication when it is detected that the target slave router does not report the HART instrument detection results for a plurality of times in succession.
[0136] The communication control platform determines that the target cell is abnormal in communication when it is detected that a plurality of slave routers associated with the target cell are all offline or switched to other cells.
[0137] The slave router receives the polling instruction sent by the communication control platform, detects the associated HART instrument based on the polling instruction, and reports the HART instrument detection results. In a case where the interface signal between the slave router and a single HART instrument is lost or the single HART instrument does not respond to the polling instruction for a plurality of times in succession, it is determined that the current HART instrument is abnormal or the line between the current HART instrument and the slave router is abnormal.
[0138] The slave router determines that a single HART instrument is unresponsive when it is detected that the interface signal transmitted between the slave router and the single HART instrument is lost, or when it is detected that the single HART instrument does not respond to the polling instruction for a plurality of times in succession. In a case where the single HART instrument is unresponsive, it is determined that the current HART instrument is abnormal or the line between the current HART instrument and the slave router is abnormal.
[0139] If the single HART instrument is not unresponsive, it is necessary to further determine whether the slave router is abnormal in communication, i.e., whether a plurality of unresponsive HART instruments are all under the same slave router. If so, it is determined that the single slave router is abnormal in communication. That is, the communication control platform determines that the target slave router is abnormal in communication and the HART instruments under the target slave router are all offline when it is detected that the target slave router does not report the HART instrument detection results for a plurality of times in succession.
[0140] If multiple unresponsive HART instruments are not hung under the same slave router, it is necessary to determine whether multiple slave routers are accessed under the same cell. If yes, it can be determined that the attached sector is abnormal. That is, the communication control platform records the cell information reported by the slave router, and if the slave routers associated with the same cell are all offline or switched to other cells, it is determined that the attached base station sector is abnormal.
[0141] The process of fault detection of the slave router and the communication control platform will be introduced below, referring to Figure 11 If yes, it is determined that the HART instrument is abnormal or the line between the HART instrument and the slave router is abnormal; if not, the communication control platform determines whether multiple unresponsive HART instruments are hung under the same slave router, if yes, it is determined that a single slave router communication is abnormal, if not, the communication control platform determines whether multiple slave routers are accessed under the same cell for multiple slave routers hung by multiple unresponsive HART instruments, if yes, it is determined that the attached cell is abnormal, otherwise, the process ends.
[0142] The above implementation process of the present application can determine abnormal HART instruments through the monitoring of the slave router associated with the HART instrument, and can monitor network abnormal conditions based on the monitoring of the communication control platform on the slave router to locate the abnormal reason according to the abnormal condition.
[0143] In the technical scheme of the embodiment of the present application, the slave router is used to complete the registration and management of the HART instrument in the communication control platform; the communication control platform is used to manage and plan the logical channel of the HART instrument and the DCS system, so as to realize the connection between the HART instrument and the DCS system through the logical channel binding; the sending number of the data packet and the data content of the data packet encapsulation are dynamically adjusted based on the signal condition, so as to reduce the influence of channel degradation on transmission quality; the network abnormal condition is monitored based on the polling of the communication control platform on the slave router, so as to locate the abnormal reason according to the abnormal condition.
[0144] In another aspect, the present application defines the real-time transmission of the HART protocol bit-by-bit transparent transmission mode in the 5G network, reduces the protocol conversion delay; the data is decomposed in the transmission process, avoiding the adaptability problem caused by the difference between the HART protocol version and the instruction; the influence of time delay jitter on real-time transmission is reduced through overlapping transmission and data packet multi-transmission mode; and a segmented positioning method of network failure of the instrument to the DCS system is provided.
[0145] The overall implementation process of the communication control method provided in the embodiment is as follows: after the router converts the HART data into digital signal data, a first data interception length is determined based on the current corresponding network performance parameter, and the digital signal data is encapsulated into a plurality of data packets according to the first data interception length. The data interception length can be adjusted based on the network performance parameter to optimize the real-time performance of single-channel transmission and reduce the end-to-end interaction delay. When a single data packet is sent, the number of times of sending the single data packet is determined according to the network performance parameter corresponding to the sending time, and the single data packet is repeatedly sent based on the determined number of times of sending. The communication stability can be improved through the single-message multi-transmission mechanism. The master router converts the received data packet into HART data and transmits the HART data to the DCS system through the target communication line, so that the data provided by the HART instrument can be transmitted to the DCS system based on the mobile network (5G network) and the line between the master router and the DCS system.
[0146] Further, by establishing a network topology between the HART instrument and the DCS system based on the mapping relationship, communication can be established between the HART instrument and the DCS system through a specific path. The DCS system can obtain the status of the HART instrument mounted on the slave router by reporting the instrument identifier to the DCS system. When a new HART instrument is detected by the slave router, the slave router reports to the communication control platform, and the communication control platform updates the mapping relationship to update the network topology.
[0147] By sending a test packet to the communication control platform, the network performance parameter is obtained based on the feedback result of the communication control platform, the relevant calculation parameter is determined based on the network performance parameter, the first data interception length is determined according to the relevant calculation parameter, the data interception length is adjusted according to the network state to optimize the real-time performance of single-channel transmission and reduce the end-to-end interaction delay; the abnormal HART instrument can be determined by monitoring the associated HART instrument by the slave router; the network abnormality can be monitored by the communication control platform to the slave router to locate the abnormal reason according to the abnormality.
[0148] The embodiment of the application also provides a communication control system, as shown in Figure 12 The communication control system comprises a master router 1201 and N slave routers 1202.
[0149] The slave router 1202 is configured to convert HART data sent by an associated HART instrument 1206 into digital signal data, wherein each slave router 1202 is associated with at least one HART instrument 1206.
[0150] The slave router 1202 is further configured to determine a first data interception length according to a network performance parameter, and encapsulate the digital signal data into a plurality of data packets according to the first data interception length.
[0151] The slave router 1202 is further configured to determine the number of times of sending a single data packet according to the network performance parameter at the time of sending when sending each data packet in the plurality of data packets, and repeatedly send the single data packet based on the number of times of sending;
[0152] The master router 1201 is configured to receive the plurality of data packets sent by the slave router 1202, convert the plurality of data packets into the HART data, and transmit the HART data to the DCS system 1205 through a target communication line.
[0153] Optionally, the control system further comprises a communication control platform 1203, a plurality of ports of the master router 1201 are connected to an interface card 1204 through a plurality of communication lines, and the interface card 1204 is connected to the DCS system 1205;
[0154] The communication control platform 1203 is configured to obtain instrument identifiers corresponding to the associated HART instruments 1206 of the N slave routers 1202 and port identifiers corresponding to the plurality of ports of the master router 1201.
[0155] The communication control platform 1203 is further configured to establish a mapping relationship between the port identifiers and the instrument identifiers, so as to construct a network topology among the HART instruments 1206, the slave routers 1202, the master router 1201, the interface card 1204, and the DCS system 1205.
[0156] The communication control platform 1203 is further configured to send the mapping relationship to the master router 1201.
[0157] Optionally, when transmitting the HART data to the DCS system 1205 through a target communication line, the master router 1201 is further configured to determine a target port identifier matched with the HART instrument 1206 corresponding to the HART data according to the mapping relationship, determine a communication line corresponding to the target port identifier as the target communication line, transmit the HART data to the interface card 1204 through the target communication line, and send the HART data to the DCS system 1205 by the interface card 1204.
[0158] Optionally, after constructing the network topology, the slave router 1202 is further configured to receive a HART broadcast message sent by the DCS system 1205, and send the HART broadcast message to the associated HART instrument 1206; receive an instrument identifier fed back by the associated HART instrument 1206 based on the HART broadcast message, and feed back the obtained instrument identifier to the DCS system 1205.
[0159] The slave router 1202 detects the HART instrument 1206 based on the instrument identification feedback from the HART instrument 1206, and reports to the communication control platform 1203 when a new HART instrument 1206 is detected, so that the communication control platform 1203 updates the network topology.
[0160] Optionally, the slave router 1202 is further configured to send a test packet to the communication control platform 1203 according to a first sending period, and determine the network performance parameter according to the feedback result of the communication control platform 1203; wherein the network performance parameter at least includes: transmission delay corresponding to each test, packet loss condition corresponding to each test, and time delay jitter value corresponding to each test.
[0161] Optionally, when determining the first data interception length according to the network performance parameter, the slave router 1202 is further configured to: determine the current network performance parameter after converting the HART data into the digital signal data; determine the minimum transmission delay according to the transmission delay of multiple tests corresponding to the current network performance parameter, and determine the time delay jitter accumulation value according to the time delay jitter value of multiple tests corresponding to the current network performance parameter; determine the first data interception length according to the minimum transmission delay, the time delay jitter accumulation value, the test number, the preset timeout threshold, and the maximum instruction length; wherein the maximum instruction length is the maximum data length corresponding to the HART data sent in the instruction format.
[0162] Optionally, when determining the first data interception length according to the minimum transmission delay, the time delay jitter accumulation value, the test number, the preset timeout threshold, and the maximum instruction length, the slave router 1202 is further configured to: determine a first parameter based on the product of the maximum instruction length and a first coefficient; determine a second parameter based on the difference between the preset timeout threshold and the first parameter; determine a third parameter based on the sum of the ratio of the time delay jitter accumulation value to the test number and the minimum transmission delay; determine a fourth parameter according to the product of the third parameter and the maximum instruction length; and determine the first data interception length based on the ratio of the fourth parameter to the second parameter.
[0163] Optionally, when determining the sending number of a single data packet according to the network performance parameter at the sending time, the slave router 1202 is further configured to: determine a time delay jitter accumulation value according to the time delay jitter value of multiple tests corresponding to the network performance parameter at the sending time when sending a single data packet; and determine the sending number of a single data packet according to the time delay jitter accumulation value, the preset timeout threshold, and the maximum instruction length; wherein the maximum instruction length is the maximum data length corresponding to the HART data sent in the instruction format.
[0164] Optionally, in the determination of the sending times of the single data packet according to the time delay jitter accumulation value, the preset timeout threshold and the maximum instruction length, the slave router 1202 is further configured to calculate the product of the maximum instruction length and the time delay jitter accumulation value, and determine the sending times of the single data packet according to the ratio of the product to the preset timeout threshold.
[0165] Optionally, in the case that the total time length of the lost packets corresponding to the test packets is greater than a first threshold and less than or equal to a second threshold, the slave router 1202 is further configured to send the last data packet and the current data packet after overlapping, the first threshold is the sending period corresponding to a single data packet, the second threshold is twice the sending period corresponding to a single data packet, and the first sending period is less than the sending period corresponding to a single data packet.
[0166] In the case that the total time length of the lost packets corresponding to the test packets is greater than the second threshold, the communication control platform 1203 is further configured to perform fault judgment.
[0167] In the fault judgment, the communication control platform 1203 is further configured to determine that the target slave router is in abnormal communication when it is detected that the target slave router does not report the detection result of the HART instrument 1206 for a plurality of times in succession, and determine that the target cell is in abnormal communication when it is detected that a plurality of slave routers 1202 associated with the target cell are all offline or switched to other cells.
[0168] The slave router 1202 receives the polling instruction sent by the communication control platform 1203, detects the associated HART instrument 1206 based on the polling instruction and reports the HART instrument detection result, and determines that the current HART instrument 1206 is abnormal or the line between the current HART instrument 1206 and the slave router 1202 is abnormal when it is detected that the interface signal between the slave router 1202 and a single HART instrument 1206 is lost or a single HART instrument 1206 does not respond to the polling instruction for a plurality of times in succession.
[0169] For the system embodiment, it is basically similar to the method embodiment, so the description is relatively simple, and the relevant parts are referred to the part of the method embodiment.
[0170] On the other hand, the embodiments of the present application also provide an electronic device, which comprises a memory, a processor, a bus, and a computer program stored in the memory and executable on the processor, and the processor implements the steps in the above communication control method when executing the program.
[0171] For example, Figure 13 An entity structure diagram of an electronic device is shown.
[0172] AsFigure 13 As shown in the figure, the electronic device can include a processor 1310, a communications interface 1320, a memory 1330, and a communications bus 1340, wherein the processor 1310, the communications interface 1320, and the memory 1330 complete communications with each other through the communications bus 1340. The processor 1310 can invoke a logical instruction in the memory 1330, and the processor 1310 is configured to execute the method steps in the present scheme.
[0173] In addition, the logical instruction in the memory 1330 described above can be implemented in the form of a software function unit and sold or used as an independent product, and can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or part of the technical solutions can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a plurality of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in the various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various program codes that can be stored in the medium.
[0174] In another aspect, the embodiments of the present application also provide a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the steps in the communication control method provided by the above-mentioned embodiments.
[0175] The device embodiments described above are only schematic, wherein the units described as separate components can or can not be physically separated, and the components displayed as units can or can not be physical units, that is, they can be located in one place, or distributed on multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the present embodiment scheme. Those skilled in the art can understand and implement it without creative labor.
[0176] Those skilled in the art can clearly understand the implementation of the various embodiments by means of software and necessary general hardware platforms through the description of the above embodiments, and of course, the embodiments can also be implemented by hardware. Based on such understanding, the above technical solutions, essentially or in other words, the part of the prior art that contributes to the technical solutions can be embodied in the form of a software product. The computer software product can be stored in a computer readable storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, and the like, and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0177] Finally, it should be noted that: the above examples are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing examples, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing examples, or make equivalent replacement for part of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A communication control method characterized by comprising: Applied to a control system comprising a master router and N slave routers, the method comprises: The slave router converts HART data sent by an associated HART instrument into digital signal data, wherein each slave router is associated with at least one HART instrument; The slave router determines a first data interception length according to network performance parameters, and encapsulates the digital signal data into a plurality of data packets according to the first data interception length; the network performance parameters comprise transmission time delay, time delay jitter accumulation value, test times, a preset timeout threshold value, and instruction length; The slave router determines the transmission times of a single data packet according to network performance parameters at the transmission time when transmitting each data packet in the plurality of data packets, and repeatedly transmits the single data packet based on the transmission times; The master router receives the plurality of data packets transmitted by the slave router, converts the plurality of data packets into the HART data, and transmits the HART data to a DCS system through a target communication line.
2. The method of claim 1, wherein, The control system further comprises a communication control platform, a plurality of ports of the master router are connected to an interface card through a plurality of communication lines, and the interface card is connected to the DCS system; the method further comprises: The communication control platform acquires instrument identifiers corresponding to the associated HART instruments of the N slave routers and port identifiers corresponding to the plurality of ports of the master router; The communication control platform establishes a mapping relationship between the port identifiers and the instrument identifiers to construct a network topology between the HART instruments, the slave routers, the master router, the interface card, and the DCS system; The communication control platform sends the mapping relationship to the master router.
3. The method of claim 2, wherein, The master router transmits the HART data to the DCS system through a target communication line, comprising: The master router determines a target port identifier matched with the HART instrument corresponding to the HART data according to the mapping relationship, and determines a communication line corresponding to the target port identifier as the target communication line; The master router transmits the HART data to the interface card through the target communication line, and the interface card sends the HART data to the DCS system.
4. The method of claim 2, wherein, After the network topology is constructed, the method further comprises: The slave router receives a HART broadcast message sent by the DCS system, and distributes the HART broadcast message to the associated HART instrument; The slave router receives an instrument identifier fed back by the associated HART instrument based on the HART broadcast message, and feeds back the acquired instrument identifier to the DCS system; Wherein, the slave router performs HART instrument detection based on the instrument identifier fed back by the associated HART instrument, and reports to the communication control platform when a new HART instrument is detected, and the communication control platform updates the network topology.
5. The method of claim 1, wherein, The control system further comprises a communication control platform, and the method further comprises: The slave router sends a test packet to the communication control platform according to a first transmission period, and determines the network performance parameters according to the feedback result of the communication control platform; The network performance parameters at least include: a transmission delay corresponding to each test, a packet loss condition corresponding to each test, and a time delay jitter value corresponding to each test.
6. The method of claim 5, wherein, The slave router determines the first data interception length according to the network performance parameters. The slave router determines a current network performance parameter after converting the HART data into the digital signal data. The slave router determines a minimum transmission delay according to transmission delays of multiple tests corresponding to the current network performance parameter, and determines a time delay jitter accumulation value according to time delay jitter values of the multiple tests corresponding to the current network performance parameter. The slave router determines the first data interception length according to the minimum transmission delay, the time delay jitter accumulation value, a test number, a preset timeout threshold, and a maximum instruction length. The maximum instruction length is a maximum data length corresponding to an instruction format when the HART data is transmitted.
7. The method of claim 6, wherein, The determination of the first data interception length according to the minimum transmission delay, the time delay jitter accumulation value, the test number, the preset timeout threshold, and the maximum instruction length includes: determining a first parameter based on a product of the maximum instruction length and a first coefficient; determining a second parameter based on a difference between the preset timeout threshold and the first parameter; determining a third parameter based on a sum of a ratio of the time delay jitter accumulation value to the test number and the minimum transmission delay; determining a fourth parameter according to a product of the third parameter and the maximum instruction length; determining the first data interception length based on a ratio of the fourth parameter to the second parameter.
8. The method of claim 5, wherein, The slave router determines a transmission number of a single data packet according to network performance parameters at a transmission time when transmitting each data packet in the multiple data packets, including: The slave router determines a time delay jitter accumulation value according to time delay jitter values of multiple tests corresponding to network performance parameters at a transmission time when transmitting a single data packet. The slave router determines the transmission number of the single data packet according to the time delay jitter accumulation value, a preset timeout threshold, and a maximum instruction length. The maximum instruction length is a maximum data length corresponding to an instruction format when the HART data is transmitted.
9. The method of claim 8, wherein, The determination of the transmission number of the single data packet according to the time delay jitter accumulation value, the preset timeout threshold, and the maximum instruction length includes: The slave router calculates a product of the maximum instruction length and the time delay jitter accumulation value, and determines the transmission number of the single data packet according to a ratio of the product to the preset timeout threshold.
10. The method of claim 5, wherein, The method further includes: In a case where the total time length of the test packet corresponding to the packet loss is greater than a first threshold and less than or equal to a second threshold, the slave router transmits the last data packet and the current data packet after overlapping, the first threshold is a transmission period corresponding to a single data packet, the second threshold is twice the transmission period corresponding to the single data packet, and the first transmission period is less than the transmission period corresponding to the single data packet. In a case where the total time length of the test packet corresponding to the packet loss is greater than the second threshold, the communication control platform performs fault judgment.
11. The method of claim 10, wherein, The communication control platform performs fault judgment, including: The communication control platform determines that the target slave router is abnormal when detecting that the target slave router does not report the HART instrument detection result continuously for multiple times. The communication control platform determines that the target cell is abnormal when detecting that multiple slave routers associated with the target cell are all offline or switched to other cells. The slave router receives the polling instruction sent by the communication control platform, detects the associated HART instrument based on the polling instruction, and reports the HART instrument detection result. When the slave router detects that the interface signal between a single HART instrument and the slave router is lost or a single HART instrument does not respond to the polling instruction for multiple times, the slave router determines that the current HART instrument is abnormal or the line between the current HART instrument and the slave router is abnormal.
12. A communication control system characterized by comprising: The system comprises a master router and N slave routers. The slave router is configured to convert the HART data sent by the associated HART instrument into digital signal data, wherein each slave router is associated with at least one HART instrument. The slave router is further configured to determine a first data interception length according to network performance parameters, and encapsulate the digital signal data into multiple data packets according to the first data interception length. The network performance parameters include transmission delay, time delay jitter accumulation value, test times, preset timeout threshold, and instruction length. The slave router is further configured to determine the transmission times of a single data packet according to the network performance parameters at the transmission time when sending each data packet in the multiple data packets, and repeatedly send the single data packet based on the transmission times. The master router is configured to receive the multiple data packets sent by the slave router, convert the multiple data packets into the HART data, and transmit the HART data to the DCS system through a target communication line.
13. An electronic device, comprising: The computer program is stored on the computer readable storage medium and is executed by the processor to implement the steps of the communication control method according to any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that, The computer program is stored on the computer readable storage medium and is executed by the processor to implement the steps of the communication control method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Efficient addressing in wireless HART protocol
CN101682547A
An energy efficient method for communication between a wireless sensor network and an industrial control system
CN102934407A