GPIO (General Purpose Input / Output) routing method in multi-node system

Through the method of customizing the number and target address, the routing problem of GPIO information transmission in multi-node systems is solved, information transmission and identification between multiple nodes is realized, complex routing situations are supported, and information transmission efficiency is improved.

CN119299366AInactive Publication Date: 2025-01-10上海芯炽科技集团有限公司
View PDF 3 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In multi-node transmission systems, information transmission between GPIOs requires an effective routing mechanism to ensure that the GPI and GPO on both sides of the interconnected nodes can be recognized and correspond, especially when multiple groups of GPIOs are transmitted to each other or the GPI on one side of the node is required. In the case of transmission to multiple GPOs, the prior art is difficult to effectively solve.

Method used

By customizing the GPI, GPO, GPIO in the numbered node module, and using GPI_ID, GPO_ID, GPIO_ID and target address, the routing target GPIO channel and node module information is passed to the control part of the node module, decoding and identifying the information route according to the custom rules. path.

Benefits of technology

It realizes GPIO information transmission in multi-node systems, supports single routing, multiple routing, serial number correspondence and non-corresponding complex routing, and combines one-way and two-way routing, improving the efficiency of information transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119299366A_ABST
    Figure CN119299366A_ABST
Patent Text Reader

Abstract

The invention discloses a GPIO (General Purpose Input / Output) routing method in a multi-node system, and belongs to the field of data communication. Carrying out custom numbering on the connected node modules and GPI, GPO and GPIO in the modules; the control part is used for transmitting related routing target GPIO (General Purpose Input / Output) channel and target node module information to related node modules by using GPIID (General Purpose Interface Identifier), GPOID (General Purpose Interface Identifier), GPIOID and target address setting; and the control part of the node module decodes the received information according to a self-defined rule, and identifies that the information to be sent at the moment is from a certain GPIO channel, the information needs to be routed to a link of a certain or some node modules, and a certain GPIO channel in the node module needs to receive the information. According to the invention, information transmission between GPIOs of a multi-node system can be realized, and single routing, multi-path routing, and complex routing with corresponding and non-corresponding serial numbers can be realized in a compatible manner.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data communication, and in particular to a GPIO routing method in a multi-node system. Background Art

[0002] GPIO is the abbreviation of general purpose input and output port. In a multi-node transmission system, GPIO can be used to transmit information on two node modules that are far apart through a link in a certain protocol format, achieving the effect of turning a natural barrier into a thoroughfare. Specifically, by binding the GPIOs of two interconnected nodes, setting one as the input end, called GPI, and the other as the output end, called GPO, the GPIO information of one node can be transmitted to the GPIO of another node through the system link.

[0003] In actual application systems, there may be multiple groups of GPIOs transmitting to each other, or the GPI of a node on one side needs to be transmitted to multiple GPOs of a node on the other side. This requires a certain routing mechanism and means to ensure that the GPIs and GPOs on both sides of the interconnected nodes can correspond to and identify each other. Summary of the invention

[0004] The object of the present invention is to provide a method for GPIO routing in a multi-node system to solve the problems in the background technology.

[0005] In order to solve the above technical problems, the present invention provides a method for GPIO routing in a multi-node system, which performs custom numbering on the connected node modules and the GPI, GPO, and GPIO in the modules; Use GPI_ID, GPO_ID, GPIO_ID and target address settings to pass the relevant routing target GPIO channel and target node module information to the control part of the relevant node module; GPI_ID, GPO_ID, GPIO_ID are used to represent the identity of GPIO in a node module, and the target address is used to distinguish the node module or modules to which the information is to be passed; The control part of the node module decodes the received information according to the custom rules, recognizes that the information to be sent at this time comes from a certain GPIO channel, and this information needs to be routed to the link of one or some node modules, and a certain GPIO channel inside the node module needs to receive this information.

[0006] In one embodiment, the multi-node system includes node A, node B, ..., node N, a total of N node modules, each node module has N GPIOs; wherein, All GPIOs in node module A are used as GPI: GPI_0~GPI_n, The GPIOs in node module B to node module N are used as GPOs: GPO_0 to GPO_n; This situation can be divided into three types: The first case: GPI and GPO serial numbers are transmitted from one channel to multiple channels: GPI_0 information in node module A is transmitted to GPO_0 in node module B, GPO_0 in node module C, ..., GPO_0 in node module N; The second case: the transmission between any two node modules corresponding to the GPI and GPO serial numbers: the GPI_1 information in node module A is transmitted to the GPO_1 in node module C; The third case: transmission between any two node modules whose GPI and GPO serial numbers do not correspond: the GPI_n signal in node module A is transmitted to GPO_1 in node module N, where n is not 1.

[0007] In one embodiment, in the first case, the GPIO module needs to give GPIO_ID=0 to tell the control module in the node module A that the information to be sent and the information to be received by the other end are both through the GPIO_0 channel; the target address tells the control module that the information should be passed to one or some connected node modules according to certain specifications; N bits of data are set, each bit represents a node module, and 1 represents the node module to be routed. Here, setting all bits to 1 tells the node module A to route the information of the GPIO_0 channel to the link of each connected node module. The connected node module knows that the information needs to be routed to its own internal GPIO_0 based on the received information GPIO_ID=0.

[0008] In one embodiment, in the second case, the GPIO module needs to give GPIO_ID=1 to tell the control module in the node module A that the GPIO_1 channel is used for sending information and the other end for receiving information; the bit corresponding to the node module C to be selected in the target address is set to 1, and the other bits are set to 0 to tell the node module A to route the GPIO_1 information to the link connected to the node module C; after receiving this information, the node module C knows that the information needs to be routed to its own internal GPIO_1 according to GPIO_ID=1.

[0009] In one embodiment, in the third case, the GPIO module needs to give GPI_ID=n to tell the control module in the node module A that the GPIO_n to which information needs to be sent; GPO_ID=1 is used to tell the control module that the GPIO_1 channel on the other end needs to receive information; the bit corresponding to the node module N to be selected in the target address is set to 1, and the other bits are set to 0, to tell the node module A to route the information of GPIO_n to the link connected to the node module N; after receiving this information, the node module N knows that this information needs to be routed to its own internal GPIO_1 according to GPO_ID=1.

[0010] The present invention provides a method for GPIO routing in a multi-node system, which has the following beneficial effects: (1) The GPIO routing mechanism proposed in the present invention can realize information transmission between GPIOs of a multi-node system; (2) The GPIO routing mechanism provided by the present invention is simple to implement, but can be compatible with single routing, multi-routing, and complex routing with corresponding and non-corresponding serial numbers; (3) The GPIO routing mechanism provided by the present invention not only supports unidirectional routing, but also supports bidirectional routing, thereby achieving efficient transmission of information on the entire link. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 It is a structural diagram of possible applications of GPIO in a multi-node system.

[0012] Figure 2 It is a schematic diagram of the structure in which the node A module transmits information to multiple node modules.

[0013] Figure 3 It is a structural diagram of transmitting the corresponding information of the GPIO serial number of the node A module to any node module.

[0014] Figure 4 It is a schematic diagram of the structure in which the GPIO serial number of the node A module does not correspond to the information transmitted to any module. DETAILED DESCRIPTION

[0015] The following is a further detailed description of a method for GPIO routing in a multi-node system proposed by the present invention in conjunction with the accompanying drawings and specific embodiments. The advantages and features of the present invention will become clearer according to the following description. It should be noted that the accompanying drawings are all in a very simplified form and are not in precise proportions, and are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention.

[0016] The present invention provides a GPIO routing method in a multi-node system, which supports mutual routing of multiple GPIO groups in the multi-node system, or routing of the GPIO of one side node to multiple GPIOs of another side node, and the expected GPI and GPO can correspond to each other and identify each other.

[0017] The method of the present invention can perform any GPIO routing in a multi-node system, and set multiple mutual routings or one-to-many routings as required.

[0018] like Figure 1 As shown, a multi-node system includes node A, node B, ..., node N, a total of N node modules, each node module has N GPIOs, Figure 1 The following is a possible scenario in which all GPIOs in node module A are used as GPIs (GPI_0~GPI_n), and the GPIOs in other node modules, i.e. node module B~node module N, are used as GPOs (GPO_0~GPO_n). This situation can be divided into three types: (1) The situation where the GPI and GPO numbers are transmitted from one path to multiple paths: the GPI_0 information in node module A needs to be transmitted to GPO_0 in node module B, GPO_0 in node module C, ..., GPO_0 in node module N; (2) Transmission between any two node modules corresponding to the GPI and GPO serial numbers: GPI_1 information in node module A needs to be transmitted to GPO_1 in node module C; (3) Transmission between any two node modules whose GPI and GPO serial numbers do not correspond: The GPI_n signal in node module A must be transmitted to GPO_1 in node module N, where n is not 1.

[0019] An optional approach proposed in the present invention is to use GPI_ID, GPO_ID, GPIO_ID and target address in combination to implement the application in the above system. GPI_ID, GPO_ID and GPIO_ID are all used to represent the "identity" of GPIO in a node module, for example, Figure 1 The 0 written in represents GPI_0, GPO_0, GPIO_0, 1 represents GPI_1, GPO_1, GPIO_1, and so on. It is worth noting that other values ​​can also be used to represent it, as long as the uniqueness of each GPIO ID is ensured; the target address is used to distinguish which node module or modules the information is to be transmitted to. It is worth noting that the target address can be repeated and does not require uniqueness.

[0020] exist Figure 2The specific implementation of the optional one-way to multiple-way transmission based on the corresponding GPI and GPO serial numbers is provided, that is, the GPIO module needs to give GPIO_ID=0 to tell the control module in the node module A that the information needs to be sent and the information needs to be received by the other end are all GPIO_0 channels; the target address is used to tell the control module to which (some) connected node modules this information should be passed according to certain specifications. An optional method is to set N bits of data, each bit represents a node module, 1 represents the node module to be routed, and setting all bits 1 here tells the node module A to route the information of the GPIO_0 channel to the link of each connected node module. The connected node module knows that it needs to route this information to its internal GPIO_0 based on the received information of GPIO_ID=0.

[0021] exist Figure 3 The specific implementation of the optional transmission to any node module based on the corresponding GPI and GPO serial numbers is provided, that is, the GPIO module needs to give GPIO_ID=1 to tell the control module in node module A that the GPIO_1 channel is used to send information and the other end receives information; the bit corresponding to the selected node module C in the target address is set to 1, and the other bits are set to 0, so that node module A can be told to route the GPIO_1 information to the link connected to node module C; after receiving this information, node module C knows that it needs to route this information to its own internal GPIO_1 according to GPIO_ID=1.

[0022] exist Figure 4 The specific implementation of the optional transmission to any node module based on the mismatch between GPI and GPO serial numbers is provided, that is, the GPIO module needs to give GPI_ID=n to tell the control module in node module A that the information needs to be sent to GPIO_n; GPO_ID=1 is used to tell the control module that the GPIO_1 channel on the other end needs to receive information; the bit corresponding to the node module N to be selected in the target address is set to 1, and the other bits are set to 0, so that the node module A can be told to route the GPIO_n information to the link connected to the node module N; after receiving this information, the node module N knows that it needs to route this information to its own internal GPIO_1 according to GPO_ID=1.

[0023] The present invention performs custom numbering on the connected node modules and the GPI, GPO, and GPIO in the modules, and uses GPI_ID, GPO_ID, GPIO_ID and target address settings in combination, and transmits relevant routing target GPIO channels and target node module information to the control part of the relevant node module. The control part of the node module decodes the received information according to the custom rules, and identifies which GPIO channel the information to be sent comes from, to which link of the node module(s) the information needs to be routed, and which GPIO channel inside the node module needs to receive the information.

[0024] The present invention can realize information transmission and identification of any multiple pairs of GPIOs between modules of any node, including supporting single-module transmission to single-module or single-module transmission to multiple modules, and multiple modules transmission to single module; it can also support GPIOs between modules of any node to simultaneously transmit information to each other without interfering with each other.

[0025] The above description is only a description of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any changes or modifications made by a person skilled in the art in the field of the present invention based on the above disclosure shall fall within the scope of protection of the claims.

Claims

1. A method for GPIO routing in a multi-node system, characterized in that: Customize the numbering of the connected node modules and the GPI, GPO, and GPIO in the modules; Use GPI_ID, GPO_ID, GPIO_ID and target address settings to pass the relevant routing target GPIO channel and target node module information to the control part of the relevant node module; GPI_ID, GPO_ID, GPIO_ID are used to represent the identity of GPIO in a node module, and the target address is used to distinguish the node module or modules to which the information is to be passed; The control part of the node module decodes the received information according to the custom rules, recognizes that the information to be sent at this time comes from a certain GPIO channel, and this information needs to be routed to the link of one or some node modules, and a certain GPIO channel inside the node module needs to receive this information.

2. The method for GPIO routing in a multi-node system as claimed in claim 1, characterized in that: The multi-node system includes node A, node B, ..., node N, a total of N node modules, each node module has N GPIOs; wherein, All GPIOs in node module A are used as GPI: GPI_0~GPI_n, The GPIOs in node module B to node module N are used as GPOs: GPO_0 to GPO_n; This situation can be divided into three types: The first case: GPI and GPO serial numbers are transmitted from one channel to multiple channels: GPI_0 information in node module A is transmitted to GPO_0 in node module B, GPO_0 in node module C, ..., GPO_0 in node module N; The second case: the transmission between any two node modules corresponding to the GPI and GPO serial numbers: the GPI_1 information in node module A is transmitted to the GPO_1 in node module C; The third case: transmission between any two node modules whose GPI and GPO serial numbers do not correspond: the GPI_n signal in node module A is transmitted to GPO_1 in node module N, where n is not 1.

3. The method for GPIO routing in a multi-node system as claimed in claim 2, characterized in that: In the first case, the GPIO module needs to give GPIO_ID=0 to tell the control module in node module A that the information to be sent and the information to be received by the other end are both through the GPIO_0 channel; the target address tells the control module that the information should be passed to one or some connected node modules according to certain specifications; N bits of data are set, each bit represents a node module, and 1 represents the node module to be routed. Setting all bits to 1 here tells node module A to route the information of the GPIO_0 channel to the link of each connected node module. The connected node module knows that the information needs to be routed to its own internal GPIO_0 based on the received information GPIO_ID=0.

4. The method for GPIO routing in a multi-node system as claimed in claim 2, characterized in that: In the second case, the GPIO module needs to give GPIO_ID=1 to tell the control module in node module A that the GPIO_1 channel is the one that needs to send information and the other end receives information; the bit corresponding to the selected node module C in the target address is set to 1, and the other bits are set to 0, to tell node module A to route the GPIO_1 information to the link connected to node module C; after receiving this information, node module C knows that it needs to route this information to its own internal GPIO_1 based on GPIO_ID=1.

5. The method for GPIO routing in a multi-node system as claimed in claim 2, characterized in that: In the third case, the GPIO module needs to give GPI_ID=n to tell the control module in node module A that it is GPIO_n that needs to send information; GPO_ID=1 is used to tell the control module that it is the GPIO_1 channel on the other end that needs to receive information; the bit corresponding to the node module N to be selected in the target address is set to 1, and the other bits are set to 0, to tell node module A to route the information of GPIO_n to the link connected to node module N; after receiving this information, node module N knows that it needs to route this information to its own internal GPIO_1 based on GPO_ID=1.

Citation Information

Patent Citations

  • Method and device for controlling general purpose input / output (GPIO) port

    CN116932043A

  • Control system and method of autonomous vehicle camera and autonomous vehicle

    CN118283404A

  • GPIO-to-GPIO communication in a multi-node interconnected network

    DE102017101470A1