WO2022111728A1 - 一种获取设备控制权的方法与通信系统 - Google Patents
一种获取设备控制权的方法与通信系统 Download PDFInfo
- Publication number
- WO2022111728A1 WO2022111728A1 PCT/CN2021/134426 CN2021134426W WO2022111728A1 WO 2022111728 A1 WO2022111728 A1 WO 2022111728A1 CN 2021134426 W CN2021134426 W CN 2021134426W WO 2022111728 A1 WO2022111728 A1 WO 2022111728A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- instruction
- cloud
- key
- owner
- control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/03—Protecting confidentiality, e.g. by encryption
- H04W12/037—Protecting confidentiality, e.g. by encryption of the control plane, e.g. signalling traffic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2816—Controlling appliance services of a home automation network by calling their functionalities
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0482—Interaction with lists of selectable items, e.g. menus
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C17/00—Arrangements for transmitting signals characterised by the use of a wireless electrical link
- G08C17/02—Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C23/00—Non-electrical signal transmission systems, e.g. optical systems
- G08C23/04—Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16Y—INFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
- G16Y40/00—IoT characterised by the purpose of the information processing
- G16Y40/30—Control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2816—Controlling appliance services of a home automation network by calling their functionalities
- H04L12/282—Controlling appliance services of a home automation network by calling their functionalities based on user interaction within the home
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2816—Controlling appliance services of a home automation network by calling their functionalities
- H04L12/2821—Avoiding conflicts related to the use of home appliances
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/06—Network architectures or network communication protocols for network security for supporting key management in a packet data network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/06—Network architectures or network communication protocols for network security for supporting key management in a packet data network
- H04L63/061—Network architectures or network communication protocols for network security for supporting key management in a packet data network for key exchange, e.g. in peer-to-peer networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/083—Network architectures or network communication protocols for network security for authentication of entities using passwords
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
- H04L63/107—Network architectures or network communication protocols for network security for controlling access to devices or network resources wherein the security policies are location-dependent, e.g. entities privileges depend on current location or allowing specific operations only from locally connected terminals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
- H04L63/108—Network architectures or network communication protocols for network security for controlling access to devices or network resources when the policy decisions are valid for a limited amount of time
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
- H04L67/125—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
- H04L9/088—Usage controlling of secret information, e.g. techniques for restricting cryptographic keys to pre-authorized uses, different access levels, validity of crypto-period, different key- or password length, or different strong and weak cryptographic algorithms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/14—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using a plurality of keys or algorithms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/72412—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/04—Key management, e.g. using generic bootstrapping architecture [GBA]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/04—Key management, e.g. using generic bootstrapping architecture [GBA]
- H04W12/047—Key management, e.g. using generic bootstrapping architecture [GBA] without using a trusted network node as an anchor
- H04W12/0471—Key exchange
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/08—Access security
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/60—Context-dependent security
- H04W12/63—Location-dependent; Proximity-dependent
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/33—Services specially adapted for particular environments, situations or purposes for indoor environments, e.g. buildings
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/70—Services for machine-to-machine communication [M2M] or machine type communication [MTC]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L2012/284—Home automation networks characterised by the type of medium used
- H04L2012/2841—Wireless
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L2012/2847—Home automation networks characterised by the type of home appliance used
- H04L2012/2849—Audio/video appliances
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/08—Protocols specially adapted for terminal emulation, e.g. Telnet
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72442—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
Definitions
- the present application relates to the field of terminal technologies, and in particular, to a method and a communication system for acquiring control rights of a device.
- IoT Internet of things
- various types of IoT devices have entered thousands of households, for example, various home appliances.
- the user's mobile terminal eg, mobile phone
- the user's mobile terminal can control the device.
- multiple users may use the same device, for example, there are multiple family members, and multiple family members need to use a certain home appliance, so how to manage the control rights of the device is worth considering.
- the purpose of the present application is to provide a method and a communication system for acquiring the control right of the device, which is helpful for conveniently acquiring the control right of the device.
- a method for acquiring control rights of a device is provided.
- the method can be applied to a system including a first device and a second device.
- the method includes: the first device detects that the second device is close to the first device. A device; the first device sends a first key to the second device; the second device uses the first key to encrypt a control instruction after receiving the first key; the The control command is used to control the first device; the second device sends the encrypted control command to the first device; the first device decrypts the encrypted control command to obtain the control command and Execute the control instruction.
- the first key of the first device can be obtained, and then the control right of the first device can be obtained based on the first key.
- This method of obtaining control over the device is more convenient. For example, if the first device is a home device and the second device is a mobile terminal (such as a mobile phone), when the user wants to control the home device, he only needs to bring the mobile phone close to the home device to obtain the control right of the home device. Convenience and high user experience.
- the method further includes: displaying first prompt information on the second device, where the first prompt information is used to prompt whether to apply for the temporary control right of the first device; the When the second device receives the confirmation instruction, it sends a first application to the first device, where the first application is used to instruct the second device to apply for the temporary control right of the first device; the first device Sending the first key to the second device includes: when the first device receives the first application from the second device, sending the first key to the second device.
- the first device when the first device detects that the second device is close to the first device, it can automatically send the first key to the first device.
- the first device when the first device detects that the second device is close, it temporarily does not send the first key to the second device, and sends the first key to the second device after receiving the first application from the second device. key.
- it is possible to prevent the key from being sent by mistake, for example, to prevent the user from carrying the second device close to the first device unintentionally, resulting in obtaining the temporary control right of the first device, so as to better protect the first device.
- the first key has a validity period, and when the validity period exceeds the validity period, the first key is invalid; wherein the validity period is preset, or set by the user, or, according to The type of the first device is determined; wherein, the validity periods of the first keys generated by different types of first devices are different.
- the key can be prevented from taking effect for a long time, and the security is improved, because the probability of the key being stolen for a long time is high and the security is low.
- the method further includes: when a preset condition is met, the temporary control right of the second device over the first device is terminated; wherein, the preset condition includes at least one of the following kind:
- the usage duration of the first key exceeds the validity period; or,
- a preset time period starts from the moment when the second device receives the first key.
- the first device detects that a third device is approaching the first device; or,
- An operation for terminating the temporary control right of the second device over the first device is detected on the first device; or,
- the first device receives an instruction from the owner of the first device, where the owner is a device that can control the first device through the cloud; the instruction is used to instruct the termination of the second device to the first device. temporary control of a device; or,
- the first device detects that the distance between the second device and the first device is greater than a second preset distance.
- the second device when the second device is close to the first device, the acquired control right over the first device does not always take effect, and when the above preset conditions are met, the control right is terminated. In this way, the security of the first device can be improved, and the second device can be prevented from grasping the control right of the first device for a long time.
- the system further includes a fourth device, where the fourth device is the owner of the first device, and the owner is a device that can control the first device through the cloud; Before a device sends the first key to the second device, it further includes:
- the first device sends a confirmation request to the fourth device; the confirmation request is used to confirm whether the second device is allowed to acquire the temporary control right of the first device;
- the first device sends the first key to the second device, including:
- the first device When the first device receives the consent instruction from the fourth device, it sends the first key to the second device.
- the first device when the first device detects that the second device is approaching, it can request confirmation from the owner of the first device, and when receiving the owner's consent instruction, send the first key to the second device.
- This method of sending the key to the second device requires the owner's consent, which can better protect the first device and has higher security.
- the first device sends a confirmation request to the fourth device, including:
- the cloud determines that the owner of the first device is the fourth device according to the mapping relationship between the device and the owner;
- the cloud sends the confirmation request to the fourth device.
- the cloud side records the owner of the device.
- the first device requests the owner's confirmation, it can be realized through the cloud.
- This method of sending the key to the second device requires the owner's consent, which is more secure.
- the method further includes: generating, by the first device, an authentication-free duration and/or an authentication-free number of times; after the temporary control right of the second device over the first device is terminated , when the first device detects that the second device approaches the first device again, and determines that the authentication-free time period has not exceeded, and/or, when the cumulative number of times of approaching the second device does not exceed the authentication-free times, exempt from the Confirm with the fourth device.
- the first device can generate the authentication-free duration and/or the authentication-free times, so as to avoid frequently requesting its owner for confirmation.
- sending the first key to the second device includes: the first device receives an instruction from the fourth device. After the fourth device agrees to the instruction, when the first device detects that the second device approaches the first device again, it sends the first key to the second device.
- the first device when the first device detects that the second device is approaching, it requests the owner to confirm, and after the owner agrees, if the first device detects that the second device is approaching again, it sends the key to the second device. This can avoid mis-sending of keys and improve security.
- the method further includes: determining, by the second device, a function in the first device that supports the temporary control right; the control instruction sent by the second device to the first device is used for Controlling a function in the first device that supports temporary control rights; wherein the function is a preset function in the first device, or a function specified by a user, or a function in the first device that has nothing to do with user privacy .
- the second device obtains the temporary control right of the first device, but the functions of the first device that can be controlled are limited, and the functions of the first device that support the temporary control right can be controlled, but other functions cannot be controlled.
- related functions in the first device for example, functions related to user privacy
- the first device can be better protected.
- the method further includes: displaying second prompt information on the second device, where the second prompt information is used to prompt whether to apply for permanent control of the first device;
- the second device When the second device receives the confirmation instruction, it sends a third application to the first device, where the third application is used to instruct the second device to apply for permanent control over the first device;
- the cloud records that the second device is the owner of the first device, so that the second device can control the first device through the cloud.
- the second device can also apply to become the owner of the first device.
- the second device can control the first device through the cloud.
- the cloud in response to the received third application, the cloud records that the second device is the owner of the first device, including:
- the cloud determines that the owner of the first device is a fourth device
- the cloud sends a confirmation request to the fourth device; the confirmation request is used to indicate whether the second device is approved to obtain the permanent control right of the first device;
- the cloud When the cloud receives the consent instruction, it is recorded that the owner of the first device is updated from the fourth device to the second device.
- the cloud can request the confirmation of the fourth device.
- the owner of the device is updated to the second device, so that the second device can control the first device through the cloud. This method requires the confirmation of the original owner to be more secure.
- the system further includes a fourth device, where the fourth device is the owner of the first device, and the owner is a device that can control the first device through the cloud; the method Also includes:
- a first operation is received on the fourth device, where the first operation is used to instruct to turn on the short-range communication function or the ultra-short-range communication function of the first device;
- the fourth device in response to the first operation, sends to the first device an instruction for instructing the first device to turn on the short-range communication function or the ultra-short-range communication function;
- the first device enables the short-range communication function or the ultra-short-range communication function in response to the received instruction.
- the owner of the first device may control to enable or disable the short-range communication function or the ultra-short-range communication function of the first device.
- the short-range communication function or the ultra-short-range communication function of the first device is enabled, if the second device also enables the short-range communication function or the ultra-short-range communication function, when the second device is close to the first device, the first device can be obtained. temporary control. This method controlled by the owner is more secure.
- the first device sends the first key to the second device, including:
- the first device sends the first key to the second device using NFC or WIFI Aware.
- NFC or WIFI Aware is only an example here, and other short-range communication technologies or ultra-short-range communication technologies are also possible, which are not limited in the embodiments of the present application.
- the first device detects that the second device is close to the first device, including:
- the first device detects that the distance between the second device and the first device is less than a first threshold; and/or,
- the first device detects that the signal strength of the second device is greater than a second threshold.
- the first device can judge whether the second device is close to the first device according to the distance or signal strength, and this short-range information exchange method is more secure.
- the first threshold is a value in the range of 0 cm to 30 cm; the second threshold is a value in the range of -5dbm to -150dbm.
- the first device is a household device
- the second device is a mobile terminal
- the control instruction is used to control the household device to be turned on, off, or to adjust operating parameters
- the Household equipment includes: one or more of televisions, speakers, game consoles, lighting equipment, cleaning equipment or cooking equipment.
- the control instructions can be to turn on or off, play a song XXX, switch to the next song, and so on.
- the first device is an office device
- the second device is a mobile terminal
- the control instruction is used to control the opening, closing or adjustment of operating parameters of the office device
- the Office equipment includes one or more of projectors, printers, copiers or PCs.
- the control command can turn on or off the printer, start printing, stop printing, suspend printing, and so on.
- a method for acquiring control rights of a device which is applied to a first device, and the method includes:
- the first device detects that the second device is proximate to the first device
- the first device receives the encrypted control instruction from the second device
- the first device decrypts the encrypted control instruction to obtain the control instruction and executes the control instruction.
- the first device sends the first key to the second device, including:
- the first device When the first device receives the first application from the second device, it sends the first key to the second device.
- the first key has a validity period, and when the validity period exceeds the validity period, the first key is invalid; wherein the validity period is preset, or set by the user, or, according to The type of the first device is determined; wherein, the validity periods of the first keys generated by different types of first devices are different.
- the method further includes: when a preset condition is met, terminating the temporary control right of the second device over the first device; wherein the preset condition includes at least one of the following kind:
- the usage duration of the first key exceeds the validity period; or,
- a preset time period starts from the moment when the second device receives the first key.
- the first device detects that a third device is approaching the first device; or,
- An operation for terminating the temporary control right of the second device over the first device is detected on the first device; or,
- the first device receives an instruction from the owner of the first device, where the owner is a device that can control the first device through the cloud; the instruction is used to instruct the termination of the second device to the first device. temporary control of a device; or,
- the first device detects that the distance between the second device and the first device is greater than a second preset distance.
- the method before the first device sends the first key to the second device, the method further includes:
- the first device sends a confirmation request to the fourth device;
- the confirmation request is used to confirm whether the second device is allowed to obtain the temporary control right of the first device;
- the fourth device is the first device's owner, the owner is a device that can control the first device through the cloud;
- the first device sends the first key to the second device, including:
- the first device When the first device receives the consent instruction from the fourth device, it sends the first key to the second device.
- the first device sends a confirmation request to the fourth device, including:
- the first device sends a second application to the cloud, where the second application is used to instruct the second device to apply for the temporary control right of the first device; so that the cloud responds to the received
- the owner of the first device is determined as the fourth device according to the mapping relationship between the device and the owner, and the confirmation request is sent to the fourth device.
- the method further includes: generating, by the first device, an authentication-free duration and/or an authentication-free number of times; after the temporary control right of the second device over the first device is terminated , when the first device detects that the second device approaches the first device again, and determines that the authentication-free time period has not exceeded, and/or, when the cumulative number of times of approaching the second device does not exceed the authentication-free times, exempt from the Confirm with the fourth device.
- sending the first key to the second device includes:
- the first device After the first device receives the consent instruction from the fourth device, when the first device detects that the second device approaches the first device again, it sends a first password to the second device. key.
- the method further includes: determining, by the first device, a function that supports the temporary control right in the first device; when the control instruction sent by the second device to the first device is used Execute the control instruction when controlling the function that supports the temporary control right in the first device;
- the function is a preset function in the first device, or a function specified by a user, or a function in the first device that has nothing to do with user privacy.
- the method further includes:
- the first device receives a third application from the second device, where the third application is used to instruct the second device to apply for permanent control over the first device;
- the first device sends the third application to the cloud, so that the cloud records the second device as the owner of the first device in response to the received third application, so that the first device is The second device can control the first device through the cloud.
- the method further includes:
- the first device receives an instruction from the fourth device; the instruction is used to instruct the first device to turn on the short-range communication function or the ultra-short-range communication function; the fourth device is the owner of the first device , the owner is a device that can control the first device through the cloud;
- the first device In response to the received instruction, the first device enables a short-range communication function or an ultra-short-range communication function.
- the first device sends the first key to the second device, including:
- the first device sends the first key to the second device using NFC or WIFI Aware.
- the first device detects that the second device is close to the first device, including:
- the first device detects that the distance between the second device and the first device is less than a first threshold; and/or,
- the first device detects that the signal strength of the second device is greater than a second threshold.
- the first threshold is a value in the range of 0 cm to 30 cm; the second threshold is a value in the range of -5dbm to -150dbm.
- the first device is a household device
- the second device is a mobile terminal
- the control instruction is used to control the household device to be turned on, off, or to adjust operating parameters
- the Household equipment includes: one or more of televisions, speakers, game consoles, lighting equipment, cleaning equipment, or cooking equipment; or,
- the first device is an office device
- the second device is a mobile terminal
- the control instruction is used to control the opening, closing or adjustment of operating parameters of the office device
- the office device includes: a projector, a printer , one or more of a copier or a PC.
- a method for acquiring control rights of a device is also provided, which is applied to a second device, and the method includes:
- the second device detects proximity to the first device
- the second device receives the first key from the first device
- the second device uses the first key to encrypt a control instruction; the control instruction is used to control the first device;
- the second device sends the encrypted control instruction to the first device.
- the method before the second device receives the first key from the first device, the method further includes:
- the second device When the second device receives the confirmation instruction, it sends a first application to the first device, where the first application is used to instruct the second device to apply for the temporary control right of the first device;
- the first key has a validity period, and when the validity period exceeds the validity period, the first key is invalid; wherein the validity period is preset, or set by the user, or, according to The type of the first device is determined; wherein, the validity periods of the first keys generated by different types of first devices are different.
- the method further includes: when a preset condition is met, terminating the temporary control right of the second device over the first device; wherein the preset condition includes at least one of the following kind:
- the usage duration of the first key exceeds the validity period; or,
- a preset time period starts from the moment when the second device receives the first key.
- An operation for terminating the temporary control right of the first device by the second device is detected on the second device; or,
- the second device detects that the distance between the second device and the first device is greater than a second preset distance.
- the method further includes:
- the second device determines the function that supports the temporary control right in the first device; the control instruction sent by the second device to the first device is used to control the function that supports the temporary control right in the first device;
- the function is a preset function in the first device, or a function specified by a user, or a function in the first device that has nothing to do with user privacy.
- the method further includes:
- second prompt information is displayed on the second device, and the second prompt information is used to prompt whether to apply for the permanent control right of the first device;
- the second device When the second device receives the confirmation instruction, it sends a third application to the first device, where the third application is used to instruct the second device to apply for permanent control over the first device;
- the first device applies to the cloud for the second device to be the owner of the first device.
- the second device receives the first key from the first device, including:
- a first key is received from the first device using NFC or WIFI Aware.
- the second device detects proximity to the first device, including:
- the distance between the second device and the first device is less than a first threshold
- the signal strength of the second device is detected to be greater than a second threshold.
- the first threshold is a value in the range of 0 cm to 30 cm; the second threshold is a value in the range of -5dbm to -150dbm.
- the first device is a home device
- the second device is a mobile terminal
- the control instruction is used to control the home device to be turned on, off, or to adjust operating parameters
- the The household equipment includes: one or more of televisions, speakers, game consoles, lighting equipment, cleaning equipment or cooking equipment; or, the first equipment is office equipment, the second equipment is a mobile terminal, and the The control instructions are used to control the opening, closing or adjustment of operating parameters of the office equipment; wherein, the office equipment includes one or more of a projector, a printer, a copier or a PC.
- a method for acquiring control rights of a device which is applied to a fourth device, and the method includes:
- the fourth device applies to become the owner of the first device in the cloud; the owner is used to indicate a device that can control the first device through the cloud;
- the fourth device receives a confirmation request from the first device; the confirmation request is used to confirm whether the second device is approved to obtain the control right of the first device;
- the fourth device When the fourth device detects the confirmation operation, it sends an consent instruction to the first device, where the consent instruction is used to instruct the second device to obtain the control right of the first device.
- the method further includes: receiving a first operation on the fourth device, where the first operation is used to instruct to turn on the short-range communication function or ultra-short-range communication of the first device Function;
- the fourth device in response to the first operation, sends to the first device an instruction for instructing the first device to turn on the short-range communication function or the ultra-short-range communication function;
- the first device enables the short-range communication function or the ultra-short-range communication function in response to the received instruction.
- the fourth device may be a mobile terminal, such as a mobile phone, a tablet computer, a wristband, a watch, and the like
- the first device may be a home device, an office device, and the like.
- a method for acquiring control rights of a device is also provided, which is applied to the cloud, and the method includes:
- the cloud determines that the owner of the first device is the fourth device according to the mapping relationship between the device and the owner; the owner is used to indicate a device that can control the first device through the cloud;
- the cloud sends a confirmation request to the fourth device; the confirmation request is used to indicate whether the second device is allowed to obtain the control right of the first device;
- the cloud When the cloud receives the consent instruction from the fourth device, the cloud sends the consent instruction to the first device, where the consent instruction is used to instruct the second device to obtain the control right of the first device.
- the method when the application is used to instruct the second device to apply for being the owner of the first device, the method further includes:
- the cloud records that the owner of the first device is updated from the fourth device to the second device.
- a communication system including: a first device and a second device;
- the first device includes: one or more processors, a memory, and one or more programs; wherein, the one or more programs are stored in the memory, the one or more programs Including an instruction, when the instruction is executed by the first device, the first device is caused to perform the following steps:
- the second device comprising: one or more processors, a memory, and one or more programs; wherein the one or more programs are stored in the memory, the one or more programs comprising instructions , when the instruction is executed by the second device, the second device is caused to perform the following steps:
- the control instruction is used to control the first device
- the first device When the first device executes, the first device further executes the step of: decrypting the encrypted control instruction to obtain the control instruction and executing the control instruction.
- the second device when the instruction is executed by the second device, the second device is caused to further perform the steps:
- first prompt information is used to prompt whether to apply for the temporary control right of the first device
- the first device When the instruction is executed by the first device, the first device is caused to specifically execute the steps:
- the first key is sent to the second device.
- the first key has a validity period, and when the validity period exceeds the validity period, the first key is invalid; wherein the validity period is preset, or set by the user, or, according to The type of the first device is determined; wherein, the validity periods of the first keys generated by different types of first devices are different.
- the first device when the instruction is executed by the first device, the first device is caused to further perform the step of: when a preset condition is satisfied, terminating the second device's response to the first device Temporary control rights; wherein, the preset conditions include at least one of the following:
- the usage duration of the first key exceeds the validity period; or,
- a preset time period starts from the moment when the second device receives the first key.
- the first device detects that a third device is approaching the first device; or,
- An operation for terminating the temporary control right of the second device over the first device is detected on the first device; or,
- the first device receives an instruction from the owner of the first device, where the owner is a device that can control the first device through the cloud; the instruction is used to instruct the termination of the second device to the first device. temporary control of a device; or,
- the first device detects that the distance between the second device and the first device is greater than a second preset distance.
- the communication system further includes a fourth device and a cloud, where the fourth device is an owner of the first device, and the owner is an owner who can control the first device through the cloud. device; when the instruction is executed by the first device, the first device is caused to specifically perform the steps: sending a confirmation request to the fourth device; the confirmation request is used to confirm whether the second device agrees to acquire temporary control of the first device;
- the first key is sent to the second device upon receipt of the consent instruction from the fourth device.
- the first device when the instruction is executed by the first device, the first device is caused to specifically perform the step of: sending a second application to the cloud, where the second application is used to instruct the The second device applies for the temporary control right of the first device;
- the cloud includes: one or more processors, memory, and one or more programs; wherein, the one or more programs are stored in the memory, and the one or more programs include instructions, when When the instruction is executed by the cloud, the cloud is caused to perform the following steps:
- the cloud determines that the owner of the first device is the fourth device according to the mapping relationship between the device and the owner;
- the confirmation request is sent to the fourth device.
- the first device when the instruction is executed by the first device, the first device is caused to further perform the step of: generating an authentication-free duration and/or the number of times of authentication-free;
- the first device detects that the second device approaches the first device again, it is determined that the authentication-free time period is not exceeded, and/or , when the cumulative number of times of approaching the second device does not exceed the number of times of exemption from authentication, the confirmation from the fourth device is exempted.
- the first device when the instruction is executed by the first device, the first device is caused to specifically execute the step: after receiving the consent instruction from the fourth device, when the first device When it is detected that the second device approaches the first device again, a first key is sent to the second device.
- the second device when the instruction is executed by the second device, the second device is caused to further perform the steps:
- the control instruction sent by the second device to the first device is used to control the function of the first device that supports the temporary control right;
- the function is a preset function in the first device, or a function specified by a user, or a function in the first device that has nothing to do with user privacy.
- system further includes a cloud
- the second device When the instruction is executed by the second device, the second device is caused to further perform the steps:
- the second prompt information is displayed on the second device, and the second prompt information is used to prompt whether to apply for the permanent control right of the first device;
- the second device When the second device receives the confirmation instruction, it sends a third application to the first device, where the third application is used to instruct the second device to apply for permanent control over the first device;
- the first device When the instruction is executed by the first device, the first device is caused to further execute the step: the first device sends the third application to the cloud;
- the cloud includes: one or more processors, memory, and one or more programs; wherein, the one or more programs are stored in the memory, and the one or more programs include instructions, when When the instruction is executed by the cloud, the cloud is caused to perform the following steps:
- the cloud when the instruction is executed by the cloud, the cloud is caused to specifically execute the steps:
- the cloud determines that the owner of the first device is a fourth device
- the cloud sends a confirmation request to the fourth device; the confirmation request is used to indicate whether the second device is approved to obtain the permanent control right of the first device;
- the cloud When the cloud receives the consent instruction, it is recorded that the owner of the first device is updated from the fourth device to the second device.
- the system further includes a fourth device, where the fourth device is the owner of the first device, and the owner is a device that can control the first device through the cloud;
- the fourth device includes: one or more processors, a memory, and one or more programs; wherein the one or more programs are stored in the memory, the one or more programs comprising instructions , when the instruction is executed by the fourth device, causing the fourth device to perform the following steps:
- a first operation is received on the fourth device, where the first operation is used to instruct to turn on the short-range communication function or the short-range communication function of the first device;
- the fourth device in response to the first operation, sends to the first device an instruction for instructing the first device to turn on the short-range communication function or the short-range communication function;
- the first device When the instruction is executed by the first device, the first device is caused to perform the following step: in response to the received instruction, enable a short-range communication function or a short-range communication function.
- the first device when the instruction is executed by the first device, the first device is caused to specifically execute the steps:
- the first device sends the first key to the second device using NFC or WIFI Aware.
- the first device when the instruction is executed by the first device, the first device is caused to specifically execute the steps:
- the first device detects that the distance between the second device and the first device is less than a first threshold; and/or,
- the first device detects that the signal strength of the second device is greater than a second threshold.
- the first threshold is a value in the range of 0 cm to 30 cm; the second threshold is a value in the range of -5dbm to -150dbm.
- the first device is a home device
- the second device is a mobile terminal
- the control instruction is used to control the home device to be turned on, off, or to adjust operating parameters
- the Household equipment includes: one or more of televisions, speakers, game consoles, lighting equipment, cleaning equipment, or cooking equipment; or,
- the first device is an office device
- the second device is a mobile terminal
- the control instruction is used to control the opening, closing or adjustment of operating parameters of the office device
- the office device includes: a projector, a printer , one or more of a copier or a PC.
- an embodiment of the present application further provides an electronic device, comprising: one or more processors, a memory, and one or more programs; wherein, the one or more programs are stored in the memory , the one or more programs include instructions that, when executed by the electronic device, cause the electronic device to perform the method provided in any one of the second to fifth aspects above.
- an embodiment of the present application further provides an electronic device, the electronic device includes modules/units for executing the methods provided in any one of the second to fifth aspects; these modules/units may be implemented by hardware, The corresponding software implementation can also be executed by hardware.
- an embodiment of the present application further provides a chip, which is coupled to a memory in an electronic device and used to call a computer program stored in the memory and execute any one of the first to fifth aspects of the embodiments of the present application.
- the technical solution provided by the aspect; "coupled" in the embodiments of the present application means that two components are directly or indirectly combined with each other.
- an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium includes a computer program, and when the computer program runs on a computer, causes the computer to execute the above-mentioned first to sixth aspects.
- an embodiment of the present application further provides a program product, including instructions, when the instructions are run on a computer, the computer is made to execute the technology provided in any one of the first to fifth aspects above Program.
- embodiments of the present application further provide a graphical user interface on an electronic device, where the electronic device has a display screen, one or more memories, and one or more processors, the one or more processing
- the computer is configured to execute one or more computer programs stored in the one or more memories, and the graphical user interface includes the information displayed when the electronic device executes the technical solutions provided in any one of the second aspect to the fifth aspect.
- GUI graphical user interface
- FIG. 1A is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
- FIG. 1B is a schematic diagram of a software structure of an electronic device provided by an embodiment of the present application.
- FIG. 2 is a schematic diagram of a communication system provided by an embodiment of the present application.
- FIG. 3 is a schematic diagram of an application scenario provided by an embodiment of the present application.
- 4A is a schematic flowchart of a second device becoming the owner of the first device according to an embodiment of the present application
- 4B to 4D are schematic diagrams of a GUI of a second device provided by an embodiment of the application.
- 5A is a schematic flowchart of a method for acquiring a device control right provided by an embodiment of the present application
- 5B is a schematic diagram of a GUI of a second device provided by an embodiment of the present application.
- 5C is a schematic diagram of another communication system provided by an embodiment of the present application.
- 5D is a schematic diagram of a third device approaching the first device according to an embodiment of the present application.
- 6A is a schematic diagram of another process of a method for acquiring a device control right provided by an embodiment of the present application.
- 6B is a schematic diagram of GUIs of a second device and a third device provided by an embodiment of the application.
- 6C is a schematic diagram of a GUI of a second device provided by an embodiment of the present application.
- FIG. 7A is a schematic diagram of still another process of a method for acquiring a device control right provided by an embodiment of the present application.
- FIGS. 7B to 7C are schematic diagrams of GUIs of a third device provided by an embodiment of the application.
- FIG. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
- multiple applications may be installed in an electronic device.
- camera application For example, camera application, SMS application, MMS application, image application, various mailbox applications, WeChat (WeChat), Tencent chat software (QQ), WhatsApp Messenger, Line, photo sharing (instagram), Kakao Talk, or DingTalk etc.
- the applications mentioned below can be applications that have been installed when the electronic device leaves the factory, or applications that are downloaded from the network or acquired from other electronic devices by the user during the use of the electronic device (for example, applications sent by other electronic devices) .
- the following mainly takes Huawei Smart Life application as an example to introduce, but for other types of applications, this solution is also applicable.
- short-distance communication is a communication technology whose communication distance is less than a first threshold
- ultra-short-distance communication is, for example, a communication technology whose communication distance is less than a second threshold, wherein the second threshold is less than the first threshold, for example, the second threshold may be 0cm to Any value in the range of 30cm; eg, 30cm, 20cm, 10cm, 5cm, 4cm, 3cm, 2cm, 1cm, etc.
- the first threshold value can be any value in the range of 30cm to 10m, such as 10m, 8m, 5m, 3m, 1m, etc. It should be noted that the value here is only an example, not a Specific definition of the second threshold.
- ultra-short-range communication supports shorter communication distances.
- an exemplary scenario is that the first device is close to the second device to implement communication between the first device and the second device.
- the "closeness" here can be understood as the two devices are in contact, or basically in contact (for example, the two devices are very close), in a word, the distance between the two devices is very short, for example, within the range of 0cm to 5cm.
- the method for acquiring the control right of a device provided in this application can be applied to short-range communication or ultra-short-range communication.
- This article mainly introduces ultra-short-range communication as an example. Since the communication distance supported by ultra-short-range communication technology is very short, the probability of information being stolen is low, and the security is high.
- Wi-Fi Aware technology is responsible for the perception and discovery part of Wi-Fi technology, which can help Wi-Fi devices perceive surrounding services, such as surrounding devices, and then realize the communication between two devices in close proximity through Wi-Fi Aware.
- Peer to Peer (P2P) message interaction is responsible for the perception and discovery part of Wi-Fi technology, which can help Wi-Fi devices perceive surrounding services, such as surrounding devices, and then realize the communication between two devices in close proximity through Wi-Fi Aware.
- P2P Peer to Peer
- WIFI-Aware can sense surrounding devices, it can realize various functions, such as sensing nearby people and establishing connections, then adding friends, playing the same game, etc.; or, discovering surrounding devices, realizing photo sharing or location sharing, and more; or securely send files to a printer without access to a network (such as cellular or wireless), and more.
- a network such as cellular or wireless
- ultra-short-range communication technologies that may appear in the future can also be applied to this solution.
- ultra-short-range communication may also be supported in the future, which may also be applicable to this solution.
- the temporary control right can be obtained based on the ultra-short-range communication technology.
- the mobile phone obtains temporary control of the speaker through ultra-short-range communication technology (such as NFC or Wi-Fi Aware).
- ultra-short-range communication technology such as NFC or Wi-Fi Aware.
- the temporary control right becomes invalid. , you can gain temporary control again.
- the temporary control right can also be acquired through the short-range communication technology, which is not limited in the embodiment of the present application. This paper mainly takes the use of ultra-distance communication technology to obtain temporary control rights as an example, and the specific implementation process will be introduced later.
- the first device can control the second device through the cloud.
- the first device needs to register as the owner of the second device in the cloud.
- the cloud will record that the owner of the second device is the first device, so that the first device can control the second device through the cloud.
- this control method is relatively long-term. Unless the first terminal cancels becoming the owner of the second terminal, the cloud records that when the first device is no longer the owner of the second device, the first device can no longer pass through the cloud. Control the second device.
- this article refers to this control method through the cloud as permanent control or long-term control, etc.
- “permanent” or “long-term” does not mean “from beginning to end” , “forever”, etc., but means that the second device can control the first device through the cloud during the period when the cloud side records that the second device is the owner of the first device.
- At least one refers to one or more, and “multiple” refers to two or more.
- And/or which describes the relationship of the associated objects, indicates that there can be three kinds of relationships, for example, A and/or B, it can indicate that A exists alone, A and B exist at the same time, and B exists alone, where A, B can be singular or plural.
- the character “/” generally indicates that the associated objects are an “or” relationship.
- At least one item(s) below” or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s).
- At least one (a) of a, b, or c may represent: a, b, c, a and b, a and c, b and c, or, a and b and c, where a, b ,c can be single or multiple.
- ordinal numbers such as “first” and “second” mentioned in the embodiments of the present application are used to distinguish multiple objects, and are not used to limit the size, content, order, and timing of multiple objects , priority or importance, etc.
- the first device, the second device, and the third device are only used to distinguish different devices, but do not indicate differences in the priority or importance of these devices.
- the method for acquiring device control rights provided by the embodiments of the present application can be applied to electronic devices.
- the following describes electronic devices, a graphical user interface (GUI) for such electronic devices, and methods for using such electronic devices example.
- the electronic device may be a portable electronic device, such as a mobile phone, a PAD, a portable computer, a wearable device with a wireless communication function (such as a smart watch, smart glasses, smart bracelet, or smart helmet, etc.), or in-vehicle equipment, etc.
- portable electronic devices include, but are not limited to, carry-on Or portable electronic devices with other operating systems.
- the above-mentioned electronic device may not be a portable device, for example, it may also be a desktop computer, such as a PC, or may also be a device such as a television.
- FIG. 1A shows a schematic structural diagram of an electronic device 100 .
- the illustrated electronic device 100 is only an example and that the electronic device 100 may have more or fewer components than those shown, two or more components may be combined, or may have different Parts configuration.
- the various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
- the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, Antenna 2, Mobile Communication Module 150, Wireless Communication Module 160, Audio Module 170, Speaker 170A, Receiver 170B, Microphone 170C, Headphone Jack 170D, Sensor Module 180, Key 190, Motor 191, Indicator 192, Camera 193, Display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195 and the like.
- SIM subscriber identification module
- the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
- the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
- different processing units may be independent devices, or may be integrated in one or more processors.
- the controller can be the nerve center and command center of the electronic device. The controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
- a memory may also be provided in the processor 110 for storing instructions and data.
- the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
- the USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
- the USB interface 130 can be used to connect a charger to charge the electronic device, and can also be used to transmit data between the electronic device and peripheral devices.
- the charging management module 140 is used to receive charging input from the charger.
- the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
- the power management module 141 receives input from the battery 142 and/or the charging management module 140 and supplies power to the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .
- the wireless communication function of the electronic device can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
- Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in an electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
- the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
- the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G etc. applied on the electronic device.
- the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
- the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
- the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
- at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
- at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
- the wireless communication module 160 can provide applications on electronic devices including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
- WLAN wireless local area networks
- BT wireless fidelity
- GNSS global navigation satellite system
- frequency modulation frequency modulation
- FM near field communication technology
- NFC near field communication
- IR infrared technology
- the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives the electromagnetic wave via the antenna 2, frequency modulates and filters the electromagnetic wave signal, and sends the processed signal to the processor 110.
- the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna
- the antenna 1 of the electronic device is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device can communicate with the network and other devices through wireless communication technology.
- the wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
- the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
- GPS global positioning system
- GLONASS global navigation satellite system
- BDS Beidou navigation satellite system
- QZSS quasi-zenith satellite system
- SBAS satellite based augmentation systems
- the display screen 194 is used to display the display interface of the application and the like.
- Display screen 194 includes a display panel.
- the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
- LED diode AMOLED
- flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
- the electronic device may include 1 or N display screens 194 , where N is a positive integer greater than 1.
- Camera 193 is used to capture still images or video.
- the camera 193 may include a front camera and a rear camera.
- Internal memory 121 may be used to store computer executable program code, which includes instructions.
- the processor 110 executes various functional applications and data processing of the electronic device by executing the instructions stored in the internal memory 121 .
- the internal memory 121 may include a storage program area and a storage data area.
- the storage program area may store the operating system, and the software code of at least one application (eg, iQIYI application, WeChat application, etc.).
- the storage data area can store data (such as images, videos, etc.) generated during the use of the electronic device.
- the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
- the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device.
- the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. Such as saving pictures, videos and other files in an external memory card.
- the electronic device can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor. Such as music playback, recording, etc.
- the pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
- the pressure sensor 180A may be provided on the display screen 194 .
- the gyro sensor 180B can be used to determine the motion attitude of the electronic device.
- the angular velocity of the electronic device about three axes ie, the x, y, and z axes
- the gyro sensor 180B can be used for image stabilization.
- the air pressure sensor 180C is used to measure air pressure.
- the electronic device calculates the altitude from the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
- the magnetic sensor 180D includes a Hall sensor.
- the electronic device can use the magnetic sensor 180D to detect the opening and closing of the flip holster.
- the electronic device when the electronic device is a flip machine, the electronic device can detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
- the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device in various directions (generally three axes).
- the magnitude and direction of gravity can be detected when the electronic device is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
- Distance sensor 180F for measuring distance.
- Electronic devices can measure distances by infrared or laser. In some embodiments, when shooting a scene, the electronic device can use the distance sensor 180F to measure the distance to achieve fast focusing.
- Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
- the light emitting diodes may be infrared light emitting diodes.
- Electronic devices emit infrared light outward through light-emitting diodes.
- Electronic devices use photodiodes to detect reflected infrared light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object in the vicinity of the electronic device.
- the electronic device can determine that there is no object in the vicinity of the electronic device.
- the electronic device can use the proximity light sensor 180G to detect that the user holds the electronic device close to the ear to talk, so as to automatically turn off the screen to save power.
- Proximity light sensor 180G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
- the ambient light sensor 180L is used to sense ambient light brightness.
- the electronic device can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
- the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
- the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device is in the pocket to prevent accidental touch.
- the fingerprint sensor 180H is used to collect fingerprints. Electronic devices can use the collected fingerprint characteristics to unlock fingerprints, access application locks, take photos with fingerprints, and answer incoming calls with fingerprints.
- the temperature sensor 180J is used to detect the temperature.
- the electronic device utilizes the temperature detected by the temperature sensor 180J to implement a temperature handling strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device may reduce the performance of the processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection.
- the electronic device when the temperature is lower than another threshold, the electronic device heats the battery 142 to avoid abnormal shutdown of the electronic device caused by the low temperature.
- the electronic device boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
- Touch sensor 180K also called “touch panel”.
- the touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
- the touch sensor 180K is used to detect a touch operation on or near it.
- the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
- Visual output related to touch operations may be provided through display screen 194 .
- the touch sensor 180K may also be disposed on the surface of the electronic device, which is different from the location where the display screen 194 is located.
- the bone conduction sensor 180M can acquire vibration signals.
- the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
- the bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal.
- the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
- the electronic device may receive key input and generate key signal input related to user settings and function control of the electronic device.
- Motor 191 can generate vibrating cues.
- the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, playing audio, etc.) can correspond to different vibration feedback effects.
- the indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
- the SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device.
- FIG. 1A do not constitute a specific limitation on the mobile phone.
- Cell phones in embodiments of the present invention may include more or fewer components than in Figure 1A.
- the combination/connection relationship between the components in FIG. 1A can also be adjusted and modified.
- FIG. 1B is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present application.
- the software structure of the electronic device 100 may be a layered architecture, for example, the software may be divided into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces.
- the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer (framework, FWK), an Android runtime (Android runtime) and system libraries, and a kernel layer.
- the application layer can include a series of application packages. As shown in FIG. 1B , the application layer may include cameras, settings, skin modules, user interface (UI), third-party applications, and the like. Among them, the three-party applications can include WeChat, QQ, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and so on.
- UI user interface
- the three-party applications can include WeChat, QQ, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and so on.
- the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
- the application framework layer can include some predefined functions. As shown in FIG. 1B, the application framework layer may include window managers, content providers, view systems, telephony managers, resource managers, notification managers, and the like.
- a window manager is used to manage window programs.
- the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc.
- Content providers are used to store and retrieve data and make these data accessible to applications.
- the data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.
- the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications.
- a display interface can consist of one or more views.
- the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
- the phone manager is used to provide the communication function of the electronic device. For example, the management of call status (including connecting, hanging up, etc.).
- the resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on.
- the notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a brief pause without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
- the notification manager can also display notifications in the status bar at the top of the system in the form of graphs or scroll bar text, such as notifications of applications running in the background, and notifications on the screen in the form of dialog windows. For example, text information is prompted in the status bar, a prompt sound is issued, the electronic device vibrates, and the indicator light flashes.
- the Android runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
- the core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
- the application layer and the application framework layer run in virtual machines.
- the virtual machine executes the java files of the application layer and the application framework layer as binary files.
- the virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
- a system library can include multiple functional modules. For example: surface manager (surface manager), media library (media library), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
- surface manager surface manager
- media library media library
- 3D graphics processing library eg: OpenGL ES
- 2D graphics engine eg: SGL
- the Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
- the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
- the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
- the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
- 2D graphics engine is a drawing engine for 2D drawing.
- system library may further include a backup judging module for judging whether the file exists in the backup list. For example, when the file exists in the backed up list, the backup determination module determines that the file does not need to be backed up; for another example, when the file does not exist in the backed up list, the backup determination module determines that the file needs to be backed up.
- the kernel layer is the layer between hardware and software.
- the kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.
- the hardware layer may include various types of sensors, for example, an acceleration sensor, a gyroscope sensor, and a touch sensor involved in the embodiments of the present application.
- the touch sensor 180K on the first device receives a user's touch operation, and a corresponding hardware interrupt is sent to the kernel layer.
- the kernel layer processes touch operations into raw input events (including touch coordinates, timestamps of touch operations, etc.).
- Raw input events are stored at the kernel layer.
- the application framework layer obtains the original input event from the kernel layer, and identifies the control corresponding to the input event. Take the touch operation as a touch click operation, and the control corresponding to the click operation is the wifi icon as an example, the wifi module calls the interface of the application framework layer to start the wifi, such as starting the wifi Aware function.
- the user can activate the wifi Aware function on the second device, then the second device can discover the first device through wifi Aware, and the first device can also discover the second device through the second device.
- the first device discovers the second device, it sends the key to the second device through the wifi Aware technology.
- the second device receives the key, it obtains temporary control over the first device.
- the second device sends a control command encrypted by the key to the first device, and the first device receives the encrypted control command.
- the specific content of the control instruction is obtained and then executed, so that the temporary control of the first device by the second device is realized.
- FIG. 2 is a schematic diagram of a system provided in this application.
- the system includes a first device, a second device and a third device.
- the first device is the controlled device.
- the second device or the third device may be the owner of the first device. Taking the second device as the owner of the first device as an example, if the third device also controls the first device, the control right of the first device can be obtained.
- the user enters the third user account of the third device on the owner of the first device (ie, the second device), and the second device sends a sharing application to the cloud to request the cloud to change the owner of the first device to third device.
- the cloud receives the sharing application, it can record that the owner of the first device is changed to the third device.
- the third device can remotely control the first device through the cloud, that is, the permanent control right of the first device is obtained.
- Another way is: the user scans the QR code set on the third device with the owner of the first device (ie the second device) to obtain the third user account of the third device, and then uses the previous method to obtain the first device permanent control.
- the user finds multiple devices to be shared on the owner of the first device (that is, the second device), the user selects one of the devices to be shared, that is, the third device, and then the second device sends an application to create a share to the cloud,
- the cloud returns a shareCode.
- the Owner sends the shareCode to the third device (for example, through an instant messaging application), and the third device sends a confirmation command to the cloud, where the confirmation command includes the shareCode.
- the owner of the first device is changed from the second device to the third device.
- the owner of the first device actively shares the permanent control right of the first device to the third device.
- the owner's active sharing method is used for each device, the operation is cumbersome and the owner's pressure is great.
- an embodiment of the present application provides a method for acquiring control rights of a device, in which a third device can acquire temporary control rights over the first device through an ultra-short-range communication technology (or short-range communication technology), without the need for a third device
- a third device can acquire temporary control rights over the first device through an ultra-short-range communication technology (or short-range communication technology), without the need for a third device
- the owner of a device actively shares, the operation is simple, and the owner pressure of the first device is small.
- the first device may be, for example, various types of home appliances in the home, various office devices in the office, and the like.
- Home appliances such as televisions, speakers, game consoles, lighting equipment (such as desk lamps, chandeliers in the bedroom or living room, etc.), cooking-related equipment for short cooking equipment (such as smart rice cookers, range hoods, water heaters, refrigerators, etc. ), cleaning equipment (such as robot vacuum cleaners, washing machines, laundry drying equipment, etc.).
- Office equipment such as printers, copiers, projectors, PCs, water dispensers, coffee machines, etc.
- the second device or the third device may be a mobile phone, a tablet computer, or a wearable device such as glasses, a watch, or a bracelet, or a remote control, a touch pen, and the like, and the specific type is not limited.
- the third device and the second device may be the same, for example, both the third device and the second device are mobile phones, or both are tablet computers, or both are bracelets.
- the third device and the second device may also be different, for example, one of the third device and the second device is a mobile phone, and the other is a tablet computer; or, one is a mobile phone and the other is a bracelet, and the specific combination is not specified limited.
- the method for acquiring device control rights provided by the embodiments of the present application can be applied to various scenarios, such as the following scenarios:
- FIG. 3 is an exemplary schematic diagram of a family scene provided by an embodiment of the present application.
- a home is provided with a TV, a speaker, a desk lamp, a projector, etc., of course, a refrigerator, an air conditioner, a curtain, etc. (not shown in the figure).
- family member A and family member B are included in the family. Taking the speaker as an example, the mobile phone A of family member A or the mobile phone B of family member B can obtain the temporary control right of the speaker through the ultra-short-range communication technology.
- the WIFI Aware function is turned on on the mobile phone A of family member A (the introduction of WIFI Aware can be found in the previous section on Glossary), and the WIFI Aware function is also turned on on the speaker.
- the speaker can find the phone A. For example, when the speaker determines that the distance between the phone A and the speaker is less than a threshold, it sends a key to the phone A, and the phone A encrypts the control command based on the key, and the control command is used to control the sound.
- Mobile phone A sends the encrypted control command to the speaker, and the speaker decrypts with the corresponding key, obtains the specific content of the control command and executes it, so as to realize the control of the speaker (for example, it can control the playback, pause, etc. of music). If family member B wants to control the speaker, it can also obtain temporary control over the speaker in the same way and then control the speaker.
- the speaker may have been configured with an owner.
- whether to allow others to obtain temporary control of the speaker can depend on the owner's wishes. For example, if the owner wants others to obtain temporary control of the speaker, the speaker can be set to be in open mode in advance. In open mode, other devices Can take temporary control of the speaker. Of course, if the owner does not want other people to gain temporary control of the speaker, the open mode of the speaker can be turned off.
- the owner's consent is also obtained before obtaining the temporary control of the speaker.
- the temporary control of the speaker can be obtained. Control.
- the temporary control right of the loudspeaker has a valid duration, which can be understood as the temporary control right is valid within a certain duration, and is invalid beyond the duration.
- a valid duration can be understood as the temporary control right is valid within a certain duration, and is invalid beyond the duration.
- family member B is a middle school student, to avoid his unrestricted use of the speaker to affect his learning, and his temporary control over the speaker is only one hour or half an hour and so on.
- family member B can also obtain permanent control of the speaker, that is, become the owner of the speaker, which is not limited in this application.
- family member C can also obtain temporary control right or permanent control right over the speaker.
- a printer is set up in an office.
- employees in the office can obtain temporary control of the printer to print.
- employee A holds mobile phone A close to the printer, and when the printer detects that mobile phone A is approaching (for example, the distance is less than a threshold), it sends a key to mobile phone A.
- the mobile phone A uses the key to encrypt the control instructions, which are used to control the printer.
- Mobile phone A sends the encrypted control command to the printer, and the printer decrypts it using the corresponding key, obtains the control command and executes it.
- the printer may be configured with an owner (eg, an office administrator).
- an owner e.g, an office administrator.
- the owner turns on the open mode of the printer, other people can obtain the temporary control right of the printer, otherwise, other people cannot obtain the temporary control right of the printer.
- the owner's consent can also be obtained before obtaining temporary control of the printer.
- temporary control in order to prevent anyone (such as non-office employees) from obtaining temporary control over the printer, the owner's consent can also be obtained before obtaining temporary control of the printer.
- temporary control the temporary control right of the printer has a valid duration, that is, the temporary control right is valid within a certain duration, and is invalid beyond the duration. In this way, employees can avoid unlimited use of the printer.
- the store can display a variety of home appliances, and consumers' mobile phones can obtain temporary control of a home appliance to experience the performance of the home appliance.
- consumer A holds mobile phone A close to a home appliance in the store, and the home appliance detects that mobile phone A is approaching (for example, the distance is less than a threshold), and sends a key to mobile phone A.
- the mobile phone A uses the key to encrypt the control instruction, and the control instruction is used to control the household electrical appliance.
- the mobile phone A sends the encrypted control instruction to the home appliance, and the home appliance uses the corresponding key to decrypt, obtain and execute the control instruction.
- the owner can set the home appliance to be in an open mode in advance, and in the open mode, the consumer can obtain temporary control rights of the home appliance.
- the consumer in order to manage and control the temporary control right of the household electrical appliance, the consumer also needs to obtain the owner's consent before obtaining the temporary control right of the household electrical appliance. With the owner's consent, the consumer can obtain the temporary control right of the household electrical appliance.
- the temporary control right of the household appliance may have a valid duration, that is, the temporary control right is valid for a certain duration, and is invalid beyond the duration. In this way, consumers can avoid unlimited control of home appliances in the store.
- the following takes the application scenario shown in FIG. 3 as an example to specifically describe the method for acquiring the device control right provided by the embodiment of the present application.
- the speaker is used as the first device
- the mobile phone A of family member A is used as the second device
- the mobile phone B of family member B is used as the third device.
- the following first describes the process for the second device to become the owner of the first device, and then introduces the process for the third device to acquire the temporary control right of the first device. Specifically, the following Embodiments 1 to 4 are included.
- the first embodiment introduces the process of the second device becoming the owner of the first device, that is, the process of obtaining the permanent control right of the first device.
- the first embodiment involves FIGS. 4A to 4D .
- FIG. 4A is a schematic flowchart of a second device acquiring a permanent control right of a first device according to an embodiment of the present application. As shown in Figure 4A, the process includes:
- the first device is powered on. For example, after the factory is turned on for the first time,
- the second device discovers the first device and handshakes with the first device.
- the second device can discover the first device. For example, if the user turns on the wifi Aware function on the second device and turns on the wifi Aware function on the first device, the second device and the first device can discover each other through the wifi Aware function.
- the second device as a mobile phone as an example, for example, the user can slide down the status bar at the top of the mobile phone screen to display a notification panel on the mobile phone screen, and the user clicks the wifi icon on the notification panel to enable the wifi Aware function.
- the wifi Aware function can be automatically turned on, or the setting button on the speaker can be used by the user to control the audio to turn on the wifi Aware function.
- the first device When the first device turns on the wifi Aware function, it broadcasts the signal, and the second device discovers the first device when it detects the signal broadcast by the first device.
- the signal broadcast by the first device includes, for example, the name, manufacturer, type, or device number of the first device.
- the second device can also use other methods to discover the first device, such as Bluetooth.
- the user can also hold the second device and touch the first device, for example, using the NFC area on the second device to touch the NFC area on the first device, so that the second device can discover the first device.
- the first application is installed on the first device
- the second application is installed on the second device
- the first application and the second application may be the same or different applications.
- the user can open the first application on the first device, and also open the second application on the second device, the first application on the first device can provide a two-dimensional code, and the user scans the code through the second application on the second device. QR code, so as to realize the process of the second device discovering the first device.
- the second device may also scan the product QR code pasted on the casing of the first device to discover the first device.
- the above manners are examples of manners in which the second device discovers the first device.
- the second device may also use other manners to discover the first device, and the specific manners are not limited.
- the second device After the second device discovers the first device, it can shake hands with the first device. For example, the second device sends a "hello" command to the first device, and after the first device receives "hello", it feeds back "hi" to the second device instruction.
- the above S401 may not be executed (so indicated by a dotted line in the figure), that is, the second device may directly execute S402, that is, the second device does not need to discover the first device and shake hands with the first device, and can directly apply to the cloud for a registration code (ie S402 ), and then send the registration code to the first device (ie S404 ).
- the second device sends a request for obtaining a registration code to the cloud.
- the cloud can be various types of servers, for example, it can be a server, or a set of multiple servers; or can also be a chip or a set of multiple chips in a server; or a set of multiple servers. A collection of multiple chips.
- the cloud sends a registration code to the second device.
- the cloud generates a registration code.
- the purpose of the second device requesting the cloud for the registration code of the first device is to request the cloud to record the association relationship between the second device and the registration code.
- the association relationship can be, for example, the mapping relationship in Table 1 below:
- Registration code Device requesting registration code AAAAAA Second device eg, Huawei P40
- the second device has been logged into the cloud.
- the Huawei Smart Life app on the second device after opening the Huawei Smart Life app on the second device, log in to the second user account, and then use Huawei Smart Life.
- the app logs in to the cloud based on the second user account, so the second user account is identified as a device on the cloud side.
- the second user account may be, for example, a Huawei system account, an email account, a mobile phone number, or an IMEID code, or the like.
- the Huawei system account as an example.
- the cloud side can be identified by the combination of the Huawei system account + device ID.
- registration code Device requesting registration code AAAAAA 156 8090 XXXX
- S402 and S403 may not be performed.
- the second device does not need to request a registration code from the cloud, and the second device can generate a registration code, or pre-configure the registration code, or set the registration code by the user.
- the second device may send the registration code to the first device and the cloud, respectively.
- the cloud compares the registration code from the second device with the registration code from the first device, and if they are consistent, it can be recorded that the second device is the owner of the first device.
- the second device sends an activation instruction to the first device, where the activation instruction is used to instruct the first device to activate.
- the activation instruction may include the registration code (eg, AAAAAA in the above table).
- the second device before the second device activates the first device, it can also determine whether an operation for activating the first device triggered by the user is detected, and if an operation for activating the first device is detected, the second device responds to the operation.
- An activation instruction is sent to the first device.
- FIG. 4B is a schematic diagram of the desktop of the second device.
- the desktop includes icons of various applications, including the icons of smart life applications.
- the device displays an interface as shown in (b) in FIG. 4B, the interface includes a "+" button, and in response to an operation for the "+” button, the second device displays as shown in (c) in FIG.
- An interface in which a prompt is used for the second device to discover a device, and when a device is discovered, an interface as shown in (d) in FIG. 4B is displayed, and the interface includes the identification of the first device (such as a speaker) discovered , the identification can be one or more of the name, model or icon of the device. Because the first device has not been registered to the cloud after it is powered on for the first time after leaving the factory, in response to the operation on the icon of the first device (eg, a speaker) in the interface shown in (d) in FIG.
- the display ( The interface shown in a) includes an “Activate” button, which is used to activate the first device, so the above-mentioned operation for activating the first device may be for the interface in (a) in FIG. 4C .
- the click operation of the activation button may also be other operations, such as a voice command for activating the first device, etc., which is not specifically limited.
- the second device receives the activation feedback of the first device.
- the activation feedback can be activation success, activation failure, activation, and so on.
- S405 may be executed or not executed.
- the second device in response to the operation of clicking the "Activate” button, the second device displays a prompt message "Activating the speaker", where the speaker is the first speaker. a device.
- the first device sends a key negotiation request to the cloud for requesting to negotiate a key with the cloud.
- the second device sends the registration code to the first device, so the key agreement request sent by the first device to the cloud may include the registration code. Since the cloud has recorded that the device that applied for the registration code to the cloud is the second device (as shown in Table 1 or Table 2 above, after the cloud receives the key agreement request sent by the first device, based on the registration code in it, the first device can be established. For the association relationship between the second device and the first device, for example, S413 (which will be introduced later) can be executed immediately after S406. However, since the first device has not yet successfully logged into the cloud, the cloud may temporarily not establish the second device.
- the process of logging in the first device to the cloud includes: Steps S407 to S411 are described below.
- the first device and the cloud can calculate the key separately, for example, the first device and the cloud use the same key encryption algorithm to calculate the encryption key, and use the same key decryption algorithm to decrypt, for example, the key negotiation in S406
- the request includes the key encryption algorithm and key decryption algorithm used by the first device, and the cloud can use the same algorithm, that is, the first device and the cloud have agreed on a key encryption algorithm and a key decryption algorithm, and do not directly transfer the key .
- S406 and S407 may not be executed.
- the key is preconfigured in the first device, and there is no need to calculate the key; or, the user of the first device can set the key by himself.
- subsequent steps such as S408 may also be encrypted without using a key.
- the first device sends an activation instruction to the cloud, where the activation instruction is used to instruct the first device to be activated in the cloud.
- the activation instruction may be encrypted using a key calculated by the first device.
- the cloud decrypts the encrypted activation instruction through the agreed key decryption algorithm, and if the decryption is successful, the first device is activated.
- the first device receives the activation feedback sent by the cloud.
- the activation feedback may include activation success or activation failure.
- S409 may be executed or not executed.
- the user inputs the first user account and password on the first device, and logs in to the cloud through the first user account and password.
- the first user account and the aforementioned second user account of the second device may be the same or different. For example, they are all the same Huawei system account.
- the user can also input the first user account and password of the first device on the second device, then the second device sends the first user account and password to the first device, and the first device sends the first user account and password to the cloud.
- the first device receives the login feedback sent by the cloud.
- a login feedback such as successful login, may be sent to the first device.
- a feedback of login failure may also be sent to the first device.
- the cloud can assign a virtual ID to the first device, such as a string of characters and numbers randomly generated by the cloud as a virtual ID that uniquely identifies the first device. .
- the communication between the first device and the cloud does not need to carry the first user account of the first device, because the first user account may be the user's mobile phone number, and the communication between the first device and the cloud belongs to a long link , the possibility of being attacked is likely to lead to the leakage of the mobile phone number.
- the first device can interact with the cloud based on the virtual ID allocated by the cloud to avoid directly exposing the first user account.
- the cloud may also assign a virtual ID for uniquely identifying the second device to the second device, and the principle is the same.
- the second device receives a notification of successful activation sent by the cloud.
- the cloud has recorded the association relationship between the second device and the registration code (such as the above Table 1 or Table 2).
- the cloud can send the first device to the cloud.
- the second device sends a notification that the first device is successfully activated.
- the first device may send a notification of successful activation to the second device.
- a prompt message "successful activation of the speaker" is displayed on the second device, and the speaker is the first device.
- S410 to S412 may not be executed, that is, after the first device sends the activation instruction to the cloud, the cloud directly executes S413, that is, the process of registering the second device as the owner of the first device is completed.
- the cloud records the association relationship between the first device and the second device, that is, the owner of the first device is the second device.
- the cloud identifies the first device with the first user account (or the assigned virtual ID) of the first device, so the association between the first device and the second device is actually is the association relationship between the first user account and the second user account.
- the second user account as the mobile phone number and the first user account as the speaker identifier as an example, please refer to Table 3 below, which is an example of the association relationship between the first device and the second device.
- the second device (owner of the first device) Huawei Speaker AM08 156 8090 XXXX
- the first device After the first device logs in to the cloud, it can maintain an online state in the cloud. For example, the following steps S414 to S422 are included.
- the information of the first device is synchronized to the cloud.
- the information is, for example, the type, model, manufacturer, and the like of the first device.
- S415 the first device receives the synchronization feedback sent by the cloud.
- S415 is an optional step, which may or may not be performed.
- step S414 is preferably performed, so that the cloud can accurately identify the first device according to the synchronization information reported by the first device.
- S414 may not be performed.
- S414 may not be executed.
- the initial data of the first device is reported to the cloud.
- the initial data such as the operating state information of the device, such as whether the device is on or off, take the device as a desk lamp as an example, the operating information may also include current brightness information and the like.
- the initial data further includes parameters set by the user on the first device. Taking the first device as a speaker as an example, the initial data of the speaker may include song information in the speaker, for example. Alternatively, if the user has set a power-on password of the first device, the initial data may further include the power-on password.
- S417 the cloud sends the feedback of the initial data report to the first device.
- S417 is an optional step, which may or may not be performed.
- step S416 is preferably performed, so that the cloud can accurately determine the state of the first device according to the operating state information reported by the first device.
- S416 may not be performed, which is not limited in this embodiment of the present application.
- the process of activating and logging in the first device in the cloud is described. It can be understood that the first device needs to be in a logged-in state before the cloud can issue control instructions to the first device in real time.
- the process that the first device is in the login state reference may be made to steps S418 to S422.
- the first device requests the cloud to refresh the token of the first device.
- the first device maintains an online state with the cloud based on the token.
- the cloud can generate a token, which can store the token, and then return the token value to the first device; the first device saves the token after receiving it;
- the cloud sends information it carries the token and the first user account and sends it to the cloud; after the cloud receives the information sent by the first device, the cloud reads the token and compares it with the saved token value. If the token comparison is successful, it means that the first user account is in the logged-in state; otherwise, it means that the login state of the first user account is invalid and needs to log in again.
- the validity period of the token is short, such as 2 days, 1 day, 6 hours or 3 hours, etc.
- S418 to S420 may be performed periodically, for example, performed once every period of time, or performed once every time the first device logs into the cloud.
- the update of the key helps prevent other devices from using the old key to log in to the cloud instead of the first device.
- S418 to S420 may not need to be executed.
- the cloud carries the token in the login feedback, and then the first device can use the token to stay online without requesting the cloud to refresh the token.
- the first device and the cloud have pre-ordered tokens before leaving the factory, and there is no need for the cloud to feed back tokens to the first device, and so on.
- the heartbeat signal of the first device is reported to the cloud.
- the first device receives the heartbeat feedback sent by the cloud.
- the first device may periodically send a heartbeat signal to the cloud to maintain an online state in the cloud.
- S421 to S422 are optional steps, which may or may not be performed.
- the second device can control the first device through the cloud, for example, it can be implemented through the following steps S423 to S425.
- a control policy for the first device is set on the second device.
- the setting interface of the control strategy is displayed on the second device, and the setting interface includes control conditions, such as 8:00 in the morning; and control methods, such as turning on the speaker and playing the song "xxx".
- control policy is set by default before the second device leaves the factory, and does not need to be set.
- the second device sends the control policy for the first device to the cloud.
- the second device sends the control strategy (including control conditions and control methods) set in FIG. 4D to the cloud.
- the control strategy including control conditions and control methods set in FIG. 4D to the cloud.
- the cloud controls the first device based on the control policy.
- the cloud determines that the current time is 8:00 am, and sends an instruction to the first device (such as a speaker) to control the first device to turn on and play the song "xxx".
- the first device such as a speaker
- the cloud controls the first device based on the control strategy. Therefore, if the second device is far away from the first device, for example, the second device is a mobile phone, the user carries the mobile phone in the office, and the first device is a speaker placed in the user's home, the first device can also be controlled through the cloud.
- the fact that the second device becomes the owner of the first device means that the cloud records that the owner of the first device is the second device, so the cloud based on the owner (ie the second device) settings for the first device
- the control strategy is used to control the first device, which is the permanent control right.
- the second embodiment introduces a process for the third device to acquire the temporary control right of the first device.
- the temporary control right can be obtained based on the ultra-short-range communication technology without going through the cloud, and belongs to the point-to-point ultra-short-range communication between the third device and the first device.
- a possible scenario of the second embodiment is that the owner of the first device is the second device.
- the first device supports an open mode, and the owner can enable or disable an open (open) mode of the first device.
- the first device turns on the open mode
- the ultra-short-range communication function is turned on
- the third device can obtain the temporary control right of the first device based on the ultra-short-range communication function.
- the first device turns off the open mode
- the third device cannot obtain the first device.
- Temporary control of a device is also applicable to other scenarios.
- the first device is not configured with an owner. In this case, the first device can also enter the open mode.
- a button for opening or closing the development mode is set, and the open mode is opened or closed through the button, so that other devices can obtain temporary control rights over the first device.
- This embodiment 2 mainly introduces the former scenario as an example. Specifically, the second embodiment relates to FIGS. 5A to 5D .
- FIG. 5A is a schematic flowchart of the third device acquiring the temporary control right of the first device according to the second embodiment.
- the process shown in FIG. 5A is introduced by taking an example that the owner of the first device is the second device. Therefore, “the second device is the owner of the first device” is marked in FIG. 5A , but since the second embodiment does not affect the first device The case where the device is configured or not configured with the owner is applicable, so in the figure "the second device is the owner of the first device” is marked with a dotted line.
- the process includes:
- the second device controls the first device to be in an open (open) mode.
- the second device ie, the owner of the first device
- the second device can control the first device to be in the open mode through the cloud.
- the second device sends a first instruction to the cloud, where the first instruction is used to instruct the cloud to send a second instruction to the first device for instructing the second device to enter the open mode.
- an interface as shown in (a) in FIG. 5B is displayed on the second device, and the logo of the speaker is displayed in the interface.
- the interface as shown in (b) of FIG. 5B is displayed, the interface includes an option of an open mode, and a button 501 for turning on or off the option.
- the second device detects an activation operation for the button 501, it sends the first instruction to the cloud, so that the cloud sends the second instruction to the first device.
- the first device can also automatically enter the open mode without the need for the second device to control.
- the first device automatically enters the open mode after being powered on, or enters the open mode when triggered by the user, for example, a button for controlling the first device to enter the open mode is set on the first device, and the first device is controlled to enter the open mode through the button; or After the first device receives the voice instruction for instructing the first device to enter the open mode, it automatically enters the open mode.
- S501 may not be executed, so S501 is represented by a dotted line in the figure.
- the above method 1 or method 2 can be used, and when the owner of the first device has not been configured, the method 2 can be used.
- the first device enters an open mode.
- the first device can turn on an ultra-short-range communication function, such as a wifi AWare function, an NFC function, and the like.
- an ultra-short-range communication function such as a wifi AWare function, an NFC function, and the like.
- neither S501 nor S502 may be performed.
- the first device is not configured with an open mode.
- step S503 can be automatically entered without manual setting by the user.
- the first device generates a key.
- the keys can be of various types, such as symmetric keys and asymmetric keys.
- Symmetric Cryptography also known as private key encryption, that is, the sender and receiver of information use a key to encrypt and decrypt.
- the key used by the first device and the third device is the same.
- Asymmetric Cryptography key refers to the combination of a pair of public key and private key.
- the receiver can use the paired private key for decryption; or, the sender uses When the private key encrypts the message, the receiver can decrypt it using the paired public key.
- S503 may not be executed, so a dotted line is used in the figure.
- the key is configured by default when the first device leaves the factory, or it can also be set by the user and does not need to be generated by the first device.
- the key has a validity period, and the key takes effect within the validity period, and the key expires after the validity period.
- the validity period of the key is determined according to the type of the first device.
- the method of determining the validity period of the key according to the type of the first device may be executed by the second device, or executed by the cloud, or may also be executed by the first device. Taking the execution of the second device as an example, for example, before the second device S501, the second device determines the type of the first device, determines the validity period of the key of the first device according to the type of the first device, and then sends the validity period to the first device. .
- the types include, for example, entertainment types, office types, cleaning types, sleep-optimized types, smart wake-up types, and the like.
- entertainment types include, for example, televisions, game consoles, etc.
- office types include printers, copiers, faxes, projectors, etc.
- cleaning types include, for example, sweeping robots, air purifiers, etc.
- sleep optimization Types include, for example, desk lamps, sockets, humidifiers, and the like
- smart wake-up types include, for example, curtains, speakers, alarm clocks, and the like.
- the validity period of the key of the entertainment-type device is less than a first threshold
- the validity period of the key of the office-type device is less than a second threshold
- the first threshold is less than the second threshold to avoid unlimited control of entertainment type devices.
- the validity period of the sleep-optimized device is less than a third threshold
- the third threshold is greater than the first threshold.
- the key of the desk lamp is greater than the key of the TV, so as to prevent users from frequently obtaining the information of the desk lamp. Key to console light.
- the validity period of the key of the first device may be set by default or set by the user. Taking user setting as an example, the user can set the validity period of the key of the first device on the first device and the second device. If the user is on the second device, the second device sends the set validity period to the first device through the cloud.
- the first device queries the first device to support the function of the temporary control right.
- the first device is a speaker, and its capabilities include not only the functions of playing, pausing, stopping, and switching songs, but also deleting and downloading songs; it may also include the name of the speaker, and the setting of the power-on password (or voice wake-up command). and many more.
- the deletion of songs, the naming of speakers, and the setting of power-on passwords belong to user privacy, and these functions may not support temporary control. Therefore, the first device may query the cloud which functions on the first device support temporary control rights and which functions do not support temporary control rights. For example, configuration files corresponding to various types of devices are stored in the cloud, and the profile files are used to describe the functions of temporary control rights supported by the corresponding types of devices.
- the first device sends a query command to the cloud, and the query command includes the device type of the first device (for example, Huawei speaker MI08).
- the cloud receives the query command, it determines the type of the first device based on the device type of the first device. corresponding profile file, and then send the profile file to the first device, and the first device can determine which functions support the temporary control right based on the profile file.
- the third device For example, continuing to take the first device as a speaker as an example, based on the profile file corresponding to the speaker, it is determined that the song deletion, naming, and power-on password setting functions in the speaker do not support temporary control rights, then when the third device obtains temporary control of the speaker After the right, the third device cannot delete the songs in the speaker, nor can it set the power-on password of the speaker.
- the first device may query the cloud for the function that the first device supports temporary control rights, or may query other devices.
- the cloud is connected to the resource server, and the resource server stores profile files corresponding to various types of devices.
- the first device can directly query the resource server for the profile file corresponding to the device type of the first device; or, the first device still sends a query request to the cloud, and the cloud queries the resource server, and retrieves the data from the resource server. The result is sent to the first device.
- S504 may be executed or not executed.
- the case where S504 is not executed includes: the first device stores the profile file locally, and based on the locally stored profile file, it can be determined which functions support temporary control without querying the cloud.
- the functions that support temporary control rights on the first device have been set when the first device leaves the factory, or the user specifies which functions support temporary control rights, and there is no need to judge based on the profile file; or, by default, all functions of the first device support temporary control rights. Control, no query required.
- the first device detects that the third device is close to the first device.
- the proximity of the third device to the first device may be that the NFC area on the third device is close to the NFC area on the first device; when the first device detects an NFC signal from the third device, it is determined that the third device is close.
- the third device is, for example, a mobile phone, and the user uses the mobile phone to approach the first device (such as a speaker).
- the third device turns on wifi AWare, the first device turns on wifi AWare, and when the first device detects the wifi Aware signal of the third device, it is determined that the third device is close.
- Bluetooth technology can also be used, which is not limited in this embodiment of the present application.
- the first device sends the key to the third device.
- the first device when it detects that the third device is approaching, it can automatically send the key to the third device. Or, when the third device is close to the first device, a prompt message may pop up on the third device, and the prompt message is used to prompt the user whether to apply for the right to control the first device.
- the third The device displays the logo of the first device (such as a speaker) and the "Apply for Permission” button. If the user's click operation on the "Apply for Permission" button is detected, an application is sent to the first device. Three devices send keys.
- the "apply for authority" button in (b) of FIG. 5D can be replaced with the "apply for temporary control right” button.
- the first device may also determine the distance between the third device and the first device, and if the distance is less than the preset distance, send the key to the third device.
- the distance between the third device and the first device there are various ways to determine the distance between the third device and the first device, such as laser ranging, or, taking Wi-Fi Aware enabled on the third device and Wi-Fi Aware enabled on the first device as an example, the first device
- the device When the device detects that the signal strength of the Wi-Fi Aware of the third device is greater than the preset value, it determines that the distance between the third device and the first device is less than the preset distance.
- the key is sent to the third device.
- the preset distance may be any value in the range of 0 cm to 30 cm, such as 1 cm, 2 cm, 3 cm, 4 cm, 5 cm, and the like. If the preset distance is set relatively small, misconnection can be avoided, for example, to prevent the user from passing the first device with the third device, which causes the third device to obtain the key of the first device by mistake.
- the first device may further determine whether the signal strength of the third device is greater than a threshold.
- the threshold value is, for example, any value in the range of -5dbm to -150dbm. For example -10dbm, -15dbm, -20dbm, -25dbm, -30dbm, -35dbm, -40dbm, -45dbm, -50dbm, -60dbm, -70dbm and so on.
- Wi-Fi Aware turned on on the third device and Wi-Fi Aware turned on on the first device For example, taking Wi-Fi Aware turned on on the third device and Wi-Fi Aware turned on on the first device as an example, when the first device detects that the signal strength of the Wi-Fi Aware of the third device is greater than the preset value, it sends the third device to the third device. The device sends the key.
- the first device sends the symmetric key to the third device to ensure the key consistency between the third device and the first device.
- the first device uses an asymmetric key (that is, including a public key and a private key)
- the first device can use the public key, and sends the private key corresponding to the public key to the third device; or, the first device uses a private key key, the public key corresponding to the private key is sent to the third device. Since the communication distance between the third device and the first device is short, the probability of the key being intercepted is low, and the security is high.
- sequence between S502 and S506 is not limited.
- S503 may be performed immediately after S505, that is, the key is generated when the first device detects that the third device is approaching.
- S504 may also be performed before S502, that is, the first device inquires about the function that supports the temporary control right in advance.
- the key may be sent in plain text. Since the first device uses the ultra-short-range communication technology to send the key, the communication distance is short, the probability of the key being intercepted is low, and the security is high. Of course, in order to further improve the security, the key can also be sent in cipher text, that is, the key is encrypted, and then the encrypted key is sent, which is not limited in this application. It can be understood that if the key is encrypted and sent, the decryption method can be preset. For example, the decryption method is preconfigured in the third device. When the third device receives the encrypted key, it can use the preconfigured decryption method. The decryption method to decrypt to obtain the key.
- the third device queries the first device for the ability to support temporary control rights.
- Step S507 is an optional step, which may or may not be performed.
- the case where S507 is not executed may include, for example, that all functions of the first device support temporary control rights by default, or, in S506, the first device sends the profile file and the key to the third device, and the third device There is no need to obtain the profile file corresponding to the first device from the cloud.
- the third device sends a control instruction to the first device, where the control instruction is encrypted based on the key sent by the first device.
- control instructions may be: "turn on”, “turn off”, “switch to the next song”, “play song XXX”, and so on.
- the first device decrypts to obtain the control instruction and executes it.
- the third device uses the key to encrypt the control command, and when the first device receives the encrypted control command, it uses the same key pair to decrypt. If the key sent by the first device is the public key in the asymmetric key, that is, the third device uses the public key to encrypt the control command, and when the first device receives the encrypted control command, it uses the private key corresponding to the public key. key to decrypt. If the key sent by the first device is the private key in the asymmetric key, that is, the third device uses the private key to encrypt the control command, and when the first device receives the encrypted control command, it uses the public key corresponding to the private key. key to decrypt.
- the first device can also send a prompt message to its owner (that is, the second device).
- the prompt message is: The third device has obtained your Huawei speaker MI08. temporary control.
- the temporary control right has a validity period, which takes effect within the validity period, and becomes invalid after the validity period is exceeded.
- the validity period of the temporary control right can be set in one or more of the following ways.
- the validity period of the temporary control right is related to the validity period of the key of the first device, the temporary control right is valid when the key is valid, and the temporary control right is invalid when the key is invalid.
- the key is generated immediately, and the key is sent to the third device when it is detected that the third device is approaching.
- the validity period of the key is 60min, so at time t1+60min At the moment (ie, after 40 minutes), the key is automatically invalid, and correspondingly, the temporary control right is invalid.
- the validity period of the temporary control right may be less than the validity period of the key.
- the first device generates a key when detecting the approach of the third device and sends the key to the third device, then the key and the validity period and the validity period of the temporary control right are almost the same.
- the method for setting the validity period of the key of the first device has been described above, and will not be repeated here.
- the first device can also generate a new key, and then send the new key to the third device, So that the third device temporarily controls the first device based on the new key, which is not limited in this embodiment of the present application.
- the validity period of the temporary control right of the first device is determined according to the type of the first device. For example, when the third device approaches the first device, the first device may send the type of the first device to the third device, and the third device determines the temporary control right of the first device according to the type of the first device. Validity period. Or, continuing to take FIG. 5A as an example, in S501, the second device can obtain the type of the first device before, after or at the same time when the second device controls the first device to enter the open mode, and then determines the temporary control right of the first device according to the type of the first device. the validity period, and then send the determined validity period to the first device through the cloud.
- the introduction about the type of the first device has been introduced above, and will not be repeated here.
- Method 2 is different from method 1. For example, it is determined that the temporary control right of the first device is 2h and the validity period of the key of the first device is 60 minutes. Then, when the first device updates the key within 2h, it needs to The updated key is sent to the third device so that the third device controls the first device based on the updated key until 2h is reached.
- Manner 3 The validity period of the temporary control right of the first device is set by the user. Manner 3 may be setting on the third device, setting on the second device, or setting on the first device. Taking setting on the second device as an example, please refer to (b) in FIG. 5B , the second device displays the setting option of the effective duration of the temporary control right of the first device (such as a speaker), and the user can use this setting option.
- the setting option sets the validity period of the temporary control right of the first device, and the second device sends the set validity period to the first device through the cloud.
- the implementation principle of setting the validity period of the temporary control right of the first device on the third device is the same as that of setting the validity period of the temporary control right of the first device on the second device, and will not be repeated. If set on the first device, for example, the first device includes a button for setting the validity period of the temporary control right of the first device, the user can set the validity period of the temporary control right of the first device according to the button.
- the temporary control right of the first device is set by default when the first device leaves the factory.
- Manner 5 may be executed on the third device, or executed on its owner (ie, the second device), or may also be executed on the first device.
- a button for stopping the temporary control right of the first device is provided on the third device, the second device or the first device, and the user stops the temporary control right of the first device through the button.
- the second device detects the operation of the close button 501, it sends an instruction to stop the temporary control right of the first device to the cloud, and the cloud sends the instruction to the first device, The first device stops receiving control from the third device.
- the fourth device sends a new key (different from the key sent to the third device), so that the fourth device obtains the pair based on the new key
- the temporary control right of the first device then the temporary control right of the third device to the first device automatically becomes invalid. Simply put, the temporary control right of the first device obtained by the third device is invalid because it is overwritten by the temporary control right of the first device obtained by the fourth device.
- the third device and the fourth device may also have the temporary control right of the first device at the same time.
- the temporary control right obtained by the third device will not It is covered by the temporary control right obtained by the fourth device, but coexists with the temporary control right obtained by the fourth device. In this way, both the third device and the fourth device can temporarily control the first device.
- the first device may determine whether the temporary control right of the third device and the temporary control right of the fourth device can coexist according to the type of the first device, for example, if the first device is a sleep-optimized device (for example, a desk lamp) ), the temporary control rights of the third device and the fourth device can coexist, that is, both the third device and the fourth device have the temporary control rights of the desk lamp.
- the first device is an office-type device (such as a projector)
- the temporary control rights of the third device and the fourth device cannot coexist, that is, before the temporary control rights of the projector acquired by the third device become invalid, if When the fourth device acquires the temporary control right of the projector, the temporary control right of the third device automatically becomes invalid.
- the first device can connect to the cloud and receive the control of the cloud.
- the first device can be based on receiving the temporary control of the second device.
- the module used for connecting with the cloud is called the first module (such as the wifi module), and the module used for connecting with the third device in the first device is called the second module (such as the NFC module), then when the first device Before entering the open mode, the second module may be in an off state, and after the first device enters the open mode, the second module is in an on state.
- the first module may or may not be turned off.
- both the second module and the first module are turned on, that is, the first device can receive temporary control from the third device based on the ultra-short-range communication function, Can also receive control from the owner.
- the first module and the second module may be switched periodically. For example, during the period when the first module is turned on, the second module is turned off. During this period, the first device can receive temporary control from the third device based on the ultra-short-range communication function, but cannot receive control from the cloud.
- the opening duration of the first module reaches the set duration, it is automatically turned off, and the second module is turned on. At this time, the first device cannot receive the temporary control of the third device, and can receive the control from the cloud.
- the turn-on periods of the first module and the second module may be the same or different, and may be set by default or set by a user.
- the third device can obtain the temporary control right of the first device to realize the temporary control of the first device.
- the third device when the third device acquires the temporary control right of the first device, it does not need to be confirmed by the owner of the first device (ie, the second device).
- the difference between the third embodiment and the second embodiment is that: in the third embodiment, before the third device obtains the temporary control right of the first device, it needs to be confirmed by the owner of the first device (that is, the second device). After the confirmation, the temporary control right of the first device can be obtained.
- the drawings involved in the third embodiment include FIGS. 6A to 6B .
- FIG. 6A is a schematic flowchart of the third device acquiring the temporary control right of the first device according to the third embodiment. As shown in Figure 6A, the process includes:
- the second device controls the first device to be in an open mode.
- the first device enters an open mode.
- S601 and S602 may or may not be executed, and the principles are the same as those of S501 and S502 in the second embodiment, and will not be repeated.
- the first device queries the first device to support the function of the temporary control right.
- S603 may be executed or not executed, and the principle is the same as that of S504 in the second embodiment, and details are not repeated.
- the first device detects that the third device is close to the first device.
- the first device when the first device detects that the third device is approaching, it sends the key to the first device.
- the difference from the second embodiment is that when the first device detects that the third device is approaching in the third embodiment, it requests the first device.
- the owner of one device confirms, and in the case of owner confirmation, sends the key to the third device. Specifically, it is implemented through steps S605 to S614.
- the first device sends a request to the cloud, where the request is used to instruct the third device to request the temporary control right of the first device.
- the request may carry the device identifier of the first device. Since the cloud stores the first device and the owner of the first device (for example, Table 3 above), the cloud can determine the owner of the first device according to the device identifier of the first device. (ie the second device), then the cloud sends the request to the owner, that is, S606.
- the cloud sends the request to the second device.
- the second device sends an approval instruction to the cloud.
- prompt information may be displayed on the second device, such as the prompt information shown in (a) in FIG. 6B: Amy's mobile phone (that is, the identification information of the third device) applies for the temporary control right of the speaker. , whether to agree; two buttons are also displayed, namely "agree” and "reject", if the second device detects the click operation on the agree button, it sends an consent instruction to the cloud, namely S608; if the second device detects the click on the reject button operation, send a rejection instruction to the cloud, the cloud can send the rejection instruction to the first device, and then the first device forwards the rejection instruction to the third device, and the user of the third device knows that the application for the temporary control right of the first device is rejected Rejection, for example, see (b) in FIG.
- a prompt message is displayed on the third device: the temporary control right of the speaker you applied for is rejected.
- the user of the third device can re-apply for the temporary control right of the first device through the re-apply button, or can give up the temporary control right of the first device through the "Cancel" button.
- the cloud sends an approval instruction to the first device.
- the first device generates a key.
- S609 the first device generates a key.
- S609 may not be executed.
- the principle refer to Embodiment 2.
- the first device detects that the third device approaches the first device again.
- S610 is an optional step, which may or may not be performed. If S610 is not executed, that is, the third device only needs to approach the first device once to obtain the key of the first device. If S610 is executed, the third device needs to approach the first device twice. The first approach is to apply to the owner of the first device for the temporary control right of the first device. Obtain the key of the first device.
- the first device may send prompt information to the third device, where the prompt information is used to prompt the user to approach the first device again, for example, see In (c) of FIG. 6B , a prompt message is displayed on the third device: the temporary control right of the speaker you applied for (ie, the first device) has been approved, please approach the speaker again.
- the first device may record the first time when the third device was approached last time, and also record the second time when the third device approached again, and if the time difference between the first time and the second time is less than a threshold, the encryption The key is sent to the third device without asking the owner again for confirmation. In this way, it can be avoided that the third device requests confirmation from the owner every time it approaches the first device.
- the first device sends the key to the third device.
- the third device queries the first device to support the function of the temporary control right.
- S612 may be executed or not executed. For the principle, refer to S507 in the second embodiment.
- the third device sends a control instruction to the first device, where the control instruction is encrypted with a key.
- the first device decrypts to obtain the control instruction and executes the control instruction.
- the third device when the third device is close to the first device, the third device can obtain the temporary control right of the first device under the authorization of the owner of the first device, so as to avoid the temporary control of the first device. Control can be obtained by anyone, improving security.
- the temporary control right acquisition method of Embodiment 3 (that is, the method that requires owner confirmation) is used as the first method.
- the first device, the second device or the third device can use the first way or the second way by default, or a switch button is set on the third device, the second device or the first device. The button can switch between the first way and the second way.
- the second device please refer to (a) in FIG. 6C to display the identification of the device that has been activated (eg, a speaker).
- the interface includes an open mode and an authentication mode.
- the open mode button is selected, the first device is notified to use the first mode, and when the authentication mode button is selected, the first device is notified to use the second mode. .
- the temporary control right also has a validity period, the temporary control right takes effect within the validity period, and the temporary control right becomes invalid after the validity period.
- the setting method of the validity period refer to the second embodiment.
- the validity period of the temporary control right is relatively short, such as 10 minutes, if you want to continue to control the first device after 10 minutes, you need to re-acquire the temporary control right of the first device.
- the method of the second embodiment may be used without confirmation by the owner. For example, assuming that the preset duration is 1h, the user's mobile phone obtains the temporary control right of the speaker at 10:00, and the validity period is 30min. Before 11:00, if the user's mobile phone is close to the speaker again to obtain its temporary control, the owner's confirmation is not required.
- the third device in order to avoid frequent confirmation by the owner, after the third device obtains the temporary control right of the first device, the third device is allowed to obtain the temporary control right of the first device for a preset number of times without authentication.
- the second method does not need to be confirmed by the owner. For example, assuming that the preset number of times is 3 times, the user's mobile phone obtains the temporary control right of the speaker at 10:00, and the validity period is 30 minutes. After that, the third device has three chances to obtain the temporary control right of the first device without authentication, and needs to be confirmed by the owner for the fourth time.
- the third device obtains the temporary control right of the first device.
- the third device obtains the permanent control right of the first device, that is, the third device becomes the first device.
- the owner of the device if the first device has not been configured with an owner, the third device may register as the owner of the first device on the cloud side in the manner of Embodiment 1. If the first device has been configured with owner, and the owner is the second device. In this case, if the first device has only one owner, that is, the third device replaces the second device as the owner of the first device, if the first device can have multiple owners, that is, the third device and the second device Both become the owner of the first device.
- the third device replaces the first device to become the owner of the first device as an example.
- the drawings involved in this embodiment include FIGS. 7A to 7B .
- 7A is a schematic flowchart of the third device acquiring the permanent control right of the first device according to the fourth embodiment. This process is introduced by taking an example that the second device is the owner of the first device, so "the second device is the owner of the first device" is marked in FIG. 7A . As shown in Figure 7A, the process may include:
- the second device controls the first device to enter an open mode.
- the first device enters an open mode.
- S701 and S702 may or may not be performed, and the principles are the same as those of S501 and S502 in the second embodiment, and will not be repeated.
- the first device detects that the third device is close to the first device.
- the first device when the first device detects that the third device is approaching, it sends a key to the first device, and the third device obtains the temporary control right of the first device based on the key.
- the first device when the first device detects that the third device is approaching, it can record on the cloud side that the owner of the first device is the third device, that is, the third device obtains the permanent control of the first device. right. Specifically, it is implemented through steps S704 to S712.
- the third device sends an application for the permanent control right to the first device.
- FIG. 7B is the display interface when the third device is close to the first device, and the interface includes a button of "apply for permanent control".
- the third device sends an application for permanent control to the first device.
- S704 may or may not be performed.
- the first device detects that the third device is approaching, it automatically enters S705.
- the first device sends the application to the cloud.
- the cloud sends the application to the second device.
- the second device sends an approval instruction to the cloud.
- S706 and S707 are optional steps, which may or may not be performed. If not executed, that is, the third device does not need the consent of the owner of the first device (ie, the second device) to acquire the permanent control right of the first device. If S706 and S707 are executed, that is, the third device needs the consent of the owner of the first device (ie, the second device) to obtain the permanent control right of the first device. Permanent control of the first device.
- the permanent control right of the first device can be obtained without the consent of the owner of the first device.
- the third device can use the first method or the second method by default; or, a switch button can be set on the second device or the first device, and the first method or the second method can be set through the switch button. .
- the cloud records that the owner of the first device is the third device.
- the cloud may update the owner of the first device from the second device to the third device. For example, Table 3 above is updated to Table 4 below:
- the third device (owner of the first device) Huawei speaker AM08 185 0810 XXXX
- the cloud sends the indication information that the application for the permanent control right is successful to the third device.
- S709 may be executed or not executed.
- the third device displays a prompt message: the application for the permanent control right of the first device (ie, the speaker) is successful.
- the third device can control the first device through the cloud side. For example, the following steps S710 to S712.
- a control policy for the first device is set on the third device.
- S710 may be executed or not executed, and for the implementation principle, reference may be made to S423 in the first embodiment.
- the third device sends the control policy of the first device to the cloud.
- the cloud controls the first device based on the control policy.
- the third device only displays the button “Apply for permanent control” as an example. It can be understood that the third device can display the button “Apply for temporary control” and “Apply for permanent control” respectively.
- the user can select the corresponding button and click to apply for the corresponding control right according to the needs, for example, see Figure 7C. If applying for the temporary control right, it can be realized by the method of the second embodiment or the third embodiment, and if applying for the permanent control right, it can be realized by the method of the fourth embodiment.
- the above takes the third device directly applying for the permanent control right of the first device as an example. It can be understood that before the third device applies for the permanent control right of the first device, it can also determine whether the third device has temporary control of the first device. If yes, you can apply for the permanent control of the first device, otherwise, you cannot apply for the permanent control of the first device.
- the embodiments of the present application further provide an electronic device, and the electronic device may be the above-mentioned first device, second device, third device, or fourth device, or the cloud.
- the electronic device 800 may include: one or more processors 801, a memory 802, and one or more computer programs (not shown in the figure).
- the various devices described above may be coupled through one or more communication buses 804 .
- one or more computer programs are stored in the memory 802, and the one or more computer programs include instructions; the processor 801 calls the instructions stored in the memory 802, so that the electronic device 800 executes the acquisition provided by the embodiment of the present application. Method for device control.
- the methods provided by the embodiments of the present application are introduced from the perspective of an electronic device as an execution subject.
- the terminal device may include hardware structures and/or software modules, and implement the above functions in the form of hardware structures, software modules, or hardware structures plus software modules. Whether one of the above functions is performed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.
- the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
- software it can be implemented in whole or in part in the form of a computer program product.
- the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated.
- the computer may be a general purpose computer, special purpose computer, computer network, or other programmable device.
- the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server, or data center Transmission to another website site, computer, server, or data center is by wire (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.).
- the computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes an integration of one or more available media.
- the usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), and the like.
- Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
- a storage medium can be any available medium that can be accessed by a general purpose or special purpose computer.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- General Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Human Computer Interaction (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Automation & Control Theory (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
- Selective Calling Equipment (AREA)
Abstract
Description
| 注册码 | 请求注册码的设备 |
| AAAAAA | 第二设备(如,华为手机P40) |
| 注册码 | 请求注册码的设备 |
| AAAAAA | 156 8090 XXXX |
| 第一设备 | 第二设备(第一设备的owner) |
| 华为音箱AM08 | 156 8090 XXXX |
| 第一设备 | 第三设备(第一设备的owner) |
| 华为音箱AM08 | 185 0810 XXXX |
Claims (30)
- 一种获取设备控制权的方法,应用于包括第一设备和第二设备的系统,其特征在于,所述方法包括:所述第一设备检测到所述第二设备贴近所述第一设备;所述第一设备向所述第二设备发送第一密钥;所述第二设备接收到所述第一密钥后,使用所述第一密钥对控制指令进行加密;所述控制指令用于控制所述第一设备;所述第二设备将加密后的控制指令发送给所述第一设备;所述第一设备对所述加密后的控制指令解密得到所述控制指令并执行所述控制指令。
- 如权利要求1所述的方法,其特征在于,所述方法还包括:所述第二设备上显示第一提示信息,所述第一提示信息用于提示是否申请对所述第一设备的临时控制权;所述第二设备接收到确认指令时,向所述第一设备发送第一申请,所述第一申请用于指示所述第二设备申请对所述第一设备的临时控制权;所述第一设备向所述第二设备发送第一密钥,包括:所述第一设备接收到来自所述第二设备的第一申请时,向所述第二设备发送第一密钥。
- 如权利要求1或2所述的方法,其特征在于,所述第一密钥具有有效期,超过所述有效期时,所述第一密钥失效;其中,所述有效期是预设的,或者,用户设置的,或者,根据所述第一设备的类型确定的;其中,不同类型的第一设备生成的第一密钥的有效期不同。
- 如权利要求2或3所述的方法,其特征在于,所述方法还包括:当满足预设条件时,所述第二设备对所述第一设备的临时控制权终止;其中,所述预设条件,包括如下至少一种:所述第一密钥的使用时长超过有效期;或者,从所述第二设备接收到所述第一密钥的时刻开始达到预设时长;或者,所述第一设备检测到第三设备靠近所述第一设备;或者,所述第一设备上检测到用于终止所述第二设备对所述第一设备的临时控制权的操作;或者,所述第一设备接收到来自所述第一设备的owner的指令,所述owner为可以通过云端控制所述第一设备的设备;所述指令用于指示终止所述第二设备对所述第一设备的临时控制权;或者,所述第一设备检测到所述第二设备与所述第一设备的距离大于第二预设距离。
- 如权利要求2-4任一所述的方法,其特征在于,所述系统还包括第四设备,所述第四设备为所述第一设备的owner,所述owner为可以通过云端控制所述第一设备的设备;所述第一设备向所述第二设备发送第一密钥之前,还包括:所述第一设备向所述第四设备发送确认请求;所述确认请求用于确认是否同意所述第二设备获取所述第一设备的临时控制权;所述第一设备向所述第二设备发送第一密钥,包括:所述第一设备接收到来自所述第四设备的同意指令时,向所述第二设备发送第一密钥。
- 如权利要求5所述的方法,其特征在于,所述第一设备向第四设备发送确认请求,包括:所述第一设备向所述云端发送第二申请,所述第二申请用于指示所述第二设备申请所述第一设备的临时控制权;所述云端响应于接收到的所述第二申请,根据设备与owner之间的映射关系确定所述第一设备的owner为所述第四设备;所述云端向所述第四设备发送所述确认请求。
- 如权利要求5或6所述的方法,其特征在于,所述方法还包括:所述第一设备生成免认证时长,和/或,免认证次数;在所述第二设备对所述第一设备的临时控制权终止之后,所述第一设备检测到所述第二设备再次靠近所述第一设备时,确定未超出免认证时长,和/或,所述第二设备的累计靠近次数未超出免认证次数时,免除向所述第四设备确认。
- 如权利要求5-7任一所述的方法,其特征在于,所述第一设备接收到来自所述第四设备的同意指令时,向所述第二设备发送第一密钥,包括:所述第一设备接收到来自所述第四设备的同意指令后,当所述第一设备检测到所述第二设备再次靠近所述第一设备时,向所述第二设备发送第一密钥。
- 如权利要求2-8任一所述的方法,其特征在于,所述方法还包括:所述第二设备确定所述第一设备中支持临时控制权的功能;所述第二设备向所述第一设备发送的控制指令用于控制所述第一设备中支持临时控制权的功能;其中,所述功能为所述第一设备中预设功能,或,用户指定的功能,或所述第一设备中与用户隐私无关的功能。
- 如权利要求2-9任一所述的方法,其特征在于,所述方法还包括:所述第二设备上显示第二提示信息,所述第二提示信息用于提示是否申请对所述第一设备的永久控制权;所述第二设备接收到确认指令时,向所述第一设备发送第三申请,所述第三申请用于指示所述第二设备申请对所述第一设备的永久控制权;所述第一设备向云端发送所述第三申请;所述云端响应于接收到的所述第三申请,记录所述第二设备为所述第一设备的owner,以使所述第二设备能够通过所述云端控制所述第一设备。
- 如权利要求10所述的方法,其特征在于,所述云端响应于接收到的所述第三申请,记录所述第二设备是所述第一设备的owner,包括:响应于所述第三申请,所述云端确定所述第一设备的owner是第四设备;所述云端向所述第四设备发送确认请求;所述确认请求用于指示是否同意所述第二设备获得所述第一设备的永久控制权;当所述云端接收到同意指令时,记录所述第一设备的owner由所述第四设备更新为所述第二设备。
- 如权利要求1-11任一所述的方法,其特征在于,所述系统还包括第四设备,所述第四设备为所述第一设备的owner,所述owner为可以通过云端控制所述第一设备的设备;所述方法还包括:所述第四设备上接收到第一操作,所述第一操作用于指示打开所述第一设备的短距离 通信功能或超短距通信功能;所述第四设备响应于所述第一操作,向所述第一设备发送用于指示所述第一设备打开短距离通信功能或超短距通信功能的指示;所述第一设备响应于接收到的所述指示,开启短距离通信功能或超短距通信功能。
- 如权利要求1-12任一所述的方法,其特征在于,所述第一设备向所述第二设备发送第一密钥,包括:所述第一设备使用NFC或WIFI Aware向所述第二设备发送第一密钥。
- 如权利要求1-13任一所述的方法,其特征在于,所述第一设备检测到所述第二设备贴近所述第一设备,包括:所述第一设备检测到所述第二设备与所述第一设备之间的距离小于第一阈值;和/或,所述第一设备检测到所述第二设备的信号强度大于第二阈值。
- 如权利要求14所述的方法,其特征在于,所述第一阈值是0厘米至30厘米范围内的一个值;所述第二阈值是-5dbm至-150dbm范围内的一个值。
- 如权利要求1-15任一所述的方法,其特征在于,所述第一设备是家居设备,所述第二设备是移动终端,所述控制指令用于控制所述家居设备的开启、关闭或调整运行参数;其中,所述家居设备包括:电视机、音箱、游戏机、照明设备、清洁设备或烹饪设备中的一种或多种;或者,所述第一设备是办公设备,所述第二设备是移动终端,所述控制指令用于控制所述办公设备的开启、关闭或调整运行参数;其中,所述办公设备包括:投影仪、打印机、复印机或PC中的一种或多种。
- 一种通信系统,其特征在于,包括:第一设备和第二设备;其中,所述第一设备,包括:一个或多个处理器,存储器,以及一个或多个程序;其中,所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,当所述指令被所述第一设备执行时,使得所述第一设备执行如下步骤:检测到所述第二设备贴近所述第一设备;向所述第二设备发送第一密钥;所述第二设备,包括:一个或多个处理器,存储器,以及一个或多个程序;其中,所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,当所述指令被所述第二设备执行时,使得所述第二设备执行如下步骤:接收到所述第一密钥后,使用所述第一密钥对控制指令进行加密;所述控制指令用于控制所述第一设备;将加密后的控制指令发送给所述第一设备;当所述指令被所述第一设备执行时,使得所述第一设备还执行步骤:对所述加密后的控制指令解密得到所述控制指令并执行所述控制指令。
- 如权利要求17所述的通信系统,其特征在于,当所述指令被所述第二设备执行时,使得所述第二设备还执行步骤:显示第一提示信息,所述第一提示信息用于提示是否申请对所述第一设备的临时控制权;接收到确认指令时,向所述第一设备发送第一申请,所述第一申请用于指示所述第二 设备申请对所述第一设备的临时控制权;当所述指令被所述第一设备执行时,使得所述第一设备具体执行步骤:接收到来自所述第二设备的第一申请时,向所述第二设备发送第一密钥。
- 如权利要求17或18所述的通信系统,其特征在于,所述第一密钥具有有效期,超过所述有效期时,所述第一密钥失效;其中,所述有效期是预设的,或者,用户设置的,或者,根据所述第一设备的类型确定的;其中,不同类型的第一设备生成的第一密钥的有效期不同。
- 如权利要求18或19所述的通信系统,其特征在于,当所述指令被所述第一设备执行时,使得所述第一设备还执行步骤:当满足预设条件时,终止所述第二设备对所述第一设备的临时控制权;其中,所述预设条件,包括如下至少一种:所述第一密钥的使用时长超过有效期;或者,从所述第二设备接收到所述第一密钥的时刻开始达到预设时长;或者,所述第一设备检测到第三设备靠近所述第一设备;或者,所述第一设备上检测到用于终止所述第二设备对所述第一设备的临时控制权的操作;或者,所述第一设备接收到来自所述第一设备的owner的指令,所述owner为可以通过云端控制所述第一设备的设备;所述指令用于指示终止所述第二设备对所述第一设备的临时控制权;或者,所述第一设备检测到所述第二设备与所述第一设备的距离大于第二预设距离。
- 如权利要求18-20任一所述的通信系统,其特征在于,所述通信系统还包括第四设备和云端,所述第四设备为所述第一设备的owner,所述owner为可以通过所述云端控制所述第一设备的设备;当所述指令被所述第一设备执行时,使得所述第一设备具体执行步骤:向所述第四设备发送确认请求;所述确认请求用于确认是否同意所述第二设备获取所述第一设备的临时控制权;接收到来自所述第四设备的同意指令时,向所述第二设备发送第一密钥。
- 如权利要求21所述的通信系统,其特征在于,当所述指令被所述第一设备执行时,使得所述第一设备具体执行步骤:向所述云端发送第二申请,所述第二申请用于指示所述第二设备申请所述第一设备的临时控制权;所述云端,包括:一个或多个处理器,存储器,以及一个或多个程序;其中,所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,当所述指令被所述云端执行时,使得所述云端执行如下步骤:所述云端响应于接收到的所述第二申请,根据设备与owner之间的映射关系确定所述第一设备的owner为所述第四设备;向所述第四设备发送所述确认请求。
- 如权利要求21或22所述的通信系统,其特征在于,当所述指令被所述第一设备执行时,使得所述第一设备还执行步骤:生成免认证时长,和/或,免认证次数;在所述第二设备对所述第一设备的临时控制权终止之后,所述第一设备检测到所述第二设备再次靠近所述第一设备时,确定未超出免认证时长,和/或,所述第二设备的累计靠近次数未超出免认证次数时,免除向所述第四设备确认。
- 如权利要求21-23任一所述的通信系统,其特征在于,当所述指令被所述第一设备 执行时,使得所述第一设备具体执行步骤:接收到来自所述第四设备的同意指令后,当所述第一设备检测到所述第二设备再次靠近所述第一设备时,向所述第二设备发送第一密钥。
- 如权利要求18-24任一所述的通信系统,其特征在于,当所述指令被所述第二设备执行时,使得所述第二设备还执行步骤:确定所述第一设备中支持临时控制权的功能;所述第二设备向所述第一设备发送的控制指令用于控制所述第一设备中支持临时控制权的功能;其中,所述功能为所述第一设备中预设功能,或,用户指定的功能,或所述第一设备中与用户隐私无关的功能。
- 如权利要求18-25任一所述的通信系统,其特征在于,所述系统还包括云端;当所述指令被所述第二设备执行时,使得所述第二设备还执行步骤:所述第二设备上显示第二提示信息,所述第二提示信息用于提示是否申请对所述第一设备的永久控制权;所述第二设备接收到确认指令时,向所述第一设备发送第三申请,所述第三申请用于指示所述第二设备申请对所述第一设备的永久控制权;当所述指令被所述第一设备执行时,使得所述第一设备还执行步骤:所述第一设备向云端发送所述第三申请;所述云端,包括:一个或多个处理器,存储器,以及一个或多个程序;其中,所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,当所述指令被所述云端执行时,使得所述云端执行如下步骤:响应于接收到的所述第三申请,记录所述第二设备为所述第一设备的owner,以使所述第二设备能够通过所述云端控制所述第一设备。
- 如权利要求26所述的通信系统,其特征在于,当所述指令被所述云端执行时,使得所述云端具体执行步骤:响应于所述第三申请,所述云端确定所述第一设备的owner是第四设备;所述云端向所述第四设备发送确认请求;所述确认请求用于指示是否同意所述第二设备获得所述第一设备的永久控制权;当所述云端接收到同意指令时,记录所述第一设备的owner由所述第四设备更新为所述第二设备。
- 如权利要求17-27任一所述的通信系统,其特征在于,所述系统还包括第四设备,所述第四设备为所述第一设备的owner,所述owner为可以通过云端控制所述第一设备的设备;所述第四设备,包括:一个或多个处理器,存储器,以及一个或多个程序;其中,所述一个或多个程序被存储在所述存储器中,所述一个或多个程序包括指令,当所述指令被所述第四设备执行时,使得所述第四设备执行如下步骤:所述第四设备上接收到第一操作,所述第一操作用于指示打开所述第一设备的短距离通信功能或短距通信功能;所述第四设备响应于所述第一操作,向所述第一设备发送用于指示所述第一设备打开短距离通信功能或短距通信功能的指示;当所述指令被所述第一设备执行时,使得所述第一设备执行如下步骤:响应于接收到的所述指示,开启短距离通信功能或短距通信功能。
- 如权利要求17-28任一所述的通信系统,其特征在于,当所述指令被所述第一设备执行时,使得所述第一设备具体执行步骤:所述第一设备检测到所述第二设备与所述第一设备之间的距离小于第一阈值;和/或,所述第一设备检测到所述第二设备的信号强度大于第二阈值。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求1至16中任意一项所述的方法。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| EP21897228.9A EP4243349A4 (en) | 2020-11-30 | 2021-11-30 | METHOD FOR ACQUIRING DEVICE CONTROL RIGHTS AND COMMUNICATION SYSTEM |
| US18/255,059 US12532162B2 (en) | 2020-11-30 | 2021-11-30 | Method and communication system for obtaining right of device control based on encryption |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011375333.4 | 2020-11-30 | ||
| CN202011375333.4A CN114584412B (zh) | 2020-11-30 | 2020-11-30 | 一种获取设备控制权的方法与通信系统 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2022111728A1 true WO2022111728A1 (zh) | 2022-06-02 |
Family
ID=81754040
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2021/134426 Ceased WO2022111728A1 (zh) | 2020-11-30 | 2021-11-30 | 一种获取设备控制权的方法与通信系统 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US12532162B2 (zh) |
| EP (1) | EP4243349A4 (zh) |
| CN (1) | CN114584412B (zh) |
| WO (1) | WO2022111728A1 (zh) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US12443696B2 (en) * | 2021-03-08 | 2025-10-14 | Thinkspan, LLC | User authentication in a recall-memory enhancing manner |
| EP4207044A4 (en) * | 2021-04-12 | 2024-04-24 | Samsung Electronics Co., Ltd. | HOUSEHOLD APPLIANCE AND CONTROL METHODS THEREFOR |
| CN113064536B (zh) * | 2021-06-01 | 2021-10-19 | 深圳传音控股股份有限公司 | 处理方法、处理设备及可读存储介质 |
| CN116055239A (zh) * | 2023-01-12 | 2023-05-02 | 深圳前海同益网络技术有限公司 | 一种基于WiFi Aware的遥控方法及系统 |
| CN116528394B (zh) * | 2023-07-05 | 2023-10-17 | 广州疆海科技有限公司 | 设备通信连接方法、移动端系统以及设备端系统 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105141584A (zh) * | 2015-07-29 | 2015-12-09 | 宇龙计算机通信科技(深圳)有限公司 | 一种智能家居系统的设备认证方法及装置 |
| CN108173720A (zh) * | 2017-12-07 | 2018-06-15 | 无锡小天鹅股份有限公司 | 家用电器的控制方法及系统、家用电器系统 |
| CN110352606A (zh) * | 2017-03-03 | 2019-10-18 | 华为技术有限公司 | 一种连接网络的方法、移动终端、电子设备和图形用户界面 |
| WO2020055045A1 (ko) * | 2018-09-13 | 2020-03-19 | 삼성전자 주식회사 | 아이오티 기기 제어 서비스를 제공하는 전자 장치 및 그 제어 방법 |
| WO2020155014A1 (zh) * | 2019-01-31 | 2020-08-06 | 华为技术有限公司 | 智能家居设备分享系统、方法及电子设备 |
Family Cites Families (21)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP2725823A1 (en) * | 2012-10-26 | 2014-04-30 | Irevo Inc. | Method for performing user authentication between secured element and door lock through NFC |
| US9002536B2 (en) * | 2013-03-14 | 2015-04-07 | Ford Global Technologies, Llc | Key fob security copy to a mobile phone |
| CN103747102A (zh) | 2014-01-24 | 2014-04-23 | 宇龙计算机通信科技(深圳)有限公司 | 一种传输文件的方法及装置 |
| US9571464B2 (en) * | 2014-08-11 | 2017-02-14 | Intel Corporation | Network-enabled device provisioning |
| CN104243250B (zh) | 2014-08-18 | 2017-12-12 | 小米科技有限责任公司 | 基于智能家居系统的访问授权方法、装置及设备 |
| CN105608861B (zh) * | 2015-10-29 | 2019-08-30 | 小米科技有限责任公司 | 电子设备控制方法及装置 |
| CN105553932A (zh) * | 2015-11-30 | 2016-05-04 | 青岛海尔智能家电科技有限公司 | 智能家电设备的远程控制安全绑定方法、装置和系统 |
| CN105490896A (zh) * | 2015-12-09 | 2016-04-13 | 美的集团股份有限公司 | 家用电器的管理方法、装置和系统 |
| CN106941703B (zh) | 2016-01-04 | 2020-02-18 | 上海交通大学 | 基于态势感知的室内外无缝定位装置和方法 |
| US9990783B2 (en) * | 2016-02-16 | 2018-06-05 | GM Global Technology Operations LLC | Regulating vehicle access using cryptographic methods |
| WO2017187326A1 (en) * | 2016-04-28 | 2017-11-02 | Serge Covain | Electronic device for generating a control signal in a secured fashion and method for generating said control signal using the electronic device |
| CN107395751B (zh) * | 2017-08-23 | 2020-06-05 | 合肥美菱物联科技有限公司 | 一种智能家电远程控制系统和方法 |
| CN108337253A (zh) * | 2018-01-29 | 2018-07-27 | 苏州南尔材料科技有限公司 | 一种基于计算机的智能家电控制方法 |
| CN108540357B (zh) | 2018-03-30 | 2020-10-09 | 深圳市沃特沃德股份有限公司 | 语音控制方法、装置和音响设备 |
| CN109068307A (zh) | 2018-10-16 | 2018-12-21 | 中新工程技术研究院有限公司 | 通讯设备、通讯连接方法、装置及计算机可读存储介质 |
| CN110391959B (zh) * | 2019-07-16 | 2021-11-02 | 青岛海尔科技有限公司 | 基于智能家居控制系统的控制权限的设置方法及装置 |
| CN110636445B (zh) | 2019-10-16 | 2022-09-16 | 腾讯科技(深圳)有限公司 | 基于wifi的室内定位方法、装置、设备及介质 |
| CN110703621A (zh) | 2019-10-31 | 2020-01-17 | 宁波奥克斯电气股份有限公司 | 家电设备控制方法、装置、服务器和计算机可读存储介质 |
| CN111049711B (zh) | 2019-11-28 | 2022-01-11 | 苏宁智能终端有限公司 | 设备控制权分享方法、装置、计算机设备和存储介质 |
| CN110941501A (zh) | 2019-11-29 | 2020-03-31 | 维沃移动通信有限公司 | 一种应用共享方法及电子设备 |
| CN111654467A (zh) * | 2020-04-26 | 2020-09-11 | 深圳市诺亚创盟家具有限公司 | 一种智能家居使用权限的控制方法、系统以及存储介质 |
-
2020
- 2020-11-30 CN CN202011375333.4A patent/CN114584412B/zh active Active
-
2021
- 2021-11-30 EP EP21897228.9A patent/EP4243349A4/en active Pending
- 2021-11-30 WO PCT/CN2021/134426 patent/WO2022111728A1/zh not_active Ceased
- 2021-11-30 US US18/255,059 patent/US12532162B2/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105141584A (zh) * | 2015-07-29 | 2015-12-09 | 宇龙计算机通信科技(深圳)有限公司 | 一种智能家居系统的设备认证方法及装置 |
| CN110352606A (zh) * | 2017-03-03 | 2019-10-18 | 华为技术有限公司 | 一种连接网络的方法、移动终端、电子设备和图形用户界面 |
| CN108173720A (zh) * | 2017-12-07 | 2018-06-15 | 无锡小天鹅股份有限公司 | 家用电器的控制方法及系统、家用电器系统 |
| WO2020055045A1 (ko) * | 2018-09-13 | 2020-03-19 | 삼성전자 주식회사 | 아이오티 기기 제어 서비스를 제공하는 전자 장치 및 그 제어 방법 |
| WO2020155014A1 (zh) * | 2019-01-31 | 2020-08-06 | 华为技术有限公司 | 智能家居设备分享系统、方法及电子设备 |
Non-Patent Citations (1)
| Title |
|---|
| See also references of EP4243349A4 * |
Also Published As
| Publication number | Publication date |
|---|---|
| EP4243349A4 (en) | 2024-04-10 |
| US20240007851A1 (en) | 2024-01-04 |
| US12532162B2 (en) | 2026-01-20 |
| CN114584412B (zh) | 2025-05-27 |
| CN114584412A (zh) | 2022-06-03 |
| EP4243349A1 (en) | 2023-09-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111466099B (zh) | 一种登录方法、令牌发送方法、设备及存储介质 | |
| CN114584412B (zh) | 一种获取设备控制权的方法与通信系统 | |
| CN110336720B (zh) | 设备控制方法和设备 | |
| CN111954283B (zh) | 一种接入无线局域网的方法和终端 | |
| CN114125791B (zh) | 一种音频推送方法及音频推送系统 | |
| EP3926448A1 (en) | Device control page display method, related apparatus and system | |
| EP4152190B1 (en) | Permission management method and apparatus for application, and electronic device | |
| CN113609498B (zh) | 数据保护方法及电子设备 | |
| WO2020143414A1 (zh) | 无线网络接入方法、装置、设备及系统 | |
| EP4270184A1 (en) | Cross-device authentication method and electronic devices | |
| WO2020224447A1 (zh) | 一种在联系人中添加智能家居设备的方法及系统 | |
| CN109074443A (zh) | 一种解锁方法及装置 | |
| CN113923611A (zh) | 一种呼叫转移系统及相关装置 | |
| WO2022083721A1 (zh) | 一种群组内群成员隐私保护方法与终端设备 | |
| US20250141884A1 (en) | Communication method, communication system, and electronic device | |
| WO2022088867A1 (zh) | 一种指纹验证方法、电子设备与服务器 | |
| WO2023071733A1 (zh) | 一种设备控制方法与相关设备 | |
| WO2023169545A1 (zh) | 离线设备控制方法及相关装置 | |
| WO2023142935A1 (zh) | 应用组件管理方法及相关设备 | |
| EP4535715A1 (en) | Device discovery method, and related apparatus and system | |
| US20250358777A1 (en) | Find network device management method and electronic device | |
| EP4539443A1 (en) | Message sharing method and related device | |
| WO2022143273A1 (zh) | 信息处理方法和电子设备 | |
| WO2023020497A1 (zh) | 一种设备控制方法与电子设备 | |
| HK40068156B (zh) | 一种音频推送方法及音频推送系统 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21897228 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 18255059 Country of ref document: US |
|
| ENP | Entry into the national phase |
Ref document number: 2021897228 Country of ref document: EP Effective date: 20230605 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| WWG | Wipo information: grant in national office |
Ref document number: 18255059 Country of ref document: US |