Serial port communication system and method and computer equipment

By introducing node management modules, routing modules, and data transmission modules in the serial communication system, dynamically planning transmission paths and supporting self -healing functions, the lack of existing serial communication technology in multi -node dynamic interaction and automatic recovery has been solved. Flexible serial communication.

CN119357112AInactive Publication Date: 2025-01-24XEMIS MEDICAL TECHNOLOGY (SHENZHEN) CO LTD +1

Patent Information

Application Number
CN202411898371.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-01-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing serial communication technology has insufficient flexibility and reliability in terms of multi-node dynamic interaction and automatic recovery, which is difficult to meet the needs of the mesh communication framework.

Method used

A serial communication system is designed, including node management modules, routing modules, and data transmission modules. By establishing and maintaining adjacent meters, dynamically planning data packet transmission paths to realize lightweight dynamic routing algorithms, support node self -healing and priority management Essence

Benefits of technology

The flexibility and efficiency of the serial communication system can be improved, the data can be transmitted efficiently in the dynamic network environment, automatically adjust the route path, maintains network connectivity, and reduces resource consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119357112A_ABST
    Figure CN119357112A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of serial port communication, and particularly provides a serial port communication system and method and computer device.The serial port communication system comprises a node management module used for combining an adjacency list established by the node management module and adjacency lists established by other nodes to form a total adjacency list and storing the total adjacency list in a memory; the routing module is used for acquiring the total adjacency list from the memory, receiving the data packet sent by the data transmission module, planning a shortest transmission path of the data packet based on the total adjacency list and a target address in the data packet, and sending the shortest transmission path and the data packet to the data transmission module; and the data transmission module is used for sending own adjacency list to other node management modules, receiving the shortest transmission path and the data packet sent by the routing module, and sending the data packet to a target node based on the shortest transmission path. The serial port communication system provided by the invention can be realized based on the C language, can run in embedded equipment with limited resources, and does not need extra hardware support.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of serial communication, and in particular to a serial communication system, method and computer equipment. Background Art

[0002] Serial port communication is a traditional communication method widely used in embedded systems, usually for data exchange between microcontrollers or between microcontrollers and external devices. In the traditional serial port communication architecture, nodes usually adopt a point-to-point communication mode, which cannot realize complex multi-node interaction. In order to meet the needs of more and more IoT devices for efficient and stable communication, it is necessary to propose a more flexible serial port communication framework. The mesh communication framework is a communication method that enables each node to establish direct or indirect connections with multiple other nodes. Its advantage is to improve the reliability and communication efficiency of the network. Most of the existing technologies are based on high-level languages ​​or require additional hardware support, which is difficult to be flexibly applied in embedded devices with limited resources.

[0003] Traditional serial communication technologies, such as RS-232 and RS-485, usually adopt point-to-point or master-slave communication modes. In this mode, communication is usually fixed, that is, a master node transmits data with one or more slave nodes. The limitations of this architecture are: (1) Poor scalability: When adding or reducing nodes, the network topology needs to be reconfigured; (2) Low reliability: If the master node fails, the entire communication network will fail; (3) High communication complexity: For multi-node communication networks, complex relay equipment or additional software layers are required.

[0004] Although traditional serial communication can realize data transmission between multiple nodes, it lacks flexible routing mechanism and self-healing function. Therefore, it cannot meet the needs of dynamic interaction and automatic recovery of multiple nodes in the mesh communication framework. Summary of the invention

[0005] The present invention provides a serial communication system, method and computer equipment to solve the problems existing in the prior art.

[0006] The present invention provides a serial communication system, comprising:

[0007] The node management module is used to search for all other nodes adjacent to its own node, establish its own adjacency list based on the search results, and store its own adjacency list in the memory; and send its own adjacency list to the data transmission module; and receive the adjacency list of other nodes sent by the data transmission module, and merge its own adjacency list with the adjacency list of other nodes to form a total adjacency list and store it in the memory;

[0008] A routing module, used to obtain the total adjacency list from the memory, and receive the data packet sent by the data transmission module, plan the shortest transmission path of the data packet based on the total adjacency list and the target address in the data packet, and send the shortest transmission path and the data packet to the data transmission module;

[0009] The data transmission module is used to send its own adjacency table to other node management modules, receive the shortest transmission path and data packet sent by the routing module, and send the data packet to the target node based on the shortest transmission path.

[0010] As a preferred solution, the node management module is also used to detect the online / offline status of all other nodes adjacent to its own node, and after deleting the offline nodes, re-establish its own adjacency list.

[0011] As a preferred solution, it also includes a node self-healing module. The node management module is also used to detect the online / offline status of all other nodes adjacent to its own node, and feed back the detection results to the node self-healing module. The node self-healing module is used to restart and repair offline nodes.

[0012] As a preferred solution, the node management module sends heartbeat packets to all other nodes adjacent to its own node, and performs a timeout judgment on the response information of each node. If the response information of a node is not sent within the time limit, the node is notified to resend the response information. If the number of retransmissions exceeds the preset number, the node is determined to be offline.

[0013] As a preferred solution, for an offline node, the node self-healing module sends a reset signal and a heartbeat signal to the offline node to restart and repair it.

[0014] As a preferred solution, the data transmission module is further used to, when receiving a data packet sent by other nodes, unpack the data packet and send it to the node management module and the routing module respectively according to the data type.

[0015] As a preferred solution, it also includes a priority management module, which is used to prioritize the order in which data packets are transmitted between nodes; and is used to prioritize the order in which different types of data in the data packets are transmitted between modules.

[0016] As a preferred solution, the routing module is used to traverse all transmission paths that can connect to the target node in all nodes according to the total adjacency table and the target address in the data packet, and filter out the shortest transmission path of the data packet from all transmission paths, and send the shortest transmission path and the data packet to the data transmission module.

[0017] The present invention also provides a serial port communication method, comprising the following steps:

[0018] Merge the adjacency lists established by each node into a total adjacency list and store it in memory;

[0019] Obtain the total adjacency list and the destination address in the data packet to be transmitted;

[0020] Based on the total adjacency table and the destination address, planning the shortest transmission path for the data packet to be transmitted between the nodes;

[0021] Based on the shortest transmission path, the data packet is sent to a target node.

[0022] The present invention also provides a computer device, comprising a processing unit and a storage unit, wherein the storage unit stores a computer program, and the processing unit implements the above-mentioned serial port communication method when executing the computer program.

[0023] The advantages of the present invention are as follows: The serial communication system of the present invention is implemented based on C language. Compared with the traditional implementation method based on high-level language or complex protocol, the serial communication system occupies less system resources. The operating efficiency of the system is improved, resource consumption is reduced, and it is suitable for embedded devices with limited memory and processing power. It can run in resource-constrained embedded devices without additional hardware support, and realizes a serial communication system implemented by a lightweight dynamic routing algorithm. The routing module can dynamically select the optimal path between each node, reduce the transmission delay, and enable data to be efficiently transmitted from the source node to the target node, so that the serial communication system of the present invention can efficiently perform data transmission in a dynamic network environment, and improve the flexibility and efficiency of data transmission. At the same time, when the network topology changes, the routing path can be automatically adjusted to maintain the connectivity of the network. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0025] Figure 1 It is a schematic diagram of the serial communication system architecture of the present invention.

[0026] Figure 2 This is a schematic diagram of mesh communication formed by multiple nodes of the serial communication system of the present invention.

[0027] Figure 3 It is a flow chart of the serial communication method of the present invention.

[0028] In the figure, 1. Node management module; 2. Routing module; 3. Data transmission module; 4. Node self-healing module; 5. Priority management module.

[0029] The above drawings have shown clear embodiments of the present invention, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present invention in any way, but to illustrate the concept of the present invention for those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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 creative work are within the scope of protection of the present invention.

[0031] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "an" and "the" used in the embodiments of the present invention are also intended to include plural forms, unless the context clearly indicates other meanings.

[0032] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "multiple" and "several" is two or more, unless otherwise clearly and specifically defined.

[0033] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0034] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.

[0035] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a product or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such a product or system. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the product or system including the elements.

[0036] The technical solution of the present invention and how the technical solution of the present invention solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.

[0037] The serial communication system provided by the present invention is mainly used in a multi-node mesh communication environment under a wired serial port connection, such as a multi-node mesh communication environment connected using an RS-232 serial communication standard interface or an RS-485 serial communication standard interface. In the field of medical devices, various devices used to output energy to achieve treatment, such as ultrasonic therapeutic devices, gold micro-needle therapeutic devices, microwave therapeutic devices, photon therapeutic devices, etc., usually use this kind of wired serial port mesh communication. Therefore, the serial communication system provided by the present invention is also actually used in a multi-node mesh communication environment connected by a wired serial port of these devices that can output energy to achieve treatment.

[0038] like Figure 1 As shown, a serial communication system provided by the present invention is mainly implemented based on C language, and includes: a node management module 1, a routing module 2 and a data transmission module 3.

[0039] Among them, the node management module 1 is used to find all other nodes adjacent to its own node, establish its own adjacency list based on the search results, and store its own adjacency list in the memory; and send its own adjacency list to the data transmission module 3; and receive the adjacency list of other nodes sent by the data transmission module 3, and merge its own adjacency list and the adjacency list of other nodes to form a total adjacency list and store it in the memory.

[0040] The routing module 2 is used to obtain the total adjacency list from the memory and receive the data packet sent by the data transmission module 3. Based on the total adjacency list and the destination address in the data packet, the routing module 2 plans the shortest transmission path for the data packet and sends the shortest transmission path and the data packet to the data transmission module.

[0041] The data transmission module 3 is used to send its own adjacency table to other node management modules, and receive the shortest transmission path and data packets sent by the routing module 2, and send the data packets to the target node based on the shortest transmission path. The following will specifically describe how the node management module 1, routing module 2 and data transmission module 3 of the serial communication system of the present invention realize their respective functions:

[0042] like Figure 1 and Figure 2 As shown, each node is provided with a control device, which includes a processor, a memory and multiple serial ports, and adjacent nodes are connected through serial ports. Each node is configured with the serial port communication system of the present invention, which is stored in the memory in the form of a computer program and is called and executed by the processor, so that the virtual function modules such as the node management module 1, the routing module 2 and the data transmission module 3 realize their respective functions.

[0043] The following is a specific implementation method for each node to establish its own adjacency table through the node management module 1:

[0044] like Figure 2 As shown, the circles in the figure represent nodes, and the numbers in the circles represent the ID (Identity document) of the nodes. Assuming that each node can connect to up to 4 other nodes, a mesh communication structure consisting of 5 nodes is formed as shown in the figure. The node management module 1 of each node sends a heartbeat packet to other adjacent nodes through the data transmission module 3, and establishes its own adjacency table after receiving a reply.

[0045] For example, the nodes adjacent to node 1 are node 2 and node 5, then node 1 builds its own adjacency list as shown in Table 1:

[0046] 1 2 1 5

[0047] Table 1

[0048] The nodes adjacent to node 2 are node 1, node 3, and node 4. Then node 2 builds its own adjacency table as shown in Table 2:

[0049] 2 1 2 3 2 4

[0050] Table 2

[0051] The nodes adjacent to node 3 are node 2 and node 4, so node 3 builds its own adjacency table as shown in Table 3:

[0052] 3 2 3 4

[0053] Table 3

[0054] The nodes adjacent to node 4 are node 2, node 3, and node 5. Then node 4 builds its own adjacency list as shown in Table 4:

[0055] 4 2 4 3 4 5

[0056] Table 4

[0057] The nodes adjacent to node 5 are node 1, node 2, and node 4. Then node 5 builds its own adjacency list as shown in Table 5:

[0058] 5 1 5 2 5 4

[0059] Table 5

[0060] After each node has established its own adjacency list, it sends the adjacency list to other nodes through the data transmission module 3, and stores the adjacency list in the memory. After receiving the adjacency list sent by other nodes, the node management module 1 of each node merges its own adjacency list with the adjacency list of other nodes to form a total adjacency list. The following is an example of node 1 receiving the adjacency list of node 2:

[0061] The node management module of node 1 receives the adjacency table data sent by the data transmission module of node 2: 2, (2,1), (2,3), (2,4), where the first group of data represents the ID of node 2; it obtains the adjacency table data of node 1 from the memory (see Table 1), and searches for the ID of node 2 in the adjacency table of node 1. If the ID of node 2 is found, the received adjacency table is merged with the adjacency table of node 1 to form a new adjacency table as shown in Table 6:

[0062] 1 2 1 5 2 1 2 3 2 4

[0063] Table 6

[0064] The process of establishing new adjacency lists for other nodes is similar, and finally a total adjacency list associated with all nodes is formed as shown in Table 7, and the total adjacency list is stored in the memory, thereby completing the process of establishing the total adjacency list.

[0065] 1 2 1 5 2 1 2 3 2 4 3 2 3 4 4 2 4 3 4 5 5 1 5 2 5 4

[0066] Table 7

[0067] When the total adjacency table is established, if you want to complete data transmission between two nodes on the shortest path, the routing module 2 traverses all transmission paths that can connect to the target node in all nodes according to the total adjacency table and the target address in the data packet, and selects the shortest transmission path of the data packet from all transmission paths, and sends the shortest transmission path and the data packet to the data transmission module. The routing module 2 is enabled to dynamically select the optimal path between each node, reducing transmission delay, enabling data to be efficiently transmitted from the source node to the target node, enabling the serial communication system of the present invention to efficiently perform data transmission under a dynamic network environment, and improving the flexibility and efficiency of data transmission. At the same time, when the network topology changes, the routing path can be automatically adjusted to maintain the connectivity of the network.

[0068] For example, if node 1 wants to send a control command (turn on voice broadcast) to node 4, the routing module 2 of node 1 obtains the total adjacency list from the memory and receives the data packet sent by the data transmission module 3, which contains control commands, target addresses and other data. Based on the total adjacency list and the target address in the data packet (4 node IDs), the shortest transmission path for the data packet is planned, and the shortest transmission path and the data packet are sent to the data transmission module 3; the data transmission module 3 receives the shortest transmission path and the data packet sent by the routing module 2, and sends the data packet to the 4 nodes based on the shortest transmission path.

[0069] Specific, combined Figure 2 As shown in Table 7, routing module 2 first searches for which nodes target node 4 is connected to in the total adjacency table. It can be seen from Table 7 that (4,2) in the same row indicates that node 4 is connected to node 2, (4,3) in the same row indicates that node 4 is connected to node 3, and (4,5) in the same row indicates that node 4 is connected to node 5. Then, it searches for which nodes node 2, node 3, and node 5 are connected to respectively. It can be seen from Table 7 that (2,1) in the same row indicates that node 2 is connected to node 1, and it is determined that node 2 is connected to the source node, thus obtaining the first transmission path 1-2-4. Similarly, (5,1) in the same row indicates that node 5 is connected to node 1, and it is determined that node 5 is connected to the source node, thus obtaining the second transmission path 1-5-4. (3,2) in the same row indicates that node 3 is connected to node 2, and (2,1) in the same row indicates that node 2 is connected to node 1, and it is determined that node 2 is connected to the source node, thus obtaining the third transmission path 1-2-3-4. It can be seen from these three transmission paths that the data packets of the first transmission path and the second transmission path pass through three nodes, and the data packets of the third transmission path pass through four nodes. Therefore, the routing module 2 can screen out the first transmission path and the second transmission path as the shortest transmission paths, and then dynamically select the first transmission path or the second transmission path as the optimal transmission path according to the busyness of the data transmission.

[0070] In this embodiment, it is assumed that the optimal transmission path selected by the routing module 2 is the first transmission path 1-2-4, then the routing module 2 sends the first transmission path 1-2-4 and the data packet to the data transmission module 3, and the data transmission module 3 decides from which serial port the data packet is sent to the 2nd node. After receiving the data packet, the serial port of the 2nd node unpacks the data packet by the data transmission module 3 of the 2nd node and sends it to the routing module 2, and the routing module 2 then sends the first transmission path 1-2-4 and the data packet to the data transmission module 3, and the data transmission module 3 decides from which serial port the data packet is sent to the 4th node (the target node), thereby completing a data transmission task.

[0071] The node management module 1 of the present invention is also used to detect the online / offline status of all other nodes adjacent to its own node. Specifically, the node management module 1 sends a heartbeat packet to all other nodes adjacent to its own node, and performs a timeout judgment on the response information of each node. If the response information of a certain node is not sent due to timeout, the node is notified to resend the response information. If the number of retransmissions exceeds a preset number, the node is determined to be offline. After deleting the offline node, the node management module 1 re-establishes its own adjacency table, and through regular network status monitoring and communication testing between nodes, it can re-plan the route after a fault is found to maintain the connectivity of the network.

[0072] The serial communication system of the present invention also includes a node self-healing module 4. The node management module 1 is also used to detect the online / offline status of all other nodes adjacent to its own node, and feed back the detection results to the node self-healing module 4. The node self-healing module 4 is used to restart and repair the offline nodes. For the offline nodes, the node self-healing module 4 sends a reset signal and a heartbeat signal to the offline nodes to restart and repair. Avoiding the failure of the entire network due to a single node failure improves the fault tolerance of the system, thereby enhancing the robustness and reliability of the network.

[0073] The data transmission module 3 is also used to unpack the data packets when receiving the data packets sent by other nodes, and send them to the node management module and the routing module according to the data types. For example, if the data types contained in the data packets include adjacency list, address data, control data, etc., the data transmission module 3 unpacks the data packets and sends the adjacency list to the node management module 1, and sends the address data and control data to the routing module 2.

[0074] The serial communication system of the present invention further includes a priority management module 5, which is used to prioritize the order in which data packets are transmitted between nodes; and to prioritize the order in which different types of data in the data packets are transmitted between modules. This ensures that high-priority data is transmitted first in the network, and guarantees the real-time transmission of key data, especially when the network load is high, ensuring that high-priority data can be transmitted in a timely manner, greatly improving the timeliness and service quality of communication.

[0075] Specifically, when the same node receives data packets from multiple nodes at the same time, since it can only forward data from one node at a time, it is necessary to prioritize multiple nodes. Applied to specific treatment equipment, assuming that node 1 is the host computer, node 2 is the host, node 3 is the driver, node 4 is the display screen, and node 5 is the speaker, then the order of importance of the nodes is 1 node host computer>2 node host>3 node driver>4 node display screen>5 node speaker. When the 2-node host receives data packets from the 1-node host computer, 3-node driver, 4-node display screen, and 5-node speaker at the same time, it will prioritize the data packets from the 1-node host computer, then the data packets from the 3-node driver, then the data packets from the 4-node display screen, and finally the data packets from the 5-node speaker, so as to ensure that high-priority data can be transmitted in time when the network load is high, greatly improving the timeliness and service quality of communication.

[0076] When a node receives a data packet containing multiple types of data, since the node can only process one type of data at a time, it is necessary to prioritize the multiple types. For example, Node 2 receives a data packet containing a heartbeat packet, an adjacency list, sensor data, a control command, etc., then the priority ranking according to the data type is heartbeat packet > adjacency list > control command > sensor data. Node 2 will prioritize processing the heartbeat packet data, then the adjacency list data, then the control command data, and finally the sensor data, ensuring that high-priority data can be transmitted in a timely manner when the network load is high, greatly improving the timeliness and service quality of communication.

[0077] The present invention also provides a serial port communication method, comprising the following steps:

[0078] Merge the adjacency lists established by each node into a total adjacency list and store it in memory;

[0079] Obtain the total adjacency list and the destination address in the data packet to be transmitted;

[0080] Based on the total adjacency table and the destination address, planning the shortest transmission path for the data packet to be transmitted between the nodes;

[0081] Based on the shortest transmission path, the data packet is sent to a target node.

[0082] The serial port communication method provided in the embodiment of the present invention is based on the same inventive concept as the aforementioned serial port communication system, and both have the same or corresponding technical features. The terms and technical solutions appearing in the method have been described in detail in the aforementioned serial port communication system and will not be repeated here.

[0083] The present invention also provides a computer device, comprising a processing unit and a storage unit, wherein the storage unit stores a computer program, and the processing unit implements the above-mentioned serial port communication method when executing the computer program.

[0084] The advantages of the present invention are as follows: The serial communication system of the present invention is implemented based on C language. Compared with the traditional implementation method based on high-level language or complex protocol, the serial communication system occupies less system resources. The operating efficiency of the system is improved, resource consumption is reduced, and it is suitable for embedded devices with limited memory and processing power. It can run in resource-constrained embedded devices without additional hardware support, and realizes a serial communication system implemented by a lightweight dynamic routing algorithm. The routing module can dynamically select the optimal path between each node, reduce the transmission delay, and enable data to be efficiently transmitted from the source node to the target node, so that the serial communication system of the present invention can efficiently perform data transmission in a dynamic network environment, and improve the flexibility and efficiency of data transmission. At the same time, when the network topology changes, the routing path can be automatically adjusted to maintain the connectivity of the network.

[0085] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the storage unit, database or other medium used in the embodiments provided by the present invention can include at least one of a non-volatile storage unit and a volatile storage unit. The non-volatile storage unit can include a read-only storage unit (Read-Only Memory, ROM), a magnetic tape, a floppy disk, a flash memory, an optical storage unit, a high-density embedded non-volatile storage unit, a resistive random access memory unit (ReRAM), a magnetoresistive random access memory unit (MRAM), a ferroelectric random access memory unit (FRAM), a phase change memory unit (PCM), a graphene storage unit, etc. The volatile storage unit can include a random access memory unit (RAM) or an external cache memory unit, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided by the present invention may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchain, etc., but are not limited to this. The processing unit involved in each embodiment provided by the present invention may be a general processing unit, a central processing unit, a graphics processing unit, a digital signal processing unit, a programmable logic unit, a data processing logic based on quantum computing, an artificial intelligence (AI) processing unit, etc., but are not limited to this.

[0086] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the applications disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed by the present invention. The description and examples are to be considered exemplary only, and the true scope and spirit of the present invention is indicated by the following claims.

[0087] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A serial communication system, characterized in that: include: The node management module is used to find all other nodes adjacent to its own node, build its own adjacency table based on the search results, and store its own adjacency table in memory; and sending its own adjacency list to the data transmission module; and, receiving the adjacency lists of other nodes sent by the data transmission module, and merging its own adjacency list with the adjacency lists of other nodes to form a total adjacency list and storing it in the memory; A routing module, used to obtain the total adjacency list from the memory, and receive the data packet sent by the data transmission module, plan the shortest transmission path of the data packet based on the total adjacency list and the target address in the data packet, and send the shortest transmission path and the data packet to the data transmission module; The data transmission module is used to send its own adjacency table to other node management modules, receive the shortest transmission path and data packet sent by the routing module, and send the data packet to the target node based on the shortest transmission path.

2. The serial communication system according to claim 1, characterized in that: The node management module is also used to detect the online / offline status of all other nodes adjacent to its own node, and after deleting the offline nodes, re-establish its own adjacency list.

3. The serial communication system according to claim 1, characterized in that: It also includes a node self-healing module. The node management module is also used to detect the online / offline status of all other nodes adjacent to its own node, and feed back the detection results to the node self-healing module. The node self-healing module is used to restart and repair the offline nodes.

4. The serial communication system according to claim 2 or 3, characterized in that: The node management module sends heartbeat packets to all other nodes adjacent to its own node, and performs timeout judgment on the response information of each node. If the response information of a node is not sent within the time limit, the node is notified to resend the response information. If the number of retransmissions exceeds the preset number, the node is determined to be offline.

5. The serial communication system according to claim 3, characterized in that: For offline nodes, the node self-healing module sends a reset signal and a heartbeat signal to the offline node to restart and repair it.

6. The serial communication system according to claim 1, characterized in that: The data transmission module is also used to, when receiving a data packet sent by other nodes, unpack the data packet and send it to the node management module and the routing module respectively according to the data type.

7. The serial communication system according to claim 1, characterized in that: It also includes a priority management module, which is used to prioritize the order in which data packets are transmitted between nodes; and is used to prioritize the order in which different types of data in the data packets are transmitted between modules.

8. The serial communication system according to claim 1, characterized in that: The routing module is used to traverse all transmission paths that can connect to the target node in all nodes according to the total adjacency table and the target address in the data packet, and filter out the shortest transmission path of the data packet from all transmission paths, and send the shortest transmission path and the data packet to the data transmission module.

9. A serial communication method, characterized in that: The following steps are involved: Merge the adjacency lists established by each node into a total adjacency list and store it in memory; Obtain the total adjacency list and the destination address in the data packet to be transmitted; Based on the total adjacency table and the destination address, planning the shortest transmission path for the data packet to be transmitted between the nodes; Based on the shortest transmission path, the data packet is sent to a target node.

10. A computer device, characterized in that: The method comprises a processing unit and a storage unit, wherein the storage unit stores a computer program, and the processing unit implements the serial communication method according to claim 9 when executing the computer program.

Citation Information

Patent Citations

  • Message forwarding method and device in two-layered edge network

    CN103546374A

  • Adaptive self-healing protection method applied to distribution network containing hybrid switches

    CN106230121A

  • Efficient and fast convergence neighbor discovery scheme

    CN110380963A

  • Centralized routing protocol for wireless sensor network

    CN110971524A

  • Fast route recovery method, device and equipment for multi-hop network

    CN117793847A

Cited By

  • A scalable network architecture for control and communication in robotic end effectors

    WO2026185559A1