# US 2025/0379907 A1 · Inter-device point-to-point communication method, system and apparatus, device, and storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0379907 A1
- Document ID: US20250379907A1
- Status: Published application
- Kind: A1
- Application number: 18/876,956
- Filed: 2023-12-15
- Published: 2025-12-11
- Earliest claimed: 2023-02-23
- Assignees: Suzhou Metabrain Intelligent Technology Co., Ltd.
- Applicants: Suzhou Metabrain Intelligent Technology Co., Ltd.
- Inventors: Wei LIU; Yaming XU; Wei GUO; Deshan ZHANG; Can ZHANG
- Web page: https://patentgrep.com/patent/US20250379907A1

## CPC

- H04L 67/1061: using node-based peer discovery mechanisms (static access to replicated servers H04L67/1006; service discovery H04L67/51)
- H04L 12/40: Bus networks
- H04L 67/1074: for supporting data block transmission mechanisms (file transfer H04L67/06)
- H04L 69/06: Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method for peer-to-peer communication between devices is applied to a target transmitting device and includes: obtaining an internal address of a target receiving device, wherein both the target transmitting device and the target receiving device are peripheral component interconnect express (PCIE) devices; according to a preset protocol format, constructing a target protocol that includes the internal address of the target receiving device, and generating a target data packet carrying the target protocol. By the design of the general-purpose target protocol, communications and mutual access between heterogeneous PCIE devices are achieved in the present application without occupying a large number of physical addresses of a host end.

## Claims

### Claim 1

A method for peer-to-peer communication between devices, applied to a target transmitting device and comprising:
obtaining an internal address of a target receiving device, wherein both the target transmitting device and the target receiving device are peripheral component interconnect express (PCIE) devices;
according to a preset protocol format, constructing a target protocol that comprises the internal address of the target receiving device, and generating a target data packet carrying the target protocol; and
transmitting the target data packet to the target receiving device to cause the target receiving device to: analyze, after receiving the target data packet, the target protocol carried in the target data packet to obtain the internal address, and perform data processing on the internal address.

### Claim 2 (depends on 1)

The method for the peer-to-peer communication between the devices according to claim 1, wherein before the step of obtaining the internal address of the target receiving device, the method further comprises:
transmitting device key information of the target transmitting device to a host end to cause the host end to: register the target transmitting device and return the internal address of the target receiving device.

### Claim 3 (depends on 2)

The method for the peer-to-peer communication between the devices according to claim 2, wherein the device key information of the target transmitting device at least comprises a device identification, a type of matched receiving device, a quantity of addresses, an internal available device address, and a callback function.

### Claim 4 (depends on 3)

The method for the peer-to-peer communication between the devices according to claim 3, wherein the internal available device address at least comprises a host mapping address, an internal address, an address length and an address type.

### Claim 5 (depends on 4)

The method for the peer-to-peer communication between the devices according to claim 4, wherein before the step of registering, by the host end, the target transmitting device, the method further comprises:
determining whether a preset information transmitting condition is currently satisfied, and in response to the preset information transmitting condition being currently satisfied, transmitting the device key information of the target transmitting device to the host end to cause the host end to execute the step of registering the target transmitting device after the host end has monitored the device key information by using a preset service driver program.

### Claim 6 (depends on 5)

The method for the peer-to-peer communication between the devices according to claim 5, wherein the preset service driver program is a program that is run on the host end in advance and performs device registration.

### Claim 7 (depends on 5)

The method for the peer-to-peer communication between the devices according to claim 5, wherein the step of transmitting the device key information of the target transmitting device to the host end to cause the host end to execute the step of registering the target transmitting device after the host end has monitored the device key information by using the preset service driver program comprises:
transmitting the device key information of the target transmitting device to the host end in a way of calling a pre-generated register function interface to cause the host end to monitor a calling state of the pre-generated register function interface by using the preset service driver program, and in response to it being monitored that the pre-generated register function interface is called, determining that the device key information has been monitored, and executing the step of registering the target transmitting device.

### Claim 8 (depends on 7)

The method for the peer-to-peer communication between the devices according to claim 7, wherein the pre-generated register function interface is exported by the preset service driver program through an execution symbol export library function.

### Claim 9 (depends on 8)

The method for the peer-to-peer communication between the devices according to claim 8, wherein the execution symbol export library function is an EXPORT_SYMBOL_GPL function.

### Claim 10 (depends on 4)

The method for the peer-to-peer communication between the devices according to claim 4, wherein the step of transmitting the device key information of the target transmitting device to the host end to cause the host end to register the target transmitting device comprises:
transmitting the device key information of the target transmitting device to the host end to cause the host end to locally store the device key information transmitted by the target transmitting device.

### Claim 11 (depends on 10)

The method for the peer-to-peer communication between the devices according to claim 10, wherein after the step of transmitting the device key information of the target transmitting device to the host end to cause the host end to locally store the device key information transmitted by the target transmitting device, the method further comprises:
transmitting a device matching instruction to the host end to cause the host end to: match, from registered devices according to the device matching instruction, the target receiving device having a device type consistent with the type of matched receiving device in the device key information transmitted by the target transmitting device, read the internal address in locally stored device key information of the target receiving device, and return the internal address of the target receiving device, wherein the target receiving device has been registered at the host end.

### Claim 12 (depends on 11)

The method for the peer-to-peer communication between the devices according to claim 11, wherein the step of obtaining the internal address of the target receiving device comprises:
receiving the internal address of the target receiving device and a corresponding address type, which are returned by the host end in a way of calling the callback function in the device key information of the target transmitting device, wherein the host end further transmits the device key information of the target transmitting device to the target receiving device in the way of calling the callback function in the device key information of the target transmitting device.

### Claim 13 (depends on 12)

The method for the peer-to-peer communication between the devices according to claim 12, wherein the data processing comprises one of reading data in the internal address or writing data into the internal address; a type of the data processing depends on a type of the target data packet received by the target receiving device; and the type of the target data packet depends on the address type of the internal address of the target receiving device.

### Claim 14 (depends on 13)

The method for the peer-to-peer communication between the devices according to claim 13, wherein after the step of transmitting the target data packet to the target receiving device to cause the target receiving device to perform data processing on the internal address, the method further comprises:
receiving a confirm data packet returned by the target receiving device, wherein the confirm data packet is generated and returned by the target receiving device according to the device key information of the target transmitting device.

### Claim 15 (depends on 12)

The method for the peer-to-peer communication between the devices according to claim 12, wherein after the step of obtaining the internal address of the target receiving device, the method further comprises:
receiving a host mapping address in the device key information of the target receiving device, which is returned by the host end in the way of calling the callback function in the device key information of the target transmitting device to cause the target data packet to further carry the host mapping address in the device key information of the target receiving device.

### Claim 16 (depends on 15)

The method for the peer-to-peer communication between the devices according to claim 15, wherein the step of transmitting the target data packet to the target receiving device comprises:
transmitting the target data packet to the target receiving device to cause the target receiving device to: analyze the target data packet to obtain the host mapping address in the device key information of the target receiving device, determine whether the host mapping address is a host mapping address for peer-to-peer communication, and in response to the host mapping address being the host mapping address for peer-to-peer communication, execute the step of performing data processing on the internal address.

### Claim 17

(canceled)

### Claim 18

A method for peer-to-peer communication between devices, applied to a target receiving device and comprising:
receiving a target data packet that is generated and transmitted by a target transmitting device and carries a target protocol, wherein both the target transmitting device and the target receiving device are PCIE devices; the target protocol is a protocol that is constructed, according to a preset protocol format, after the target transmitting device obtains an internal address of the target receiving device and comprises the internal address of the target receiving device; and
analyzing the target protocol carried in the target data packet to obtain the internal address, and performing data processing on the internal address.

### Claim 19

(canceled)

### Claim 20

A system for peer-to-peer communication between devices, comprising a target transmitting device and a target receiving device, wherein:
the target transmitting device is configured to: obtain an internal address of the target receiving device, wherein both the target transmitting device and the target receiving device are PCIE devices; according to a preset protocol format, construct a target protocol that comprises the internal address of the target receiving device, and generate a target data packet carrying the target protocol; and transmit the target data packet to the target receiving device; and
the target receiving device is configured to: analyze, after receiving the target data packet, the target protocol carried in the target data packet to obtain the internal address, and perform data processing on the internal address.

### Claim at position 21

21-24. (canceled)

### Claim 25 (depends on 1)

An electronic device, comprising a processor and a memory, wherein the memory is configured to store a computer program; and the computer program is loaded and executed by the processor to implement the method for the peer-to-peer communication between the devices according to claim 1.

### Claim 26 (depends on 1)

A non-transitory computer-readable storage medium, configured to store computer-executable instructions, wherein the computer-executable instructions, in response to being loaded and executed by a processor, implement the method for the peer-to-peer communication between the devices according to claim 1.
