# US 2020/0008251 A1 · System and method for peer-to-peer wireless communication

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

- Number: US 2020/0008251 A1
- Document ID: US20200008251A1
- Status: Published application
- Kind: A1
- Application number: 16/022,584
- Filed: 2018-06-28
- Published: 2020-01-02
- Earliest claimed: 2018-06-28
- Assignees: The Chinese University of Hong Kong
- Applicants: The Chinese University of Hong Kong
- Inventors: Waiman Cheung; Sung-Chi Chu; Chun Yip Leung; Kwong Man Cheng; Pan Kwok
- Web page: https://patentgrep.com/patent/US20200008251A1

## CPC

- H04W 76/14: Direct-mode setup
- H04L 67/104: Peer-to-peer [P2P] networks
- H04L 67/60: Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources (admission control or resource allocation H04L47/70)
- H04W 12/02: Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
- H04W 12/04: Key management, e.g. using generic bootstrapping architecture [GBA]
- H04W 12/06: Authentication
- H04W 12/50: Secure pairing of devices
- H04W 12/03: Protecting confidentiality, e.g. by encryption
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Methods and systems for peer-to-peer communication are provided. In one example, a first device may receive, from a server, a pairing code and a first handshake code. The first device may transmit at least a first portion of the pairing code in a first broadcast message and receive, from the second device, a second broadcast message. The first device may authenticate the second device based on at least a second portion of the pairing code in the second broadcast message. The first device may establish a wireless peer-to-peer communication channel with the second device, and receive, from the second device, a second handshake code via the wireless peer-to-peer communication channel. The first device may authorize the second party to engage in an offline interaction with the first party based on the first handshake code and the second handshake code.

## Claims

### Claim 1

A method, comprising:
transmitting, by a first device to a server, a request to initiate an offline interaction with a second device, the offline interaction not hosted by the server, the request including credential information of a first party associated with the first device;
receiving, by the first device from the server, a pairing code and a first handshake code, the pairing code for authenticating the second device and the first handshake code for authorizing a second party associated with the second device to engage in the offline interaction with the first party, the pairing code and the first handshake code being provided to the first device after the server authenticates the first party using the credential information;
transmitting, by the first device, at least a first portion of the pairing code in a first broadcast message that is capable of being detected by the second device;
receiving, by the first device from the second device, a second broadcast message;
authenticating, by the first device, the second device based on at least a second portion of the pairing code in the second broadcast message;
responsive to authenticating the second device, establishing, by the first device, a wireless peer-to-peer communication channel with the second device;
receiving, by the first device from the second device, a second handshake code via the wireless peer-to-peer communication channel;
authorizing, by the first device, the second party to engage in the offline interaction with the first party based on a relationship between the first handshake code and the second handshake code; and
responsive to authorizing the second party, performing, by the first device, one or more actions to facilitate the offline interaction.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
splitting, by the first device, the pairing code into the first portion and the second portion;
transmitting, by the first device, the first portion of the pairing code; and
authenticating the second device based on determining that the second portion of the pairing code included in the second broadcast message and the first portion of the pairing code form the pairing code.

### Claim 3 (depends on 1)

The method of claim 1, wherein each of the first portion of the pairing code and each of the second portion of the pairing code comprises an entirety of the pairing code.

### Claim 4 (depends on 1)

The method of claim 1, wherein authorizing the second party to engage in the offline interaction with the first party based on a relationship between the first handshake code and the second handshake code comprises determining that the second handshake code is identical to the first handshake code.

### Claim 5 (depends on 1)

The method of claim 1, wherein the first handshake code is encrypted with a public key of the first device and is capable of being decrypted only with a private key of the first device; and
wherein the method further comprises:
decrypting, by the first device, the first handshake code using the private key of the first device; and
authorizing the second party based on comparing the decrypted first handshake code with the second handshake code.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
transmitting, by the first device to the server, a third handshake code before transmitting the broadcast message, to enable the server to transmit the third handshake code to the second device; and
transmitting, by the first device to the second device, a fourth handshake code via the wireless peer-to-peer communication channel, to enable the second device to authorize the first party to engage in the offline interaction with the second party based on a relationship between the third handshake code and the fourth handshake code.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
transmitting, by the first device to the second device, a copy of the first handshake code via the wireless peer-to-peer communication channel to enable the second device to authorize the first party to engage in the offline interaction with the second party.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
receiving, by the first device from the server, scheduling information for the offline interaction; and
transmitting, by the first device, the first broadcast message based on determining that a current time at the first device and a current location of the first device match, respectively, a scheduled time and a scheduled location included in the scheduling information.

### Claim 9 (depends on 8)

The method of claim 8, further comprising: receiving, by the first device from the server, a token that includes the scheduling information, the pairing code, and the first handshake code.

### Claim 10

An apparatus comprising:
a memory that stores a set of instructions; and
a hardware processor configured to execute the set of instructions to:
transmit, to a server, a request to initiate an offline interaction with a second device, the offline interaction not hosted by the server, the request including credential information of a first party associated with the apparatus;
receive, from the server, a pairing code and a first handshake code, the pairing code for authenticating the second device and the first handshake code for authorizing a second party associated with the second device to engage in the offline interaction with the first party, the pairing code and the first handshake code being provided to the apparatus after the server authenticates the first party using the credential information;
transmit at least a first portion of the pairing code in a first broadcast message that is capable of being detected by the second device;
receive, from the second device, a second broadcast message;
authenticate the second device based on at least a second portion of the pairing code in the second broadcast message;
responsive to authenticating the second device, establish a wireless peer-to-peer communication channel with the second device;
receive, from the second device, a second handshake code via the wireless peer-to-peer communication channel;
authorize the second party to engage in the offline interaction with the first party based on a relationship between the first handshake code and the second handshake code; and
responsive to authorizing the second party, perform one or more actions to facilitate the offline interaction.

### Claim 11 (depends on 10)

The apparatus of claim 10, wherein the hardware processor is further configured to:
split the pairing code into the first portion and the second portion;
transmit the first portion of the pairing code; and
authenticate the second device based on determining that the second portion of the pairing code included in the second broadcast message and the first portion of the pairing code form the pairing code.

### Claim 12 (depends on 10)

The apparatus of claim 10, wherein each of the first portion of the pairing code and each of the second portion of the pairing code comprises an entirety of the pairing code.

### Claim 13 (depends on 10)

The apparatus of claim 10, wherein authorizing the second party to engage in the offline interaction with the first party based on a relationship between the first handshake code and the second handshake code comprises determining that the second handshake code is identical to the first handshake code.

### Claim 14 (depends on 10)

The apparatus of claim 10, wherein the first handshake code is encrypted with a public key of the apparatus and is capable of being decrypted only with a private key of the apparatus; and
wherein the hardware processor is further configured to:
decrypt the first handshake code using the private key of the apparatus; and
authorize the second party based on comparing the decrypted first handshake code with the second handshake code.

### Claim 15 (depends on 10)

The apparatus of claim 10, wherein the hardware processor is further configured to:
transmit, to the server, a third handshake code before transmitting the broadcast message, to enable the server to transmit the third handshake code to the second device; and
transmit, to the second device, a fourth handshake code via the wireless peer-to-peer communication channel, to enable the second device to authorize the first party to engage in the offline interaction with the second party based on a relationship between the third handshake code and the fourth handshake code.

### Claim 16 (depends on 10)

The apparatus of claim 10, wherein the hardware processor is further configured to:
transmit, to the second device, a copy of the first handshake code via the wireless peer-to-peer communication channel to enable the second device to authorize the first party to engage in the offline interaction with the second party.

### Claim 17 (depends on 10)

The apparatus of claim 10, wherein the hardware processor is further configured to:
receive, from the server, scheduling information for the offline interaction; and
transmit the first broadcast message based on determining that a current time at the apparatus and a current location of the first device match, respectively, a scheduled time and a scheduled location included in the scheduling information.

### Claim 18 (depends on 17)

The apparatus of claim 17, wherein the hardware processor is further configured to:
receive, from the server, a token that includes the scheduling information, the pairing code, and the first handshake code.

### Claim 19

A non-transitory computer-readable medium having stored thereon instructions that, when executed by one or more processors, cause the one or more processors to:
transmit, to a server, a request to initiate an offline interaction with a second device, the offline interaction not hosted by the server, the request including credential information of a first party associated with a first device;
receive, from the server, a pairing code and a first handshake code, the pairing code for authenticating the second device and the first handshake code for authorizing a second party associated with the second device to engage in the offline interaction with the first party, the pairing code and the first handshake code being provided to the first device after the server authenticates the first party using the credential information;
transmit at least a first portion of the pairing code in a first broadcast message that is capable of being detected by the second device;
receive, from the second device, a second broadcast message;
authenticate the second device based on at least a second portion of the pairing code in the second broadcast message;
responsive to authenticating the second device, establish a wireless peer-to-peer communication channel with the second device;
receive, from the second device, a second handshake code via the wireless peer-to-peer communication channel;
authorize the second party to engage in the offline interaction with the first party based on a relationship between the first handshake code and the second handshake code; and
responsive to authorizing the second party, perform one or more actions to facilitate the offline interaction.

### Claim 20 (depends on 19)

The non-transitory computer-readable medium of claim 19, wherein the instructions, when executed by the one or more processors, cause the one or more processors to:
transmit, to the server, a third handshake code before transmitting the broadcast message, to enable the server to transmit the third handshake code to the second device; and
transmit, to the second device, a fourth handshake code via the wireless peer-to-peer communication channel, to enable the second device to authorize the first party to engage in the offline interaction with the second party based on a relationship between the third handshake code and the fourth handshake code.
