Cross-network wake-up method and related device
AssigneeHuawei Cloud Computing Technologies Co., Ltd.
InventorHongge Guo
Life of this patent
Estimating the term…
Abstract
A cross-network wake-up method and a related device are disclosed. In the method, an Internet of things (IoT) platform sends a wake-up instruction to an agent device that maintains a heartbeat connection to the IoT platform, and then sends, through the agent device, a wake-up message to a to-be-woken-up IoT device deployed on a same private network as the agent device. This resolves a technical problem that after a public-private network address mapping becomes invalid, a message from the IoT platform cannot reach a IoT device through a network address translation (NAT) device, and the IoT device cannot receive messages from the IoT platform.
Claims13
A cross-network wake-up method, comprising:
- obtaining, by an agent device, a wake-up instruction sent by an Internet of things platform, wherein the wake-up instruction comprises a private network address of a to-be-woken-up Internet of things device;
- the agent device maintains, through a network address translation device, a heartbeat connection to the Internet of things platform deployed on a public network;
- and the agent device and N to-be-woken-up Internet of things devices are deployed on a same private network, wherein N is an integer greater than or equal to 1;
- and
- sending, by the agent device, a wake-up message to the to-be-woken-up Internet of things device based on the wake-up instruction using the private network address, wherein the wake-up message is used to indicate to the to-be-woken-up Internet of things device to send a connection request message to the Internet of things platform, and the connection request message is used to indicate to the Internet of things platform to connect to the to-be-woken-up Internet of things device.
An agent device, comprising:
- a central processing unit, a memory, an input/output interface, a wired or wireless network interface, and a power supply, wherein:
- the central processing unit is configured to communicate with the memory, and execute, on the agent device, an instruction operation stored in the memory, to:
- maintain, through a network address translation device, a heartbeat connection to an Internet of things platform deployed on a public network, wherein the agent device and N to-be-woken-up Internet of things devices are deployed on a same private network, and N is an integer greater than or equal to 1;
- obtain a wake-up instruction sent by the Internet of things platform, wherein the wake-up instruction comprises a private network address of a to-be-woken-up Internet of things device;
- the agent device;
- and
- send a wake-up message to the to-be-woken-up Internet of things device based on the wake-up instruction using the private network address, wherein the wake-up message is used to indicate to the to-be-woken-up Internet of things device to send a connection request message to the Internet of things platform, and the connection request message is used to indicate to the Internet of things platform to connect to the to-be-woken-up Internet of things device.
An Internet of things platform, comprising:
- a central processing unit, a memory, an input/output interface, a wired or wireless network interface, and a power supply, wherein:
- the central processing unit is configured to communicate with the memory, and execute, on the Internet of things platform, an instruction operation in the memory, to:
- send a wake-up instruction to an agent device, wherein the wake-up instruction comprises a private network address of a to-be-woken-up Internet of things device;
- the agent device maintains, through a network address translation device, a heartbeat connection to the Internet of things platform deployed on a public network;
- the agent device and the to-be-woken-up Internet of things device are deployed on a same private network;
- the wake-up instruction instructs the agent device to send a wake-up message to the to-be-woken-up device;
- and the wake-up message is used to indicate to the to-be-woken-up device to send a connection message to the Internet of things platform;
- receive the connection request message, wherein the connection request message comprises an identifier of the to-be-woken-up device;
- and
- connect to the to-be-woken-up device based on the connection request message.
Dependencies are inferred from the claim text.