Device control method and terminal

US12167481B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12167481-B2
Application numberUS-202017629971-A
CountryUS
Kind codeB2
Filing dateJul 20, 2020
Priority dateJul 26, 2019
Publication dateDec 10, 2024
Grant dateDec 10, 2024

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A terminal receives an input operation of adding a new device to a target account by a user. The terminal obtains device information of a to-be-added first device in response to the input operation, where the device information includes a MAC address of the first device. The terminal establishes a P2P connection to the first device based on the device information. After the terminal successfully establishes the P2P connection to the first device, the terminal displays the first device as an online device of the target account. The terminal receives a control operation entered by the user on the first device. The terminal sends a control instruction to the first device through the P2P connection in response to the control operation.

First claim

Opening claim text (preview).

What is claimed is: 1. A method, comprising: receiving, by a terminal, an input operation of beginning a process of adding a new device to a target account by a user; obtaining, by the terminal, device information of a to-be-added first device in response to the input operation, wherein the device information comprises a media access control (MAC) address of the first device; establishing, by the terminal, a peer-to-peer (P2P) connection to the first device based on the device information; after the terminal successfully establishes the P2P connection to the first device, displaying, by the terminal, the first device as an online device of the target account; receiving, by the terminal, a control operation entered by the user on the first device; and sending, by the terminal, a control instruction to the first device through the P2P connection in response to the control operation. 2. The method according to claim 1 , wherein obtaining, by the terminal, the device information of the to-be-added first device comprises: scanning, by the terminal, a two-dimensional code of the first device; and obtaining, by the terminal, the device information of the first device from the two-dimensional code. 3. The method according to claim 1 , wherein establishing, by the terminal, the P2P connection to the first device based on the device information comprises: negotiating, by the terminal based on the device information, with the first device about a wireless fidelity (Wi-Fi) protocol used for establishing the P2P connection corresponding to the input operation; and establishing, by the terminal, a P2P Wi-Fi connection to the first device according to the negotiated Wi-Fi protocol. 4. The method according to claim 3 , further comprising: before establishing, by the terminal, the P2P Wi-Fi connection to the first device according to the negotiated Wi-Fi protocol, negotiating, by the terminal based on the device information, with the first device about a key used for establishing the P2P connection corresponding to the input operation. 5. The method according to claim 4 , wherein the device information further comprises a pre-shared key (PSK) of the first device and a channel used by the first device; and wherein negotiating, by the terminal, based on the device information, with the first device about the Wi-Fi protocol used for establishing the P2P connection corresponding to the input operation comprises: sending, by the terminal, a first probe request frame to the first device based on the MAC address of the first device and the channel used by the first device, wherein the first probe request frame comprises a negotiation request, and the negotiation request negotiates with the first device about the Wi-Fi protocol used for establishing the P2P connection corresponding to the input operation; receiving, by the terminal, a first probe response frame sent by the first device, wherein the first probe response frame comprises an identifier that is of the Wi-Fi protocol and that is determined by the first device; and determining, by the terminal based on the identifier of the Wi-Fi protocol, the Wi-Fi protocol used for establishing the P2P connection corresponding to the input operation; and wherein negotiating, by the terminal based on the device information, with the first device about the key used for establishing the P2P connection corresponding to the input operation comprises: sending, by the terminal, a second probe request frame to the first device based on the MAC address of the first device and the channel used by the first device, wherein the second probe request frame comprises a first character string; receiving, by the terminal, a second probe response frame sent by the first device, wherein the second probe response frame comprises a second character string obtained after the first device encrypts the first character string; and decrypting, by the terminal, the second character string based on the PSK, to obtain a decrypted second key, and when the decrypted second character string is the same as the first character string, determining, by the terminal, the PSK as the key used for establishing the P2P connection corresponding to the input operation. 6. The method according to claim 1 , further comprising: after establishing, by the terminal, the P2P connection to the first device based on the device information, sending, by the terminal to the first device through the P2P connection, a service set identifier (SSID) and a password of a Wi-Fi network that is accessed by the terminal, causing the first device to access the Wi-Fi network by using the SSID and the password. 7. The method according to claim 6 , further comprising: after the first device accesses the Wi-Fi network using the SSID and the password, sending, by the terminal, a registration request to a server, wherein the registration request requests the server to register the first device as a registered device of the target account; and receiving, by the terminal, registration information sent by the server, and sending the registration information to the first device, causing the first device to register with the server as the registered device of the target account by using the registration information. 8. The method according to claim 6 , further comprising: after the first device accesses the Wi-Fi network using the SSID and the password, breaking, by the terminal, the P2P connection to the first device. 9. The method according to claim 6 , further comprising: after the first device accesses the Wi-Fi network by using the SSID and the password, while the P2P connection between the terminal and the first device is not broken, interacting, by the terminal, with the first device through the P2P connection. 10. The method according to claim 1 , wherein the first device is one or more of a smart television, a smart air conditioner, a smart refrigerator, a smart speaker, a smart light, or a smart curtain. 11. A method, comprising: establishing, by a first device, a peer to peer (P2P) connection to a terminal before accessing a network; receiving, by the first device through the P2P connection, a control instruction sent by the terminal through a first wireless fidelity (Wi-Fi) channel in a time division multiplexing manner; executing, by the first device, the control instruction; after establishing, by the first device, the P2P connection to the terminal before accessing the network obtaining, by the first device, a service set identifier (SSID) and a password of a wireless fidelity (Wi-Fi) network from the first device through the P2P connection; and accessing, by the first device, the Wi-Fi network by using the SSID and the password through a second Wi-Fi channel, wherein the first Wi-Fi channel is used to support the P2P connection between the first device and the terminal, and the second Wi-Fi channel is used to support interaction between the first device and an access point in the Wi-Fi network. 12. The method according to claim 11 , wherein establishing, by the first device, the P2P connection to the terminal before accessing the network comprises: negotiating, by the first device, with the terminal about a Wi-Fi protocol used for establishing the P2P connection; negotiating, by the first device, with the terminal about a key used for establishing the P2P connection; and establishing, by the first device, the P2P connection to the terminal according to the negotiated Wi-Fi protocol and the key. 13. The method according to claim 11 , further comprising: after accessing, by the first device, the Wi-Fi network using the SSID and the password obtaining

Assignees

Inventors

Classifications

  • WLAN [Wireless Local Area Networks] · CPC title

  • Authentication · CPC title

  • Peer-to-peer [P2P] networks · CPC title

  • Home automation networks · CPC title

  • Access point logical identity · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US12167481B2 cover?
A terminal receives an input operation of adding a new device to a target account by a user. The terminal obtains device information of a to-be-added first device in response to the input operation, where the device information includes a MAC address of the first device. The terminal establishes a P2P connection to the first device based on the device information. After the terminal successfull…
Who is the assignee on this patent?
Huawei Tech Co Ltd
What technology area does this patent fall under?
Primary CPC classification H04L12/2803. Mapped technology areas include Electricity.
When was this patent published?
Publication date Tue Dec 10 2024 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 9 related publications on this page (citations in our corpus or others sharing the same primary CPC).