Industrial message processing method and device for C2F scene and storage medium

By setting multi-level transmission priority information and Gray code delimiters for industrial messages, and using an arbitrator to optimize the transmission path and pipeline in Ethernet, the real-time problem of communication between devices with different protocols is solved, and efficient transmission of industrial messages is achieved.

CN119583473BActive Publication Date: 2026-03-24PENG CHENG LAB
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-24
Publication Date
2026-03-24

AI Technical Summary

Technical Problem

In a C2F scenario, when industrial equipment communicates via Ethernet, the different industrial communication protocols used by different devices make it difficult for Ethernet to efficiently process industrial messages, thus reducing the real-time performance of the transmission.

Method used

By acquiring the multi-level transmission priority information of the initial industrial message, adjusting the industrial message and adding Gray code delimiters, and using an arbitrator to select the target path and pipeline from multiple candidate transmission paths and pipelines, the industrial message is transmitted in priority order.

Benefits of technology

It improves the real-time transmission performance of industrial messages in Ethernet, ensuring that industrial messages under different protocols can be transmitted to the receiving end in a timely and effective manner, thereby improving the execution efficiency and reliability of industrial systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119583473B_ABST
    Figure CN119583473B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide an industrial message processing method and device for a C2F scenario and a storage medium, and belong to the technical field of industrial message processing. The method comprises: obtaining an initial industrial message to be transmitted and an industrial communication protocol corresponding to the initial industrial message; determining multi-level transmission priority information of the initial industrial message, and adjusting the initial industrial message based on the transmission priority information and the industrial communication protocol to obtain a target industrial message; and sending the target industrial message to an arbitrator. The arbitrator is configured to determine a transmission order of a plurality of target industrial messages based on the multi-level transmission priority information, send the target industrial messages to corresponding target transmission pipelines according to the transmission order, and transmit the target industrial messages to corresponding receiving ends in the target transmission pipelines based on the corresponding industrial communication protocols. The present application can improve the real-time performance of industrial message transmission in an Ethernet.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of industrial message processing technology, and in particular to an industrial message processing method, apparatus and storage medium for C2F scenarios. Background Technology

[0002] With the continuous development of the Internet, traditional control systems can no longer meet the interaction needs between users and industrial platforms. As a result, the Customer to Factory (C2F) e-commerce model has gradually emerged. The C2F model enables end customers to interact directly with the industrial systems related to manufacturing enterprises, thereby greatly satisfying users' personalized interaction needs. However, the C2F scenario requires industrial systems to rely on Ethernet for communication.

[0003] In related technologies, industrial messages transmitted by industrial equipment have high requirements for channel transmission, which means that currently only local area networks can be used to transmit industrial messages. When industrial devices under different protocols communicate through Ethernet, the large number of industrial devices in an industrial system, and the fact that different industrial devices often correspond to different industrial communication protocols, makes it difficult for Ethernet to efficiently process industrial messages from different industrial devices, thereby reducing the real-time performance of industrial message transmission. Summary of the Invention

[0004] The main objective of this application is to propose an industrial message processing method, apparatus, and storage medium for C2F scenarios, which can improve the real-time performance of industrial message transmission in Ethernet.

[0005] To achieve the above objectives, a first aspect of this application proposes an industrial message processing method for C2F scenarios, applied at the sending end, comprising:

[0006] Obtain the initial industrial message to be transmitted, and the industrial communication protocol corresponding to the initial industrial message;

[0007] Determine the multi-level transmission priority information of the initial industrial message, and adjust the initial industrial message based on the transmission priority information and industrial communication protocol to obtain the target industrial message;

[0008] Send the target industrial message to the arbitrator;

[0009] The arbitrator is configured to select a target transmission path from multiple candidate transmission paths based on different levels of transmission priority information for target industrial packets from different sending ends, and then select a target transmission pipeline from multiple candidate transmission pipelines under the target transmission path; determine a transmission order of the multiple target industrial packets based on the multiple levels of transmission priority information, and send the target industrial packets to the corresponding target transmission pipeline in the transmission order, so as to transmit the target industrial packets to the corresponding receiving end based on the corresponding industrial communication protocol in the target transmission pipeline.

[0010] The receiving end is configured to receive the target industrial packet from the arbitrator, parse the initial industrial packet from the target industrial packet, and process the initial industrial packet.

[0011] In some embodiments, the multiple levels of transmission priority information of the initial industrial packet are determined, including:

[0012] The first priority information is configured based on the attribute of the initial industrial packet on the path, the second priority information is configured based on the attribute of the initial industrial packet on the pipeline, and the third priority information is configured based on the version to which the initial industrial packet belongs;

[0013] The first priority information, the second priority information, and the third priority information are spliced to obtain the multiple levels of transmission priority information, so that the arbitrator analyzes and processes the target industrial packet in the order of the first priority information, the second priority information, and the third priority information.

[0014] In some embodiments, the initial industrial packet is adjusted based on the transmission priority information and the industrial communication protocol to obtain the target industrial packet, including:

[0015] The transmission priority information and the industrial communication protocol are added to the initial industrial packet to obtain the adjusted initial industrial packet;

[0016] The Gray code delimiter is configured for the transmission priority information, and the Gray code delimiter is added to the adjusted initial industrial packet at a position corresponding to the transmission priority information to obtain the target industrial packet.

[0017] In some embodiments, the Gray code delimiter is added to the adjusted initial industrial packet at a position corresponding to the transmission priority information to obtain the target industrial packet, including:

[0018] The industrial communication protocol, the Gray code delimiter, and the transmission priority information are sequentially taken as a packet header of the adjusted initial industrial packet;

[0019] The packet is encapsulated in the order of the industrial communication protocol, the Gray code delimiter, the transmission priority information, and the adjusted initial industrial packet to obtain the target industrial packet.

[0020] To achieve the above object, a second aspect of the embodiments of the present application provides an industrial message processing method for a C2F scenario, applied to an arbitrator, comprising:

[0021] receiving target industrial messages sent from different sending ends, wherein the target industrial messages are obtained by the sending ends after obtaining initial industrial messages to be transmitted and industrial communication protocols corresponding to the initial industrial messages, determining multi-level transmission priority information of the initial industrial messages, and adjusting the initial industrial messages based on the transmission priority information and the industrial communication protocols;

[0022] extracting corresponding transmission priority information from each target industrial message respectively;

[0023] For each target industrial message, based on transmission priority information of different levels, a target transmission path is selected from a plurality of candidate transmission paths in turn, and a target transmission pipe is selected from a plurality of candidate transmission pipes under the target transmission path;

[0024] determining the transmission order of the plurality of target industrial messages based on the multi-level transmission priority information, sending the target industrial messages to the corresponding target transmission pipes in the transmission order, and transmitting the target industrial messages to the corresponding receiving ends in the target transmission pipes based on the corresponding industrial communication protocols;

[0025] The receiving end is configured to receive the target industrial messages from the arbitrator, parse the initial industrial messages from the target industrial messages, and process the initial industrial messages.

[0026] In some embodiments, the transmission priority information includes first priority information, second priority information, and third priority information of different levels;

[0027] selecting the target transmission path from the plurality of candidate transmission paths, and then selecting the target transmission pipe from the plurality of candidate transmission pipes under the target transmission path, comprises:

[0028] If the first priority information is less than a preset time sequence threshold, the target transmission path is selected from the plurality of candidate transmission paths according to the numerical value of the first priority information, wherein the transmission speeds of different candidate transmission paths are different;

[0029] Then, the target transmission pipe is selected from the plurality of candidate transmission pipes under the target transmission path according to the numerical value of the second priority information, wherein the transmission speeds of different candidate transmission pipes are different.

[0030] In some embodiments, sending the target industrial messages to the corresponding target transmission pipes in the transmission order comprises:

[0031] For the multiple target industrial messages belonging to the same target transmission path and the same target transmission pipeline, the target industrial messages with the same third priority information are merged.

[0032] In some embodiments, for each target industrial message, the target transmission path is selected from the multiple candidate transmission paths based on the transmission priority information of different levels in sequence, and then the target transmission pipeline is selected from the multiple candidate transmission pipelines under the target transmission path based on the transmission priority information of different levels in sequence, including:

[0033] According to the numerical size of the multi-level transmission priority information, the target industrial message satisfying the preset condition is selected from the multiple target industrial messages;

[0034] For each selected target industrial message, the target transmission path is selected from the multiple candidate transmission paths based on the transmission priority information of different levels in sequence, and then the target transmission pipeline is selected from the multiple candidate transmission pipelines under the target transmission path based on the transmission priority information of different levels in sequence.

[0035] In some embodiments, according to the numerical size of the multi-level transmission priority information, the target industrial message satisfying the preset condition is selected from the multiple target industrial messages, including:

[0036] If the total number of the target industrial messages transmitted in the current round exceeds the preset transmission threshold, the transmission priority information is corrected based on at least one of the first condition, the second condition and the third condition to obtain the target industrial message with the changed transmission priority information;

[0037] The first condition is that the first priority information matches the preset first interval value, the second condition is that the second priority information matches the preset second interval value, and the third condition is that the third priority information matches the preset third interval value.

[0038] In some embodiments, the target industrial message includes a Gray code delimiter for demarcation identification.

[0039] The corresponding transmission priority information is extracted from each target industrial message, including:

[0040] The Gray code delimiter is located in the target industrial message, and the starting position representing the transmission priority information is determined based on the Gray code delimiter.

[0041] The transmission priority information is extracted based on the starting position.

[0042] To achieve the above-mentioned purpose, a third aspect of the embodiments of the present application proposes an industrial message processing method for a C2F scenario, applied to a receiving end, including:

[0043] Receiving the target industrial message sent from the arbitrator;

[0044] The target industrial message is obtained by determining multi-level transmission priority information of the initial industrial message based on the initial industrial message to be transmitted and the industrial communication protocol corresponding to the initial industrial message, and adjusting the initial industrial message based on the transmission priority information and the industrial communication protocol.

[0045] The arbitrator is configured to select a target transmission path from a plurality of candidate transmission paths based on the transmission priority information of different levels for the target industrial message from different sending ends, and then select a target transmission pipe from a plurality of candidate transmission pipes under the target transmission path; determine a transmission order of a plurality of target industrial messages based on the multi-level transmission priority information, and send the target industrial messages to the corresponding target transmission pipes in the transmission order, so as to transmit the target industrial messages to the corresponding receiving ends based on the corresponding industrial communication protocol in the target transmission pipes.

[0046] The initial industrial message is parsed from the target industrial message, and the initial industrial message is processed.

[0047] In some embodiments, the processing of the initial industrial message comprises:

[0048] The check information is parsed from the target industrial message.

[0049] The initial industrial message is checked based on the check information, and the initial industrial message is processed when the check is passed.

[0050] To achieve the above-mentioned purpose, a fourth aspect of the embodiments of the present application proposes an industrial message processing device for C2F scene, applied to a sending end, comprising:

[0051] The obtaining module is configured to obtain an initial industrial message to be transmitted and an industrial communication protocol corresponding to the initial industrial message.

[0052] The adjusting module is configured to determine multi-level transmission priority information of the initial industrial message, and adjust the initial industrial message based on the transmission priority information and the industrial communication protocol to obtain a target industrial message.

[0053] The first sending module is configured to send the target industrial message to the arbitrator; the arbitrator is configured to, for the target industrial messages from different sending ends, select a target transmission path in a plurality of candidate transmission paths based on transmission priority information of different levels, and then select a target transmission pipe in a plurality of candidate transmission pipes under the target transmission path; determine a transmission order of the plurality of target industrial messages based on the multi-level transmission priority information, and send the target industrial messages to the corresponding target transmission pipe according to the transmission order, so as to transmit the target industrial messages to the corresponding receiving end in the target transmission pipe based on the corresponding industrial communication protocol; and the receiving end is configured to receive the target industrial message from the arbitrator, parse the initial industrial message from the target industrial message, and process the initial industrial message.

[0054] To achieve the above object, a fifth aspect of the embodiment of the present application proposes an industrial message processing device for a C2F scenario, applied to an arbitrator end, comprising:

[0055] The first receiving module is configured to receive target industrial messages sent from different sending ends, wherein the target industrial message is obtained by adjusting the initial industrial message based on the transmission priority information and the industrial communication protocol after the sending end obtains the initial industrial message to be transmitted and the industrial communication protocol corresponding to the initial industrial message.

[0056] The extraction module is configured to extract the corresponding transmission priority information from each target industrial message.

[0057] The arbitration processing module is configured to, for each target industrial message, select a target transmission path in a plurality of candidate transmission paths based on transmission priority information of different levels, and then select a target transmission pipe in a plurality of candidate transmission pipes under the target transmission path.

[0058] The second sending module is configured to determine a transmission order of the plurality of target industrial messages based on the multi-level transmission priority information, and send the target industrial messages to the corresponding target transmission pipe according to the transmission order, so as to transmit the target industrial messages to the corresponding receiving end in the target transmission pipe based on the corresponding industrial communication protocol; wherein the receiving end is configured to receive the target industrial message from the arbitrator, parse the initial industrial message from the target industrial message, and process the initial industrial message.

[0059] To achieve the above object, a sixth aspect of the embodiment of the present application proposes an industrial message processing device for a C2F scenario, applied to a receiving end, comprising:

[0060] The second receiving module is configured to receive a target industrial message sent by the arbitrator; wherein the target industrial message is obtained by the sending end after obtaining an initial industrial message to be transmitted and an industrial communication protocol corresponding to the initial industrial message, determining multi-level transmission priority information of the initial industrial message, and adjusting the initial industrial message based on the transmission priority information and the industrial communication protocol; and the arbitrator is configured to, for the target industrial messages from different sending ends, select a target transmission path in a plurality of candidate transmission paths based on transmission priority information of different levels in sequence, and then select a target transmission pipe in a plurality of candidate transmission pipes under the target transmission path; determine a transmission order of the plurality of target industrial messages based on the multi-level transmission priority information, and send the target industrial messages to the corresponding target transmission pipes in the transmission order, so as to transmit the target industrial messages to the corresponding receiving end in the target transmission pipe based on the corresponding industrial communication protocol.

[0061] The receiving processing module is configured to parse the initial industrial message from the target industrial message and process the initial industrial message.

[0062] To achieve the above-mentioned purposes, a seventh aspect of an embodiment of the present application provides an electronic device, which comprises a memory and a processor, the memory stores a computer program, and the processor implements the method of the first aspect, or the method of the second aspect, or the method of the third aspect when executing the computer program.

[0063] To achieve the above-mentioned purposes, an eighth aspect of an embodiment of the present application provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the industrial message processing method for the C2F scenario of the first aspect, or the industrial message processing method for the C2F scenario of the second aspect, or the industrial message processing method for the C2F scenario of the third aspect.

[0064] The industrial message processing method and device for the C2F scenario, the electronic device, and the storage medium provided in the application, the method comprises the following steps: obtaining an initial industrial message to be transmitted and an industrial communication protocol corresponding to the initial industrial message; determining multi-level transmission priority information of the initial industrial message, and adjusting the initial industrial message based on the transmission priority information and the industrial communication protocol to obtain a target industrial message; and sending the target industrial message to an arbitrator; wherein the arbitrator is used for selecting a target transmission path in a plurality of candidate transmission paths based on the transmission priority information of different levels for the target industrial messages from different sending ends, and then selecting a target transmission pipe in a plurality of candidate transmission pipes under the target transmission path; determining a transmission order of a plurality of target industrial messages based on the multi-level transmission priority information, and sending the target industrial messages to the corresponding target transmission pipes in the transmission order, so as to transmit the target industrial messages to the corresponding receiving ends in the target transmission pipes based on the corresponding industrial communication protocols; and the receiving end is used for receiving the target industrial messages from the arbitrator, analyzing the initial industrial message from the target industrial message, and processing the initial industrial message. The application can improve the real-time performance of industrial message transmission in Ethernet. BRIEF DESCRIPTION OF DRAWINGS

[0065] Figure 1 is an application scenario schematic diagram of the industrial message processing device for the C2F scenario provided by the embodiment of the application;

[0066] Figure 2 is an optional flowchart of the industrial message processing method for the C2F scenario provided by the embodiment of the application;

[0067] Figure 3 is another optional flowchart of the industrial message processing method for the C2F scenario provided by the embodiment of the application;

[0068] Figure 4 is still another optional flowchart of the industrial message processing method for the C2F scenario provided by the embodiment of the application;

[0069] Figure 5 is an optional module schematic diagram of the industrial message processing device for the C2F scenario provided by the embodiment of the application;

[0070] Figure 6 is another optional module schematic diagram of the industrial message processing device for the C2F scenario provided by the embodiment of the application;

[0071] Figure 7is another optional module schematic diagram of the industrial message processing device for the C2F scenario provided by the embodiment of the present application.

[0072] Figure 8 is a hardware structure schematic diagram of the electronic device provided by the embodiment of the present application. DETAILED DESCRIPTION

[0073] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in combination with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.

[0074] It should be noted that although the functional modules are divided in the device schematic diagram, and the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a manner different from the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification and claims and the above-described drawings are used to distinguish similar objects, and do not necessarily describe a specific order or sequence.

[0075] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application, and are not intended to limit the present application.

[0076] First, the related terms appearing in the text are explained and described.

[0077] Electronic commerce mode refers to using advanced information technology and communication technology to enable end customers to interact directly with manufacturing enterprises, thereby realizing the rapid delivery of personalized customized products and services. In this mode, customers can submit specific product requirements, specifications or designs through online platforms, and manufacturing enterprises can flexibly adjust production lines according to these information to meet the unique requirements of customers.

[0078] With the continuous development of the Internet, traditional control systems cannot meet the interaction needs between users and industrial platforms, and therefore, the electronic commerce mode from consumers to factories gradually emerges. The C2F mode enables end customers to directly interact with the industrial systems related to manufacturing enterprises, thereby greatly meeting the personalized interaction needs of users, and the C2F scenario requires the industrial system to rely on Ethernet for communication.

[0079] In related technologies, industrial messages transmitted by industrial equipment have high requirements for channel transmission, which means that currently only local area networks can be used to transmit industrial messages. When industrial devices under different protocols communicate through Ethernet, the large number of industrial devices in an industrial system, and the fact that different industrial devices often correspond to different industrial communication protocols, makes it difficult for Ethernet to efficiently process industrial messages from different industrial devices, thereby reducing the real-time performance of industrial message transmission.

[0080] As industrial systems expand with technological advancements, local area networks (LANs) with limited coverage are no longer sufficient to meet the message transmission needs of new industrial systems. With the development of the internet, industrial systems require the internet to monitor and manage numerous widely distributed industrial devices. Compared to traditional LANs for transmitting industrial messages, Ethernet offers wider coverage, supports almost all popular network protocols, and provides easy internet connectivity. Therefore, transmitting relevant industrial messages via Ethernet can effectively facilitate the upgrade of new industrial systems. However, the increased message transmission range makes it difficult for related technologies to promptly determine the processing priority of a large number of industrial messages, thus reducing the real-time performance of industrial message transmission.

[0081] Based on this, embodiments of this application propose an industrial message processing method, apparatus, and storage medium for C2F scenarios, which can improve the real-time performance of industrial message transmission in Ethernet.

[0082] For example, such as Figure 1 As shown, Figure 1 This is a schematic diagram illustrating an application scenario of the industrial message processing device for C2F scenarios provided in this application embodiment. First, it should be noted that, for ease of description, the industrial message processing device for C2F scenarios applied to the sending end is referred to as a "sending end device," the industrial message processing device for C2F scenarios applied to the arbitrator end is referred to as an "arbitrator device," and the industrial message processing device for C2F scenarios applied to the receiving end is referred to as a "receiving end device." In one optional application scenario, a client 11 (sending end), an Ethernet network, and a terminal 12 (receiving end) are involved. There are multiple clients 11, each equipped with the sending end device proposed in this application embodiment. The Ethernet network includes the arbitrator device proposed in this application embodiment, and the receiving end is equipped with the receiving end device proposed in this application embodiment.

[0083] Further, the sending device in the client 11 acquires the initial industrial message to be transmitted and the industrial communication protocol corresponding to the initial industrial message, determines the multi-level transmission priority information of the initial industrial message, and adjusts the initial industrial message based on the transmission priority information and the industrial communication protocol to obtain a target industrial message. Then, the target industrial message is sent to the switching device (such as an arbitrator) between the sending end and the receiving end. The arbitrator device arranged in the arbitrator can determine the priority of different protocol messages from different sending ends, and sequentially send the target industrial messages to the corresponding receiving ends according to the determined priority order, so that the receiving ends can timely receive the required target industrial messages and process them. In this way, the industrial messages of different industrial devices can be transmitted in the same Ethernet, thereby improving the real-time performance of industrial message transmission, especially the industrial message transmission under different protocols.

[0084] It should be noted that in the embodiments of the present application, when it is necessary to obtain user's basic information or information related to user's identity and other characteristics, the user's permission or consent will be obtained first, and the collection, use and processing of these data will comply with relevant laws, regulations and standards. In addition, when the embodiments of the present application need to obtain sensitive personal information of the user, the separate permission or separate consent of the user will be obtained first, and after obtaining the separate permission or separate consent of the user, the necessary data for the normal operation of the embodiments of the present application will be obtained. For example, when the embodiments of the present application acquire the initial industrial message, the authorization or consent of the personnel managing the sending end of the message will be obtained first, otherwise the initial industrial message cannot be used in the embodiments of the present application. In addition, other related data obtained by the present application are all authorized data, which will not be described here.

[0085] In the embodiments of the present application, the sending device will be described from the dimension of the sending device, which can be integrated in a computer device, such as a server of a client. As shown in Figure 2 Figure 2 is an optional flowchart of the industrial message processing method for the C2F scenario provided by the embodiments of the present application, Figure 2 The method in the embodiments of the present application can include but is not limited to the following steps 101 to 103. When the sending device executes the industrial message processing method for the C2F scenario arranged in the sending end, the specific process is as follows. It should be noted that the order of steps 101 to 103 in the embodiments is not limited, and the order of steps can be adjusted or some steps can be reduced or added according to actual needs. Figure 2

[0086] Step 101, acquiring the initial industrial message to be transmitted and the industrial communication protocol corresponding to the initial industrial message. ​​

[0087] The step 101 is described in detail as follows.

[0088] In some embodiments, the enterprise system directly interacted with by the client in the C2F mode is usually an industrial system. The industrial system refers to a complex system composed of multiple different industrial devices, which is used to implement industrial tasks such as production, manufacturing, monitoring and control. Since each industrial device needs to implement real-time control according to the received instructions in the process of implementing the task, to ensure that multiple industrial devices can work in high-precision cooperation, the industrial system needs to reasonably manage and schedule messages carrying different importance and urgency, thereby improving the execution efficiency, safety and reliability of the industrial system.

[0089] The initial industrial message is from any industrial device of the industrial system. In the industrial system, the initial industrial message refers to the original data or instructions generated from the industrial device, which is used for communication between different industrial devices. The industrial device can be a sensor, a lathe, a motor, a controller, an actuator, etc. The industrial device is the sending end, and the multiple industrial devices are in communication connection with the arbitrator.

[0090] The industrial communication protocol specifies the standards or specifications of the format, transmission mode, error detection mechanism, etc. of the initial industrial message to be transmitted. Since the technical fields involved in different industrial devices are usually different, and the technical differences between different technical fields are large, different industrial communication protocols need to be used for data exchange and communication. For example, some industrial devices may use a serial communication protocol, while some industrial devices use a parallel communication protocol or a network communication protocol.

[0091] In step 102, the multi-level transmission priority information of the initial industrial message is determined, and the initial industrial message is adjusted based on the transmission priority information and the industrial communication protocol to obtain a target industrial message.

[0092] The step 102 is described in detail as follows.

[0093] In some embodiments, to solve the problem of network congestion and increased delay caused by the transmission of messages of different protocols through the Ethernet, the present embodiment obtains the multi-level transmission priority information of the initial industrial message in addition to the initial industrial message and the corresponding industrial communication protocol. The multi-level transmission priority information includes multiple transmission priority information of different priority levels, which performs finer priority division on the message. Then, the present embodiment can use the obtained industrial communication protocol and the determined multi-level transmission priority information to adjust the initial industrial message, so as to perform more detailed priority determination on the message by the arbitrator.

[0094] Further, the following detailed explanation is made on how to obtain the multi-level transmission priority information and how to obtain the target industrial packet by adjusting the initial industrial packet:

[0095] In some embodiments, the multi-level transmission priority information of the initial industrial packet is determined, including the following steps:

[0096] (102.a.1) The first priority information is configured based on the attribute of the initial industrial packet on the path, the second priority information is configured based on the attribute of the initial industrial packet on the pipe, and the third priority information is configured based on the version to which the initial industrial packet belongs.

[0097] (102.a.2) The first priority information, the second priority information, and the third priority information are spliced to obtain the multi-level transmission priority information, so that the arbitrator analyzes and processes the target industrial packet in the order of the first priority information, the second priority information, and the third priority information.

[0098] The following describes steps (102.a.1) to (102.a.2) in detail.

[0099] Among them, the path refers to the communication path between the sending end and the receiving end, and the path may include multiple intermediate nodes (such as switches, routers, gateways, etc.). Different paths have different transmission characteristics, for example, the path transmission characteristics include protocol type, delay, etc.; further, the speed of different paths transmitting different protocol packets is different, and the speed of different paths transmitting the same protocol packet is also different.

[0100] Further, the sending end device can comprehensively score the path priority of each path transmitting each initial industrial packet according to the transmission characteristics of each path, and determine the first priority information of the corresponding packet according to the path priority score. Exemplarily, for the initial industrial packet a and the initial industrial packet b, the following corresponding path priority scores A and B are obtained respectively:

[0101] A = protocol type requirement evaluation value (high timeliness) + delay requirement evaluation value (low delay);

[0102] B = protocol type requirement evaluation value (general) + delay requirement evaluation value (general);

[0103] Further, the path priority score A > the path priority score B can be obtained, and accordingly, the first priority information of the initial industrial packet a is greater than that of the initial industrial packet b.

[0104] Further, respective feature weights can also be assigned to respective path transmission characteristics, and based on the plurality of feature weights, a priority order of the respective messages is comprehensively evaluated. It should be noted that the path transmission characteristics considered by the sending end device can be set according to actual conditions, and the embodiments of the present application do not limit this.

[0105] Among them, the pipeline refers to a logical channel for transmitting different types of messages on the same path. Different pipelines have different transmission characteristics, for example, pipeline transmission characteristics include bandwidth, etc., and thus different pipelines have different transmission speeds, and different pipelines have different speeds for transmitting the same amount of data messages. Generally, in the case of transmitting the same message, the greater the bandwidth of the pipeline, the faster the message transmission speed.

[0106] Further, the sending end device can comprehensively score the path priority of the path transmission characteristics for transmitting the initial industrial messages, and determine the first priority information of the corresponding message according to the path priority score. For example, for the initial industrial message c and the initial industrial message d, the following respective path priority scores C and D are obtained:

[0107] C = bandwidth requirement evaluation value (general);

[0108] D = bandwidth requirement evaluation value (high bandwidth);

[0109] Further, the path priority score C < the path priority score D can be obtained, and accordingly, the second priority information of the initial industrial message d is greater than that of the initial industrial message c. When the first priority information of the plurality of initial industrial messages is the same, the priority order of the transmission of the corresponding message is determined according to the second priority information.

[0110] Among them, the version refers to the specific version of the communication protocol or data format followed by the message, including data format version, protocol version, etc. Generally, the earlier the version, the earlier the corresponding message is generated, and thus the priority order of the transmission should be earlier.

[0111] Further, after determining the first priority information, the second priority information and the third priority information of the initial industrial message, the first priority information, the second priority information and the third priority information are spliced in order to obtain multi-level transmission priority information. In order for the subsequent arbitrator to accurately find the transmission path, pipeline and sending order of the corresponding message according to the order of the first priority information, the second priority information and the third priority information based on the multi-level transmission priority information, and to realize centralized and unified priority management of messages under different protocols.

[0112] In some embodiments, adjusting the initial industrial message based on the transmission priority information and the industrial communication protocol to obtain the target industrial message includes the following steps:

[0113] (102.b.1) adding the transmission priority information and the industrial communication protocol to the initial industrial message to obtain an adjusted initial industrial message.

[0114] (102.b.2) configuring a Gray code delimiter for the transmission priority information, and adding the Gray code delimiter to a position corresponding to the transmission priority information in the adjusted initial industrial message to obtain a target industrial message.

[0115] The steps (102.b.1) to (102.b.2) are described in detail as follows.

[0116] The Gray code delimiter is a code generated in a binary coding mode, and only one binary number is different between any two adjacent codes of the Gray code delimiter. Therefore, the arbitrator can easily locate the Gray code delimiter from the received message without complex analysis logic. Further, configuring the Gray code delimiter for the transmission priority information can enable the arbitrator to easily distinguish the transmission priority information from other message content, so as to determine the receiving end corresponding to the current processing message in the shortest time.

[0117] Further, the sending end device also configures the Gray code delimiter for the transmission priority information in the process of adjusting the initial industrial message to obtain the target industrial message. When the target industrial message is generated in a predetermined format, the Gray code delimiter which is easy to locate and identify is further added to further improve the speed of the subsequent arbitrator processing the target industrial message.

[0118] In some embodiments, adding the Gray code delimiter to the position corresponding to the transmission priority information in the adjusted initial industrial message to obtain the target industrial message includes the following steps:

[0119] (A.1) sequentially taking the industrial communication protocol, the Gray code delimiter and the transmission priority information as a message header of the adjusted initial industrial message.

[0120] (A.2) performing message encapsulation according to the order of the industrial communication protocol, the Gray code delimiter, the transmission priority information and the adjusted initial industrial message to obtain the target industrial message.

[0121] The steps (A.1) to (A.2) are described in detail as follows.

[0122] The message header refers to an information segment encapsulated in the beginning part of the message, which contains some control information for transmitting and managing the message. The message header can provide necessary routing information and error detection and correction mechanism for the message to ensure that the message can be correctly sent and received.

[0123] The message encapsulation refers to encapsulating information data according to a certain format and specification for transmission in a network. The embodiment of the application encapsulates the message according to the order of the industrial communication protocol, the Gray code delimiter, the transmission priority information and the initial industrial message after adjustment, so that the target industrial message sent by different industrial devices has a unified message encapsulation format. The unified message encapsulation format enables the arbitrator to compatibly process industrial messages under different protocols, thereby realizing the interconnection and intercommunication of different protocol messages.

[0124] In step 103, the target industrial message is sent to the arbitrator.

[0125] The following describes step 103 in detail.

[0126] In the industrial system, the arbitrator is used to determine the transmission priority order of the message when multiple industrial devices simultaneously send requests or receive messages, which can avoid resource conflicts and competition on the one hand, and enable more urgent messages to be transmitted to the corresponding receiving end more quickly on the other hand.

[0127] Further, the arbitrator can be a router or a switch. According to the specific network architecture, application scenario and communication demand of the industrial system, the arbitrator can have the following deployment modes:

[0128] (1) Core switch / router: suitable for large distributed industrial device deployment or multi-region collaborative work scenarios, and can provide a global perspective and centralized management;

[0129] (2) Aggregation layer switch / router: suitable for workshop-level communication or cross-workshop communication, and can perform local optimization and reduce the burden of the core layer;

[0130] (3) Access layer switch / router: suitable for small industrial device group communication or localized control, and can provide low latency and fine-grained control;

[0131] (4) Edge computing device: suitable for edge intelligent and localized decision-making scenarios;

[0132] (5) Hybrid deployment: suitable for complex network structures or multi-protocol coexistence scenarios.

[0133] It should be noted that the embodiment of the application has good compatibility with existing protocols and does not affect the architecture of the industrial system to which it is applied, and can realize wider transmission compared to a local area network.

[0134] The arbitrator, for target industrial messages from different senders, sequentially selects a target transmission path from multiple candidate transmission paths based on different levels of transmission priority information, and then selects a target transmission channel from multiple candidate transmission channels under the target transmission path. Based on multi-level transmission priority information, the transmission order of multiple target industrial messages is determined, and the target industrial messages are sent to the corresponding target transmission channels according to the transmission order. In the target transmission channels, the target industrial messages are then transmitted to the corresponding receiving end based on the corresponding industrial communication protocol.

[0135] Furthermore, the receiving end is used to receive the target industrial message from the arbitrator, parse the target industrial message to obtain the initial industrial message, and process the initial industrial message. The receiving end can be one of multiple industrial devices, so that the receiving end that receives the target industrial message can perform corresponding control actions; that is, the industrial device can act as both a sender and a receiver. Alternatively, the receiving end can also be a server, distinct from the industrial device, capable of analyzing and processing the received target industrial message and generating relevant analysis reports, etc.

[0136] It should be noted that the specific type of the receiving end and the specific processing actions performed by the receiving end after receiving the target industrial message can be set according to the actual situation, and this application embodiment does not impose any restrictions on this.

[0137] In this embodiment, the description will focus on the arbitrator-side device. For example... Figure 3 As shown, Figure 3 This is another optional flowchart of the industrial message processing method for C2F scenarios provided in the embodiments of this application. Figure 3 The method may include, but is not limited to, the following steps 201 to 204. When the sending device executes the industrial message processing method for C2F scenarios deployed on the sending end, the specific process is as follows. It should be noted first that this embodiment... Figure 3 The order of steps 201 to 204 is not specifically limited. The order of steps can be adjusted or some steps can be reduced or added according to actual needs.

[0138] Step 201: Receive target industrial messages sent from different sending ends.

[0139] Step 201 is described in detail below.

[0140] The target industrial message is obtained by the sending end after acquiring the initial industrial message to be transmitted and the industrial communication protocol corresponding to the initial industrial message, determining the multi-level transmission priority information of the initial industrial message, and adjusting the initial industrial message based on the transmission priority information and the industrial communication protocol.

[0141] Step 202, extracting the corresponding transmission priority information from each target industrial message respectively.

[0142] The step 202 is described in detail as follows.

[0143] In some embodiments, in order to complete the complex and precise processing tasks of the industrial system, the arbiter receives target industrial messages from multiple different sending ends at each moment. After receiving multiple target industrial messages at the same moment, the arbiter first extracts the transmission priority information added by the sending end from each target industrial message respectively, so as to analyze and process the transmission priority information later, and determine the receiving end of the corresponding target industrial message and the transmission priority order.

[0144] In some embodiments, extracting the corresponding transmission priority information from each target industrial message respectively includes the following steps:

[0145] (202.a.1) Locating the Gray code delimiter in the target industrial message, and determining the starting position of the transmission priority information based on the Gray code delimiter.

[0146] (202.a.2) Extracting the transmission priority information based on the starting position.

[0147] The steps (202.a.1) to (202.a.2) are described in detail as follows.

[0148] In some embodiments, since the target industrial message transmitted by the sending end already includes the Gray code delimiter for delimiting and identifying, the arbiter can quickly locate the starting position of the transmission priority information from the target industrial message through the Gray code delimiter, thereby greatly shortening the priority order determination time of the target industrial message.

[0149] Further, the transmission priority information is extracted from the starting position. Generally, the transmission priority information has a fixed field length, and when the amount of extracted information reaches the preset field length, it is determined that the transmission priority information extraction is complete; or the sending end can insert the Gray code delimiter at both the starting position and the ending position of the transmission priority information, so that the arbiter can determine the starting position of the transmission priority information according to the first-identified Gray code delimiter, and determine that the transmission priority information extraction is complete based on the second-identified Gray code delimiter during the process of extracting the transmission priority information based on the starting position.

[0150] Step 203, for each target industrial message, based on different levels of transmission priority information, sequentially selecting a target transmission path from multiple candidate transmission paths, and then selecting a target transmission pipe from multiple candidate transmission pipes under the target transmission path.

[0151] The step 203 is described in detail as follows.

[0152] The candidate transmission path refers to a path composed of different intermediate nodes between the sending end and the receiving end, each path is composed of a series of nodes (such as routers, switches, etc.), and the target industrial message can be forwarded to the destination receiving end through these nodes. The candidate transmission pipeline refers to a plurality of different "logical" or "physical" channels existing on each candidate transmission path.

[0153] Further, the conventional industrial message transmission only distinguishes the priority order of different industrial messages through path attributes, and compared with the local area network, the network topology structure of the Ethernet is more complex, and the number of sending end devices connected with the arbitrator also increases. Therefore, when facing burst traffic, a large number of messages may suddenly appear on the same path, thereby causing the load of the path to increase sharply, and the conventional industrial message transmission has been unable to effectively cope with this situation; the burst traffic may be caused by reasons including but not limited to device startup, periodic task synchronization, event triggering, etc. The embodiments of the present application can further divide the priority of a plurality of target industrial messages based on different levels of transmission priority information, so as to more accurately determine the transmission priority order of each target industrial message in a complex network structure, thereby ensuring that the industrial system can still efficiently and accurately transmit a plurality of target industrial messages in the Ethernet environment.

[0154] In some embodiments, the target transmission path is selected from a plurality of candidate transmission paths, and the target transmission pipeline is selected from a plurality of candidate transmission pipelines under the target transmission path, including the following steps:

[0155] (203.a.1) If the first priority information is less than a preset timing threshold, the target transmission path is selected from a plurality of candidate transmission paths according to the numerical value of the first priority information, wherein the transmission speeds of different candidate transmission paths are different.

[0156] (203.a.2) Then, the target transmission pipeline is selected from a plurality of candidate transmission pipelines under the target transmission path according to the numerical value of the second priority information, wherein the transmission speeds of different candidate transmission pipelines are different.

[0157] The steps (203.a.1) to (203.a.2) are described in detail as follows.

[0158] The timing threshold represents the expected value of the first priority information, because the industrial system has high real-time transmission requirements for messages, therefore, in the multi-message transmission scenario, the arbitrator will preferentially forward the target industrial message with high priority order, and the message exceeding the timing threshold can be considered as a message with low emergency degree, and the arbitrator determines that the message can be processed later.

[0159] Further, if the first priority information is greater than a preset time threshold, the arbitrator can update the first priority information of the corresponding target industrial message, usually, reduce the first priority information by one to obtain updated first priority information, so that the arbitrator puts the message to the next transmission round for processing, and does not transmit the message in the current round. In this way, among a large number of messages to be processed, the arbitrator can first filter out the messages with higher emergency degree through the first priority information, and if the first priority information does not meet the transmission requirement of the current transmission round, there is no need to continue to analyze the second priority information and the third priority information, thereby improving the transmission efficiency of the industrial message.

[0160] In some embodiments, for each target industrial message, a target transmission path is selected in a plurality of candidate transmission paths based on different levels of transmission priority information, and then a target transmission pipe is selected in a plurality of candidate transmission pipes under the target transmission path, including the following steps:

[0161] (203.b.1) According to the value size of the multi-level transmission priority information, a target industrial message meeting a preset condition is selected from a plurality of target industrial messages.

[0162] (203.b.2) For each selected target industrial message, a target transmission path is selected in a plurality of candidate transmission paths based on different levels of transmission priority information, and then a target transmission pipe is selected in a plurality of candidate transmission pipes under the target transmission path.

[0163] The steps (203.b.1) to (203.b.2) are described in detail below.

[0164] In some embodiments, a large number of messages may cause network congestion when transmitted at the same time, resulting in transmission delay and even packet loss. Based on this, the arbitrator of the embodiments of the present application will first screen the received multiple target industrial messages after receiving the multiple target industrial messages, and then analyze and process the multi-level transmission priority information of the messages that pass the initial screening. In the case of network congestion causing network jitter increase and transmission delay fluctuation, some target industrial messages are reasonably screened out and corrected to ensure the transmission accuracy and efficiency of the messages.

[0165] In some embodiments, according to the value size of the multi-level transmission priority information, a target industrial message meeting a preset condition is selected from a plurality of target industrial messages, including the following steps:

[0166] (B.1) If the total number of target industrial messages transmitted in the current round exceeds the preset transmission threshold amount, the transmission priority information is corrected based on at least one of the first condition, the second condition and the third condition, to obtain the target industrial message after the transmission priority information is changed.

[0167] The step (B.1) is described in detail as follows.

[0168] The transmission threshold amount refers to the maximum number of messages that the arbitrator can process in the current round. For a certain target industrial message, the first condition refers to that the first priority information is within the preset first interval value, the second condition refers to that the second priority information is within the preset second interval value, and the third condition refers to that the third priority information is within the preset third interval value. If the multi-level transmission priority information of the message meets at least one of the three conditions, the transmission priority information of the message is corrected. Then, the arbitrator processes the target industrial message after the transmission priority information is corrected, so as to ensure the accurate transmission of each message while ensuring the priority transmission of important messages in a complex Ethernet environment.

[0169] For example, the total number of target industrial messages received by the arbitrator in the current round is 150, and the preset transmission threshold is 100. The first interval value is [9, 10]. If the first priority information of a certain target industrial message is 9, it means that the first priority information matches the first interval value, indicating that the first priority information of the message is incorrect in the current transmission scenario, resulting in a sharp increase in the number of messages transmitted in the current round. Therefore, when at least one of the three conditions occurs, the message needs to be corrected.

[0170] Further, if the first priority information matches the first interval value, the first priority information of the corresponding message will be corrected so that the corresponding message does not belong to the current transmission. Then, in order to meet the load balancing of each path, other messages will also be adjusted in turn. Specifically, for the path that exceeds the load, the first priority information of part of the messages is adjusted. Usually, the arbitrator adds one to it to make the corresponding message select another suboptimal path, until the number of messages transmitted in the current round meets the transmission threshold amount requirement, and the load of each path is balanced.

[0171] Further, if the total number of the industrial messages transmitted in the current round still exceeds the preset transmission threshold after the part of the target industrial messages are filtered out based on the first priority information, it can be determined which of the remaining messages meets the second condition, and the priority information of the message meeting the second condition is further corrected. For example, the first interval value is [9, 10], the second interval value is [9, 10], and after the part of the messages are filtered out, for the message whose first priority information still matches the first interval value after correction, it is determined which of the message meets the second condition, and the priority information of the message meeting the second condition is corrected so that the corresponding message does not belong to the current round transmission. Then, in order to balance the load of each pipe, the second priority information of the other messages is adjusted in sequence. Specifically, for the pipe with excessive load, the second priority information of part of the messages is adjusted, usually, the arbitrator adds one to it so that the corresponding message selects another suboptimal pipe, until the number of the messages transmitted in the current round meets the requirement of the transmission threshold, and the load of each pipe is balanced.

[0172] Further, if the total number of the industrial messages transmitted in the current round still exceeds the preset transmission threshold after the part of the target industrial messages are filtered out based on the first priority information, it can be determined which of the remaining messages meets the second condition, and the priority information of the message meeting the second condition is further corrected. For example, the first interval value is [9, 10], the second interval value is [9, 10], and after the part of the messages are filtered out, for the message whose first priority information still matches the first interval value after correction, it is determined which of the message meets the second condition, and the priority information of the message meeting the second condition is corrected so that the corresponding message does not belong to the current round transmission.

[0173] It should be noted that the specific values of the first interval value, the second interval value and the third interval value can be adjusted according to the actual situation, which can be obtained by pre-setting or dynamically estimated according to the total number of the messages transmitted in the current round, and the embodiments of the present application do not limit this. Through the layer-by-layer correction of the messages and the reevaluation of the priority order of each target industrial message, it is ensured that the high-priority messages can be transmitted preferentially, and the low-priority messages can be transmitted gradually without affecting the key tasks.

[0174] In step 204, the transmission order of the target industrial messages is determined based on the multi-level transmission priority information, and the target industrial messages are sent to the corresponding target transmission pipe according to the transmission order, so as to be transmitted to the corresponding receiving end in the target transmission pipe based on the corresponding industrial communication protocol.

[0175] The step 204 is described in detail below.

[0176] In some embodiments, when the target transmission path and target transmission channel are determined based on multi-level transmission priority information, the transmission order of multiple target industrial messages is then determined based on third priority information, so that the arbitrator sends each target industrial message to the target transmission channel where the target transmission path is located based on the transmission order. The receiving end is used to receive the target industrial messages from the arbitrator, parse the initial industrial messages from the target industrial messages to obtain them, and process the initial industrial messages.

[0177] In some embodiments, sending target industrial messages to corresponding target transmission channels in transmission order includes the following steps:

[0178] (204.a.1) For multiple target industrial messages that belong to the same target transmission path and the same target transmission channel, merge target industrial messages that have the same third priority information.

[0179] The following is a detailed description of step (204.a.1).

[0180] In some embodiments, if two target industrial messages belong to the same target transmission path and the same target transmission channel, the transmission order of the two messages is determined according to the size of the third priority information; if the third priority information of the two target industrial messages is the same, the two messages can be merged for transmission, so as to significantly reduce the number of messages transmitted, reduce the processing burden of the arbitrator, and reduce network bandwidth usage.

[0181] In this embodiment, the description will focus on the receiving device, which can be integrated into a terminal server. For example... Figure 4 As shown, Figure 4 This is another optional flowchart of the industrial message processing method for C2F scenarios provided in the embodiments of this application. Figure 4 The method may include, but is not limited to, the following steps 301 to 302. When the sending device executes the industrial message processing method for C2F scenarios deployed on the sending end, the specific process is as follows. It should be noted first that this embodiment... Figure 4 The order of steps 301 to 302 is not specifically limited. The order of steps can be adjusted or some steps can be reduced or added according to actual needs.

[0182] Step 301: Receive the target industrial message sent from the arbitrator.

[0183] Step 302: Parse the initial industrial message from the target industrial message and process the initial industrial message.

[0184] Steps 301 to 302 are described in detail below.

[0185] In some embodiments, the receiving end is configured to receive the target industrial message from the arbitrator, parse the initial industrial message from the target industrial message, and process the initial industrial message. The receiving end can be one of the industrial devices, so that the receiving end that receives the target industrial message performs a corresponding control action, that is, the industrial device can be both a sending end and a receiving end. Alternatively, the receiving end can be a server end that is different from the industrial device, and the server end can analyze and process the received target industrial message to generate a related analysis report.

[0186] It should be noted that the specific type of the receiving end and the specific processing action performed by the receiving end after receiving the target industrial message can be set according to actual conditions, and the embodiments of the present application do not limit the same.

[0187] The target industrial message is obtained by the sending end after obtaining the initial industrial message to be transmitted and the industrial communication protocol corresponding to the initial industrial message, determining the multi-level transmission priority information of the initial industrial message, and adjusting the initial industrial message based on the transmission priority information and the industrial communication protocol.

[0188] In addition, the arbitrator is configured to select a target transmission path in a plurality of candidate transmission paths based on different levels of transmission priority information for target industrial messages from different sending ends, and then select a target transmission pipe in a plurality of candidate transmission pipes under the target transmission path. The transmission order of the plurality of target industrial messages is determined based on the multi-level transmission priority information, the target industrial messages are sent to the corresponding target transmission pipe according to the transmission order, and the target industrial messages are transmitted to the corresponding receiving end in the target transmission pipe based on the corresponding industrial communication protocol.

[0189] In some embodiments, processing the initial industrial message includes the following steps:

[0190] (302.a.1) parsing the verification information from the target industrial message.

[0191] (302.a.2) verifying the initial industrial message based on the verification information, and processing the initial industrial message when the verification is passed.

[0192] The steps (302.a.1) to (302.a.2) are described in detail as follows.

[0193] In some embodiments, in order to ensure that the message does not occur error or tampering in the transmission process, the sending end can also add check information when adjusting the initial industrial message. The receiving end parses the check information after receiving the target industrial message forwarded by the arbitrator. The initial industrial message is checked based on the check information. If the check result is consistent, it means that the message has not occurred error or tampering in the transmission process, and the initial industrial message can be processed. If the check result is inconsistent, it means that the message has occurred error or tampering in the transmission process, and the receiving end can choose to discard the message, or take other error handling measures, such as requesting retransmission, recording error logs, etc.

[0194] The check information can be hash value information, cyclic redundancy check code information, etc., which can be adjusted according to actual conditions, and the embodiments of the present application do not limit this.

[0195] As shown in Figure 5 , Figure 5 is an optional module schematic diagram of the industrial message processing device for the C2F scenario provided by the embodiments of the present application, and the device applied to the sending end includes:

[0196] The obtaining module 401 is configured to obtain an initial industrial message to be transmitted and an industrial communication protocol corresponding to the initial industrial message.

[0197] The adjusting module 402 is configured to determine the multi-level transmission priority information of the initial industrial message, and adjust the initial industrial message based on the transmission priority information and the industrial communication protocol to obtain a target industrial message.

[0198] The first sending module 403 is configured to send the target industrial message to the arbitrator. The arbitrator is configured to select a target transmission path in a plurality of candidate transmission paths based on the transmission priority information of different levels for the target industrial messages from different sending ends, and then select a target transmission pipe in a plurality of candidate transmission pipes under the target transmission path. The transmission order of the plurality of target industrial messages is determined based on the multi-level transmission priority information, and the target industrial messages are sent to the corresponding target transmission pipe in the transmission order, so as to transmit the target industrial messages to the corresponding receiving end in the target transmission pipe based on the corresponding industrial communication protocol; the receiving end is configured to receive the target industrial message from the arbitrator, parse the initial industrial message from the target industrial message, and process the initial industrial message.

[0199] The specific implementation of the industrial message processing device for the C2F scenario applied to the sending end is basically the same as the specific embodiments of the industrial message processing method for the C2F scenario applied to the sending end described above, and will not be repeated here.

[0200] As shown in Figure 6As shown, Figure 6 This is another optional module diagram of the industrial message processing device for C2F scenarios provided in this application embodiment. The device applied to the arbitrator end includes:

[0201] The first receiving module 501 is used to receive target industrial messages sent from different sending ends. The target industrial message is obtained by the sending end after obtaining the initial industrial message to be transmitted and the industrial communication protocol corresponding to the initial industrial message, determining the multi-level transmission priority information of the initial industrial message, and adjusting the initial industrial message based on the transmission priority information and the industrial communication protocol.

[0202] The extraction module 502 is used to extract the corresponding transmission priority information from each target industrial message.

[0203] The arbitration processing module 503 is used to select the target transmission path from multiple candidate transmission paths in turn for each target industrial message based on transmission priority information at different levels, and then select the target transmission pipe from multiple candidate transmission pipes under the target transmission path.

[0204] The second sending module 504 is used to determine the transmission order of multiple target industrial messages based on multi-level transmission priority information, and send the target industrial messages to the corresponding target transmission channels according to the transmission order, so that the target industrial messages are transmitted to the corresponding receiving end in the target transmission channels based on the corresponding industrial communication protocol; wherein, the receiving end is used to receive the target industrial messages from the arbitrator, parse the initial industrial messages from the target industrial messages, and process the initial industrial messages.

[0205] The specific implementation of the industrial message processing device for C2F scenarios applied to the arbitrator end is basically the same as the specific implementation of the industrial message processing method for C2F scenarios applied to the arbitrator end described above, and will not be repeated here.

[0206] like Figure 7 As shown, Figure 7 This is another optional module diagram of the industrial message processing device for C2F scenarios provided in the embodiments of this application. The device applied to the receiving end includes:

[0207] The second receiving module 601 is used to receive target industrial messages sent by the arbitrator. The target industrial message is obtained by the sending end after acquiring the initial industrial message to be transmitted and the corresponding industrial communication protocol, determining the multi-level transmission priority information of the initial industrial message, and adjusting the initial industrial message based on the transmission priority information and the industrial communication protocol. Furthermore, the arbitrator, for target industrial messages from different sending ends, sequentially selects a target transmission path from multiple candidate transmission paths based on the different levels of transmission priority information, and then selects a target transmission channel from multiple candidate transmission channels under the target transmission path. Based on the multi-level transmission priority information, the transmission order of multiple target industrial messages is determined, and the target industrial messages are sent to the corresponding target transmission channels according to the transmission order, so that the target industrial messages are transmitted to the corresponding receiving ends in the target transmission channels according to the corresponding industrial communication protocols.

[0208] The receiving and processing module 602 is used to parse the initial industrial message from the target industrial message and process the initial industrial message.

[0209] The specific implementation of the industrial message processing device for C2F scenarios applied to the receiving end is basically the same as the specific implementation of the industrial message processing method for C2F scenarios applied to the receiving end described above, and will not be repeated here.

[0210] This application also provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the above-described industrial message processing method for C2F scenarios. This electronic device can be any smart terminal, including tablet computers, in-vehicle computers, etc.

[0211] like Figure 8 As shown, Figure 8 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. The electronic device includes:

[0212] The processor 701 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application.

[0213] The memory 702 can be implemented in the form of a Read Only Memory (ROM), a static storage device, a dynamic storage device, or a Random Access Memory (RAM), etc. The memory 702 can store an operating system and other application programs, and when the technical solutions provided by the embodiments of the present specification are implemented by software or firmware, the related program codes are stored in the memory 702 and are called and executed by the processor 701 to implement the industrial message processing method for the C2F scene;

[0214] The input / output interface 703 is configured to realize information input and output.

[0215] The communication interface 704 is configured to realize the communication interaction between the device and other devices, and the communication can be realized by a wired manner (for example, a USB, a network cable, etc.) or a wireless manner (for example, a mobile network, WIFI, Bluetooth, etc.).

[0216] The bus 705 is configured to transmit information between various components (for example, the processor 701, the memory 702, the input / output interface 703, and the communication interface 704) of the device.

[0217] The processor 701, the memory 702, the input / output interface 703, and the communication interface 704 are connected to each other through the bus 705 to realize the communication connection between the device.

[0218] The computer readable storage medium provided by the embodiments of the present application stores a computer program, and the computer program is executed by the processor to realize the industrial message processing method for the C2F scene.

[0219] The memory is a non-transitory computer readable storage medium, which can be used to store a non-transitory software program and a non-transitory computer executable program. In addition, the memory can include a high-speed random access memory, and can also include a non-transitory memory, for example, at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state memory device. In some embodiments, the memory can optionally include a memory remotely arranged relative to the processor, and the remote memory can be connected to the processor through a network. Examples of the network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0220] The embodiments described in the embodiments of the present application are used to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art can know that, with the evolution of technology and the appearance of new application scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.

[0221] Those skilled in the art can understand that the technical solutions shown in the figures do not constitute a limitation to the embodiments of the present application, and can include more or fewer steps than the figures, or combine certain steps, or different steps.

[0222] The apparatus embodiments described above are merely illustrative, and the units described as separate components can or can not be physically separated, i.e., can be located in one place, or can be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the embodiments.

[0223] Those skilled in the art can understand that all or some of the steps in the above disclosed method, the function modules / units in the system and the device can be implemented as software, firmware, hardware and their appropriate combinations.

[0224] The terms "first", "second", "third", "fourth" and the like (if any) in the description and the above drawings of the present application are used to distinguish similar objects, and do not necessarily indicate a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units does not necessarily limit to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0225] It should be understood that in the present application, "at least one" means one or more, and "multiple" means two or more. "And / or" is used to describe the association between the associated objects, which means that there can be three relationships, for example, "A and / or B" can represent three cases: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects. "At least one of the following" or similar expressions means any combination of these items, including any combination of single or multiple items. For example, at least one of a, b or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

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

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

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

[0229] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0230] The preferred embodiments of the present application have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present application. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and substance of the embodiments of the present application shall be within the scope of the claims of the present application.

Claims

1. An industrial message processing method for C2F scenarios, characterized in that, Applied to the sending end, including: Acquire the initial industrial message to be transmitted and the industrial communication protocol corresponding to the initial industrial message, wherein the initial industrial message refers to raw data or instructions generated from industrial equipment, which are used for communication between different industrial equipment; Determine the multi-level transmission priority information of the initial industrial message, and adjust the initial industrial message based on the transmission priority information and the industrial communication protocol to obtain the target industrial message; The target industrial message is sent to the arbitrator; The arbitrator is configured to, for target industrial messages from different sending ends, sequentially select a target transmission path from multiple candidate transmission paths based on the transmission priority information of the target industrial messages at different levels, and then select a target transmission channel from multiple candidate transmission channels under the target transmission path; determine the transmission order of multiple target industrial messages based on the multi-level transmission priority information, and send the target industrial messages to the corresponding target transmission channels according to the transmission order, so that the target industrial messages are transmitted to the corresponding receiving end in the correct order based on the corresponding industrial communication protocol in the target transmission channels; The receiving end is used to receive the target industrial message from the arbitrator, parse the initial industrial message from the target industrial message, and process the initial industrial message; The determination of the multi-level transmission priority information of the initial industrial message includes: The first priority information is configured based on the attributes of the initial industrial message on the path, the second priority information is configured based on the attributes of the initial industrial message on the pipeline, and the third priority information is configured based on the version to which the initial industrial message belongs. The third priority information is related to the version characteristics of the initial industrial message. The earlier the version, the earlier the initial industrial message was generated, and the earlier the order of the third priority information is. By concatenating the first priority information, the second priority information, and the third priority information, a multi-level transmission priority information is obtained, so that the arbitrator can analyze and process the target industrial message in the order of the first priority information, the second priority information, and the third priority information. The step of adjusting the initial industrial message based on the transmission priority information and the industrial communication protocol to obtain the target industrial message includes: The transmission priority information and the industrial communication protocol are added to the initial industrial message to obtain the adjusted initial industrial message; Configure a Gray code delimiter for the transmission priority information, and add the Gray code delimiter to the position corresponding to the transmission priority information in the adjusted initial industrial message to obtain the target industrial message; The transmission priority information includes first priority information, second priority information, and third priority information at different levels; The step of selecting a target transmission path from multiple candidate transmission paths, and then selecting a target transmission pipe from multiple candidate transmission pipes under the target transmission path, includes: If the first priority information is less than a preset timing threshold, the target transmission path is selected from multiple candidate transmission paths according to the value of the first priority information, wherein the transmission speeds of different candidate transmission paths are different. Then, based on the value of the second priority information, the target transmission channel is selected from the multiple candidate transmission channels under the target transmission path, wherein the transmission speeds of different candidate transmission channels are different; Sending the target industrial message to the corresponding target transmission channel according to the transmission order includes: For multiple target industrial messages belonging to the same target transmission path and the same target transmission channel, merge and transmit the target industrial messages with the same third priority information; For each target industrial message, based on the transmission priority information at different levels, a target transmission path is sequentially selected from multiple candidate transmission paths, and then a target transmission channel is selected from multiple candidate transmission channels under the target transmission path, including: Based on the numerical values ​​of the transmission priority information at multiple levels, select the target industrial message that meets the preset conditions from a plurality of target industrial messages; For each selected target industrial message, based on the transmission priority information at different levels, a target transmission path is selected from multiple candidate transmission paths in sequence, and a target transmission channel is selected from multiple candidate transmission channels under the target transmission path. The step of selecting target industrial messages that meet preset conditions from a plurality of target industrial messages based on the numerical values ​​of the multi-level transmission priority information includes: If the total number of target industrial messages transmitted in the current round exceeds a preset transmission threshold, the transmission priority information is corrected layer by layer based on at least one of the first, second, and third conditions to obtain the target industrial messages with the changed transmission priority information. Wherein, the first condition is that the first priority information matches a preset first interval value, the second condition is that the second priority information matches a preset second interval value, and the third condition is that the third priority information matches a preset third interval value.

2. The industrial message processing method for C2F scenarios according to claim 1, characterized in that, The step of adding the Gray code delimiter to the adjusted initial industrial message at the position corresponding to the transmission priority information to obtain the target industrial message includes: The industrial communication protocol, the Gray code delimiter, and the transmission priority information are sequentially used as the header of the adjusted initial industrial message; The target industrial message is obtained by encapsulating the message according to the order of the industrial communication protocol, the Gray code delimiter, the transmission priority information, and the adjusted initial industrial message.

3. An industrial message processing method for C2F scenarios, characterized in that, Applied to arbitrators, including: The system receives target industrial messages from different sending ends. The target industrial message is obtained by the sending end after acquiring the initial industrial message to be transmitted and the industrial communication protocol corresponding to the initial industrial message, determining the multi-level transmission priority information of the initial industrial message, and adjusting the initial industrial message based on the transmission priority information and the industrial communication protocol. The initial industrial message refers to raw data or instructions generated from industrial equipment, which are used for communication between different industrial equipment. Extract the corresponding transmission priority information from each of the target industrial messages; For each target industrial message, based on the transmission priority information of the target industrial message at different levels, a target transmission path is selected sequentially from multiple candidate transmission paths, and then a target transmission channel is selected from multiple candidate transmission channels under the target transmission path. Based on the multi-level transmission priority information, the transmission order of multiple target industrial messages is determined, and the target industrial messages are sent to the corresponding target transmission channels according to the transmission order, so that the target industrial messages are transmitted to the corresponding receiving end in the correct order based on the corresponding industrial communication protocol in the target transmission channels. The receiving end is configured to receive the target industrial message from the arbitrator, parse the initial industrial message from the target industrial message, and process the initial industrial message. The determination of the multi-level transmission priority information of the initial industrial message includes: The first priority information is configured based on the attributes of the initial industrial message on the path, the second priority information is configured based on the attributes of the initial industrial message on the pipeline, and the third priority information is configured based on the version to which the initial industrial message belongs. The third priority information is related to the version characteristics of the initial industrial message. The earlier the version, the earlier the initial industrial message was generated, and the earlier the order of the third priority information is. By concatenating the first priority information, the second priority information, and the third priority information, a multi-level transmission priority information is obtained, so that the arbitrator can analyze and process the target industrial message in the order of the first priority information, the second priority information, and the third priority information. The target industrial message is determined through the following steps: The transmission priority information and the industrial communication protocol are added to the initial industrial message to obtain the adjusted initial industrial message; Configure a Gray code delimiter for the transmission priority information, and add the Gray code delimiter to the position corresponding to the transmission priority information in the adjusted initial industrial message to obtain the target industrial message; The transmission priority information includes first priority information, second priority information, and third priority information at different levels; The step of selecting a target transmission path from multiple candidate transmission paths, and then selecting a target transmission pipe from multiple candidate transmission pipes under the target transmission path, includes: If the first priority information is less than a preset timing threshold, the target transmission path is selected from multiple candidate transmission paths according to the value of the first priority information, wherein the transmission speeds of different candidate transmission paths are different. Then, based on the value of the second priority information, the target transmission channel is selected from the multiple candidate transmission channels under the target transmission path, wherein the transmission speeds of different candidate transmission channels are different; Sending the target industrial message to the corresponding target transmission channel according to the transmission order includes: For multiple target industrial messages belonging to the same target transmission path and the same target transmission channel, merge and transmit the target industrial messages with the same third priority information; For each target industrial message, based on the transmission priority information at different levels, a target transmission path is sequentially selected from multiple candidate transmission paths, and then a target transmission channel is selected from multiple candidate transmission channels under the target transmission path, including: Based on the numerical values ​​of the transmission priority information at multiple levels, select the target industrial message that meets the preset conditions from a plurality of target industrial messages; For each selected target industrial message, based on the transmission priority information at different levels, a target transmission path is selected from multiple candidate transmission paths in sequence, and a target transmission channel is selected from multiple candidate transmission channels under the target transmission path. The step of selecting target industrial messages that meet preset conditions from a plurality of target industrial messages based on the numerical values ​​of the multi-level transmission priority information includes: If the total number of target industrial messages transmitted in the current round exceeds a preset transmission threshold, the transmission priority information is corrected layer by layer based on at least one of the first, second, and third conditions to obtain the target industrial messages with the changed transmission priority information. Wherein, the first condition is that the first priority information matches a preset first interval value, the second condition is that the second priority information matches a preset second interval value, and the third condition is that the third priority information matches a preset third interval value.

4. The industrial message processing method for C2F scenarios according to claim 3, characterized in that, The target industrial message includes Gray code delimiters for demarcation and identification; The step of extracting the corresponding transmission priority information from each of the target industrial messages includes: Locate the Gray code delimiter from the target industrial message, and determine the starting position representing the transmission priority information based on the Gray code delimiter; Based on the starting position, the transmission priority information is extracted.

5. An industrial message processing method for C2F scenarios, characterized in that, Applied to the receiving end, including: Receive target industrial messages sent from the arbitrator; The target industrial message is obtained by the sending end after acquiring the initial industrial message to be transmitted and the industrial communication protocol corresponding to the initial industrial message, determining the multi-level transmission priority information of the initial industrial message, and adjusting the initial industrial message based on the transmission priority information and the industrial communication protocol. The initial industrial message refers to the raw data or instructions generated from industrial equipment, which are used for communication between different industrial equipment. Furthermore, the arbitrator is used to select a target transmission path from multiple candidate transmission paths sequentially based on the transmission priority information of the target industrial messages from different sending ends, and then select a target transmission channel from multiple candidate transmission channels under the target transmission path; determine the transmission order of multiple target industrial messages based on the multi-level transmission priority information, and send the target industrial messages to the corresponding target transmission channels according to the transmission order, so that the target industrial messages are transmitted to the corresponding receiving end in the correct order based on the corresponding industrial communication protocol in the target transmission channels; The initial industrial message is obtained by parsing the target industrial message, and the initial industrial message is processed. The determination of the multi-level transmission priority information of the initial industrial message includes: The first priority information is configured based on the attributes of the initial industrial message on the path, the second priority information is configured based on the attributes of the initial industrial message on the pipeline, and the third priority information is configured based on the version to which the initial industrial message belongs. The third priority information is related to the version characteristics of the initial industrial message. The earlier the version, the earlier the initial industrial message was generated, and the earlier the order of the third priority information is. By concatenating the first priority information, the second priority information, and the third priority information, a multi-level transmission priority information is obtained, so that the arbitrator can analyze and process the target industrial message in the order of the first priority information, the second priority information, and the third priority information. The target industrial message is determined through the following steps: The transmission priority information and the industrial communication protocol are added to the initial industrial message to obtain the adjusted initial industrial message; Configure a Gray code delimiter for the transmission priority information, and add the Gray code delimiter to the position corresponding to the transmission priority information in the adjusted initial industrial message to obtain the target industrial message; The transmission priority information includes first priority information, second priority information, and third priority information at different levels; The step of selecting a target transmission path from multiple candidate transmission paths, and then selecting a target transmission pipe from multiple candidate transmission pipes under the target transmission path, includes: If the first priority information is less than a preset timing threshold, the target transmission path is selected from multiple candidate transmission paths according to the value of the first priority information, wherein the transmission speeds of different candidate transmission paths are different. Then, based on the value of the second priority information, the target transmission channel is selected from the multiple candidate transmission channels under the target transmission path, wherein the transmission speeds of different candidate transmission channels are different; Sending the target industrial message to the corresponding target transmission channel according to the transmission order includes: For multiple target industrial messages belonging to the same target transmission path and the same target transmission channel, merge and transmit the target industrial messages with the same third priority information; For each target industrial message, based on the transmission priority information at different levels, a target transmission path is sequentially selected from multiple candidate transmission paths, and then a target transmission channel is selected from multiple candidate transmission channels under the target transmission path, including: Based on the numerical values ​​of the transmission priority information at multiple levels, select the target industrial message that meets the preset conditions from a plurality of target industrial messages; For each selected target industrial message, based on the transmission priority information at different levels, a target transmission path is selected from multiple candidate transmission paths in sequence, and a target transmission channel is selected from multiple candidate transmission channels under the target transmission path. The step of selecting target industrial messages that meet preset conditions from a plurality of target industrial messages based on the numerical values ​​of the multi-level transmission priority information includes: If the total number of target industrial messages transmitted in the current round exceeds a preset transmission threshold, the transmission priority information is corrected layer by layer based on at least one of the first, second, and third conditions to obtain the target industrial messages with the changed transmission priority information. Wherein, the first condition is that the first priority information matches a preset first interval value, the second condition is that the second priority information matches a preset second interval value, and the third condition is that the third priority information matches a preset third interval value.

6. The industrial message processing method for C2F scenarios according to claim 5, characterized in that, The processing of the initial industrial message includes: Verification information is obtained by parsing the target industrial message; The initial industrial message is verified based on the verification information, and the initial industrial message is processed when the verification passes.

7. An industrial message processing device for C2F scenarios, applied at the sending end, characterized in that, Applied to the sending end, including: The acquisition module is used to acquire the initial industrial message to be transmitted and the industrial communication protocol corresponding to the initial industrial message, wherein the initial industrial message refers to the raw data or instructions generated from the industrial equipment, which are used for communication between different industrial equipment. An adjustment module is used to determine the multi-level transmission priority information of the initial industrial message, and adjust the initial industrial message based on the transmission priority information and the industrial communication protocol to obtain the target industrial message; A first sending module is configured to send the target industrial message to an arbitrator; wherein the arbitrator is configured to, for the target industrial messages from different sending ends, sequentially select a target transmission path from multiple candidate transmission paths based on the transmission priority information of the target industrial messages at different levels, and then select a target transmission channel from multiple candidate transmission channels under the target transmission path; determine the transmission order of multiple target industrial messages based on the multi-level transmission priority information, and send the target industrial messages to the corresponding target transmission channels according to the transmission order, so that the target industrial messages are transmitted to the corresponding receiving end in the correct order based on the corresponding industrial communication protocol in the target transmission channels; the receiving end is configured to receive the target industrial message from the arbitrator, parse the initial industrial message from the target industrial message, and process the initial industrial message; The determination of the multi-level transmission priority information of the initial industrial message includes: The first priority information is configured based on the attributes of the initial industrial message on the path, the second priority information is configured based on the attributes of the initial industrial message on the pipeline, and the third priority information is configured based on the version to which the initial industrial message belongs. The third priority information is related to the version characteristics of the initial industrial message. The earlier the version, the earlier the initial industrial message was generated, and the earlier the order of the third priority information is. By concatenating the first priority information, the second priority information, and the third priority information, a multi-level transmission priority information is obtained, so that the arbitrator can analyze and process the target industrial message in the order of the first priority information, the second priority information, and the third priority information. The step of adjusting the initial industrial message based on the transmission priority information and the industrial communication protocol to obtain the target industrial message includes: The transmission priority information and the industrial communication protocol are added to the initial industrial message to obtain the adjusted initial industrial message; Configure a Gray code delimiter for the transmission priority information, and add the Gray code delimiter to the position corresponding to the transmission priority information in the adjusted initial industrial message to obtain the target industrial message; The transmission priority information includes first priority information, second priority information, and third priority information at different levels; The step of selecting a target transmission path from multiple candidate transmission paths, and then selecting a target transmission pipe from multiple candidate transmission pipes under the target transmission path, includes: If the first priority information is less than a preset timing threshold, the target transmission path is selected from multiple candidate transmission paths according to the value of the first priority information, wherein the transmission speeds of different candidate transmission paths are different. Then, based on the value of the second priority information, the target transmission channel is selected from the multiple candidate transmission channels under the target transmission path, wherein the transmission speeds of different candidate transmission channels are different; Sending the target industrial message to the corresponding target transmission channel according to the transmission order includes: For multiple target industrial messages belonging to the same target transmission path and the same target transmission channel, merge and transmit the target industrial messages with the same third priority information; For each target industrial message, based on the transmission priority information at different levels, a target transmission path is sequentially selected from multiple candidate transmission paths, and then a target transmission channel is selected from multiple candidate transmission channels under the target transmission path, including: Based on the numerical values ​​of the transmission priority information at multiple levels, select the target industrial message that meets the preset conditions from a plurality of target industrial messages; For each selected target industrial message, based on the transmission priority information at different levels, a target transmission path is selected from multiple candidate transmission paths in sequence, and a target transmission channel is selected from multiple candidate transmission channels under the target transmission path. The step of selecting target industrial messages that meet preset conditions from a plurality of target industrial messages based on the numerical values ​​of the multi-level transmission priority information includes: If the total number of target industrial messages transmitted in the current round exceeds a preset transmission threshold, the transmission priority information is corrected layer by layer based on at least one of the first, second, and third conditions to obtain the target industrial messages with the changed transmission priority information. Wherein, the first condition is that the first priority information matches a preset first interval value, the second condition is that the second priority information matches a preset second interval value, and the third condition is that the third priority information matches a preset third interval value.

8. An industrial message processing device for C2F scenarios, characterized in that, Applied to the arbitrator end, including: The first receiving module is used to receive target industrial messages sent from different sending ends. The target industrial message is obtained by the sending end after acquiring the initial industrial message to be transmitted and the industrial communication protocol corresponding to the initial industrial message, determining the multi-level transmission priority information of the initial industrial message, and adjusting the initial industrial message based on the transmission priority information and the industrial communication protocol. The initial industrial message refers to raw data or instructions generated from industrial equipment, which are used for communication between different industrial equipment. The extraction module is used to extract the corresponding transmission priority information from each of the target industrial messages; The arbitration processing module is used to select a target transmission path from multiple candidate transmission paths in sequence for each target industrial message based on the transmission priority information of the target industrial message at different levels, and then select a target transmission channel from multiple candidate transmission channels under the target transmission path. The second sending module is configured to determine the transmission order of multiple target industrial messages based on the multi-level transmission priority information, and send the target industrial messages to the corresponding target transmission channels according to the transmission order, so that the target industrial messages are transmitted to the corresponding receiving end in the correct order based on the corresponding industrial communication protocol in the target transmission channels; wherein, the receiving end is configured to receive the target industrial messages from the arbitrator, parse the initial industrial message from the target industrial messages, and process the initial industrial message; The determination of the multi-level transmission priority information of the initial industrial message includes: The first priority information is configured based on the attributes of the initial industrial message on the path, the second priority information is configured based on the attributes of the initial industrial message on the pipeline, and the third priority information is configured based on the version to which the initial industrial message belongs. The third priority information is related to the version characteristics of the initial industrial message. The earlier the version, the earlier the initial industrial message was generated, and the earlier the order of the third priority information is. By concatenating the first priority information, the second priority information, and the third priority information, a multi-level transmission priority information is obtained, so that the arbitrator can analyze and process the target industrial message in the order of the first priority information, the second priority information, and the third priority information. The target industrial message is determined through the following steps: The transmission priority information and the industrial communication protocol are added to the initial industrial message to obtain the adjusted initial industrial message; Configure a Gray code delimiter for the transmission priority information, and add the Gray code delimiter to the position corresponding to the transmission priority information in the adjusted initial industrial message to obtain the target industrial message; The transmission priority information includes first priority information, second priority information, and third priority information at different levels; The step of selecting a target transmission path from multiple candidate transmission paths, and then selecting a target transmission pipe from multiple candidate transmission pipes under the target transmission path, includes: If the first priority information is less than a preset timing threshold, the target transmission path is selected from multiple candidate transmission paths according to the value of the first priority information, wherein the transmission speeds of different candidate transmission paths are different. Then, based on the value of the second priority information, the target transmission channel is selected from the multiple candidate transmission channels under the target transmission path, wherein the transmission speeds of different candidate transmission channels are different; Sending the target industrial message to the corresponding target transmission channel according to the transmission order includes: For multiple target industrial messages belonging to the same target transmission path and the same target transmission channel, merge and transmit the target industrial messages with the same third priority information; For each target industrial message, based on the transmission priority information at different levels, a target transmission path is sequentially selected from multiple candidate transmission paths, and then a target transmission channel is selected from multiple candidate transmission channels under the target transmission path, including: Based on the numerical values ​​of the transmission priority information at multiple levels, select the target industrial message that meets the preset conditions from a plurality of target industrial messages; For each selected target industrial message, based on the transmission priority information at different levels, a target transmission path is selected from multiple candidate transmission paths in sequence, and a target transmission channel is selected from multiple candidate transmission channels under the target transmission path. The step of selecting target industrial messages that meet preset conditions from a plurality of target industrial messages based on the numerical values ​​of the multi-level transmission priority information includes: If the total number of target industrial messages transmitted in the current round exceeds a preset transmission threshold, the transmission priority information is corrected layer by layer based on at least one of the first, second, and third conditions to obtain the target industrial messages with the changed transmission priority information. Wherein, the first condition is that the first priority information matches a preset first interval value, the second condition is that the second priority information matches a preset second interval value, and the third condition is that the third priority information matches a preset third interval value.

9. An industrial message processing device for C2F scenarios, characterized in that, Applied to the receiving end, including: The second receiving module is used to receive target industrial messages sent from the arbitrator. The target industrial message is obtained by the sending end after acquiring the initial industrial message to be transmitted and the corresponding industrial communication protocol, determining the multi-level transmission priority information of the initial industrial message, and adjusting the initial industrial message based on the transmission priority information and the industrial communication protocol. The initial industrial message refers to raw data or instructions generated from industrial equipment for communication between different industrial devices. The arbitrator, for target industrial messages from different sending ends, sequentially selects a target transmission path from multiple candidate transmission paths based on the transmission priority information of the target industrial messages at different levels, and then selects a target transmission channel from multiple candidate transmission channels under the target transmission path. Based on the multi-level transmission priority information, it determines the transmission order of multiple target industrial messages and sends the target industrial messages to the corresponding target transmission channels according to the transmission order, so that the target industrial messages are transmitted to the corresponding receiving end in the correct order based on the corresponding industrial communication protocol within the target transmission channels. A receiving and processing module is used to parse the initial industrial message from the target industrial message and process the initial industrial message; The determination of the multi-level transmission priority information of the initial industrial message includes: The first priority information is configured based on the attributes of the initial industrial message on the path, the second priority information is configured based on the attributes of the initial industrial message on the pipeline, and the third priority information is configured based on the version to which the initial industrial message belongs. The third priority information is related to the version characteristics of the initial industrial message. The earlier the version, the earlier the initial industrial message was generated, and the earlier the order of the third priority information is. By concatenating the first priority information, the second priority information, and the third priority information, a multi-level transmission priority information is obtained, so that the arbitrator can analyze and process the target industrial message in the order of the first priority information, the second priority information, and the third priority information. The target industrial message is determined through the following steps: The transmission priority information and the industrial communication protocol are added to the initial industrial message to obtain the adjusted initial industrial message; Configure a Gray code delimiter for the transmission priority information, and add the Gray code delimiter to the position corresponding to the transmission priority information in the adjusted initial industrial message to obtain the target industrial message; The transmission priority information includes first priority information, second priority information, and third priority information at different levels; The step of selecting a target transmission path from multiple candidate transmission paths, and then selecting a target transmission pipe from multiple candidate transmission pipes under the target transmission path, includes: If the first priority information is less than a preset timing threshold, the target transmission path is selected from multiple candidate transmission paths according to the value of the first priority information, wherein the transmission speeds of different candidate transmission paths are different. Then, based on the value of the second priority information, the target transmission channel is selected from the multiple candidate transmission channels under the target transmission path, wherein the transmission speeds of different candidate transmission channels are different; Sending the target industrial message to the corresponding target transmission channel according to the transmission order includes: For multiple target industrial messages belonging to the same target transmission path and the same target transmission channel, merge and transmit the target industrial messages with the same third priority information; For each target industrial message, based on the transmission priority information at different levels, a target transmission path is sequentially selected from multiple candidate transmission paths, and then a target transmission channel is selected from multiple candidate transmission channels under the target transmission path, including: Based on the numerical values ​​of the transmission priority information at multiple levels, select the target industrial message that meets the preset conditions from a plurality of target industrial messages; For each selected target industrial message, based on the transmission priority information at different levels, a target transmission path is selected from multiple candidate transmission paths in sequence, and a target transmission channel is selected from multiple candidate transmission channels under the target transmission path. The step of selecting target industrial messages that meet preset conditions from a plurality of target industrial messages based on the numerical values ​​of the multi-level transmission priority information includes: If the total number of target industrial messages transmitted in the current round exceeds a preset transmission threshold, the transmission priority information is corrected layer by layer based on at least one of the first, second, and third conditions to obtain the target industrial messages with the changed transmission priority information. Wherein, the first condition is that the first priority information matches a preset first interval value, the second condition is that the second priority information matches a preset second interval value, and the third condition is that the third priority information matches a preset third interval value.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the industrial message processing method for C2F scenarios as described in any one of claims 1 to 2, or the industrial message processing method for C2F scenarios as described in any one of claims 3 to 4, or the industrial message processing method for C2F scenarios as described in any one of claims 5 to 6.

Citation Information

Patent Citations

  • Data sending system and method

    CN104301252A

  • Communication message transmission isolation method and device

    CN114500404A