# US 2020/0288520 A1 · Wireless communications method, 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 2020/0288520 A1
- Document ID: US20200288520A1
- Status: Published application
- Kind: A1
- Application number: 16/879,496
- Filed: 2020-05-20
- Published: 2020-09-10
- Earliest claimed: 2019-06-28
- Assignees: Advanced New Technologies Co., Ltd.
- Applicants: Alibaba Group Holding Limited
- Inventors: Xiao LIU; Shengbo ZHAO; Qi HUANG
- Web page: https://patentgrep.com/patent/US20200288520A1

## CPC

- H04W 4/80: Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
- H04W 76/14: Direct-mode setup
- H04W 8/005: {Discovery of network devices, e.g. terminals}
- H04W 76/30: Connection release
- Y02D 30/70: in wireless communication networks
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

A wireless communications method includes: obtaining a first wireless universal model corresponding to a target device, wherein the first wireless universal model comprises a scanning rule applicable to wireless devices, and the scanning rule comprises identification information of the target device; scanning peripheral devices, and determining identification information of a scanned peripheral device based on the scanning rule; determining whether the identification information of the target device matches the identification information of the scanned peripheral device; and in response to that the identification information of the target device matches the identification information of the scanned peripheral device, pairing the scanned peripheral device with the primary device, to establish a communication connection between the scanned peripheral device and the primary device.

## Claims

### Claim 1

A wireless communications method, applied to a primary device, the method comprising:
obtaining a first wireless universal model corresponding to a target device, wherein the first wireless universal model comprises a scanning rule applicable to wireless devices, and the scanning rule comprises identification information of the target device;
scanning peripheral devices, and determining identification information of a scanned peripheral device based on the scanning rule;
determining whether the identification information of the target device matches the identification information of the scanned peripheral device; and
in response to that the identification information of the target device matches the identification information of the scanned peripheral device, pairing the scanned peripheral device with the primary device, to establish a communication connection between the scanned peripheral device and the primary device.

### Claim 2 (depends on 1)

The communications method according to claim 1, wherein the first wireless universal model comprises one or more of a reading rule, a writing rule, or a monitoring rule that is applicable to the wireless devices, and the reading rule, the writing rule, or the monitoring rule comprises a service identifier of at least one target service.

### Claim 3 (depends on 2)

The communications method according to claim 2, further comprising:
in response to that a target operation is performed on the peripheral device, obtaining at least one service of the peripheral device, wherein the target operation comprises one of a reading operation, a writing operation, or a monitoring operation;
determining a service identifier of the obtained at least one service;
determining whether the service identifier of the obtained at least one service is the same as the service identifier of the at least one target service; and
in response to that the service identifier of the obtained at least one service is the same as the service identifier of the at least one target service, determining that the obtained at least one service is the at least one target service corresponding to the target operation.

### Claim 4 (depends on 3)

The communications method according to claim 3, wherein
the reading rule, the writing rule, or the monitoring rule comprises a characteristic identifier of at least one target characteristic corresponding to the target service, and
the communications method further comprises:
determining a characteristic identifier of at least one characteristic corresponding to the obtained at least one service;
determining whether the characteristic identifier of the at least one characteristic is the same as the characteristic identifier of the at least one target characteristic; and
in response to that the characteristic identifier of the at least one characteristic is the same as the characteristic identifier of the at least one target characteristic, determining that the at least one characteristic is the at least one target characteristic corresponding to the target service.

### Claim 5 (depends on 4)

The communications method according to claim 4, wherein
the target operation is a reading operation, and
the communications method further comprises:
reading an attribute value of a target characteristic corresponding to the reading operation; and
uploading the read attribute value of the target characteristic corresponding to the reading operation to a server.

### Claim 6 (depends on 4)

The communications method according to claim 4, wherein
the target operation is a writing operation,
the writing rule comprises command data to be written to the peripheral device, and
the communications method further comprises writing the command data comprised in the writing rule to an attribute value of a target characteristic corresponding to the writing operation.

### Claim 7 (depends on 4)

The communications method according to claim 4, wherein
the target operation is a monitoring operation,
the monitoring rule comprises a response data collection field and a response data count field, and
the communications method further comprises:
monitoring an attribute value of a target characteristic corresponding to the monitoring operation;
in response to that the attribute value of the target characteristic corresponding to the monitoring operation changes, returning response data corresponding to the target operation to the primary device;
collecting the response data corresponding to the target operation through the response data collection field, wherein the response data corresponding to the target operation comprises operation success data or operation failure data; and
counting the response data corresponding to the target operation through the response data count field.

### Claim 8 (depends on 7)

The communications method according to claim 7, further comprising:
obtaining a second wireless model based on the response data corresponding to the target operation after the target operation ends;
determining whether the second wireless model comprises one of the scanning rule, the reading rule, the writing rule, or the monitoring rule; and
in response to that the second wireless model does not comprise one of the scanning rule, the reading rule, the writing rule, or the monitoring rule, disconnecting the communication connection between the peripheral device and the primary device.

### Claim 9

A wireless communications device, comprising a processor and a memory configured to store computer executable instructions, the computer executable instructions, when executed, causing the processor to perform operations including:
obtaining a first wireless universal model corresponding to a target device, wherein the first wireless universal model comprises a scanning rule applicable to wireless devices, and the scanning rule comprises identification information of the target device;
scanning peripheral devices, and determining identification information of a scanned peripheral device based on the scanning rule;
determining whether the identification information of the target device matches the identification information of the scanned peripheral device; and
in response to that the identification information of the target device matches the identification information of the scanned peripheral device, pairing the scanned peripheral device with the primary device, to establish a communication connection between the scanned peripheral device and the primary device.

### Claim 10 (depends on 9)

The wireless communications device according to claim 9, wherein the first wireless universal model comprises one or more of a reading rule, a writing rule, or a monitoring rule that is common to the wireless devices, and the reading rule, the writing rule, or the monitoring rule comprises a service identifier of at least one target service.

### Claim 11 (depends on 10)

The wireless communications device according to claim 10, wherein the operations further comprise:
in response to that a target operation is performed on the peripheral device, obtaining at least one service of the peripheral device, wherein the target operation comprises one of a reading operation, a writing operation, or a monitoring operation;
determining a service identifier of the obtained at least one service;
determining whether the service identifier of the obtained at least one service is the same as the service identifier of the at least one target service; and
in response to that the service identifier of the obtained at least one service is the same as the service identifier of the at least one target service, determining that the obtained at least one service is the at least one target service corresponding to the target operation.

### Claim 12 (depends on 11)

The wireless communications device according to claim 11, wherein
the reading rule, the writing rule, or the monitoring rule comprises a characteristic identifier of at least one target characteristic corresponding to the target service, and
the operations further comprise:
determining a characteristic identifier of at least one characteristic corresponding to the obtained at least one service;
determining whether the characteristic identifier of the at least one characteristic is the same as the characteristic identifier of the at least one target characteristic; and
in response to that the characteristic identifier of the at least one characteristic is the same as the characteristic identifier of the at least one target characteristic, determining that the at least one characteristic is the at least one target characteristic corresponding to the target service.

### Claim 13 (depends on 12)

The wireless communications device according to claim 12, wherein
the target operation is a reading operation, and
the operations further comprise:
reading an attribute value of a target characteristic corresponding to the reading operation; and
uploading the read attribute value of the target characteristic corresponding to the reading operation to a server.

### Claim 14 (depends on 12)

The wireless communications device according to claim 12, wherein
the target operation is a writing operation,
the writing rule comprises command data to be written to the peripheral device, and
the operations further comprise writing the command data comprised in the writing rule to an attribute value of a target characteristic corresponding to the writing operation.

### Claim 15 (depends on 12)

The wireless communications device according to claim 12, wherein
the target operation is a monitoring operation,
the monitoring rule comprises a response data collection field and a response data count field, and
the operations further comprise:
monitoring an attribute value of a target characteristic corresponding to the monitoring operation;
in response to that the attribute value of the target characteristic corresponding to the monitoring operation changes, returning response data corresponding to the target operation to the primary device;
collecting the response data corresponding to the target operation through the response data collection field, wherein the response data corresponding to the target operation comprises operation success data or operation failure data; and
counting the response data corresponding to the target operation through the response data count field.

### Claim 16 (depends on 15)

The wireless communications device according to claim 15, wherein the operations further comprise:
obtaining a second wireless model based on the response data corresponding to the target operation after the target operation ends;
determining whether the second wireless model comprises one of the scanning rule, the reading rule, the writing rule, or the monitoring rule; and
in response to that the second wireless model does not comprise one of the scanning rule, the reading rule, the writing rule, or the monitoring rule, disconnecting the communication connection between the peripheral device and the primary device.

### Claim 17

A non-transitory computer-readable storage medium, configured to store computer executable instructions, when executed by a processor, the computer executable instructions to cause the processor to perform operations including:
obtaining a first wireless universal model corresponding to a target device, wherein the first wireless universal model comprises a scanning rule applicable to wireless devices, and the scanning rule comprises identification information of the target device;
scanning peripheral devices, and determining identification information of a scanned peripheral device based on the scanning rule;
determining whether the identification information of the target device matches the identification information of the scanned peripheral device; and
in response to that the identification information of the target device matches the identification information of the scanned peripheral device, pairing the scanned peripheral device and the primary device, to establish a communication connection between the scanned peripheral device and the primary device.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium according to claim 17, wherein the operations further comprise:
in response to that a target operation is performed on the peripheral device, obtaining at least one service of the peripheral device, wherein the target operation comprises one of a reading operation, a writing operation, or a monitoring operation;
determining a service identifier of the obtained at least one service;
determining whether the service identifier of the obtained at least one service is the same as a service identifier of at least one target service, wherein the first wireless universal model comprises one or more of a reading rule, a writing rule, or a monitoring rule that is applicable to the wireless devices, and the reading rule, the writing rule, or the monitoring rule comprises the service identifier of the at least one target service; and
in response to that the service identifier of the obtained at least one service is the same as the service identifier of the at least one target service, determining that the obtained at least one service is the at least one target service corresponding to the target operation.

### Claim 19 (depends on 18)

The non-transitory computer-readable storage medium according to claim 18, wherein the operations further comprise:
determining a characteristic identifier of at least one characteristic corresponding to the obtained at least one service
determining whether the characteristic identifier of the at least one characteristic is the same as a characteristic identifier of at least one target characteristic, wherein the reading rule, the writing rule, or the monitoring rule comprises the characteristic identifier of the at least one target characteristic corresponding to the target service; and
in response to that the characteristic identifier of the at least one characteristic is the same as the characteristic identifier of the at least one target characteristic, determining that the at least one characteristic is the at least one target characteristic corresponding to the target service.

### Claim 20 (depends on 19)

The non-transitory computer-readable storage medium according to claim 19, wherein the operations further comprise:
in response to that an attribute value of a target characteristic corresponding to the monitoring operation changes, obtaining a second wireless model based on response data corresponding to the target operation after the target operation ends, wherein the response data corresponding to the target operation is returned to the primary device;
determining whether the second wireless model comprises one of the scanning rule, the reading rule, the writing rule, or the monitoring rule; and
in response to that the second wireless model does not comprise one of the scanning rule, the reading rule, the writing rule, or the monitoring rule, disconnecting the communication connection between the peripheral device and the primary device.
