Communication method and device between multi-slot board cards

By building a Mesh wireless network in a multi-board system and using HTTP and TCP/IP protocol stacks for data exchange, the problems of low communication rate, high resource usage and complex wiring in traditional multi-board systems are solved, and efficient inter-board communication and scalability are achieved.

CN120658586APending Publication Date: 2025-09-16NANJING RUNCHI ENG TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202510827753.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-20
Publication Date
2025-09-16

AI Technical Summary

Technical Problem

Traditional multi-board systems have problems such as low communication speed, high system resource usage, interface redundancy, complex wiring, difficulty in expansion, and insufficient reliability.

Method used

A Mesh wireless network is used to build a self-organizing communication structure for boards. A Mesh local area network is established through the main board and daughter boards. HTTP protocol and TCP/IP protocol stack are used for data exchange. QoS mechanism and breakpoint resume mechanism are configured to improve communication stability.

Benefits of technology

It achieves a communication rate of more than 150Mbps, improves the scalability of the board, simplifies the interface design, reduces wiring complexity, and has high connection stability and fault tolerance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120658586A_ABST
    Figure CN120658586A_ABST
Patent Text Reader

Abstract

The invention discloses a communication method and device among multi-slot board cards, and the method comprises the steps: setting a first started board card as a main board card, and setting a subsequently started board card as a sub-board card; the main board card is configured as a Mesh root node, the sub board card is configured as a Mesh sub node and is accessed to the main board card, and a Mesh local area network is established; the mainboard card starts an HTTP server program, the daughter board card starts an HTTP client program, the mainboard card provides a daughter board card discovery service, the daughter board card sends online node information and a service registration request to the mainboard card, and the mainboard card synchronously maintains a daughter board card service list; data exchange is carried out between the main board card and the sub board cards and between the sub board cards based on an HTTP protocol, automatic reconnection and data error correction are carried out through a TCP / IP protocol stack, meanwhile, automatic time synchronization is carried out through an NTP, the communication rate between the board cards is improved, the expandability of the board cards is improved, and meanwhile the design of the board cards is greatly simplified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless communication technology, and in particular to a communication method and device between multi-slot boards, which is suitable for scenarios such as industrial control, distributed edge computing, and sensor networks. Background Art

[0002] In the design of multi-board equipment systems, inter-board communication has always been a core challenge. Traditional solutions often use wired backplane connectors, such as high-speed interfaces such as Ethernet, SerDes, PCIe, and USB, as well as low-speed interfaces such as I2C, SPI, and RS485. The communication rate of these low-speed interfaces is often less than 50Mbps, and the MCU must directly participate in data exchange, occupying a large amount of system resources. As the number of daughter boards increases, the number of motherboard interfaces increases linearly, resulting in interface redundancy, reduced signal integrity, and complex wiring. In addition, system maintenance also places higher demands on connector contact reliability, electromagnetic interference suppression, and synchronization timing, limiting the deployment of multi-board systems in complex industrial sites. Summary of the Invention

[0003] The present invention provides a communication method and device between multi-slot boards, which constructs a board self-organizing communication structure based on a Mesh wireless network, aiming to solve the problems of traditional bus-type board communication, such as low speed, large system resource occupation, interface redundancy, complex wiring, difficulty in expansion, and insufficient reliability.

[0004] The first aspect disclosed in the present application provides a communication method between multi-slot boards, comprising the following steps: Step 1: Set the first card started as the main card, and the subsequent cards started as daughter cards; Step 2: Configure the mainboard as the Mesh root node, configure the daughterboard as the Mesh child node and connect it to the mainboard to establish a Mesh local area network. All boards enable the Mesh election protocol, and automatically elect a new Mesh root node when the Mesh root node restarts. Step 3: The main card starts the HTTP server program, and the daughter card starts the HTTP client program. The main card provides daughter card discovery service. The daughter card sends online node information and service registration request to the main card. The main card synchronously maintains the daughter card service list. Step 4: Data is exchanged between the mainboard and daughterboards, and between daughterboards based on the HTTP protocol. Automatic reconnection and data error correction are performed through the TCP / IP protocol stack, and automatic time synchronization is performed through NTP.

[0005] Preferably, the Mesh local area network is configured with a QoS mechanism to allocate bandwidth resources according to the priority of data packets during data exchange.

[0006] Preferably, the automatic election of a new Mesh root node when the Mesh root node is restarted specifically includes the following steps: When the Mesh root node restarts, the Mesh network broadcasts the status information of all nodes through a dynamic election mechanism and selects a new Mesh root node based on the preset weight; After the restart is complete, the Mesh root node becomes a Mesh child node, rejoins the Mesh local area network, and synchronizes the current data to the new Mesh root node.

[0007] Preferably, when the daughter card is in a non-communication state, it enters a dormant state. When the main card sends a broadcast signal, the daughter card in the dormant state is awakened.

[0008] Preferably, the main board and the daughter board are both configured with a breakpoint resume mechanism for resuming data exchange before the interruption after an abnormal network interruption.

[0009] A second aspect disclosed in the present application provides a communication device between multi-slot boards, the device being used in the above-mentioned communication method between multi-slot boards, the device comprising: Select module: Set the first started card as the main card, and the subsequent started cards as daughter cards; Mesh configuration module: The mainboard is configured as the Mesh root node, and the daughterboards are configured as Mesh child nodes and connected to the mainboard to establish a Mesh local area network. All boards enable the Mesh election protocol, and when the Mesh root node restarts, a new Mesh root node is automatically elected; HTTP configuration module: The main card starts the HTTP server program, the sub-card starts the HTTP client program, the main card provides sub-card discovery service, the sub-card sends online node information and service registration request to the main card, and the main card synchronously maintains the sub-card service list; Data exchange module: Data is exchanged between the mainboard and daughterboards, and between daughterboards based on the HTTP protocol. Automatic reconnection and data error correction are performed through the TCP / IP protocol stack, and automatic time synchronization is performed through NTP.

[0010] The third aspect disclosed in the present application provides a computer device including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned method for communication between multi-slot boards when executing the computer program.

[0011] The fourth aspect disclosed in the present application provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the above-mentioned method for communication between multi-slot boards when executed by a processor.

[0012] The fifth aspect disclosed in the present application provides a computer program product, including a computer program or instructions, which implement the steps of the above-mentioned communication method between multi-slot boards when executed by a processor.

[0013] The beneficial effects of the present invention are: (1) Improved communication speed, achieving a communication speed of more than 150Mbps; (2) By building a Mesh network, data exchange between boards is realized, improving the scalability of boards; (3) Use TCP / IP protocol stack for communication, without the need for MCU program intervention, and have fault tolerance mechanism, high connection stability, and support dynamic reconstruction; (4) The board interface design is greatly simplified, requiring only power supply and grounding, without the need for complex high-speed signal wiring. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0015] Figure 1 The figure is an overall flow chart of a communication method between multi-slot boards.

[0016] Figure 2 This is an example diagram of the overall structure of a communication method between multi-slot boards.

[0017] Figure 3 The figure is an example of a topology structure of a communication method between multi-slot boards.

[0018] Figure 4 This is an overall structural diagram of a communication device between multi-slot boards. DETAILED DESCRIPTION

[0019] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0020] Example 1: like Figure 1 and Figure 2As shown, an embodiment of the present application provides a communication method between multi-slot boards, the method comprising: Step 1: Set the first board to be started as the main board, and subsequent boards to be started as daughter boards. All boards are equipped with embedded WiFi modules, and the module firmware supports the Mesh protocol and TCP / IP protocol stack.

[0021] Step 2: Configure the mainboard as the Mesh root node, the subboard as the Mesh child node and connect it to the mainboard to establish a Mesh local area network.

[0022] In this process, all boards enable the Mesh election protocol and automatically elect a new Mesh root node when the Mesh root node restarts. This process specifically includes the following steps: When the Mesh root node restarts, the Mesh network broadcasts the status information of all nodes through a dynamic election mechanism and selects a new Mesh root node based on the preset weight; After the restart is complete, the Mesh root node becomes a Mesh child node, rejoins the Mesh local area network, and synchronizes the current data to the new Mesh root node.

[0023] Furthermore, the Mesh local area network configures a QoS mechanism to allocate bandwidth resources according to the priority of data packets during data exchange.

[0024] Before executing step 2, you need to configure the WiFi network for all boards. For example, Figure 3 As shown in the figure, the IP address of the main board is 192.168.1.1, the subnet mask is 255.255.255.0, the main board is represented as 192.168.1.1 / 24, the IP address of the daughter board A is 192.168.1.2, the subnet mask is 255.255.255.0, the daughter board A is represented as 192.168.1.2 / 24, the IP address of the daughter board B is 19 The IP address of daughter card A is 2.168.1.3, the subnet mask is 255.255.255.0, and the subcard B is represented as 192.168.1.3 / 24. The IP address of daughter card C is 192.168.1.4, the subnet mask is 255.255.255.0, and the subcard C is represented as 192.168.1.4 / 24. The gateway addresses of daughter cards A, B, and C are all 192.168.1.1.

[0025] Step 3: The main card starts the HTTP server program, and the daughter card starts the HTTP client program. The main card provides daughter card discovery service. The daughter card sends online node information and service registration request to the main card. The main card synchronously maintains the daughter card service list.

[0026] Specifically, when each daughter card goes online, it automatically starts the HTTP client program to send its own IP address, service interface and status information to the main card; the main card provides a RESTful service discovery interface, which supports querying the service interface and status information of all online daughter cards. The daughter card is based on HTTP service for the main card or other daughter cards to call.

[0027] Step 4: Data is exchanged between the mainboard and daughterboards, and between daughterboards based on the HTTP protocol. Automatic reconnection and data error correction are performed through the TCP / IP protocol stack, and automatic time synchronization is performed through NTP.

[0028] Furthermore, the mainboard is configured with a remote OTA upgrade mechanism. During the upgrade process, the mainboard acts as an upgrade server to distribute firmware files to the daughterboards.

[0029] Furthermore, during the data exchange process, a dynamic evaluation mechanism for paths between nodes is configured. The specific process of the dynamic evaluation mechanism for paths between nodes is as follows: real-time evaluation and comparison of the network delay and throughput of the communication link are performed, and the communication link with the smallest network delay and throughput is selected to achieve optimal routing selection.

[0030] Furthermore, during the data exchange between the main board and the daughter board, and between the daughter boards based on the HTTP protocol, both the main board and the daughter board are configured with a breakpoint resume mechanism to resume data exchange before the interruption after an abnormal network interruption.

[0031] Furthermore, based on the HTTP protocol used in the present invention, the mainboard card expands and develops a Web visualization interface for displaying the current Mesh local area network structure diagram and the working status of all boards.

[0032] Furthermore, when the daughter card is in a non-communication state, in order to save energy, the daughter card enters a low-power sleep mode. To ensure that communication can be restored in time when needed, the main card has a broadcast wake-up mechanism, which specifically includes: Each daughter card presets a monitoring window, periodically wakes up from sleep mode, and enters the receiving state to monitor broadcast signals in a specific format; The motherboard sends a WiFi broadcast packet in a specific format. This broadcast packet carries the daughterboard's MAC address and uses predefined fields to indicate the wake-up intention. The broadcast packet uses the highest priority QoS tag to allocate optimal bandwidth resources, ensuring that it still has the highest transmission priority even when the network is congested. After receiving a broadcast packet containing its own MAC address, the daughter card in the monitoring state exits the sleep state, resumes the online state, and confirms the online state to the main card through the HTTP client program; The mainboard synchronously updates the network topology and the service list of the daughterboard, and allows the awakened daughterboard to exchange data based on the HTTP protocol; In addition, an asymmetric encryption algorithm is used to encrypt broadcast data packets, and digital signatures are used to prevent illegal wake-up instructions to improve security.

[0033] This sleep-wake-up mechanism combines periodic monitoring, directional broadcasting, and identity confirmation, significantly reducing power consumption while also taking into account network response timeliness. It is suitable for power-sensitive application scenarios.

[0034] In summary, the communication method between multi-slot boards provided by the embodiments of the present application has the following technical effects: (1) Improved communication speed, achieving a communication speed of more than 150Mbps; (2) By building a Mesh network, data exchange between boards is realized, improving the scalability of boards; (3) Use TCP / IP protocol stack for communication, without the need for MCU program intervention, and have fault tolerance mechanism, high connection stability, and support dynamic reconstruction; (4) The board interface design is greatly simplified, requiring only power supply and grounding, without the need for complex high-speed signal wiring.

[0035] Example 2: Based on the same inventive concept as the communication method between multi-slot boards in embodiment 1, Figure 4 As shown, the present application provides a communication device between multi-slot boards, the device comprising: Select module: Set the first started card as the main card, and the subsequent started cards as daughter cards; Mesh configuration module: The mainboard is configured as the Mesh root node, and the daughterboards are configured as Mesh child nodes and connected to the mainboard to establish a Mesh local area network. All boards enable the Mesh election protocol, and when the Mesh root node restarts, a new Mesh root node is automatically elected; HTTP configuration module: The main card starts the HTTP server program, the sub-card starts the HTTP client program, the main card provides sub-card discovery service, the sub-card sends online node information and service registration request to the main card, and the main card synchronously maintains the sub-card service list; Data exchange module: Data is exchanged between the mainboard and daughterboards, and between daughterboards based on the HTTP protocol. Automatic reconnection and data error correction are performed through the TCP / IP protocol stack, and automatic time synchronization is performed through NTP.

[0036] Through the above detailed description of a communication method between multi-slot boards in this specification, those skilled in the art can clearly understand a communication device between multi-slot boards in this embodiment. Since it corresponds to the method disclosed in the embodiment, the description is relatively simple. For relevant matters, please refer to the method section.

[0037] Example 3: In the third embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps of the above-mentioned communication method between multi-slot boards when executing the computer program.

[0038] Example 4: In a fourth embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned method for communication between multi-slot boards are implemented.

[0039] Embodiment 5: In the fifth embodiment, a computer program product is provided, including a computer program or instructions, which implement the steps of the above-mentioned communication method between multi-slot boards when executed by a processor.

[0040] The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0041] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present application. Various modifications to these embodiments will be readily apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application is not limited to the embodiments shown herein, but is intended to conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A communication method between multi-slot boards, characterized in that: The following steps are involved: Step 1: Set the first card started as the main card, and the subsequent cards started as daughter cards; Step 2: Configure the mainboard as the Mesh root node, configure the daughterboard as the Mesh child node and connect it to the mainboard to establish a Mesh local area network. All boards enable the Mesh election protocol, and automatically elect a new Mesh root node when the Mesh root node restarts. Step 3: The main card starts the HTTP server program, and the daughter card starts the HTTP client program. The main card provides daughter card discovery service. The daughter card sends online node information and service registration request to the main card. The main card synchronously maintains the daughter card service list. Step 4: Data is exchanged between the mainboard and daughterboards, and between daughterboards based on the HTTP protocol. Automatic reconnection and data error correction are performed through the TCP / IP protocol stack, and automatic time synchronization is performed through NTP.

2. A method for communication between multi-slot boards according to claim 1, characterized in that: The Mesh local area network is configured with a QoS mechanism to allocate bandwidth resources according to the priority of data packets during data exchange.

3. The communication method between multi-slot boards according to claim 1, wherein: When the Mesh root node restarts, a new Mesh root node is automatically elected, specifically including the following steps: When the Mesh root node restarts, the Mesh network broadcasts the status information of all nodes through a dynamic election mechanism and selects a new Mesh root node based on the preset weight; After the restart is complete, the Mesh root node becomes a Mesh child node, rejoins the Mesh local area network, and synchronizes the current data to the new Mesh root node.

4. The communication method between multi-slot boards according to claim 1, wherein: When the daughter card is in a non-communication state, it enters a dormant state. When the main card sends a broadcast signal, the daughter card in the dormant state is awakened.

5. The communication method between multi-slot boards according to claim 1, wherein: The main board and the daughter board are both configured with a breakpoint resume mechanism for resuming data exchange before the interruption after an abnormal network interruption.

6. A communication device between multi-slot boards, characterized in that: include: Select module: Set the first started card as the main card, and the subsequent started cards as daughter cards; Mesh configuration module: The mainboard is configured as the Mesh root node, and the daughterboards are configured as Mesh child nodes and connected to the mainboard to establish a Mesh local area network. All boards enable the Mesh election protocol, and when the Mesh root node restarts, a new Mesh root node is automatically elected; HTTP configuration module: The main card starts the HTTP server program, the sub-card starts the HTTP client program, the main card provides sub-card discovery service, the sub-card sends online node information and service registration request to the main card, and the main card synchronously maintains the sub-card service list; Data exchange module: Data is exchanged between the mainboard and daughterboards, and between daughterboards based on the HTTP protocol. Automatic reconnection and data error correction are performed through the TCP / IP protocol stack, and automatic time synchronization is performed through NTP.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the processor implements the steps of a communication method between multi-slot boards according to any one of claims 1 to 5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of a communication method between multi-slot boards according to any one of claims 1 to 5 are implemented.

9. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps of the communication method between multi-slot boards according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Switch based main engine election method and device

    CN107483290A

  • Backplane serial bus communication method and system

    CN108920394A

  • Redundant backup method based on airborne device boards

    CN109525434A

  • Communication system and board card configuration method

    CN110636015A

  • Embedded reconfigurable heterogeneous measurement method and system, storage medium and processor

    CN111694789A