# US 2023/0421647 A1 · Method for communicating between sweeping robot and base station, electronic 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 2023/0421647 A1
- Document ID: US20230421647A1
- Status: Published application
- Kind: A1
- Application number: 17/876,459
- Filed: 2022-07-28
- Published: 2023-12-28
- Earliest claimed: 2022-06-27
- Inventors: Guangyu HUA
- Web page: https://patentgrep.com/patent/US20230421647A1

## CPC

- H04L 67/51: Discovery or management thereof, e.g. service location protocol [SLP] or web services
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The present application relates to a method for communicating between a sweeping robot and a base station, an electronic device, and a computer-readable storage medium. The method for communicating between a sweeping robot and a base station includes: receiving and responding to, through a service party, a service request of a requesting party to send a service information to the requesting party, such that the requesting party selects a target service information in the service information after receiving the service information; and receiving, through the service party, the target service information sent by the requesting party, constructing a binary tree according to the target service information, and executing the target service based on the binary tree; the service party is the sweeping robot or the base station, and the requesting party is the base station or the sweeping robot corresponding to the service party.

## Claims

### Claim 1

A method for communicating between a sweeping robot and a base station, comprising:
receiving and responding to, by a service party, a service request sent by a requesting party to send a service information to the requesting party, and selecting a target service information in the service information after the requesting party has received the service information;
receiving, by the service party, the target service information sent by the requesting party, constructing a binary tree according to the target service information, and executing the target service based on the binary tree;
determining whether a priority of a new target service is higher than a priority of a target service currently executed when an execution condition of the new target service is generated;
suspending the target service currently executed through the service party, and preferentially executing the new target service when the priority of the new target service is higher than the priority of the target service currently executed; and
reconstructing a binary tree according to the target service information, and recovering to execute the target service based on the binary tree reconstructed after the new target service has been preferentially executed;
wherein the service party is one of a sweeping robot and a base station, and the requesting party is the other one of the base station and the sweeping robot corresponding to the service party;
wherein the target service information comprises a target service name and a target service parameter, and the constructing the binary tree according to the target service information comprises:
obtaining a target service instruction corresponding to the target service name and the target service parameter; and
storing the target service instruction as a binary tree structure;
wherein, the service information is a service information including all the services of the sweeping robot and the base station, and the target service instruction is configured for a mutual control and information interaction between the sweeping robot and the base station.

### Claim 2

(canceled)

### Claim 3 (depends on 1)

The method for communicating between a sweeping robot and a base station according to claim 1, wherein executing the target service based on the binary tree comprises:
sending an execution result of a current sub-tree of the binary tree to the requesting party, and determining a next execution sub-tree of the binary tree according to the execution result after the requesting party has received the execution result.

### Claim 4 (depends on 1)

The method for communicating between a sweeping robot and a base station according to claim 1, wherein receiving and responding to, through the service party, the service request of the requesting party comprises:
receiving and responding to, through the service party, a service request initiated by a remote device transmitted by the requesting party; and
executing the target service based on the binary tree comprises:
sending an execution result of a current sub-tree of the binary tree to the requesting party, transmitting the execution result to the remote device by the requesting party, and determining, through the remote device, a next execution sub-tree of the binary tree according to the execution result.

### Claim 5 (depends on 1)

The method for communicating between a sweeping robot and a base station according to claim 1, wherein receiving and responding to, through the service party, the service request of the requesting party comprises:
receiving, through the service party, one or more service requests sent by one or more requesting parties, and responding to a service request with a highest priority.

### Claim at position 6

6-7. (canceled)

### Claim 8

An electronic device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein when the computer program is executed by the processor, steps of a method are implemented, and the processor is further configured for:
receiving and responding to, by a service party, a service request sent by a requesting party to send a service information to the requesting party, and selecting a target service information in the service information after the requesting party has received the service information;
receiving, by the service party, the target service information sent by the requesting party, constructing a binary tree according to the target service information, and executing the target service based on the binary tree;
determining whether a priority of a new target service is higher than a priority of a target service currently executed when an execution condition of the new target service is generated;
suspending the target service currently executed through the service party, and preferentially executing the new target service when the priority of the new target service is higher than the priority of the target service currently executed; and
reconstructing a binary tree according to the target service information, and recovering to execute the target service based on the binary tree reconstructed after the new target service has been preferentially executed;
wherein the service party is one of a sweeping robot and a base station, and the requesting party is the other one of the base station and the sweeping robot corresponding to the service party;
wherein the target service information comprises a target service name and a target service parameter, and the constructing the binary tree according to the target service information comprises:
obtaining a target service instruction corresponding to the target service name and the target service parameter; and
storing the target service instruction as a binary tree structure;
wherein, the service information is a service information including all the services of the sweeping robot and the base station, and the target service instruction is configured for the mutual control and information interaction between the sweeping robot and the base station.

### Claim 9

(canceled)

### Claim 10 (depends on 8)

The electronic device according to claim 8, wherein executing the target service based on the binary tree comprises:
sending an execution result of a current sub-tree of the binary tree to the requesting party, and determining a next execution sub-tree of the binary tree according to the execution result after the requesting party has received the execution result.

### Claim 11 (depends on 8)

The electronic device according to claim 8, wherein receiving and responding to, through the service party, the service request of the requesting party comprises:
receiving and responding to, through the service party, a service request initiated by a remote device transmitted by the requesting party; and
executing the target service based on the binary tree comprises:
sending an execution result of a current sub-tree of the binary tree to the requesting party, transmitting the execution result to the remote device by the requesting party, and determining, through the remote device, a next execution sub-tree of the binary tree according to the execution result.

### Claim 12 (depends on 8)

The electronic device according to claim 8, wherein receiving and responding to, through the service party, the service request of the requesting party comprises:
receiving, through the service party, one or more service requests sent by one or more requesting parties, and responding to a service request with a highest priority.

### Claim at position 12

13-14. (canceled)

### Claim 15

A non-transitory computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, steps of a method are implemented, and
the processor is further configured for:
receiving and responding to, by a service party, a service request sent by a requesting party to send a service information to the requesting party, and selecting a target service information in the service information after the requesting party has received the service information; and
receiving, by the service party, the target service information sent by the requesting party, constructing a binary tree according to the target service information, and executing the target service based on the binary tree;
determining whether a priority of a new target service is higher than a priority of a target service currently executed when an execution condition of the new target service is generated;
suspending the target service currently executed through the service party, and preferentially executing the new target service when the priority of the new target service is higher than the priority of the target service currently executed; and
reconstructing a binary tree according to the target service information, and recovering to execute the target service based on the binary tree reconstructed after the new target service has been preferentially executed;
wherein the service party is one of a sweeping robot and a base station, and the requesting party is the other one of the base station and the sweeping robot corresponding to the service party;
wherein the target service information comprises a target service name and a target service parameter, and the constructing the binary tree according to the target service information comprises:
obtaining a target service instruction corresponding to the target service name and the target service parameter; and
storing the target service instruction as a binary tree structure;
wherein, the service information is a service information including all the services of the sweeping robot and the base station, and the target service instruction is configured for the mutual control and information interaction between the sweeping robot and the base station.

### Claim 16

(canceled)

### Claim 17 (depends on 15)

The non-transitory computer-readable storage medium according to claim 15, wherein executing the target service based on the binary tree comprises:
sending an execution result of a current sub-tree of the binary tree to the requesting party, and determining a next execution sub-tree of the binary tree according to the execution result after the requesting party has received the execution result.

### Claim 18 (depends on 15)

The non-transitory computer-readable storage medium according to claim 15, wherein receiving and responding to, through the service party, the service request of the requesting party comprises:
receiving and responding to, through the service party, a service request initiated by a remote device transmitted by the requesting party; and
executing the target service based on the binary tree comprises:
sending an execution result of a current sub-tree of the binary tree to the requesting party, transmitting the execution result to the remote device by the requesting party, and determining, through the remote device, a next execution sub-tree of the binary tree according to the execution result.

### Claim 19 (depends on 15)

The non-transitory computer-readable storage medium according to claim 15, wherein receiving and responding to, through the service party, the service request of the requesting party comprises:
receiving, through the service party, one or more service requests sent by one or more requesting parties, and responding to a service request with a highest priority.

### Claim 20

(canceled)
