Control message processing method and device, site chassis and readable storage medium
By detecting and forwarding control messages on the chassis of the splicing site, the problem of low message transmission efficiency in the splicing site is solved, and efficient message transmission and avoid duplicate forwarding are achieved.
Patent Information
- Application Number
- CN202211718573.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-29
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2042-12-29
AI Technical Summary
In the spliced field, how to ensure that the chassis of each site can cooperate with each other to transmit control messages to the target chassis, avoid repeated forwarding and loopback transmission of messages, and improve control message transmission efficiency.
By detecting whether the received control message is the first received message on each site chassis, and determining whether it is necessary to forward, calling other interfaces other than the target communication interface for forwarding, limiting the message forwarding interface to a non-receive interface, ensuring that the message is in accordance with Mesh path transmission.
It effectively avoids repeated forwarding and loopback transmission of messages, improves the efficiency of controlling message transmission, and enables multiple site chassis to cooperate with each other to transmit messages to the target chassis.
Smart Images

Figure CN116192748B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of site control technology, and in particular to a control message processing method and device, a site chassis, and a readable storage medium. Background Art
[0002] With the continuous development of science and technology, the intelligence level of intelligent robots has gradually increased. It is often necessary to build flexible, open, and scenario-based controllable venues for intelligent robots, so that the controllable venues can serve as teaching, activity and competition platforms for intelligent robots. The existing controllable venues are formed by splicing multiple rectangular venue chassis together, and by controlling the working conditions of multiple controllable devices (for example, light panels, lifting columns, etc.) distributed in a matrix on each rectangular venue chassis, a flexible and variable venue distribution effect can be achieved. However, it is worth noting that for this type of spliced controllable venue, how to ensure that the various venue chassis that make up the spliced controllable venue can cooperate with each other to transmit the control message from the control end to the target chassis to achieve precise control of a specific chassis is an important problem that needs to be solved in the control process of today's controllable venues. Summary of the invention
[0003] In view of this, the purpose of the present application is to provide a control message processing method and device, a site chassis and a readable storage medium, which can enable each site chassis constituting a splicing site to only forward the control message to be forwarded that it receives for the first time, and effectively limit the message forwarding interface of each site chassis to a non-message receiving interface, thereby ensuring that multiple site chassis can cooperate with each other to transmit the control message to be forwarded to the target chassis according to the mesh transmission path, while effectively avoiding the phenomenon of repeated forwarding of messages and the phenomenon of message loop transmission, so as to improve the control message transmission efficiency.
[0004] In order to achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0005] In a first aspect, the present application provides a control message processing method, which is applied to each venue chassis included in a splicing venue, wherein the splicing venue is formed by splicing multiple venue chassis through interface connection, and each venue chassis includes multiple communication interfaces, and the processing method includes:
[0006] Detecting whether each communication interface receives a control message;
[0007] In the case of detecting that the target communication interface receives a control message, detecting whether the received control message is a control message received for the first time, and detecting whether the received control message is a message to be forwarded;
[0008] When it is confirmed that the received control message is a control message received for the first time and that the received control message is a message to be forwarded, each expected communication interface except the target communication interface is called to forward the control message, wherein the expected communication interface is a communication interface of the corresponding site chassis that is connected to other site chassis.
[0009] In an optional embodiment, the processing method further includes:
[0010] When it is confirmed that the received control message is a control message received for the first time and when it is confirmed that the received control message is not a message to be forwarded, a control action corresponding to the message content of the control message is started to be executed.
[0011] In an optional implementation manner, each site chassis temporarily stores data of historical received messages according to a preset temporary storage duration; the step of detecting whether the received control message is a control message received for the first time includes:
[0012] Detecting whether the received control message is legal;
[0013] In the case where the control message is detected to be legitimate, determining whether the received control message successfully matches the temporarily stored historical received message;
[0014] If it is determined that the received control message successfully matches the temporarily stored historical received message, confirming that the received control message is not a control message received for the first time;
[0015] If it is determined that the received control message fails to match the temporarily stored historical received message, it is confirmed that the received control message is a control message received for the first time.
[0016] In an optional implementation manner, the step of determining whether the received control message successfully matches the temporarily stored historical received message comprises:
[0017] According to the respective message sequence numbers of all temporarily stored historical received messages, searching for a target received message corresponding to the message sequence number of the control message in all temporarily stored historical received messages;
[0018] In the case where the target received message is not found, determining that the control message fails to match the temporarily stored historical received message;
[0019] When the target received message is found, the message content of the control message is compared with the message content of the target received message;
[0020] If the control message and the target received message have the same message contents, it is determined that the control message matches the temporarily stored historical received successful message; otherwise, it is determined that the control message fails to match the temporarily stored historical received message.
[0021] In an optional implementation, the step of detecting whether the received control message is a message to be forwarded includes:
[0022] Comparing the chassis identifier of the site chassis where the target communication interface is located with the target chassis identifier of the control message;
[0023] If the chassis identifier of the site chassis is consistent with the target chassis identifier, it is determined that the received control message does not belong to the message to be forwarded; otherwise, it is determined that the received control message belongs to the message to be forwarded.
[0024] In an optional embodiment, the processing method further includes:
[0025] For each desired communication interface that has forwarded the control message, detecting whether the desired communication interface has received message reception response information fed back by other site chassis within a preset time period;
[0026] When it is detected that the expected communication interface has not received the message reception response information within a preset time period, the expected communication interface is called to forward the control message.
[0027] In a second aspect, the present application provides a control message processing device, which is applied to each site chassis included in a splicing site, wherein the splicing site is formed by splicing multiple site chassis through interface connection, and each site chassis includes multiple communication interfaces, and the processing device includes:
[0028] A message receiving detection module is used to detect whether each communication interface has received a control message;
[0029] A message type determination module, for, when detecting that the target communication interface has received a control message, detecting whether the received control message is a control message received for the first time, and detecting whether the received control message is a message to be forwarded;
[0030] A message forwarding control module is used to call each expected communication interface except the target communication interface to forward the control message when it is confirmed that the received control message is a control message received for the first time and that the received control message is a message to be forwarded, wherein the expected communication interface is a communication interface of the corresponding site chassis connected to other site chassis.
[0031] In an optional implementation, the processing device further includes a message execution control module;
[0032] The message execution control module is used to start executing a control action corresponding to the message content of the control message when confirming that the received control message is a control message received for the first time and confirming that the received control message is not a message to be forwarded.
[0033] In an optional implementation, the processing device further includes a receiving feedback detection module;
[0034] The receiving feedback detection module is used to detect, for each expected communication interface that has forwarded the control message, whether the expected communication interface has received message receiving response information fed back by other site chassis within a preset time period;
[0035] The message forwarding control module is further configured to call the expected communication interface to forward the control message when it is detected that the expected communication interface has not received the message reception response information within a preset time period.
[0036] In a third aspect, the present application provides a site chassis, comprising a processor, a memory and multiple communication interfaces, the memory storing a computer program that can be executed by the processor, the processor executing the computer program to implement the control message processing method described in any one of the aforementioned embodiments, wherein each communication interface can be interconnected with the communication interfaces of other site chassis.
[0037] In a fourth aspect, the present application provides a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the control message processing method described in any one of the aforementioned implementations is implemented.
[0038] In this case, the beneficial effects of the embodiments of the present application may include the following:
[0039] The present application will call the expected communication interfaces of the corresponding site chassis, except the target communication interface, which are connected to other site chassis, to forward the control message to be forwarded received for the first time, only when each site chassis constituting the splicing site receives the control message to be forwarded that is received for the first time through any one of its own target communication interfaces, so as to forward the control message to be forwarded received for the first time. In this way, each site chassis constituting the splicing site only needs to forward the control message to be forwarded that it receives for the first time, and effectively limit the message forwarding interface of each site chassis to a non-message receiving interface. In this way, while ensuring that multiple site chassis can cooperate with each other to transmit the control message to be forwarded to the target chassis according to the mesh transmission path, the phenomenon of repeated message forwarding and message loop transmission can be effectively avoided to improve the transmission efficiency of control messages.
[0040] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0042] Figure 1 A schematic diagram of the splicing site provided in the embodiment of the present application;
[0043] Figure 2 A schematic diagram of the composition of the site chassis provided in the embodiment of the present application;
[0044] Figure 3 One of the flow charts of the control message processing method provided in the embodiment of the present application;
[0045] Figure 4 A second flowchart of a control message processing method provided in an embodiment of the present application;
[0046] Figure 5 for Figure 3 or Figure 4 A schematic flow chart of the sub-steps included in step S220;
[0047] Figure 6 The third flowchart of the control message processing method provided in the embodiment of the present application;
[0048] Figure 7 One of the schematic diagrams of the composition of the control message processing device provided in an embodiment of the present application;
[0049] Figure 8 A second schematic diagram of the composition of the control message processing device provided in an embodiment of the present application;
[0050] Fig. 9 The third schematic diagram of the composition of the control message processing device provided in an embodiment of the present application.
[0051] Icons: 20-joining site; 10-site chassis; 11-memory; 12-processor; 13-communication unit; 100-control message processing device; 110-message reception detection module; 120-message type judgment module; 130-message forwarding control module; 140-message execution control module; 150-receiving feedback detection module. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0053] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0054] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0055] In the description of the present application, it is to be understood that the relational terms such as the term "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "includes", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements defined by the sentence "comprising one..." do not exclude the existence of other identical elements in the process, method, article or equipment including the elements. For those of ordinary skill in the art, the specific meaning of the above terms in the present application can be understood by specific circumstances.
[0056] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0057] Please refer to Figure 1 , Figure 1: is a schematic diagram of the splicing of the splicing site 20 provided in the embodiment of the present application. In the embodiment of the present application, the splicing site 20 can be formed by splicing multiple site chassis 10, each of which is connected by an interface through its own communication interface, wherein each site chassis 10 includes multiple communication interfaces, and each site chassis 10 can be connected to any communication interface of other site chassis 10 through any one of its own communication interfaces to achieve a splicing effect between two site chassis 10.
[0058] by Figure 1 The splicing site 20 shown is taken as an example for explanation: the splicing site 20 is formed by 7 site chassis 10 spliced together, each site chassis 10 is a rectangular chassis and each side of the corresponding rectangular chassis is provided with a communication interface, then each site chassis 10 can include a communication interface J1, a communication interface J2, a communication interface J3 and a communication interface J4.
[0059] Among them, the 7 site chassis 10 may include site chassis A, B, C, D, E, F, and G. The communication interface J1 of the site chassis A may be directly connected to the control terminal held by the site control personnel to obtain a control message sent by the site control personnel through the control terminal, wherein the control message is used to control a specific site chassis 10 (for example, site chassis G) in the splicing site 20 to perform a matching control action, and the control action may be used to control the working condition of one or several controllable devices on the aforementioned specific site chassis 10.
[0060] The communication interface J3 of the site chassis A is connected to the communication interface J3 of the site chassis B, the communication interface J2 of the site chassis A is connected to the communication interface J3 of the site chassis C, the communication interface J4 of the site chassis B is connected to the communication interface J2 of the site chassis D, the communication interface J2 of the site chassis C is connected to the communication interface J3 of the site chassis D, the communication interface J1 of the site chassis D is connected to the communication interface J4 of the site chassis E, the communication interface J4 of the site chassis D is connected to the communication interface J1 of the site chassis G, the communication interface J1 of the site chassis C is connected to the communication interface J4 of the site chassis F, and the communication interface J3 of the site chassis F is connected to the communication interface J2 of the site chassis G. Thus, the communication interfaces of the above-mentioned 7 site chassis 10 can effectively construct a matching mesh transmission path for the control messages that need to be forwarded.
[0061] Please refer to Figure 2 , Figure 2 1 is a schematic diagram of the composition of the site chassis 10 provided in the embodiment of the present application. In the embodiment of the present application, a plurality of the site chassis 10 can be spliced together by an interface connection to form a Figure 1In the splicing site 20 shown, the two interconnected site chassis 10 can forward the control message to be transmitted through the corresponding transmission path. Among them, because the same site chassis 10 can be connected to a site chassis 10 through multiple communication interfaces included in it, each site chassis 10 may receive the same control message to be forwarded through multiple communication interfaces. Each site chassis 10 forwards a control message to be forwarded only when it receives the control message to be forwarded for the first time through a message receiving interface (i.e., a communication interface), and by limiting its own message forwarding interface (i.e., the communication interface that forwards the control message to be forwarded) to a non-message receiving interface, the corresponding site chassis 10 will not repeatedly forward the same control message to be forwarded that may be received multiple times to other site chassis, and will not forward the control message to be forwarded that is received for the first time back to the message sender connected to the message receiving interface (i.e., a site chassis that sends the control message to be forwarded), thereby effectively ensuring that multiple site chassis 10 can cooperate with each other to transmit the control message to be forwarded to the target chassis according to the mesh transmission path, while effectively avoiding the phenomenon of repeated message forwarding and message loop transmission, so as to improve the control message transmission efficiency.
[0062] In the embodiment of the present application, the site chassis 10 may include a memory 11, a processor 12, a communication unit 13, and a control message processing device 100. The memory 11, the processor 12, and the communication unit 13 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, the memory 11, the processor 12, and the communication unit 13 may be electrically connected to each other via one or more communication buses or signal lines.
[0063] In this embodiment, the memory 11 may be, but not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The memory 11 is used to store a computer program, and the processor 12 may execute the computer program accordingly after receiving an execution instruction.
[0064] In this embodiment, the processor 12 may be an integrated circuit chip with signal processing capability. The processor 12 may be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU), a network processor (NP), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or at least one of other programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc., which may implement or execute the disclosed methods, steps, and logic block diagrams in the embodiments of the present application.
[0065] In this embodiment, the communication unit 13 may include multiple communication interfaces and multiple device communication interfaces. The site chassis 10 may be connected to a communication interface of other site chassis 10 through each communication interface to ensure the information transmittability between multiple site chassis 10; the site chassis 10 may be connected to a controllable device carried by itself through each device communication interface, so that when a control message that needs to be executed by the site chassis 10 is obtained, the control message is used as its own control message to be executed, and one or several device communication interfaces included in itself are called according to the control message to control the operation status of the corresponding controllable device, so as to effectively execute the control action corresponding to the control message. Among them, the site chassis 10 can periodically send link detection messages to the outside through each communication interface, and detect whether each communication interface receives a link response message corresponding to the link detection message, so as to determine that the communication interface is connected to other site chassis when the corresponding communication interface receives the link response message, otherwise it is determined that the communication interface is not connected to other site chassis.
[0066] In this embodiment, the control message processing device 100 may include at least one software function module that can be stored in the memory 11 in the form of software or firmware or fixed in the operating system of the site chassis 10. The processor 12 may be used to execute the executable module stored in the memory 11, such as the software function module and computer program included in the control message processing device 100. The site chassis 10 may forward only the control message to be forwarded that it receives for the first time through the control message processing device 100, and effectively limit its message forwarding interface to a non-message receiving interface, thereby ensuring that the multiple site chassis 10 constituting the splicing site 20 can cooperate with each other to transmit the control message to be forwarded to the target chassis according to the mesh transmission path, and effectively avoid the phenomenon of repeated message forwarding and message loop transmission, so as to improve the control message transmission efficiency.
[0067] Understandably, Figure 2 The block diagram shown is only a schematic diagram of a composition of the site chassis 10. The site chassis 10 may also include Figure 2 More or fewer components as shown, or with Figure 2 Different configurations shown. Figure 2 Each component shown in the figure can be implemented by hardware, software or a combination thereof.
[0068] In the present application, in order to ensure that each site chassis 10 constituting the splicing site 20 only forwards the control message to be forwarded that it receives for the first time, and effectively limits its own message forwarding interface to a non-message receiving interface, so as to ensure that the multiple site chassis 10 constituting the splicing site 20 can cooperate with each other to transmit the control message to be forwarded to the target chassis according to the mesh transmission path, and effectively avoid the phenomenon of repeated message forwarding and message loop transmission, and improve the transmission efficiency of control messages, the embodiment of the present application provides a control message processing method to achieve the above-mentioned purpose. The control message processing method provided by the present application is described in detail below.
[0069] Please refer to Figure 3 , Figure 3 It is one of the flow charts of the control message processing method provided in the embodiment of the present application. In the embodiment of the present application, the control message processing method is applied to each field chassis 10 included in the splicing field 20, and the control message processing method may include steps S210 to S230.
[0070] Step S210, detecting whether each communication interface receives a control message.
[0071] In this embodiment, each site chassis 10 included in the splicing site 20 will detect in real time whether each of its own communication interfaces has received a control message for the target chassis directly sent by the control end or forwarded by other site chassis 10, so as to determine whether the site chassis 10 currently needs to perform a message forwarding operation.
[0072] Step S220, when it is detected that the target communication interface receives a control message, it is detected whether the received control message is a control message received for the first time, and it is detected whether the received control message is a message to be forwarded.
[0073] In this embodiment, the target communication interface is any communication interface of the corresponding site chassis 10 that receives the control message. When a site chassis 10 receives a control message through its own target communication interface, it will perform a legitimacy check on the control message to determine whether the control message is legal. If the site chassis 10 determines that the received control message is illegal, it means that the control message should not be forwarded or executed. At this time, the site chassis 10 will filter the received control message to avoid forwarding or executing the control message.
[0074] For a legitimate control message, it is determined whether the control message has been received before to determine whether the control message is a control message received for the first time. If the site chassis 10 has not received the control message before, the control message is a control message received for the first time for the site chassis 10; otherwise, the control message is a control message received multiple times for the site chassis 10.
[0075] At the same time, the site chassis 10 will determine whether it belongs to the target chassis targeted by the received control message, and if it is not the target chassis targeted by the control message, it will determine that the control message is actually a message to be forwarded; otherwise, it will determine that the control message is not actually a message to be forwarded, but a message to be executed by itself.
[0076] Thus, the site chassis 10 can determine whether the currently received control message is a control message received for the first time for the site chassis 10, and determine whether the currently received control message is a message to be forwarded for the site chassis 10. Then, the site chassis 10 will execute step S230 accordingly when it is confirmed that the received control message is actually a control message received for the first time and is also a message to be forwarded. When the received control message is not a control message received for the first time (for example, the control message is a repeatedly received message to be forwarded, or the control message is a repeatedly received message to be executed), or the received control message is a control message received for the first time but is not a message to be forwarded (that is, the received control message is a control message to be executed that is not received for the first time), it indicates that the currently received control message is a control message that is not suitable for forwarding for the site chassis 10. The site chassis 10 will prohibit calling each expected communication interface to forward the currently received control message, thereby effectively avoiding the phenomenon of repeated message forwarding, reducing the occupancy of transmission bus resources, and thereby improving the control message transmission efficiency.
[0077] Step S230: When it is confirmed that the received control message is a control message received for the first time and that the received control message is a message to be forwarded, each desired communication interface except the target communication interface is called to forward the control message.
[0078] In this embodiment, the expected communication interface is a communication interface of the corresponding site chassis 10 connected to other site chassis. If a site chassis 10 determines that the currently received control message is a control message to be forwarded that is received for the first time for the site chassis 10, the site chassis 10 will forward the control message. At this time, the site chassis 10 will call its own expected communication interfaces except the target communication interface to forward the control message, so as to transmit the control message to be forwarded that is received for the first time to other site chassis 10 through a mesh transmission path, so that other site chassis 10 forward the received control message to be forwarded for the first time until the control message to be forwarded is transmitted to the target chassis, and at the same time effectively avoid the message loop transmission phenomenon of the control message to be forwarded, reduce the occupancy of the transmission bus resources, and thus improve the control message transmission efficiency.
[0079] by Figure 1The above steps S210 to S230 are illustrated by taking the splicing site 20 shown as an example: if the communication interface J1 of the site chassis A receives a control message a for the site chassis G from the control end, the site chassis A can determine that the control message a is the first received control message to be forwarded by executing the above step S220, and the site chassis A will forward the control message a through the communication interface J2 and the communication interface J3 by executing the above step S230; after the site chassis B receives the control message a through the communication interface J3, the above step S220 is correspondingly executed to determine that the control message a is the first received control message to be forwarded, and the site chassis B will forward the control message a through the communication interface J4 by executing the above step S230; after the site chassis C receives the control message a through the communication interface J3, the above step S220 is correspondingly executed to determine that the control message a is the first received control message to be forwarded, and the site chassis C will forward the control message a through the communication interface J1 and the communication interface J3 by executing the above step S230.
[0080] If the site chassis D receives the control message a through the communication interface J2 and the communication interface J3 successively, the site chassis D can determine that the control message a received through the communication interface J2 belongs to the control message to be forwarded received for the first time by executing the above step S220, and the control message a received through the communication interface J3 does not belong to the control message to be forwarded received for the first time. At this time, the site chassis D executes the above step S230 for the control message a received through the communication interface J2 to forward the control message a received through the communication interface J2 through the communication interface J4, the communication interface J1 and the communication interface J3, and then the site chassis D will not perform forwarding processing on the control message a received through the communication interface J3.
[0081] If the site chassis C receives the control message a through the communication interface J3 and the communication interface J2 successively, the site chassis C can determine that the control message a received through the communication interface J3 belongs to the control message to be forwarded received for the first time by executing the above step S220, and the control message a received through the communication interface J2 does not belong to the control message to be forwarded received for the first time. At this time, the site chassis C executes the above step S230 for the control message a received through the communication interface J3 to forward the control message a received through the communication interface J3 through the communication interface J2 and the communication interface J1, and then the site chassis C will not perform forwarding processing on the control message a received through the communication interface J2.
[0082] After the site chassis E receives the control message a through the communication interface J4, it executes the above step S220 to determine that the control message a is the first control message to be forwarded received. However, since it has no other expected communication interface except the target communication interface J4, the site chassis E cannot execute the above step S230.
[0083] After receiving the control message a through the communication interface J4, the site chassis F executes the above step S220 to determine that the control message a is the first received control message to be forwarded, and the site chassis F forwards the control message a through the communication interface J3 by executing the above step S230.
[0084] If the site chassis G receives the control message a through the communication interface J1 and the communication interface J2 successively, the site chassis G can determine that the control message a received through the communication interface J1 and the communication interface J2 does not belong to the control message to be forwarded received for the first time by executing the above step S220. At this time, the site chassis G will not perform forwarding processing on the control message a received successively.
[0085] Therefore, the present application can ensure that each site chassis 10 constituting the splicing site 20 only forwards the control message to be forwarded that it receives for the first time by executing the above steps S210 to S230, and effectively limits its own message forwarding interface to a non-message receiving interface, so as to ensure that the multiple site chassis 10 constituting the splicing site 20 can cooperate with each other to transmit the control message to be forwarded to the target chassis according to the mesh transmission path, and effectively avoid the phenomenon of repeated forwarding of messages and the phenomenon of message loop transmission, thereby improving the transmission efficiency of control messages.
[0086] Optionally, see Figure 4 , Figure 4 This is the second flow chart of the control message processing method provided in the embodiment of the present application. Figure 3 Compared with the control message processing method shown in Figure 4 The control message processing method shown may further include step S240 to effectively avoid repeated execution of the control message to be executed.
[0087] Step S240, when it is confirmed that the received control message is a control message received for the first time and it is confirmed that the received control message is not a message to be forwarded, start executing a control action corresponding to the message content of the control message.
[0088] In this embodiment, when the site chassis 10 executes the above step S220 for the received control message, it is confirmed whether the currently received control message is a control message to be executed that is received for the first time for the site chassis 10. Then, when it is confirmed that the received control message is a control message to be executed that is received for the first time, the site chassis 10 will correspondingly execute step S240; when the received control message is not a control message received for the first time (for example, the control message is a repeatedly received control message to be forwarded, the control message is a repeatedly received control message to be executed), or the received control message is a control message received for the first time and is a message to be forwarded (that is, the received control message is a control message to be forwarded that is received for the first time), it indicates that the currently received control message is a control message that is not suitable for execution for the site chassis 10. The site chassis 10 will prohibit the execution of the control action corresponding to the message content of the received control message, so as to effectively avoid the repeated execution of the control message to be executed.
[0089] If a site chassis 10 determines that the currently received control message is the first control message to be executed received by the site chassis 10, the site chassis 10 will execute the control message. At this time, the site chassis 10 will start to execute the control action corresponding to the message content of the control message.
[0090] The above step S240 is illustrated by taking the above-mentioned site chassis G which receives the control message a through the communication interface J1 and the communication interface J2 successively, and the above-mentioned site chassis D which receives the control message a through the communication interface J2 and the communication interface J3 successively as examples: for the site chassis G, the site chassis G can determine that the control message a received through the communication interface J1 belongs to the control message to be executed which is received for the first time by executing the above-mentioned step S220, and the control message a received through the communication interface J2 does not belong to the control message to be executed which is received for the first time. At this time, the site chassis G executes the above-mentioned step S240 for the control message a received through the communication interface J1 to start executing the control action corresponding to the message content of the control message a, and then the site chassis G will not repeatedly execute the control action corresponding to the control message a received through the communication interface J2;
[0091] For the site chassis D, the site chassis D can determine by executing the above step S220 that the control messages a received through the communication interface J2 and the communication interface J3 do not belong to the control messages to be executed that are received for the first time. At this time, the site chassis D will not perform action execution processing on the control messages a received through the communication interface J2 and the communication interface J3.
[0092] Therefore, the present application can effectively avoid repeated execution of the control message to be executed by executing the above step S240.
[0093] Optionally, see Figure 5 , Figure 5 yes Figure 3 or Figure 4 Schematic diagram of the flow chart of the sub-steps included in step S220 in the embodiment of the present application. In the embodiment of the present application, each site chassis 10 temporarily stores data of historical received messages according to the preset temporary storage duration, wherein the historical received messages may include forwarded control messages and executed control messages that have been received by the corresponding site chassis 10, and the effective time length of each control message cached at the corresponding site chassis 10 is consistent with the preset temporary storage duration, and the preset temporary storage duration can be 5 seconds or 6 seconds, and the specific duration value can be set differently as needed. For historical received messages that have been cached for longer than the preset temporary storage duration, the site chassis 10 that caches the historical received messages will automatically delete the historical received messages. Therefore, for a single site chassis 10, the step of determining whether the control message currently received by the site chassis 10 is a control message received for the first time may include sub-steps S221 to S224.
[0094] Sub-step S221, detecting whether the received control message is legal.
[0095] In this embodiment, the site chassis 10 that receives the control message can determine whether the control message is legal by judging whether the control message is an illegal message or an error message. When the site chassis 10 detects that the received control message is legal, it will execute sub-step S222 accordingly; when the site chassis 10 detects that the received control message is illegal, the site chassis 10 will filter the received control message.
[0096] Sub-step S222, when it is detected that the control message is legitimate, it is determined whether the received control message successfully matches the temporarily stored historical received message.
[0097] In this embodiment, when the corresponding site chassis 10 detects that the currently received control message is legal, the site chassis 10 will call its own temporarily stored historical received messages to match the currently received control message to determine whether the currently received control message is a control message that has been received.
[0098] The step of determining whether the received detection control message successfully matches the temporarily stored historical received message may include:
[0099] According to the respective message sequence numbers of all temporarily stored historical received messages, searching for a target received message corresponding to the message sequence number of the control message in all temporarily stored historical received messages;
[0100] In the case where the target received message is not found, determining that the control message fails to match the temporarily stored historical received message;
[0101] When the target received message is found, the message content of the control message is compared with the message content of the target received message;
[0102] If the message contents of the control message and the target received message are consistent, it is determined that the control message successfully matches the temporarily stored historical received message; otherwise, it is determined that the control message fails to match the temporarily stored historical received message.
[0103] Among them, each control message is formulated by the site control personnel at the control end, and each control message carries a message sequence number that is different from other control messages. The message sequence number is only generated by the control end and cannot be modified by each site chassis 10; the message content of a single control message may include the command character of the corresponding control message, a cyclic redundancy check code, etc.; each site chassis 10 can perform a sequence number search in the message sequence numbers of the temporarily stored historical received messages according to the message sequence number of the currently received control message, so as to preliminarily determine whether the currently received control message fails to match the temporarily stored historical received message, wherein if the message sequence number of each of the temporarily stored historical received messages does not contain the message sequence number of the previously received control message, it indicates that the currently received control message fails to directly match the temporarily stored historical received message.
[0104] If the currently received control message fails to match the temporarily stored historical received message, it means that the currently received control message has not actually been received by the corresponding site chassis 10, and the currently received control message is a control message received for the first time for the site chassis 10, and the site chassis 10 will execute step S224 accordingly; if the currently received control message successfully matches the temporarily stored historical received message, it means that the currently received control message has actually been received by the corresponding site chassis 10, and the currently received control message is a control message received multiple times for the site chassis 10, and the site chassis 10 will execute step S223 accordingly.
[0105] In this embodiment, the message sequence number assigned by the control end can be a natural positive integer, a single-byte representation, or a multi-byte representation. The same message sequence number will not be repeatedly assigned by the control end to multiple control messages within a certain period of time.
[0106] Therefore, the present application can effectively determine whether the currently received control message is a control message received for the first time by the corresponding site chassis 10 by executing the specific step flow of the above step S222.
[0107] Sub-step S223, confirming that the received control message is not a control message received for the first time.
[0108] In this embodiment, when the corresponding site chassis 10 detects that the legitimate control message successfully matches the temporarily stored historical received message, it can be determined that the currently received control message is obviously not the first received control message.
[0109] Step S224, confirming that the received control message is a control message received for the first time.
[0110] In this embodiment, when the corresponding site chassis 10 detects that the legitimate control message fails to match the temporarily stored historical received message, it can be determined that the currently received control message is obviously a control message received for the first time.
[0111] The present application can effectively determine whether the control message currently received by the site chassis 10 is a control message received for the first time by executing the above sub-steps S221 to S224.
[0112] In the embodiment of the present application, for a single site chassis 10, the step of detecting whether the control message currently received by the site chassis 10 is a message to be forwarded may include:
[0113] Compare the chassis identifier of the site chassis 10 where the target communication interface is located with the target chassis identifier of the received control message;
[0114] If the chassis identifier of the site chassis 10 is consistent with the target chassis identifier, it is determined that the received control message does not belong to the message to be forwarded; otherwise, it is determined that the received control message belongs to the message to be forwarded.
[0115] Therefore, the present application can effectively determine whether the currently received legitimate control message is a control message to be forwarded or a control message to be executed by executing the specific step flow of the above step S220. Figure 1 A, B, C, etc. in the diagram).
[0116] Optionally, see Figure 6 , Figure 6 This is the third flow chart of the control message processing method provided in the embodiment of the present application. Figure 3 or Figure 4 Compared with the control message processing method shown in Figure 6 The control message processing method shown may further include step S250 and step S260 to ensure that each site chassis 10 can effectively transmit the control message to be forwarded received for the first time to the opposite end chassis.
[0117] Step S250: for each desired communication interface that has forwarded the control message, detecting whether the desired communication interface has received message reception response information fed back by other site chassis within a preset time period.
[0118] In this embodiment, when each site chassis 10 receives a control message to be forwarded sent by a site chassis 10 connected to the site chassis 10 for the first time, it will feed back a message reception response information for indicating that the control message to be forwarded has been received to the site chassis 10 that sent the control message to be forwarded. Therefore, after each site chassis 10 selects its own expected communication interface to forward the control message to be forwarded currently received for the first time, it will detect whether each expected communication interface has received the message reception response information fed back by other site chassis 10 connected to the corresponding expected communication interface within a preset time period starting from the forwarding time point of the control message to be forwarded, so as to confirm whether the other site chassis 10 connected to each expected communication interface have received the control message to be forwarded.
[0119] Step S260: When it is detected that the expected communication interface has not received the message reception response information within the preset time period, the expected communication interface is called to forward the control message.
[0120] In this embodiment, when the site chassis 10 detects that a certain expected communication interface of itself has not received a message reception response information within a preset time period, it indicates that the control message to be forwarded forwarded through the expected communication interface has not been successfully transmitted to other site chassis 10 connected to the expected communication interface. At this time, the site chassis 10 will call the expected communication interface to forward the control message to be forwarded, so as to effectively ensure that the control message to be forwarded received for the first time can be transmitted to the opposite chassis.
[0121] Therefore, the present application can ensure that each site chassis 10 can effectively transmit the control message to be forwarded received for the first time to the opposite chassis by executing the above steps S250 and S260.
[0122] In the present application, in order to ensure that the site chassis 10 can execute the above control message processing method through the control message processing device 100, the present application implements the above functions by dividing the control message processing device 100 into functional modules. The specific composition of the control message processing device 100 provided by the present application is described below.
[0123] Please refer to Figure 7 , Figure 7It is one of the composition diagrams of the control message processing device 100 provided in the embodiment of the present application. In the embodiment of the present application, the control message processing device 100 may include a message reception detection module 110, a message type determination module 120 and a message forwarding control module 130.
[0124] The message reception detection module 110 is used to detect whether each communication interface has received a control message.
[0125] The message type determination module 120 is used to detect whether the received control message is a control message received for the first time and whether the received control message is a message to be forwarded when detecting that the target communication interface has received a control message.
[0126] The message forwarding control module 130 is used to call each expected communication interface except the target communication interface to forward the control message when confirming that the received control message is a control message received for the first time and confirming that the received control message is a message to be forwarded, wherein the expected communication interface is a communication interface of the corresponding site chassis connected to other site chassis.
[0127] Optionally, see Figure 8 , Figure 8 This is the second schematic diagram of the composition of the control message processing device 100 provided in the embodiment of the present application. In the embodiment of the present application, the control message processing device 100 may further include a message execution control module 140.
[0128] The message execution control module 140 is used to start executing a control action corresponding to the message content of the control message when confirming that the received control message is a control message received for the first time and confirming that the received control message is not a message to be forwarded.
[0129] Optionally, see Fig. 9 , Fig. 9 This is the third schematic diagram of the composition of the control message processing device 100 provided in the embodiment of the present application. In the embodiment of the present application, the control message processing device 100 may further include a receiving feedback detection module 150 .
[0130] The reception feedback detection module 150 is used to detect, for each expected communication interface that has forwarded the control message, whether the expected communication interface has received message reception response information fed back by other site chassis within a preset time period.
[0131] The message forwarding control module 130 is further configured to call the expected communication interface to forward the control message when it is detected that the expected communication interface has not received the message reception response information within a preset time period.
[0132] It should be noted that the basic principle and technical effect of the control message processing device 100 provided in the embodiment of the present application are the same as those of the control message processing method described above. For the sake of brief description, for the parts not mentioned in this embodiment, please refer to the description of the control message processing method described above.
[0133] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic, for example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to the embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of boxes in the block diagram and / or the flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0134] In addition, each functional module in each embodiment of the present application can be integrated together to form an independent part, or each module can exist separately, or two or more modules can be integrated to form an independent part. If the function is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a readable storage medium. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a readable storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned readable storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk.
[0135] To summarize, in the control message processing method and device, site chassis and readable storage medium provided in the embodiments of the present application, the present application will only call the expected communication interfaces of the corresponding site chassis connected to other site chassis except the target communication interface when each site chassis constituting the splicing site receives the control message to be forwarded that is received for the first time through any one of its own target communication interfaces, and forward the control message to be forwarded that is received for the first time, so that each site chassis constituting the splicing site only needs to forward the control message to be forwarded that it receives for the first time, and effectively limit the message forwarding interface of each site chassis to a non-message receiving interface, thereby ensuring that multiple site chassis can cooperate with each other to transmit the control message to be forwarded to the target chassis according to the mesh transmission path, while effectively avoiding the phenomenon of repeated message forwarding and message loop transmission, so as to improve the control message transmission efficiency.
[0136] The above are only various implementations of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A control message processing method, characterized in that: Applied to each field chassis included in the splicing field, the splicing field is formed by splicing multiple field chassis through interface connection, and each field chassis includes multiple communication interfaces. The processing method includes: Detecting whether each communication interface receives a control message; In the case of detecting that the target communication interface receives a control message, detecting whether the received control message is a control message received for the first time, and detecting whether the received control message is a message to be forwarded; When it is confirmed that the received control message is a control message received for the first time and that the received control message is a message to be forwarded, each expected communication interface except the target communication interface is called to forward the control message, wherein the expected communication interface is a communication interface of the corresponding site chassis that is connected to other site chassis.
2. The processing method according to claim 1, characterized in that: The processing method also includes: When it is confirmed that the received control message is a control message received for the first time and when it is confirmed that the received control message is not a message to be forwarded, a control action corresponding to the message content of the received control message is started to be executed.
3. The processing method according to claim 1, characterized in that: Each site chassis temporarily stores the historical received messages according to the preset temporary storage duration; The step of detecting whether the received control message is a control message received for the first time includes: Detecting whether the received control message is legal; In the case where the control message is detected to be legitimate, determining whether the received control message successfully matches the temporarily stored historical received message; If it is determined that the received control message successfully matches the temporarily stored historical received message, confirming that the received control message is not a control message received for the first time; If it is determined that the received control message fails to match the temporarily stored historical received message, it is confirmed that the received control message is a control message received for the first time.
4. The processing method according to claim 3, characterized in that: The step of determining whether the received control message successfully matches the temporarily stored historical received message comprises: According to the respective message sequence numbers of all temporarily stored historical received messages, searching for a target received message corresponding to the message sequence number of the control message in all temporarily stored historical received messages; In the case where the target received message is not found, determining that the control message fails to match the temporarily stored historical received message; When the target received message is found, the message content of the control message is compared with the message content of the target received message; If the message contents of the control message and the target received message are consistent, it is determined that the control message successfully matches the temporarily stored historical received message; otherwise, it is determined that the control message fails to match the temporarily stored historical received message.
5. The processing method according to claim 1, characterized in that: The step of detecting whether the received control message belongs to a message to be forwarded includes: Comparing the chassis identifier of the site chassis where the target communication interface is located with the target chassis identifier of the received control message; If the chassis identifier of the site chassis is consistent with the target chassis identifier, it is determined that the received control message does not belong to the message to be forwarded; otherwise, it is determined that the received control message belongs to the message to be forwarded.
6. The processing method according to any one of claims 1 to 5, characterized in that: The processing method also includes: For each desired communication interface that has forwarded the control message, detecting whether the desired communication interface has received message reception response information fed back by other site chassis within a preset time period; When it is detected that the expected communication interface has not received the message reception response information within a preset time period, the expected communication interface is called to forward the control message.
7. A control message processing device, characterized in that: Applied to each field chassis included in the splicing field, the splicing field is formed by splicing multiple field chassis through interface connection, each field chassis includes multiple communication interfaces, and the processing device includes: A message receiving detection module is used to detect whether each communication interface has received a control message; A message type determination module, for, when detecting that the target communication interface has received a control message, detecting whether the received control message is a control message received for the first time, and detecting whether the received control message is a message to be forwarded; A message forwarding control module is used to call each expected communication interface except the target communication interface to forward the control message when it is confirmed that the received control message is a control message received for the first time and that the received control message is a message to be forwarded, wherein the expected communication interface is a communication interface of the corresponding site chassis connected to other site chassis.
8. The processing device according to claim 7, characterized in that The processing device also includes a message execution control module; The message execution control module is used to start executing a control action corresponding to the message content of the control message when confirming that the received control message is a control message received for the first time and confirming that the received control message is not a message to be forwarded.
9. The processing device according to claim 7 or 8, characterized in that: The processing device also includes a receiving feedback detection module; The receiving feedback detection module is used to detect, for each expected communication interface that has forwarded the control message, whether the expected communication interface has received message receiving response information fed back by other site chassis within a preset time period; The message forwarding control module is further configured to call the expected communication interface to forward the control message when it is detected that the expected communication interface has not received the message reception response information within a preset time period.
10. A field chassis, characterized in that: It includes a processor, a memory and multiple communication interfaces, the memory stores a computer program that can be executed by the processor, and the processor can execute the computer program to implement the control message processing method described in any one of claims 1 to 6, wherein each communication interface can be interconnected with the communication interface of other site chassis.
11. A readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the control message processing method described in any one of claims 1 to 6 is implemented.
