# US 11,909,840 B2 · Resource subscription method, 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 11,909,840 B2
- Document ID: US11909840B2
- Status: Granted
- Kind: B2
- Application number: 17/737,939
- Filed: 2022-05-05
- Published: 2022-08-18
- Granted: 2024-02-20
- Earliest claimed: 2019-11-07
- Assignees: Guangdong Oppo Mobile Telecommunications Corp., Ltd.
- Applicants: Guangdong Oppo Mobile Telecommunications Corp., Ltd.
- Inventors: Xiaoqiang Lyu
- Web page: https://patentgrep.com/patent/US11909840B2

## CPC

- H04L 67/34: {involving the movement of software or configuration parameters (network booting or remote initial program loading [RIPL] G06F9/4416)}
- G06F 8/71: Version control (security arrangements therefor G06F21/57); Configuration management
- G06F 9/542: {Event management; Broadcasting; Multicasting; Notifications}
- G06Q 10/101: Collaborative creation, e.g. joint development of products or services
- H04L 67/55: Push-based network services
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR

## Abstract

The embodiments of the present application provide a resource subscription method, a device, and a storage medium, a subscription device and a resource collection device respectively maintain a current tag of a subscription resource, where the tag of the subscription resource is generated according to a generation rule, tags generated according to the generation rule have an association relationship; during a resource update process, the subscription device may determine whether a version is missing according to the current tag of the subscription resource transmitted by the resource collection device, a tag of the subscription resource stored locally and the generation rule. Since one or more versions before a current version of the target resource are stored on the resource collection device, the subscription device may request a missing version from the resource collection device when a version is missing, thereby ensuring that the user will not miss the subscription resource.

## Claims

### Claim 1

A resource subscription method applied to a subscription device, comprising:
receiving a resource update message transmitted by a resource collection device, wherein the resource update message comprises updated content of a target resource subscribed and a first tag of the target resource, and the first tag is a current tag of the target resource stored on the resource collection device;
determining whether a version of the target resource is missing according to the first tag, a second tag of the target resource stored locally, and a generation rule of tags, wherein tags generated according to the generation rule have an association relationship, the generation rule of tags used by the subscription device and a generation rule of tags used by the resource collection device are the same, and the second tag is a current tag of the target resource stored on the subscription device;
in case that no version of the target resource is missing, updating the second tag according to the resource update message; and
in case that the version of the target resource is missing, performing following operations:
transmitting a second request to the resource collection device, wherein the second request is used to confirm whether a missing version of the target resource is stored on the resource collection device, and the second request comprises a tag of the missing version of the target resource;
receiving a response to the second request from the resource collection device, wherein the response to the second request is used to notify whether the missing version of the target resource is stored on the resource collection device; and
acquiring the missing version of the target resource from the resource collection device and updating the second tag according to the resource update message, in case that the missing version of the target resource is determined to be stored on the resource collection device according to the response to the second request.

### Claim 2 (depends on 1)

The method according to claim 1, wherein before receiving the resource update message transmitted by the resource collection device, the method further comprises:
acquiring the current tag of the target resource from the resource collection device in a process of establishing a subscription relationship with the resource collection device.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the acquiring the current tag of the target resource from the resource collection device in the process of establishing the subscription relationship with the resource collection device comprises:
transmitting a subscription request to the resource collection device, wherein the subscription request is used to request a subscription of the target resource; and
receiving a response to the subscription request transmitted by the resource collection device, wherein the response to the subscription request comprises the current tag of the target resource.

### Claim 4 (depends on 2)

The method according to claim 2, wherein the subscription request comprises first indication information, and the first indication information is used to indicate whether to set a tag for the target resource.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the acquiring the missing version of the target resource from the resource collection device comprises:
determining the tag of the missing version of the target resource according to the first tag, the second tag, and the generation rule; and
requesting the missing version of the target resource from the resource collection device according to the tag of the missing version of the target resource.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the requesting the missing version of the target resource from the resource collection device according to the tag of the missing version of the target resource comprises:
transmitting a first request to the resource collection device, wherein the first request is used to request the missing version of the target resource, and the first request comprises the tag of the missing version of the target resource; and
receiving a response to the first request from the resource collection device, wherein the response to the first request comprises the missing version of the target resource.

### Claim 7

A subscription device, comprising:
a processor and a memory, wherein the memory is configured to store a computer program, and the processor is configured to call and run the computer program stored in the memory to:
control an input interface to receive a resource update message transmitted by a resource collection device, wherein the resource update message comprises updated content of a target resource subscribed and a first tag of the target resource, and the first tag is a current tag of the target resource stored on the resource collection device;
determine whether a version of the target resource is missing according to the first tag, a second tag of the target resource stored locally, and a generation rule of tags, wherein tags generated according to the generation rule have an association relationship, the generation rule of tags used by the subscription device and a generation rule of tags used by the resource collection device are the same, and the second tag is a current tag of the target resource stored on the subscription device;
in case that no version of the target resource is missing, update the second tag according to the resource update message;
in case that the version of the target resource is missing,
control an output interface to transmit a second request to the resource collection device, wherein the second request is used to confirm whether a missing version of the target resource is stored on the resource collection device, and the second request comprises the tag of the missing version of the target resource; and
control the input interface to: receive a response to the second request from the resource collection device, wherein the response to the second request is used to notify whether the missing version of the target resource is stored on the resource collection device; and acquire a missing version of the target resource from the resource collection device and update the second tag according to the resource update message, in case that the missing version of the target resource is determined to be stored on the resource collection device according to the response to the second request.

### Claim 8 (depends on 7)

The device according to claim 7, wherein the processor is further configured to:
control the input interface to acquire the current tag of the target resource from the resource collection device in a process of establishing a subscription relationship with the resource collection device before the receiving module receives the resource update message transmitted by the resource collection device.

### Claim 9 (depends on 8)

The device according to claim 8, wherein the processor is configured to:
control the output interface to transmit a subscription request to the resource collection device, wherein the subscription request is used to request a subscription of the target resource; and
control the input interface to receive a response to the subscription request transmitted by the resource collection device, wherein the response to the subscription request comprises the current tag of the target resource.

### Claim 10 (depends on 8)

The device according to claim 8, wherein the subscription request comprises first indication information, and the first indication information is used to indicate whether to set a tag for the target resource.

### Claim 11 (depends on 7)

The device according to claim 7, wherein the processor is configured to:
determine the tag of the missing version of the target resource according to the first tag, the second tag, and the generation rule; and
request the missing version of the target resource from the resource collection device according to the tag of the missing version of the target resource.
