CN-122001813-A - Function addressing routing method, device and gateway equipment
Abstract
The embodiment of the application provides a functional addressing routing method, a device and gateway equipment, wherein the method comprises the steps of receiving a functional addressing request, and determining request information corresponding to the functional addressing request, a target node and a shared queue; and transmitting the request information in the isolation layer to the target node based on the special queue corresponding to the target node. By adding the isolating layer, after the isolating layer receives the function addressing request, the shared queue is actively released, so that the resource can be reused without waiting for the processing result of the target node, and the problem of functional addressing route blocking caused by unreleased shared queue is solved.
Inventors
- LI ZHONGJUN
Assignees
- 亿咖通(湖北)技术有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260303
Claims (10)
- 1. A method of functional addressing routing, the method comprising: receiving a function addressing request, and determining request information corresponding to the function addressing request, a target node and a shared queue; Storing the request information to an isolation layer based on the shared queue, and releasing the shared queue through the isolation layer; and sending the request information in the isolation layer to the target node based on the special queue corresponding to the target node.
- 2. The method of claim 1, wherein the number of target nodes is a plurality of, the isolation layer includes a predetermined buffer area corresponding to each target node, the storing the request information to the isolation layer based on the shared queue, and releasing the shared queue through the isolation layer includes: traversing each target node, storing the request information to a preset cache area corresponding to the traversed target node based on a shared queue aiming at the traversed target node, and releasing the shared queue after the storage of the preset cache area corresponding to the traversed target node is completed.
- 3. The method of claim 2, wherein there is a one-to-one correspondence between the target node and the preset cache region.
- 4. The method according to claim 2, wherein the sending the request information in the isolation layer to the target node based on the dedicated queue corresponding to the target node includes: After the storage of the preset cache area corresponding to the traversed target node is completed, based on the dedicated queue corresponding to the traversed target node, the request information stored in the preset cache area corresponding to the traversed target node is sent to the traversed target node.
- 5. The method according to claim 4, wherein the method further comprises: And releasing the dedicated queue corresponding to the traversed target node based on the feedback information sent by the traversed target node.
- 6. The method according to claim 2, wherein before storing the request information to the preset cache area corresponding to the traversed target node based on the shared queue, further comprises: Releasing the shared queue in case the physical link state of the traversed target node characterizes the traversed target node has a fault.
- 7. A functional addressing routing device, the device comprising: The processing module is used for receiving the function addressing request and determining request information, a target node and a shared queue corresponding to the function addressing request; The first routing module is used for storing the request information to an isolation layer based on the shared queue and releasing the shared queue through the isolation layer; and the second routing module is used for sending the request information in the isolation layer to the target node based on the special queue corresponding to the target node.
- 8. A gateway device, the gateway device comprising: the isolation layer comprises a driving module and a special queue module; the driving module is used for storing request information sent based on a shared queue and releasing the shared queue; The special queue module is used for routing the request information stored in the driving module to a special queue of a target node.
- 9. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1 to 6.
- 10. A computer program product comprising a computer program which, when executed by a processor, implements the method of any of claims 1 to 6.
Description
Function addressing routing method, device and gateway equipment Technical Field The present application relates to the field of data processing, and in particular, to a functional addressing routing method, device and gateway device. Background In modern automotive electronics systems, gateways serve as core components for multi-network protocol conversion, taking over the bridging of cross-domain communications. Taking a vehicle-mounted diagnosis system as an example, when the diagnosis instrument sends a function addressing request through a UDS (Unified Diagnostic Services, unified diagnosis service) protocol, the gateway needs to multicast the request to all connected network nodes so as to realize centralized diagnosis on the whole vehicle ECU (Electronic Control Unit ). Currently, functional addressing routing of gateways relies on shared buffer queues. However, due to the complex network environment of the automobile, the conditions such as node power failure, abnormal communication links and the like exist, and the routing mechanism of functional addressing in the prior art has single-point fault risks, so that diagnosis service interruption is caused, and the whole automobile debugging efficiency and user operation and maintenance experience are seriously affected. Disclosure of Invention The embodiment of the application provides a functional addressing routing method, a device and gateway equipment, which are used for solving the problem of functional addressing routing blocking. In a first aspect, an embodiment of the present application provides a functional addressing routing method, including: Receiving a function addressing request, and determining request information corresponding to the function addressing request, a target node and a shared queue; Storing the request information to the isolation layer based on the shared queue, and releasing the shared queue through the isolation layer; and sending the request information in the isolation layer to the target node based on the special queue corresponding to the target node. In one possible implementation manner, the number of the target nodes is a plurality, the isolation layer includes a preset buffer area corresponding to each target node, the request information is stored to the isolation layer based on the shared queue, and the shared queue is released through the isolation layer, including: Traversing each target node, storing request information to a preset cache area corresponding to the traversed target node based on a shared queue aiming at the traversed target node, and releasing the shared queue after the storage of the preset cache area corresponding to the traversed target node is completed. In one possible implementation, there is a one-to-one correspondence between the target nodes and the preset cache regions. In one possible implementation manner, the sending the request information in the isolation layer to the target node based on the dedicated queue corresponding to the target node includes: After the storage of the preset cache area corresponding to the traversed target node is completed, the request information stored in the preset cache area corresponding to the traversed target node is sent to the traversed target node based on the special queue corresponding to the traversed target node. In one possible embodiment, the method further comprises: And releasing the dedicated queue corresponding to the traversed target node based on the feedback information sent by the traversed target node. In one possible implementation manner, before storing the request information to the preset cache area corresponding to the traversed target node based on the shared queue, the method further includes: And releasing the shared queue in the condition that the physical link state of the traversed target node represents that the traversed target node has faults. In a second aspect, an embodiment of the present application provides a functional addressing-routing device, including: The processing module is used for receiving the function addressing request and determining request information corresponding to the function addressing request, a target node and a shared queue; The first routing module is used for storing the request information to the isolation layer based on the shared queue and releasing the shared queue through the isolation layer; and the second routing module is used for sending the request information in the isolation layer to the target node based on the special queue corresponding to the target node. In a third aspect, an embodiment of the present application provides a gateway device, including: The isolation layer comprises a driving module and a special queue module; The driving module is used for storing the request information sent based on the shared queue and releasing the shared queue; the dedicated queue module is used for routing the request information stored in the driving module to a dedicated queue