CN113272745B - Smart home equipment sharing system and method and electronic equipment - Google Patents

Smart home equipment sharing system and method and electronic equipment Download PDF

Info

Publication number
CN113272745B
CN113272745B CN201980088119.XA CN201980088119A CN113272745B CN 113272745 B CN113272745 B CN 113272745B CN 201980088119 A CN201980088119 A CN 201980088119A CN 113272745 B CN113272745 B CN 113272745B
Authority
CN
China
Prior art keywords
electronic device
user
control
functions
smart home
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.)
Active
Application number
CN201980088119.XA
Other languages
Chinese (zh)
Other versions
CN113272745A (en
Inventor
赵朋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN113272745A publication Critical patent/CN113272745A/en
Application granted granted Critical
Publication of CN113272745B publication Critical patent/CN113272745B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers

Abstract

A smart home device sharing system, a smart home device sharing method and electronic devices can reduce the sharing steps of smart home devices. The method comprises the following steps: receiving a first user operation (S201); displaying a first user interface (200, 300) in response to a first user operation (S202); wherein the first user interface (200, 300) comprises functions that the smart home device (14) allows sharing; receiving a second user operation (S203) acting on the first user interface (200, 300); in response to a second user operation, determining one or more functions of the functions allowed to be shared as functions to be shared (S204); receiving a third user operation (S205); generating a control file according to one or more functions in response to a third user operation (S206); and sending the control file to the second electronic equipment (12) (S207) so that the second electronic equipment (12) controls one or more functions of the intelligent household equipment (14) according to the control file (S208).

Description

Smart home equipment sharing system and method and electronic equipment
Technical Field
The application relates to the technical field of smart homes, in particular to a smart home device sharing system and method and an electronic device.
Background
With the continuous development of the internet of things technology, smart home devices are more and more popular, and smart home systems are more and more widely applied. The wide application of the intelligent home system provides more convenient and comfortable home life for users. If the visitor in the home needs to live for a while, the host needs to share some smart home devices with the visitor.
In the prior art, a first requirement for sharing smart home devices is that an application program provided by a shared device manufacturer needs to be installed on a mobile phone of a shared person. If not, the sharing process of the intelligent home device is very complicated, and the sharees need to download the application program, then apply for the account number, and perform a series of settings on the application program. Therefore, the sharing operation steps of the intelligent household equipment in the prior art are complicated, and the operation difficulty is high.
Disclosure of Invention
The application provides a smart home device sharing system and method and electronic equipment, which can reduce the sharing operation steps of smart home devices.
In a first aspect, an embodiment of the present application provides an intelligent home device sharing system, which includes a first electronic device, a second electronic device, and an intelligent home device; the intelligent home equipment comprises first electronic equipment, second electronic equipment and intelligent home equipment, wherein the first electronic equipment is connected with the intelligent home equipment and controls all functions supported by the intelligent home equipment; the first electronic device is configured to: receiving a first user operation; responding to the first user operation, and displaying a first user interface; the first user interface comprises a sharing permission function of the intelligent household equipment; receiving a second user operation acting on the first user interface; responding to the second user operation, and determining one or more functions in the functions allowing sharing as functions to be shared; receiving a third user operation; responding to the third user operation, and generating a control file according to the one or more functions; sending the control file to the second electronic device; the second electronic device is configured to: and controlling the one or more functions of the intelligent household equipment according to the control file.
Specifically, the control file may include an execution program and a configuration file. The configuration file is generated according to one or more functions selected by a user in the first electronic equipment.
Specifically, the number of smart home devices may be one or more. Different intelligent household devices respectively correspond to one configuration file. Configuration files corresponding to different intelligent household devices can be contained in the same control file.
According to the method and the device, the first user can share the intelligent household equipment with the second user, and the first user can set partial functions of the intelligent household equipment controllable by the second user on the first electronic equipment, so that the sharing process of the equipment is more flexible. The second user does not need to additionally apply for an account number, the intelligent household equipment shared by the first user can be controlled, the second user does not need to set the working parameters of the intelligent household equipment again, and operation of the second user is reduced.
In a possible implementation manner, the first electronic device controls the smart home device through a first application program, and the control file is an installation package of the first application program.
Specifically, the installation package of the first application may include three layers of software architectures, namely a UI layer, a device management layer, and a communication layer. The UI layer can be used for providing an interface for the interaction of a user and the first electronic equipment; the device management layer may be configured to manage each smart home device, for example, to turn on and off the smart home device, adjust a working parameter, modify a device name, and the like; the communication layer can be used for providing an interface for interaction of the first electronic equipment and the intelligent household equipment.
The UI layer, the equipment management layer and the communication layer can comprise a plurality of modules, and different intelligent household equipment can correspond to different modules. Wherein the communication layer may include a plurality of modules such as a bluetooth module, a Wi-Fi module, a mobile network module, an infrared module, etc.
Possibly, the installation package of the first application is a shared (simplified) installation package, that is, only the UI layer module, the device management layer module, and the communication layer module related to the device to be shared may be included in the installation package. The specific modules contained in the UI layer, the device management layer and the communication layer may be determined by the configuration file of the device to be shared.
In the embodiment of the application, the control file sent by the first electronic device is only related to the device to be shared, so that the control file is more simplified, resources occupied in the file transmission process are saved, and a memory occupied by the control file in the second electronic device is saved.
Possibly, the installation package of the first application program is a complete installation package.
In the embodiment of the application, the second electronic device can provide two using modes for the second user, namely, the second user logs in an application server of the first application program by using an existing account, or directly views the device shared by the first user and the second user, and the device can be controlled without the account. The second user can use the application program according to self needs, and when the sharing process of the intelligent home device is simplified, the utilization rate of the application program is improved, and the user experience is improved.
In a possible implementation manner, the manner of sending the control file to the second electronic device includes any one or more of the following: bluetooth, WLAN direct, NFC.
Possibly, the first electronic device may discover the second electronic device through bluetooth, and then send the control file to the second electronic device through WLAN direct connection.
In one possible implementation, the control file is a WeChat applet.
In particular, a program framework of a WeChat applet of a first application may be included within an installation package of the first application. When the first user selects one or more of the functions on the first electronic device, the first electronic device writes the parameters corresponding to the functions into the program frame of the applet.
In a possible implementation manner, the second user operation is further configured to select a name and/or a picture of the smart home device; the generating the control file according to the one or more functions includes: and generating a control file according to the one or more functions, the name and/or the picture.
In the embodiment of the application, the first user can set partial functions of the smart home device controllable by the second user on the first electronic device, and can also set whether the second user can check the name and/or the picture of the device, so that the privacy of the first user is ensured.
In a possible implementation manner, the second user operation is further configured to select an effective control duration of the smart home device; the generating the control file according to the one or more functions includes: and generating a control file according to the one or more functions and the effective control time length.
In the embodiment of the application, the first user can set partial functions of the intelligent household equipment controllable by the second user on the first electronic equipment, and can set the effective control duration for controlling the intelligent household equipment by the second user, so that the first user does not need to manually withdraw the control right, the operation of the first user is reduced, and the sharing efficiency of the intelligent household equipment is improved. The situation that the second user can control the intelligent home equipment all the time due to the fact that the first user forgets to take back the control right is avoided, privacy of the first user is guaranteed, and user experience of the first user is improved.
In a possible implementation manner, the second user operation is further configured to select an effective control duration of the smart home device; the generating the control file according to the one or more functions includes: and generating a control file according to the one or more functions, the name and/or the picture and the effective control time length.
In the embodiment of the application, the first user may set, on the first electronic device, part of functions of the smart home device controllable by the second user, and may set whether the second user can check the name and/or the picture of the device, and control the effective control duration of the smart home device. By implementing the embodiment of the application, the privacy of the first user can be guaranteed, the first user does not need to manually withdraw the control right, the operation of the first user is reduced, and the sharing efficiency of the intelligent household equipment is improved. The situation that the second user can control the intelligent household equipment all the time due to the fact that the first user forgets to withdraw the control right is avoided, and user experience of the first user is improved.
In a possible implementation manner, the first electronic device is further configured to: generating a key according to the effective duration; and sending the secret key to the intelligent household equipment and the second electronic equipment.
In this embodiment, the key may be generated by the first electronic device, and validity of the key is determined by the validity control duration. The first user can set the control time limit of the second user on the intelligent household equipment by setting the effective control time length of the secret key.
In a possible implementation manner, the first electronic device is further configured to: sending the effective control duration to the intelligent home equipment so that the intelligent home equipment generates a secret key according to the effective control duration; receiving the secret key sent by the intelligent household equipment; and sending the key to the second electronic equipment.
In the embodiment of the application, the secret key can be generated by the intelligent household equipment, and the validity of the secret key is determined by the effective control duration. The first user can set the control time limit of the second user on the intelligent household equipment by setting the effective control time length of the secret key.
In a possible implementation manner, the second electronic device is further configured to: and receiving the control file and analyzing the one or more functions in the control file.
In the embodiment of the application, after receiving the control file, the second electronic device analyzes the control file to obtain one or more functions of the smart home device shared by the first electronic device.
In a possible implementation manner, the second electronic device is further configured to: encrypting the control command through the key; and sending the control command to the intelligent home equipment so that the intelligent home equipment decrypts the control command by adopting the secret key and executes the control command.
Possibly, after the second electronic device receives the control file, the control file cannot be shared to the third electronic device again, the privacy of the first user can be guaranteed not to be revealed, and other people are prevented from operating the intelligent home equipment of the first user at will.
In the embodiment of the application, the second electronic device can communicate with the intelligent household device through the secret key, so that other electronic devices can be prevented from controlling the intelligent household device, and the privacy of the first user is guaranteed. In addition, the control time limit of the second user on the intelligent household equipment is set through the effective control duration of the key, the situation that the second user can always control the intelligent household equipment due to the fact that the first user forgets to withdraw the control right is avoided, and user experience of the first user is improved.
In a second aspect, an embodiment of the present application provides an electronic device, including one or more processors, a memory, and a wireless communication module; the memory and the wireless communication module are coupled to the one or more processors, the memory configured to store computer program code, the computer program code including computer instructions, the one or more processors executing the computer instructions to cause the electronic device to perform: receiving a first user operation; responding to the first user operation, and displaying a first user interface; the first user interface comprises a sharing allowing function of the intelligent household equipment; receiving a second user operation acting on the first user interface; responding to the second user operation, and determining one or more functions in the functions allowing sharing as functions to be shared; receiving a third user operation; responding to the third user operation, and generating a control file according to the one or more functions; and sending the control file to second electronic equipment so that the second electronic equipment controls the one or more functions of the intelligent household equipment according to the control file.
Specifically, the control file may include an execution program and a configuration file. The configuration file is generated according to one or more functions selected by a user in the first electronic equipment.
Specifically, the number of smart home devices may be one or more. Different intelligent household devices respectively correspond to one configuration file. Configuration files corresponding to different intelligent household devices can be contained in the same control file.
According to the method and the device, the first user can share the intelligent household equipment with the second user, and the first user can set partial functions of the intelligent household equipment controllable by the second user on the first electronic equipment, so that the sharing process of the equipment is more flexible. The second user does not need to additionally apply for an account number, the intelligent household equipment shared by the first user can be controlled, the second user does not need to set the working parameters of the intelligent household equipment again, and operation of the second user is reduced.
In a possible implementation manner, the electronic device controls the smart home device through a first application program, and the control file is an installation package of the first application program.
Specifically, the installation package of the first application may include three layers of software architectures, namely a UI layer, a device management layer, and a communication layer. The UI layer may be used to provide an interface for user interaction with the first electronic device; the device management layer may be configured to manage each smart home device, for example, to turn on and off the smart home device, adjust a working parameter, modify a device name, and the like; the communication layer can be used for providing an interface for interaction of the first electronic equipment and the intelligent household equipment.
The UI layer, the equipment management layer and the communication layer can comprise a plurality of modules, and different intelligent household equipment can correspond to different modules. Wherein the communication layer may include a plurality of modules such as a bluetooth module, a Wi-Fi module, a mobile network module, an infrared module, etc.
Possibly, the installation package of the first application is a shared (simplified) installation package, that is, only the UI layer module, the device management layer module, and the communication layer module related to the device to be shared may be included in the installation package. The specific modules contained in the UI layer, the device management layer and the communication layer may be determined by the configuration file of the device to be shared.
In the embodiment of the application, the control file sent by the first electronic device is only related to the device to be shared, so that the control file is more simplified, resources occupied in the file transmission process are saved, and a memory occupied by the control file in the second electronic device is saved.
Possibly, the installation package of the first application program is a complete installation package.
In the embodiment of the application, the second electronic device can provide two using modes for the second user, namely, the second user logs in an application server of the first application program by using an existing account, or directly views the device shared by the first user as the second user, and the device can be controlled without the account. The second user can use the application program according to self needs, and the sharing process of the intelligent home equipment is simplified, meanwhile, the utilization rate of the application program is improved, and the user experience is improved.
In a possible implementation manner, the manner of sending the control file to the second electronic device includes any one or more of the following: bluetooth, WLAN direct, NFC.
Possibly, the first electronic device may discover the second electronic device through bluetooth, and then send the control file to the second electronic device through WLAN direct connection.
In one possible implementation, the control file is a WeChat applet.
In particular, a program framework of a WeChat applet of a first application may be included within an installation package of the first application. When the first user selects one or more of the functions on the first electronic device, the first electronic device writes the parameters corresponding to the functions into the program frame of the applet.
In a possible implementation manner, the second user operation is further configured to select a name and/or a picture of the smart home device; the electronic device specifically executes, when executing the control file generated according to the one or more functions: and generating a control file according to the one or more functions, the name and/or the picture.
In the embodiment of the application, the first user can set partial functions of the intelligent household equipment controllable by the second user on the first electronic equipment, and can also set whether the second user can check the name and/or the picture of the equipment, so that the privacy of the first user is ensured.
In a possible implementation manner, the second user operation is further configured to select an effective control duration of the smart home device; the electronic device specifically executes, when executing the control file generated according to the one or more functions: and generating a control file according to the one or more functions and the effective control time length.
In the embodiment of the application, the first user can set partial functions of the intelligent household equipment controllable by the second user on the first electronic equipment, and can set the effective control duration for controlling the intelligent household equipment by the second user, so that the first user does not need to manually withdraw the control right, the operation of the first user is reduced, and the sharing efficiency of the intelligent household equipment is improved. The situation that the second user can control the intelligent home equipment all the time due to the fact that the first user forgets to take back the control right is avoided, privacy of the first user is guaranteed, and user experience of the first user is improved.
In a possible implementation manner, the second user operation is further configured to select an effective control duration of the smart home device; the electronic device specifically executes, when executing the control file generated according to the one or more functions: and generating a control file according to the one or more functions, the name and/or the picture and the effective control time length.
In the embodiment of the application, the first user may set, on the first electronic device, part of functions of the smart home device controllable by the second user, and may also set whether the second user can check the name and/or the picture of the device, and control the effective control duration of the smart home device. By implementing the embodiment of the application, the privacy of the first user can be guaranteed, the first user does not need to manually withdraw the control right, the operation of the first user is reduced, and the sharing efficiency of the intelligent household equipment is improved. The situation that the second user can control the intelligent household equipment all the time due to the fact that the first user forgets to withdraw the control right is avoided, and user experience of the first user is improved.
In a possible implementation manner, the electronic device further performs: generating a key according to the effective duration; and sending the secret key to the intelligent household equipment and the second electronic equipment.
In this embodiment, the key may be generated by the first electronic device, and validity of the key is determined by the validity control duration. The first user can set the control time limit of the second user on the intelligent household equipment by setting the effective control time length of the secret key.
In a possible implementation manner, the electronic device further performs: sending the effective control duration to the intelligent home equipment so that the intelligent home equipment generates a secret key according to the effective control duration; receiving the secret key sent by the intelligent home equipment; and sending the key to the second electronic equipment.
In the embodiment of the application, the secret key can be generated by the intelligent household equipment, and the validity of the secret key is determined by the effective control duration. The first user can set the control time limit of the second user on the intelligent household equipment by setting the effective control time length of the secret key.
In a third aspect, an embodiment of the present application provides a smart home device sharing method, including: receiving a first user operation; responding to the first user operation, and displaying a first user interface; the first user interface comprises a sharing allowing function of the intelligent household equipment; receiving a second user operation acting on the first user interface; responding to the second user operation, and determining one or more functions in the functions allowing sharing as functions to be shared; receiving a third user operation; responding to the third user operation, and generating a control file according to the one or more functions; and sending the control file to second electronic equipment so that the second electronic equipment controls the one or more functions of the intelligent household equipment according to the control file.
Specifically, the control file may include an execution program and a configuration file. The configuration file is generated according to one or more functions selected by a user in the first electronic equipment.
Specifically, the number of smart home devices may be one or more. Different intelligent household devices respectively correspond to one configuration file. Configuration files corresponding to different intelligent household devices can be contained in the same control file.
According to the method and the device, the first user can share the intelligent household equipment with the second user, and the first user can set partial functions of the intelligent household equipment controllable by the second user on the first electronic equipment, so that the sharing process of the equipment is more flexible. The second user does not need to additionally apply for an account number, the intelligent household equipment shared by the first user can be controlled, the second user does not need to set the working parameters of the intelligent household equipment again, and operation of the second user is reduced.
In a possible implementation manner, the electronic device controls the smart home device through a first application program, and the control file is an installation package of the first application program.
Specifically, the installation package of the first application may include three layers of software architectures, namely a UI layer, a device management layer, and a communication layer. The UI layer may be used to provide an interface for user interaction with the first electronic device; the device management layer may be configured to manage each smart home device, for example, to turn on and off the smart home device, adjust a working parameter, modify a device name, and the like; the communication layer can be used for providing an interface for interaction of the first electronic equipment and the intelligent household equipment.
The UI layer, the equipment management layer and the communication layer can comprise a plurality of modules, and different intelligent household equipment can correspond to different modules. Wherein the communication layer may include a plurality of modules such as a bluetooth module, a Wi-Fi module, a mobile network module, an infrared module, etc.
Possibly, the installation package of the first application is a shared (simplified) installation package, that is, only the UI layer module, the device management layer module, and the communication layer module related to the device to be shared may be included in the installation package. The specific modules contained in the UI layer, the device management layer and the communication layer may be determined by the configuration file of the device to be shared.
In the embodiment of the application, the control file sent by the first electronic device is only related to the device to be shared, so that the control file is more simplified, resources occupied in the file transmission process are saved, and a memory occupied by the control file in the second electronic device is saved.
Possibly, the installation package of the first application program is a complete installation package.
In the embodiment of the application, the second electronic device can provide two using modes for the second user, namely, the second user logs in an application server of the first application program by using an existing account, or directly views the device shared by the first user as the second user, and the device can be controlled without the account. The second user can use the application program according to self needs, and the sharing process of the intelligent home equipment is simplified, meanwhile, the utilization rate of the application program is improved, and the user experience is improved.
In a possible implementation manner, the manner of sending the control file to the second electronic device includes any one or more of the following: bluetooth, WLAN direct connection, NFC.
Possibly, the first electronic device may discover the second electronic device through bluetooth, and then send the control file to the second electronic device through WLAN direct connection.
In a possible implementation manner, the control file is a WeChat applet.
In particular, a program framework of a WeChat applet of a first application may be included within an installation package of the first application. When the first user selects one or more of the functions on the first electronic device, the first electronic device writes the parameters corresponding to the functions into the program frame of the applet.
In a possible implementation manner, the second user operation is further configured to select a name and/or a picture of the smart home device; the generating the control file according to the one or more functions includes: and generating a control file according to the one or more functions, the name and/or the picture.
In the embodiment of the application, the first user can set partial functions of the smart home device controllable by the second user on the first electronic device, and can also set whether the second user can check the name and/or the picture of the device, so that the privacy of the first user is ensured.
In a possible implementation manner, the second user operation is further configured to select an effective control duration of the smart home device; the generating of the control file according to the one or more functions may include: and generating a control file according to the one or more functions and the effective control time length.
In the embodiment of the application, the first user can set partial functions of the intelligent household equipment controllable by the second user on the first electronic equipment, and can set the effective control duration for controlling the intelligent household equipment by the second user, so that the first user does not need to manually withdraw the control right, the operation of the first user is reduced, and the sharing efficiency of the intelligent household equipment is improved. The situation that the second user can control the intelligent home equipment all the time due to the fact that the first user forgets to withdraw the control right is avoided, privacy of the first user is guaranteed, and user experience of the first user is improved.
In a possible implementation manner, the second user operation is further configured to select an effective control duration of the smart home device; the generating the control file according to the one or more functions includes: and generating a control file according to the one or more functions, the name and/or the picture and the effective control time length.
In the embodiment of the application, the first user may set, on the first electronic device, part of functions of the smart home device controllable by the second user, and may set whether the second user can check the name and/or the picture of the device, and control the effective control duration of the smart home device. By implementing the embodiment of the application, the privacy of the first user can be guaranteed, the first user does not need to manually withdraw the control right, the operation of the first user is reduced, and the sharing efficiency of the intelligent household equipment is improved. The situation that the second user can control the intelligent household equipment all the time due to the fact that the first user forgets to withdraw the control right is avoided, and user experience of the first user is improved.
In a possible implementation manner, the method further includes: generating a key according to the effective duration; and sending the secret key to the intelligent household equipment and the second electronic equipment.
In this embodiment, the key may be generated by the first electronic device, and validity of the key is determined by the validity control duration. The first user can set the control time limit of the second user on the intelligent household equipment by setting the effective control time length of the secret key.
In a possible implementation manner, the method further includes: sending the effective control duration to the intelligent household equipment so that the intelligent household equipment generates a secret key according to the effective control duration; receiving the secret key sent by the intelligent home equipment; and sending the key to the second electronic equipment.
In the embodiment of the application, the secret key can be generated by the intelligent household equipment, and the validity of the secret key is determined by the effective control duration. The first user can set the control time limit of the second user on the intelligent household equipment by setting the effective control time length of the secret key.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which includes computer instructions, and when the computer instructions are run on an electronic device, the electronic device is caused to execute an intelligent home device sharing method provided in any one of the third aspect or any one of the possible implementation manners of the third aspect of the embodiment of the present application.
In a fifth aspect, an embodiment of the present application provides a computer program product, which, when running on an electronic device, enables the electronic device to execute the smart home device sharing method provided in any one of the third aspect or any one of the possible implementation manners of the third aspect of the present application.
It can be understood that the computer-readable storage medium provided by the fourth aspect and the computer program product provided by the fifth aspect are both used for executing the smart home device sharing method provided by the third aspect, and therefore, the beneficial effects achieved by the computer-readable storage medium can refer to the beneficial effects in the smart home device sharing method provided by the third aspect, and are not repeated herein.
Drawings
Fig. 1 is a schematic network architecture diagram of an intelligent home device sharing system according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a first electronic device according to an embodiment of the present application;
fig. 3 is a software structure block diagram of a first electronic device according to an embodiment of the present application;
4-20 are schematic diagrams of embodiments of some user interfaces provided by embodiments of the present application;
fig. 21 is a schematic flowchart of controlling an intelligent home device by a second electronic device according to an embodiment of the present application;
fig. 22 is a schematic diagram of a key generation process and a key transmission process according to an embodiment of the present application;
fig. 23 is a schematic diagram of another key generation process and transmission process provided in the embodiment of the present application;
24-27 are schematic diagrams of embodiments of further user interfaces provided by embodiments of the present application;
fig. 28 is a flowchart illustrating a smart home device sharing method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described in detail and clearly with reference to the accompanying drawings.
In the embodiment of the application, the sharer can send the information of the intelligent household equipment to the sharee, and the sharee can control the intelligent household equipment without an account after receiving the information of the intelligent household equipment. The sharing process of the intelligent household equipment is simple, convenient and quick to operate.
First, please refer to fig. 1. Fig. 1 is a schematic network architecture diagram of an intelligent home device sharing system according to an embodiment of the present disclosure.
As shown in fig. 1, the network architecture of the smart home device sharing system may include a first electronic device 11, a second electronic device 12, a router 13, one or more smart home devices 14, and a cloud server 15. The first electronic device 11 may communicate with the router 13, and is connected to the cloud server 15 through the router 13, and the one or more smart home devices 14 may also be connected to the cloud server 15 through the router 13. The first electronic device 11 may send a control instruction to the smart home device 14 through the cloud server 15.
The first electronic device 11 is installed with an application program for controlling the smart home device 14, and the application program may be smart home, for example. In one embodiment, huacheng smart homes may be referred to as a first application. The cloud server 15 may be an application server corresponding to an application program for controlling the smart home device 14, and the cloud server 15 may be, for example, an application server for smart home. The method is not limited to smart home, and other application programs may also be used in the specific implementation, which is not limited in the embodiment of the present application. In the following embodiments of the application, the application program is taken as smart home for example.
The first electronic device 11 may be connected to the second electronic device 12, and send information of the smart home device 14 to the second electronic device 12, so that the second electronic device 12 may send a control instruction to the smart home device 14 through the router 13. The first electronic device 11 may be connected to the second electronic device 12 through a mobile network, and may also be connected to the second electronic device 12 through a short-range wireless communication mode, such as bluetooth, huawei Share, wireless Local Area Network (WLAN) direct connection, near Field Communication (NFC), and the like.
The first electronic device 11 and the second electronic device 12 related to the embodiments of the present application may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a notebook computer, an ultra-mobile personal computer (UMPC), a handheld computer, a netbook, a Personal Digital Assistant (PDA), a wearable electronic device, a virtual reality device, or the like.
In the embodiment of the present application, a user using the first electronic device 11 is referred to as a first user, and a user using the second electronic device 12 is referred to as a second user.
The intelligent household equipment 14 related to the embodiment of the application can be an intelligent sound box, a floor sweeping robot, an intelligent socket, an intelligent electric lamp, an intelligent body fat scale, an intelligent desk lamp, an air purifier, an intelligent refrigerator, an intelligent air conditioner, an intelligent washing machine, an intelligent water heater, an intelligent microwave oven, an intelligent electric cooker, an intelligent curtain, an intelligent fan, an intelligent television, an intelligent set top box and the like.
Next, an exemplary first electronic device 11 provided in the following embodiments of the present application is described.
Fig. 2 shows a schematic structural diagram of the first electronic device 11.
The first electronic device 11 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identity Module (SIM) card interface 195, and the like. 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, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the illustrated structure of the embodiment of the present invention does not specifically limit the first electronic device 11. In other embodiments of the present application, the first electronic device 11 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processor (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), among others. The different processing units may be separate devices or may be integrated into one or more processors.
Wherein the controller may be a neural center and a command center of the first electronic device 11. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
It should be understood that the interface connection relationship between the modules according to the embodiment of the present invention is only illustrative, and does not limit the structure of the first electronic device 11. In other embodiments of the present application, the first electronic device 11 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the first electronic device 11. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect 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 provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may also be disposed in the same device.
The wireless communication function of the first electronic device 11 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, the baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the first electronic device 11 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including wireless communication of 2G/3G/4G/5G, etc. applied on the first electronic device 11. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.
The wireless communication module 160 may provide a solution for wireless communication applied to the first electronic device 11, including wireless local area network (e.g., wireless fidelity (Wi-Fi) network), bluetooth (BT), global Navigation Satellite System (GNSS), frequency Modulation (FM), near Field Communication (NFC), infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
In some embodiments, the antenna 1 of the first electronic device 11 is coupled to the mobile communication module 150 and the antenna 2 is coupled to the wireless communication module 160 so that the first electronic device 11 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), general Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The first electronic device 11 implements a display function through the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the first electronic device 11 may include 1 or N display screens 194, N being a positive integer greater than 1.
The first electronic device 11 may implement a photographing function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, and the application processor, etc.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the first electronic device 11 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the first electronic device 11 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The first electronic device 11 may support one or more video codecs. In this way, the first electronic device 11 can play or record video in a plurality of encoding formats, for example: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. The NPU may implement applications such as intelligent recognition of the first electronic device 11, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the storage capability of the first electronic device 11. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in the external memory card.
The 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 first electronic device 11 by executing instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (such as audio data, a phone book, etc.) created during the use of the first electronic device 11, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
The first electronic device 11 may implement an audio function through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The first electronic device 11 can listen to music through the speaker 170A or listen to a hands-free call.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the first electronic device 11 receives a call or voice information, it can receive voice by placing the receiver 170B close to the ear of the person.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal to the microphone 170C by speaking near the microphone 170C through the mouth. The first electronic device 11 may be provided with at least one microphone 170C. In other embodiments, the first electronic device 11 may be provided with two microphones 170C, which may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the first electronic device 11 may further include three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, implement directional recording functions, and so on.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be the USB interface 130, or may be a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association) standard interface of the USA.
The pressure sensor 180A is used for sensing a pressure signal, and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The first electronic device 11 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the first electronic device 11 detects the intensity of the touch operation according to the pressure sensor 180A. The first electronic device 11 may also calculate the touched position from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but have different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 180B may be used to determine the motion attitude of the first electronic device 11.
The air pressure sensor 180C is used to measure air pressure.
The magnetic sensor 180D includes a hall sensor.
The acceleration sensor 180E can detect the magnitude of acceleration of the first electronic device 11 in various directions (typically three axes). The magnitude and direction of gravity can be detected when the first electronic device 11 is stationary. The method can also be used for recognizing the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode.
The ambient light sensor 180L is used to sense the ambient light level.
The fingerprint sensor 180H is used to collect a fingerprint. The first electronic device 11 can utilize the collected fingerprint characteristics to realize fingerprint unlocking, access to an application lock, fingerprint photographing, fingerprint incoming call answering and the like.
The temperature sensor 180J is used to detect temperature. In some embodiments, the first electronic device 11 executes a temperature processing strategy using the temperature detected by the temperature sensor 180J.
The touch sensor 180K is also referred to as a "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, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine a touch event type. Visual output related to touch operations may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on the surface of the first electronic device 11, and is located at a different position than the display screen 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, the bone conduction sensor 180M may acquire a vibration signal of the human vocal part vibrating the bone mass. The bone conduction sensor 180M may also contact the human body pulse to receive the blood pressure pulsation signal. In some embodiments, the bone conduction sensor 180M may also be disposed in a headset, integrated into a bone conduction headset. The audio module 170 may analyze a voice signal based on the vibration signal of the bone mass vibrated by the sound part acquired by the bone conduction sensor 180M, so as to implement a voice function. The application processor can analyze heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The first electronic device 11 may receive a key input, and generate a key signal input related to user setting and function control of the first electronic device 11.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also respond to different vibration feedback effects when it is applied to touch operations in different areas of the display screen 194. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card can be brought into and out of contact with the first electronic device 11 by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The first electronic device 11 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. The same SIM card interface 195 can be inserted with multiple cards at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The first electronic device 11 interacts with the network through the SIM card to implement functions such as a call and data communication. In some embodiments, the first electronic device 11 employs esims, namely: an embedded SIM card. The eSIM card may be embedded in the first electronic device 11 and may not be separable from the first electronic device 11.
The structure of the second electronic device 12 is similar to that of the first electronic device 11, and reference is made to the detailed description of fig. 2, which is not repeated here.
The software system of the first electronic device 11 may adopt a hierarchical architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the invention takes an Android system with a layered architecture as an example, and exemplarily illustrates a software structure of the first electronic device 11.
Fig. 3 is a block diagram of a software configuration of the first electronic device 11 according to the embodiment of the present invention.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages.
As shown in fig. 3, the application package may include applications such as camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 3, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, 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 first electronic device 11. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing. The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
In the following, with reference to the captured photographing scene, the workflow of the software and hardware of the first electronic device 11 in the case that the first control mode is turned on is exemplarily described.
When the touch sensor 180K receives a touch operation, a corresponding hardware interrupt is issued to the kernel layer. The kernel layer processes the touch operation into an original input event (including touch coordinates, a time stamp of the touch operation, and other information). The raw input events are stored at the kernel layer. And the application program framework layer acquires the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and taking a control corresponding to the click operation as a control of a camera application icon as an example, the camera application calls an interface of an application framework layer, starts the camera application, further starts a camera drive by calling a kernel layer, and captures a still image or a video through the camera 193.
The software structure of the second electronic device 12 is similar to the software structure of the first electronic device 11, and reference may be made to the detailed description of fig. 3, which is not repeated here.
An application scenario and an embodiment of a User Interface (UI) in the scenario related to the embodiment of the present application are described below.
In the following figures, the numerals in parentheses after the user interface reference numerals indicate the electronic devices that the user interface displays. The number 11 in parentheses indicates that the user interface is displayed on the first electronic device 11, and the number 12 in parentheses indicates that the user interface is displayed on the second electronic device 12. For example, 40 (11) in fig. 4 indicates that the user interface 40 is displayed on the first electronic device 11, and 400 (12) in fig. 14 indicates that the user interface 400 is displayed on the second electronic device 12.
Fig. 4 exemplarily shows a homepage in a desktop (desktop) on the first electronic device 11, which is referred to as a user interface 40 herein, the user interface 40 may include a status bar 401, a time component icon 402 and a weather component icon 403, icons of a plurality of applications such as an album icon 404, a microblog icon 405, a camera icon 406, a WeChat icon 407, a setting icon 408 and a Smart Home icon 409, and the user interface 40 may further include a page indicator 410, a telephone icon 411, a short message icon 412, a contact icon, a navigation bar 414, and the like. Wherein:
the status bar 401 may include: an operator indicator (e.g., the operator's name "china mobile"), one or more signal strength indicators for wireless fidelity (Wi-Fi) signals, one or more signal strength indicators for mobile communication signals (which may also be referred to as cellular signals), a time indicator, and a battery status indicator.
The time component icon 402 may be used to indicate the current time, such as the date, day of the week, time division information, and the like.
The weather component icon 403 may be used to indicate the type of weather, such as cloudy sunny, light rain, etc., and may also be used to indicate information such as temperature, etc.
The page indicator 410 may be used to indicate which page of applications the first user is currently browsing. The first user may slide the area of the plurality of application icons from side to browse the application icons in other pages.
Navigation bar 414 may include: a return key 4141, a Home screen key 4142, an outgoing call task history key 4143, and other system navigation keys. The main interface is an interface displayed by the first electronic device 11 after any user interface detects a user operation on the main interface button 4142. When it is detected that the first user clicks the return key 4141, the first electronic device 11 may display a user interface previous to the current user interface. When detecting that the first user clicks the home interface button 4142, the first electronic device 11 may display the home interface. When it is detected that the first user clicks the outgoing task history key 4143, the first electronic device 11 may display a task that the first user has recently opened. The names of the navigation keys can be other keys, for example, 4141 can be called Back Button,4142 can be called Home Button,4143 can be called Menu Button, and the application is not limited thereto. The navigation keys in navigation bar 414 are not limited to virtual keys and may be implemented as physical keys.
Fig. 5 illustrates a user interface 50 for controlling smart home devices 400. The user interface 50 may be obtained by clicking the smart home icon 409 in the user interface 40.
The first electronic device 11 may detect a user operation (e.g., a click operation on the smart home icon 409) acting on the smart home icon 409, and in response to the user operation, the first electronic device 11 may display the user interface 50 shown in fig. 5.
As shown in fig. 5, the user interface 50 may include: four menu controls (wisdom 501, mall 502, cool play 503, my 504), content display area 505. The content displayed in the content display area differs under different menus. The currently selected menu category shown in fig. 5 is wisdom family 501. That is, the content displayed in the content display area 505 is the content displayed under the menu of the wisdom home 501.
As shown in fig. 5, the content display area 505 may include: a user name indicator 5051, a scene list 5052, a category bar 5053, a smart home device list 5054, and an add-on control 5055. Wherein:
the user name indicator 5051 is used to indicate the name of the first user. For example, the user name indicator "home of June" shown in fig. 5 indicates that the name of the first user is "June".
The scene list 5052 may include one or more scene icons, the smart home devices started in different scenes are different, and the working parameters of the same smart home device started in different scenes may also be different. The working parameter of the smart home device may be, for example, the volume of the smart sound box, the color or brightness of the smart lamp, the working mode or the wind speed of the air purifier, and the like. The working parameters of the intelligent household equipment started in each scene and the working parameters of the started intelligent household equipment can be set and stored in advance by the first user.
Illustratively, the scene list 5052 includes icons of four scenes, i.e., "go home", "leave home", "enter home", and "enter living room", respectively. The first electronic device 11 may detect a user operation (e.g., a click operation on the "go home" scene icon) acting on an icon of any one of the four scenes (e.g., the "go home" scene), and in response to the user operation, the first electronic device 11 may send, to the cloud server 15, an instruction to turn on the smart home device corresponding to the scene and an instruction to set a working parameter of the turned-on smart home device. That is to say, the first user may click an icon of a certain scene to start the smart home devices corresponding to the scene and the working parameters of the smart home devices.
The scene list 5052 may also include a "more" icon. The first electronic device 11 may detect a user operation (e.g., a click operation on the "more" icon) acting on the "more" icon, and in response to this operation, the first electronic device 11 may display a page for viewing more scene icons. That is, the first user may click on the "more" icon to view more scene icons.
For example, the working state of the smart speaker is off in a "away" scene, and the working state of the smart speaker is on in a "home" scene. For another example, in the scene of "enter master sleep", the working state of the smart sound box is turned on, and the volume is 20; and the working state of the intelligent sound box is opened under the scene of 'entering the living room', and the volume is 15.
The category bar 5053 may include one or more category options for causing smart home devices to be displayed in a smart home device list 5054 in a category.
As shown in fig. 5, three classification options may be included in the classification column 5053, namely "all", "living room", and "master bedroom", respectively. The smart home devices list 5054 corresponding to different categories includes display areas of different smart home devices. When the "all" option is selected, the smart home device list 5054 includes the display areas of all smart home devices. The options "living room" and "main bed" are both set by the first user, and all the smart home devices can be classified, so that the smart home device display areas in the smart home device list 5054 are displayed according to the classification. Not limited to "living room" and "lying home" included in the classification bar 5053, the first user may set other classifications, and the embodiment of the present application is merely an illustration and is not limited thereto.
The smart home device list 5054 may include a display area of one or more smart home devices, where the display area may include pictures, names, and operating statuses of the smart home devices. The name of the smart home device may be a name set by the first user, or may be a default name of the smart home device. The working state of the smart home device may include on and off.
Illustratively, as shown in fig. 5, the smart home devices list 5054 may include a sound box display area 5054-a, a television display area 5054-b, a light display area 5054-c, a body fat scale display area 5054-d, a desk lamp display area 5054-e, an air purifier display area 5054-f, and the like. The first electronic device 11 may detect a sliding operation applied to the smart home device list 5054, and in response to the sliding operation, the first electronic device 11 may display more display areas of the smart home devices.
The display area of the intelligent household equipment can be used for opening a user interface for setting working parameters.
The first electronic device 11 may detect a user operation (e.g., a click operation on the display area 5054-f of the air purifier) acting on the display area 5054-f of the air purifier, in response to which the first electronic device 11 may display the user interface 70 for setting operating parameters of the air purifier shown in fig. 7. For a detailed description of the user interface 70, see the description of the embodiments that follow, and will not be described in detail here.
The first electronic device 11 may detect a user operation (e.g., a click operation on the main lying light presentation area 5054-c) on the main lying light presentation area 5054-c, and in response to this operation, the first electronic device 11 may display the user interface 80 for setting the operating parameters of the main lying light shown in fig. 8. For a detailed description of the user interface 80, see the description of the embodiments that follow, and will not be described in detail here.
The content displayed in the above content display area 505 is the content displayed under the menu of the wisdom house 501.
If the currently selected menu type is the mall 502, displaying the content for purchasing the smart home device in the content display area 505; if the currently selected menu type is cool play 503, displaying related information of the smart home devices shared by other users in the content display area 505; if the currently selected menu type is my 504, the content for setting account information is displayed in the content display area 505.
Add control 5055 can be used to add devices, add scenes, or share devices. The first electronic device 11 can detect a user operation (e.g., a click operation on the add control 5055) that acts on the add control 5055, and in response to this operation, the first electronic device 11 can display the control panel 601 shown in fig. 6 in the user interface 50.
As shown in fig. 6, the control panel 601 may include an add device control 6011, an add scene control 6012, and a share device control 6013. Wherein:
the adding device control 6011 may be configured to add the smart home device. The first electronic device 11 may detect a user operation (e.g., a click operation on the add-on device control 6011) acting on the add-on device control 6011, and in response to the user operation, the first electronic device 11 may display a user interface for adding the smart home device.
Add scene control 6012 may be used to add a scene. The first electronic device 11 may detect a user operation (e.g., a click operation on the add scene control 6012) acting on the add scene control 6012, and in response to the operation, the first electronic device 11 may display a user interface for adding a scene. Adding the scene may include setting a name of the scene, setting the smart home devices to be started in the scene, and setting working parameters of the started smart home devices.
The sharing device control 6013 may be configured to share the smart home device with the second electronic device 12. The first electronic device 11 may detect a user operation (e.g., a click operation on the sharing device control 6013) acting on the sharing device control 6013, and in response to the user operation, the first electronic device 11 may display the user interface 90 for sharing the smart home device, which is illustrated in fig. 9. For a detailed description of the user interface 90, see the description of the embodiments that follow, and will not be described in detail here.
Fig. 7 illustrates a user interface 70 for setting operating parameters of the air purifier. The user interface 70 may include a device information display area 701, a switch control 702, a device status parameter display area 703, and an operating parameter setting area 704. Wherein:
the device information display area 701 may include a picture of the device, a name of the device (air purifier), and the like.
The switch control 702 can be used to switch the operating state of the air purifier. The first electronic device 11 may detect a user operation (e.g., a click operation on the switch control 702) acting on the switch control 702, and in response to this operation, the first electronic device 11 may send an instruction to the air purifier to switch the operating state from on to off or from off to on.
The device status parameter display area 703 may be used to display status parameters of the device. The state parameters of the apparatus may be, for example, the remaining amount of the filter element (91%) and the amount of purified air (1345 m) shown in fig. 7 3 ) The amount of filtered particulate matter (89 mg), etc.
The operating parameter setting section 704 may be used to set operating parameters of the air purifier. The operation parameters of the air purifier may be, for example, an operation mode (such as an automatic mode or a sleep mode) shown in fig. 7, a wind speed, a time for switching a timer, and the like.
Fig. 8 illustrates a user interface 80 for setting operating parameters of an electric lamp. User interface 80 may include a device information display area 801, switch controls 802, and an operating parameter settings area 803. Wherein:
the device information display area 801 may include a picture of the device, the name of the device (the master-bedroom light), and the like.
The switch control 802 may be used to switch the operating state of the lamp. Switch control 802 is similar to switch control 702 and is not described in detail herein.
The operating parameter setting area 803 may be used to set the operating parameters of the electric lamp. The operating parameters of the electric lamp may be, for example, the color of the lamp (colored or daylight), the brightness of the lamp (55%), the time of the timer switch, the time of the countdown switch, etc., as exemplarily shown in fig. 8.
The following describes how the first electronic device 11 shares the smart home device with the second electronic device 200 in conjunction with the application scenarios described in fig. 4 to fig. 8.
As shown in a of fig. 9, the user interface 90 for sharing smart home devices may include: the smart home device comprises a smart home device selection list 901, a determination control 902, a full selection control 903, a cancel control 904 and a selection result indicator 905. Wherein:
the smart home device selection list 901 may include one or more display areas of smart home devices. The smart home device selection list 901 is similar to the display area of the smart home devices included in the smart home device list 5054, and includes pictures, names, and operating states of the smart home devices. In addition, the display area of each smart home device in the smart home device list 901 further includes a selection control 9011.
The selection control 9011 may be used to select the smart home device to be shared. The first electronic device 11 may detect a user operation (e.g., a click operation on the selection control 9011) acting on the selection control 9011, and in response to the user operation, the first electronic device 11 may display a result that the smart home device is selected. The selected display mode of the smart home may be to display a selected mark in the selection control 9011, where the mark may be, for example, "√" as shown in b in fig. 9.
The determination control 902 may be configured to determine that the selected smart home device is a smart home device to be shared. The first electronic device 11 may detect a user operation (e.g., a click operation on the determination control 902) acting on the determination control 902, and in response to the user operation, the first electronic device 11 may determine which smart home devices are selected, and display the user interface 100 for setting sharing parameters shown in fig. 10. Detailed description of the user interface 100 is not detailed here, as long as the following embodiments are described.
The all-selection control 903 may be used to determine that all the smart home devices are to-be-shared smart home devices. The first electronic device 11 may detect a user operation (e.g., a click operation on the full selection control 903) acting on the full selection control 903, and in response to the operation, the first electronic device 11 may determine that all the smart home devices are smart home devices to be shared.
The cancel control 904 may be used to cancel sharing the smart home device. The first electronic device 11 may detect a user operation (e.g., a click operation on the cancel control 904) acting on the cancel control 904, and in response to the user operation, the first electronic device 11 may cancel sharing the smart home device.
The selection result indicator 905 may be used to indicate a result of the currently selected smart home device to be shared. The result may be unselected or selected. If the result is selected, the selection result indicator 905 may also be used to indicate what the number of the selected smart home devices is, which may specifically refer to b in fig. 9.
The selection result shown in b in fig. 9 is not limited, and other selection results may also be available in a specific implementation, which is not limited in the embodiment of the present application.
As shown in fig. 10, the user interface 100 for setting sharing parameters may include: a send control 101, a return control 102, and a sharing device list 103. Wherein:
the sending control 101 may be configured to send a device to be shared and sharing parameters of the device to the second electronic device 12. The first electronic device 11 may detect a user operation (e.g., a click operation on the sending control 101) acting on the sending control 101, and in response to the operation, the first electronic device 11 may display a sharing panel 104 for the sending sharing device, which is shown by a in fig. 13, in the user interface 100, and update and display the sending control 101 as a cancel control 105, which is shown by a in fig. 13.
The cancellation control 105 is configured to cancel sending the device to be shared and the sharing parameter of the device to the second electronic device 12. For a detailed description of the sharing panel 104, see the description of the following embodiments, and the detailed description is omitted here. The sharing parameters of the devices may be obtained through the sharing parameter entry of each device in the sharing device list 103. The specific setting process of the sharing parameters of the device is described in detail in the following description. If the first user does not set the sharing parameters for a certain device in the sharing device list 103, the sharing parameters of the device are set as all the parameters by default.
The specific way for the first electronic device 11 to send the device to be shared and the sharing parameters of the device to the second electronic device 12 may be that the first electronic device 11 sends a control file to the second electronic device 12. The control file can be an installation package of an application program and can also be a WeChat applet. The installation package or the wechat applet of the application program may include an execution program and a configuration file of the device to be shared. The specific process of sending the control file in these two ways is described in the following embodiments, and will not be described in detail here. The WeChat is instant messaging software, and the applet is an application which is loaded on the WeChat and provides access to the WeChat.
The return control 102 may be used to return to the last user interface, i.e., user interface 90. First electronic device 11 may detect a user operation (e.g., a click operation on return control 102) acting on return control 102, in response to which first electronic device 11 may display user interface 90. The first user may reselect the smart home device to be shared in the user interface 90.
The sharing device list 103 may be used to show a list of smart devices to be shared. The sharing device list 103 may include one or more entries for setting sharing parameters. As shown in fig. 10, the sharing device list 103 may include an entry 1031 to set sharing parameters of the master-bedroom lamps, and an entry 1032 to set sharing parameters of the air purifiers.
The first electronic device 11 may detect a user operation (e.g., a click operation on the parameter entry 1031) acting on the entry 1031 for setting the sharing parameters of the master-lying lamp, and in response to the user operation, the first electronic device 11 may display the user interface 200 for setting the sharing parameters of the master-lying lamp shown in fig. 11.
As shown in fig. 11, the user interface 200 may include: a return control 201, a full selection control 202, a save control 203, an entry 204 for setting effective control duration, and a sharing parameter setting list 205. Wherein:
the return control 201 can be used to return to the last user interface, i.e., user interface 100. The first electronic device 11 may detect a user operation (e.g., a click operation on the return control 201) acting on the return control 201, in response to which the first electronic device 11 may display the user interface 100.
The all-select control 202 may be used to select all parameters as sharing parameters. The first electronic device 11 may detect a user operation (e.g., a click operation on the all-select control 202) acting on the all-select control 202, and in response to the operation, the first electronic device 11 may determine all the parameters listed in the sharing parameter setting list 205 as sharing parameters.
The save control 203 is used to save the selected parameters. The first electronic device 11 may detect a user operation (e.g., a click operation on the saving control 203) acting on the saving control 203, in response to the user operation, the first electronic device 11 may save the selected parameter to the internal memory 121, and generate a configuration file corresponding to the smart home device 14 according to the selected parameter, where the configuration file may be in, for example, config, and the configuration file may be saved in an installation package of smart home. Further, in response to the operation, the first electronic device 11 may also display the user interface 100.
The entry 204 for setting the effective control duration may be used to set the effective time for the second electronic device 12 to control the smart home device 14. The first electronic device 11 may detect a user operation (e.g., a click operation on the entry 204 for setting the effective control period) acting on the entry 204 for setting the effective control period, and the first electronic device 11 may display different period options (e.g., 1 day, 2 days, 5 days, 10 days, etc.). The first user may select different options to set the effective control duration for the second electronic device 12 to control the smart home device 14. Possibly, the first user may also manually edit the active control duration.
The sharing parameter setting list 205 may include a plurality of parameter options. The plurality of parameter options may include: switch, picture, name, color, daylight, brightness, timing, countdown, etc. The first electronic device 11 may detect a user operation (e.g., a click operation on a switch option) acting on any option (e.g., the switch option), and in response to the user operation, the first electronic device 11 may determine the switch option as a parameter to be shared. The first electronic device 11 displays the selected parameter with a special mark, which may be, for example, "√" as shown in fig. 11.
The first electronic device 11 may detect a user operation (such as a click operation on the entry 1032 of the parameter) acting on the entry 1032 of setting the sharing parameter of the air purifier, and in response to the operation, the first electronic device 11 may display the user interface 300 for setting the sharing parameter of the air purifier shown in fig. 12.
As shown in fig. 12, the user interface 300 may include: a return control 301, a full selection control 302, a save control 303, an entry 304 for setting effective control duration, and a sharing parameter setting list 305. Wherein:
the return control 301, the all-selection control 302, the saving control 303, and the entry 304 for setting the effective control duration are respectively consistent with the return control 201, the all-selection control 202, the saving control 203, and the entry 204 for setting the effective control duration shown in fig. 11, and are not described herein again.
The shared parameter settings list 305 may include a plurality of parameter options. The plurality of parameter options may include: switch, picture, name, filter element residual quantity, purified air quantity, filtering particle quantity, automatic mode, sleep mode, wind speed, timing switch and the like. The first electronic device 11 may detect a user operation (e.g., a click operation on a switch option) acting on any option (e.g., the switch option), and in response to the user operation, the first electronic device 11 may determine the switch option as a parameter to be shared. The first electronic device 11 displays the selected parameter with a special mark, which may be, for example, "√" as shown in FIG. 12.
The selected sharing parameters shown in fig. 11 and fig. 12 are not limited, and other sharing parameters may also be used in a specific implementation, which is not limited in this embodiment of the present application.
The sharing panel 104 shown in a of fig. 13 may include one or more send mode options, such as a Huawei Share option 1042, a bluetooth option, a WLAN direct option, a lightning inter-pass option, a WeChat option 1041, an email option, a QQ option, a microblog option, a Huacheng account friend option, and the like. Each option can be used to send the device to be shared and the sharing parameters of the device to the second electronic device 12 in this manner. The Huawei Share transmission technology can quickly discover other surrounding Huacheng devices through Bluetooth and then directly connect and quickly transmit files by using the WLAN, and flow is not needed in the transmission process.
The two transmission modes will be described in detail below.
The first method comprises the following steps: the control file is sent to the second electronic device 12 via the Huawei Share option 1402. The control file is an installation package for smart home. The installation package may include an execution program and a configuration file of the device to be shared. The configuration file of the device to be shared may include the selected sharing parameters in the embodiment of fig. 11 or fig. 12. The file format sent by the first electronic device 11 to the second electronic device 12 may be, for example,. Apk.
Specifically, first electronic device 11 may detect a user operation (e.g., a click operation on Huawei Share option 1042) acting on Huawei Share option 1042, in response to which first electronic device 11 may send a control file to second electronic device 12 via Huawei Share option 1042.
The specific process by which the first electronic device 11 can send the control file to the second electronic device 12 via the Huawei Share option 1042 is as follows:
first, the first electronic device 11 discovers the surrounding second electronic devices 12 through bluetooth.
Specifically, the first electronic device 11 may turn on bluetooth, search for a second electronic device 12 that has a Huawei Share function turned on nearby, and display the searched second electronic device 12 in a list 1043 shown in b in fig. 13, where the second electronic device 12 in the list 1043 is shown in the form of an avatar and a name. B in fig. 13 exemplarily shows two second electronic devices 12 (designated by Jack, lisa, respectively, for the second user using the second electronic device 12) having the Huawei Share function turned on. The first user may click on an avatar in list 1043 to initiate a request to send a control file to the second electronic device 12 indicated by the avatar by Huawei Share. C in fig. 13 exemplarily shows the sharing panel 104 after the first electronic device 11 initiates a request to the second electronic device 12 (named Jack of the second user), and the user can cancel the file to be sent by clicking the avatar.
Next, the first electronic device 11 sends the control file to the second electronic device 12 through the WLAN direct.
Specifically, a in fig. 14 exemplarily shows a home page (user interface 400) in the desktop on the second electronic device 12, the user interface 400 being similar to the user interface 40 of the first electronic device 11. However, since no smart home is installed on the second electronic device 12, the user interface 400 does not include the smart home icon 409.
B in fig. 14 shows a prompt window 4001 displayed in the user interface 400 after the second electronic device 12 receives the control file transmitted by the first electronic device 11. The prompt window 4001 includes a reject control 4002, an accept control 4003, and sharing information; the shared information may include a shared file name (HiLink simple. Apk), a file size (5.8M), a sharer name (June), and the like.
The reject control 4002 is used to reject the request for the first electronic device 11 to send the control file. Second electronic device 12 may detect a user operation (e.g., a click operation on reject control 4002) acting on reject control 4002, in response to which second electronic device 12 rejects first electronic device 11 from sending the request to control the file.
The accept control 4003 is used to accept the request of the control file sent by the first electronic device 11, that is, the second electronic device 12 agrees to receive the control file sent by the first electronic device 11. Second electronic device 12 may detect a user operation (e.g., a click operation on accept control 4003) acting on accept control 4003, and in response to this operation, second electronic device 12 accepts the request of first electronic device 11 to transmit the control file.
After the second electronic device 12 receives the request sent by the first electronic device 11, the first electronic device 11 sends the control file to the second electronic device 12 through the WLAN.
After receiving the control file sent by the first electronic device 11, the second electronic device 12 displays an icon 4004 shown in c in fig. 14 in the user interface 400.
Specifically, the smart home installation package may include three software architectures, namely a UI layer, an equipment management layer, and a communication layer. The UI layer may be used to provide an interface for user interaction with the first electronic device 11; the device management layer may be configured to manage each smart home device, for example, to turn on and off the smart home device, adjust a working parameter, modify a device name, and the like; the communication layer may be used to provide an interface for the first electronic device 11 to interact with the smart home device 14.
The UI layer, the equipment management layer and the communication layer can comprise a plurality of modules, and different intelligent household equipment can correspond to different modules. Wherein the communication layer may include a plurality of modules such as a bluetooth module, a Wi-Fi module, a mobile network module, an infrared module, etc.
For example, if the smart home device is a master-bedroom light, the communication layer may include a Wi-Fi module; if the smart home device is an infrared remote controller, the communication layer may include an infrared module in addition to the Wi-Fi module.
For another example, if the smart home device is a lamp for lying on the main floor, the user interface provided by the UI layer may be the user interface 80 provided in fig. 8; if the smart home device is an air purifier, the user interface provided by the UI layer may be the user interface 70 provided in fig. 7. Further, the content in user interface 70 and user interface 80 may also be subdivided into multiple modules. Such as 801 in user interface 80, may be divided into two modules, a picture module and a name module.
The installation package of smart home sent by first electronic device 11 to second electronic device 12 may be a shared installation package (i.e., a simplified installation package), that is, the installation package may only include a UI layer module, an equipment management layer module, and a communication layer module related to the equipment to be shared. The specific modules contained in the UI layer, the device management layer and the communication layer may be determined by the configuration file of the device to be shared.
In another embodiment, the installation package for smart home sent by the first electronic device 11 to the second electronic device 12 may be a complete installation package.
The first electronic device 11 may also send the control file to the second electronic device 12 by using functions such as bluetooth, WLAN direct connection, lightning mutual transfer, NFC, and the like, which is not limited in this embodiment of the present application.
And the second method comprises the following steps: the control file is sent to the second electronic device 12 via the wechat option 1401. Wherein the control file is a WeChat applet of smart home. The WeChat applet may include an execution program and a configuration file of the device to be shared. The configuration file of the device to be shared may include the selected sharing parameters in the embodiment of fig. 11 or fig. 12.
Specifically, the first electronic device 11 may detect a user operation (e.g., a click operation on the option 1041) acting on the option 1041, and in response to the user operation, the first electronic device 11 may transmit the control file to the second electronic device 12 through the WeChat option 1041.
The specific process that the first electronic device 11 can send the control file to the second electronic device 12 through the option 1041 is as follows:
specifically, in response to the user operation acting on the option 1041 as described above, the first electronic device 11 may display the user interface 500 of the WeChat shown in fig. 15. User interface 500 may include a buddy option list 5001, a search control 5002, a multi-selection control 5003, and a return control 5004. Wherein:
the buddy option list 5001 may include one or more buddy options. One or more buddy options included in the buddy option list 5001 are buddies that the first user has recently contacted. The first electronic device 11 may detect a user operation (e.g., a click operation on the option 5001-a) acting on a friend option (e.g., the option 5001-a), and in response to the user operation, the first electronic device 11 may determine that a friend (e.g., jack) corresponding to the friend option is a target sharing friend, and display a sharing window 5005 shown in fig. 16 in the user interface 500.
Search control 5002 may be used to search for targeted sharing friends from contacts owned by WeChat. First electronic device 11 may detect a click operation on search control 5002, and in response to the operation, first electronic device 11 may display an input box in which the first user may enter the name of the target shared friend.
Multi-selection control 5003 may be used to share files to be shared to multiple buddies.
Return control 5004 can be used to return to the last user interface, i.e., user interface 100.
In addition, if the target sharing friend is not included in the friend option list 5001, the first user may create a new chat and select the target sharing friend.
In addition, the first electronic device 11 may also detect a sliding operation acting on the buddy option list 5001, in response to which the first electronic device 11 may display more buddy options.
Fig. 16 illustrates a sharing window 5005. As shown in fig. 16, the sharing window 5005 may include: sharing control 5005-a, canceling control 5005-b, message area 5005-c, target sharing friend indicator 5005-d and shared content display area 5005-e. Wherein:
sharing control 5005-a may be used to send a control file to a target sharing friend. The first electronic device 11 may detect a click operation performed on the sharing control 5005-a, and in response to the click operation, the first electronic device 11 may send the control file to the target sharing friend (the electronic device used by the target sharing friend is the second electronic device 12). Possibly, the first electronic device 11 may send the message information input by the first user in the message area 5005-c to the target sharing friend.
Cancel control 5005-b may be used to cancel sending a control file. First electronic device 11 may detect a click operation on cancel control 5005-b, in response to which first electronic device 11 may cancel sending the control file.
The message area 5005-c may be used to leave a message for the target sharing friend. The first electronic device 11 may detect a click operation applied to the message area 5005-c, and in response to the click operation, the first electronic device 11 may display an input box to receive message information input by the first user.
Target sharing friend indicators 5005-d may be used to indicate the target sharing friends, and may specifically include the avatar and name of the target sharing friend.
The shared content display area 5005-e may be used to display shared content.
After the first electronic device 11 sends the control file to the target sharing friend, the second electronic device 12 may display a user interface 600 of the WeChat shown in fig. 17, where the user interface 600 is a WeChat chat interface between the target sharing friend (Jack) and a first user (June) of the first electronic device 11. Information 6001 may be included in user interface 600. The content included in the information 6001 is the shared content displayed in the shared content display area 5005-e.
Specifically, the target sharing friend is the second user.
Specifically, the installation package of the smart home may include a program framework of the WeChat applet of the smart home. When the first user sets the sharing parameter of the device to be shared on the first electronic device 11, the first electronic device 11 may write the sharing parameter into the program frame of the applet.
The function of the WeChat applet of Hua as an intelligent home is similar to that of the Hua as an intelligent home. The wechat applet of smart home may include an ID number and/or a MAC address of a shared smart home device, a selected sharing parameter in the embodiment of fig. 11 or 12, and the like. The second user may control the shared device through the applet.
The ID of the smart home device may be a serial number allocated to the smart home device by the cloud server 15, and is used to identify the identity of the smart home device. The identity of the intelligent household equipment can be identified through the MAC address of the intelligent household equipment without being limited to the ID.
Next, how to control the shared device on the second electronic device 12 after the control file is sent in the above two manners will be described.
The first method comprises the following steps: the control file is sent to the second electronic device 12 via the Huawei Share option 1402.
The second electronic device 12 may detect a user operation (e.g., a click operation on the icon 4004) acting on the icon 4004, and in response to the operation, the electronic device may display the user interface 700 illustrated in fig. 18. The user interface 700 may include a user name indicator 7001 and a smart home device list 7002.
Therein, the user name indicator 7001 may be used to indicate the name of the first user of the first electronic device 11. For example, the user name indicator "home of June" shown in fig. 18 indicates that the name of the first user of the first electronic device 11 is "June".
The smart home device list 7002 may include one or more shared smart home devices in a display area, which may include icons, names, and operating states of the smart home devices. The name of the smart home device may be a name set by the first user on the first electronic device 11, or may be a default name of the smart home device. The name of the smart home device displayed in the display area is a set name or a default name, which depends on the sharing parameters of the smart home device. If the sharing parameter of the intelligent household equipment comprises the name of the intelligent household equipment, the name of the intelligent household equipment displayed in the display area can be the name set by the first user; if the sharing parameter of the smart home device does not include the name of the smart home device, the name of the smart home device displayed in the display area may be a default name. For example, the name set by the first user may be "master-bedroom light" and the default name for the device may be "smart light". The working state of the smart home device may include on and off.
The display area of the intelligent household equipment can be used for opening a user interface for setting working parameters. The smart home devices list 7002 in fig. 18 may include a display area 7002-a of a smart lamp and a display area 7002-b of an air purifier. The second electronic device 12 may detect a user operation (e.g., a click operation on the presentation area 7002-a) acting on the presentation area 7002-a, and in response to the operation, the second electronic device 12 may display the user interface 800 shown in fig. 19 for setting the operating parameters of the smart lamp. The second electronic device 12 may detect a user operation (e.g., a click operation on the presentation area 7002-b) acting on the presentation area 7002-b, and in response to the operation, the second electronic device 12 may display a user interface 900 for setting operating parameters of the air purifier shown in fig. 20.
The content included in the user interface 800 for setting the operating parameters of the smart lamp shown in fig. 19 may be determined by the sharing parameters of the master-lying lamp set on the first electronic device 11 by the first user. Specific sharing parameters may be seen as selected parameters in the user interface 200 shown in fig. 11.
As shown in fig. 19, the user interface 800 may include a device information display region 8001, a switch control 8002, and an operating parameter setting region 8003. Wherein:
the device information display region 8001 includes a picture of the device, a default name of the device (smart lamp), and the like.
Specifically, as can be seen from fig. 11, the name of the device is not selected as the parameter to be shared. Therefore, the names of the devices shown in fig. 18 and 19 are the default names of the smart home devices, i.e., the names of the smart lights.
The switch control 8002 can be used to switch the operating state of the lamp.
The operating parameter setting region 8003 can be used to set the operating parameters of the electric lamp. The operating parameters of the electric lamp include the color of the lamp light (color or daylight), and the brightness of the lamp light (55%).
Specifically, as can be seen from fig. 11, neither the timing nor the countdown options in the sharing parameter setting list 205 are selected as parameters to be shared. Therefore, the operating parameters of the lamp in the operating parameter setting region 8003 of the user interface 800 do not include the time for time-switching, the switch time for countdown, and the like.
As shown in fig. 20, user interface 900 may include a device information display area 9001, switch controls 9002, and an operating parameter setting area 9003. Wherein:
the device information display region 9001 can include a picture of the device, a name of the device (air purifier), and the like.
Switch controls 9002 can be used to switch the operating state of the air purifier.
The operating parameter setting area 9003 can be used to set operating parameters of the air purifier. The operating parameters of the air purifier include an operating mode (e.g., an automatic mode or a sleep mode).
Specifically, as can be seen from fig. 12, the state parameters of the apparatus include the remaining amount of filter element (91%) and the amount of purified air (1345 m) 3 ) The amount of filtered particulate matter (89 mg) was not selected as the parameter to be shared. Therefore, the device status parameter display area is not shown in fig. 20.
Specifically, as can be seen from fig. 12, neither the wind speed nor the time switch option in the sharing parameter setting list 305 is selected as the parameter to be shared. Accordingly, the wind speed and time switch options are not included in the operating parameter settings area 9003 of the user interface 900.
Next, taking turning on the air purifier as an example, how the second electronic device 12 turns on the air purifier will be described with reference to fig. 21.
As shown in fig. 21, the process of turning on the air purifier by the second electronic device 12 may include at least the following steps:
s101: second electronic device 12 detects a user operation acting on switch control 9002.
Specifically, the user operation described above may be a click operation that acts on the switch control 9002.
S102: the second electronic device 12 sends a User Datagram Protocol (UDP) multicast scan message to the router 13.
In particular, the second electronic device 12 may send the above-described UDP multicast scan message on all ports.
S103: the router 13 sends a UDP multicast scan message to the smart home devices 14 in the lan.
Specifically, one or more smart home devices 14 may be included within the local area network. Wherein the one or more smart home devices 14 may include an air purifier.
S104: the smart home devices 14 in the local area network send UDP multicast response messages to the router 13.
Specifically, the UDP multicast response message sent by the smart home device 14 may carry the ID and the IP address of the smart home device.
In one possible implementation, the UDP multicast response message sent by the smart home device 14 may be multicast, that is, the smart home device 14 may send the UDP multicast response message to all ports of the second electronic device 12. The second electronic device 12 needs to listen to all ports after sending the UDP multicast scan message on all ports.
In another possible implementation manner, the UDP multicast response message sent by the smart home device 14 may be unicast, that is, the smart home device 14 may send the UDP multicast response message to a specific port of the second electronic device 12. The second electronic device 12 only needs to listen to one specific port after sending the UDP multicast scan message on all ports. The specific port number may be carried in a UDP multicast scan message.
S105: the router 13 sends a UDP multicast response message to the second electronic device 12.
S106: the second electronic device 12 compares whether the device ID coincides with the pre-stored ID of the air purifier. If yes, executing S107; if not, the ID is discarded.
Specifically, the pre-stored ID of the air purifier may be saved in the internal memory of the second electronic device 12. The pre-stored ID of the air purifier may be carried in a control file transmitted by the first electronic device 11 to the second electronic device 12.
Specifically, a plurality of smart home devices may be included in the local area network, and the second electronic device 12 may receive UDP multicast response messages sent by the plurality of smart home devices. The second electronic device 12 may receive the IDs and IP addresses of the plurality of smart home devices 14.
The second electronic device 12 may compare the received IDs of the plurality of smart home devices 14 with the pre-stored ID of the air purifier, and determine whether the IDs are consistent. If the ID is consistent with the IP address, the IP address corresponding to the ID is recorded. If not, the ID is discarded.
S107: the second electronic device 12 records the IP address of the air purifier.
Specifically, the second electronic device 12 may save the IP address of the air purifier to internal memory.
S108: the second electronic device 12 sends an instruction to the router 13 to turn on the air purifier.
Specifically, the instruction to turn on the air purifier sent by the second electronic device 12 to the router 13 may carry the IP address of the air purifier.
S109: the router 13 sends an instruction to the air purifier to turn on the air purifier.
Specifically, the router 13 may send a turn-on instruction to the air purifier according to the IP address.
S110: the air purifier switches its operating state to on.
Specifically, after receiving the opening instruction, the air purifier switches the working state of the air purifier from off to on. To this end, the second electronic device 12 implements control of the air purifier.
Because the second electronic device 12 does not apply for the account of the first application program, the air purifier cannot be controlled through the cloud server 15, and therefore, the second electronic device 12 can control the air purifier through the IP address of the air purifier in the local area network. The number of accounts managed by the cloud server 15 can be reduced, and the management cost of the cloud server 15 can be reduced.
In some embodiments, after receiving the control file, the second electronic device 12 automatically establishes a connection with the smart home device.
Specifically, after receiving the control file, the second electronic device 12 may query the smart home devices in the local area network according to the ID or MAC address of the smart home device carried in the control file, and record the IP addresses of the smart home devices matched with the ID or MAC address. The second electronic device 12 may establish a connection with the smart home device shared therewith according to the IP address.
Further, the instruction sent by the second electronic device 12 to the router 13 is encrypted by the key. The key is a temporary key. The expiry date of the key may be set by the first user on the first electronic device 11. Specifically, it may be set at "effective control period" in fig. 11 or 12. After receiving the instruction encrypted by the key, the smart home device 14 verifies the validity of the instruction. And if the instruction is legal, executing the event corresponding to the instruction. The validity of the instruction may include correctness of a key used for encrypting the instruction and validity of the key.
In a possible embodiment, the key may be generated by the first electronic device 11 and then sent to the smart home device 14, and sent by the first electronic device 11 to the second electronic device 12.
Fig. 22 shows a generation process and a transmission process of a key. As shown in fig. 22, the process may include the following steps:
1. the first electronic device 11 generates a key.
2. The first electronic device 11 sends the key to the smart home device 14.
3. The smart home device 14 stores the key.
4. The first electronic device 11 sends the control file to the second electronic device 12. Wherein the control file comprises a key.
5. The second electronic device 12 receives the control file and saves the key.
The embodiment of the present application does not limit the order of implementation of the above steps 2-3 and 4-5.
In another possible embodiment, the key may be generated by the smart home device 14 and then sent to the first electronic device 11, and the first electronic device 11 sends the key to the second electronic device 12.
Fig. 23 shows another key generation process and transmission process. As shown in fig. 23, the process may include the following steps:
1. the first electronic device 11 sends an instruction for generating the key to the smart home device 14.
2. The smart home device 14 generates a key and stores the key.
3. The smart home device 14 sends the key to the first electronic device 11.
4. The first electronic device 11 sends the control file to the second electronic device 12. Wherein the control file comprises a key.
5. The second electronic device 12 receives the control file and saves the key. Specifically, the valid duration of the key may be counted from the time of key generation.
And the second method comprises the following steps: the control file is sent to the second electronic device 12 via the WeChat option 1401.
Second electronic device 12 may detect a user operation (e.g., a click operation on information 6001) acting on information 6001, in response to which second electronic device 12 may display user interface 700 shown in fig. 18.
After the second electronic device 12 displays the user interface 700, the second user may click on the smart light display area 7002-b causing the second electronic device 12 to display the user interface 900. A second user may control the air purifier in user interface 900. The second electronic device 12 displays the user interface 900 and the specific process of the second user controlling the air purifier in the user interface 900 can be described in detail in the first manner, which is not described herein again.
The control process of the second user to the intelligent electric lamp can also refer to the control process to the air purifier, and the embodiment of the application is not repeated.
In the embodiment of the application, the first user may share the smart home device with the second user, and the first user may set a part of functions of the smart home device controllable by the second user on the first electronic device 11, so that the sharing process of the device is more flexible. The second user does not need to additionally apply for an account number, the intelligent household equipment shared by the first user can be controlled, the second user does not need to set the working parameters of the intelligent household equipment again, and operation of the second user is reduced. In addition, the first user can set the control time limit of the second user on the intelligent household equipment through the temporary secret key, the first user does not need to manually withdraw the control right, the operation of the first user is reduced, and the sharing efficiency of the intelligent household equipment is improved. The situation that the second user can control the intelligent home equipment all the time due to the fact that the first user forgets to take back the control right is avoided, privacy of the first user is guaranteed, and user experience of the first user is improved.
In one possible embodiment, when the first user shares a device, such as an air purifier, again, the first electronic device 11 may prompt the first user in the user interface 300 for setting the sharing parameters of the air purifier whether to follow the sharing parameters set when the first user shared the device last time. If so, the first user does not need to select the sharing parameters again, so that the operation of the first user is reduced, and the efficiency of the sharing equipment is improved. If not, the first user may reselect the sharing parameter in the user interface 300. The first electronic device 11 may update the configuration file within the installation package.
In a possible embodiment, after the second electronic device 12 receives the control file, the second electronic device 12 cannot share the control file to the third electronic device again. According to the embodiment of the application, the privacy of the first user can be guaranteed not to be revealed, and other people are prevented from operating the intelligent home equipment of the first user at will.
Not limited to the first electronic device 11 sending the shared installation package to the second electronic device 12 shown in the embodiments of fig. 10 to 14 (that is, only the UI layer module, the device management layer module, and the communication management layer module related to the device to be shared are included in the installation package), in this embodiment, the first electronic device 11 may also send the complete installation package to the second electronic device 12.
As shown in fig. 24, the first electronic device 11 may detect a user operation on the icon 409 (e.g., a long press operation on the icon 409), in response to which the first electronic device 11 may display a share control 415 and a delete control 416 in the user interface 40. The sharing control 415 is used for sharing the smart home installation package, and the deleting control 416 is used for deleting the smart home installation package.
The first electronic device 11 may detect a drag operation on the icon 409 (e.g., dragging the icon 409 to the area where the sharing control 415 is located), and in response to the drag operation, the first electronic device 11 may display the sharing panel 417 shown in fig. 25 in the user interface 40. The sharing panel 417 is the same as the sharing panel 401, and is not described herein again.
The first electronic device 11 may send the complete installation package for smart home to the second electronic device 12 through the sharing panel 417. The specific sharing process can refer to the descriptions in fig. 13 to fig. 14, which are not repeated herein.
After the second electronic device 12 receives the installation package shared by the first electronic device 11 and finished in smart home, the second electronic device 12 may display an icon 4004 shown in fig. 26 in the user interface 400. Icon 4004 may be used to turn on a smart home.
Specifically, the second electronic device 12 may detect a user operation (such as a click operation on the icon 4004) acting on the icon 4004, and in response to the operation, the second electronic device 12 may display the user interface 1000 illustrated in fig. 27.
As shown in fig. 27, user interface 1000 may include a login widget 10001 and a device share widget 10002. Wherein:
the login control 10001 may be used to log in an application server for smart home using an existing account, or register a new account to log in the application server.
Device sharing control 10002 can be used to open user interface 700. The second user can view the smart home devices shared by the first user through the user interface 700 and control the smart home devices. The specific process may refer to the description related to the embodiments in fig. 18 to fig. 21, which is not described herein again.
In this embodiment, the second electronic device 12 may provide two usage modes for the second user, that is, the second user may log in an application server of smart home using an existing account, or directly view a device shared by the first user as the second user, and may control the device without using the account. The second user can use the application program according to self needs, and the sharing process of the intelligent home equipment is simplified, meanwhile, the utilization rate of the application program is improved, and the user experience is improved.
Fig. 28 is a schematic flow chart of a smart home device sharing method provided in the embodiment of the present application.
As shown in fig. 28, the smart home device sharing method at least includes the following steps:
s201: the first electronic device receives a first user operation.
Specifically, the first electronic device 11 is connected to the smart home device 14, and the first electronic device 11 may control a function supported by the smart home device 14. The functions supported by the smart home device 14 may be functions viewable by the first user through the first application and controllable functions. Different functions that different intelligent household equipment can support.
For example, if the smart home device 14 is an air purifier, the functions viewable by the first user through the first application may include: the equipment status parameters (the remaining amount of the filter element, the amount of the purified air, and the amount of the filtered particulate matter) displayed in the equipment status parameter display area 703 in the user interface 70 in fig. 7; the functions controllable by the first user through the first application may include: in fig. 7, a switch function provided by Guan Kongjian opened in the user interface 70, a working mode (such as an automatic mode or a sleep mode) setting function provided in the working parameter setting area 704, a wind speed setting function, and a time switch function are provided.
For example, if the smart home device 14 is a smart light, the functions controllable by the first user through the first application may include: the user interface 80 in fig. 8 has a switching function provided by Guan Kongjian, a light color (color or daylight) setting function provided by the operating parameter setting area 803, a brightness adjustment function, a timing switch function, and a countdown function. The functions supported by the intelligent electric lamp in the embodiment of the application have no viewable functions.
The functions supported by the smart home devices 14 listed above are only exemplary, and in a specific implementation, the functions supported by the smart home devices 14 may also include other functions, which is not limited in this embodiment of the present application.
Specifically, the first user operation may be a click operation on a portal for sharing parameters, such as a click operation on the parameter setting portal 1031 or the parameter setting portal 1032 in fig. 10.
S202: in response to the first user operation, the first electronic device displays a first user interface.
The first user interface comprises a sharing allowing function of the intelligent household equipment. The functions that different smart home devices are allowed to share may be different. The function that the smart home device allows sharing can be set by a factory manufacturer or a user. The first user interfaces corresponding to different smart home devices may also be different.
Specifically, the functions that the smart home devices allow to share may be a subset of the functions supported by the smart home devices. That is, the functions that the smart home devices allow to share are part or all of the functions supported by the smart home devices.
For example, if the smart home device is a smart light, the function that allows sharing may be a function that shares all parameter option representations, except for names and pictures, included in the parameter setting list 205 in the user interface 200 in fig. 11. The first user interface is user interface 200.
For example, if the smart home device is an air purifier, the function allowing sharing may be a function of sharing all the parameter option representations included in the parameter setting list 305 in the user interface 300 in fig. 12 except for names and pictures. The first user interface is user interface 300.
Not limited to the smart electric lamp and the air purifier listed above, in a specific implementation, the shared smart home devices may be other smart home devices, and therefore the first user interface is not limited to the user interface 200 shown in fig. 11 and the user interface 300 shown in fig. 12, which is not limited in this embodiment of the present application.
S203: the first electronic device receives a second user operation acting on the first user interface.
Specifically, the second user operation may be a click operation performed on each parameter option in the shared parameter setting list 205 in the embodiment of fig. 11 or the shared parameter setting list 305 in the embodiment of fig. 12.
S204: in response to the second user operation, the first electronic device determines one or more functions of the functions allowed to be shared as functions to be shared.
Specifically, the functions to be shared may be a subset of the functions that the smart home device allows to share. The functions to be shared can be selected by the first user from one or more functions allowed to be shared by the smart home device.
For example, if the smart home device is a smart lamp, the parameter to be shared of the smart home device is a function represented by the selected parameter option in the sharing parameter setting list 205 of the user interface 200 in fig. 11, that is, a function represented by a specially marked ("√") parameter option (switch, color, sunlight, brightness) in the user interface 200.
Illustratively, if the smart home device is a smart lamp, the parameter to be shared of the smart home device is a function represented by a selected parameter option in the sharing parameter setting list 305 of the user interface 300 in fig. 12, that is, a function represented by a specially marked ("√") parameter option (on-off, auto, sleep) in the user interface 300.
S205: the first electronic device receives a third user operation.
Possibly, the third user action may be a click action on the save control 203 in fig. 11 or the save control 303 in the embodiment of fig. 12.
S206: in response to a third user operation, the first electronic device generates a control file according to one or more functions.
Specifically, the first electronic device 11 is installed with a first application program, and the first electronic device 11 may control the smart home device 14 through the first application program, where the first application program may be, for example, the smart home listed in the foregoing embodiment.
In particular, the control files may include executive programs and configuration files. The configuration file may be generated according to one or more functions to be shared selected by the first user in the first electronic device 11.
Specifically, the number of smart home devices 14 may be one or more. Different smart home devices 14 correspond to one configuration file respectively. The configuration files corresponding to different smart home devices 14 may all be contained in the same control file.
In some embodiments, the control file may be an installation package of the first application.
Specifically, the installation package of the first application may include three layers of software architectures, namely a UI layer, a device management layer, and a communication layer. The UI layer may be used to provide an interface for the first user's interaction with the first electronic device 11; the device management layer may be configured to manage each smart home device, for example, to turn on and off the smart home device, adjust a working parameter, modify a device name, and the like; the communication layer may be used to provide an interface for the first electronic device 11 to interact with the smart home device 14.
The UI layer, the device management layer, and the communication layer may include a plurality of modules, and different smart home devices 14 may correspond to different modules. Wherein the communication layer may include a plurality of modules such as a bluetooth module, a Wi-Fi module, a mobile network module, an infrared module, etc.
Possibly, the installation package of the first application is a shared (simplified) installation package (e.g., the installation package corresponding to the icon 4004 in c in fig. 14), that is, only the UI layer module, the device management layer module, and the communication layer module related to the device to be shared may be included in the installation package. The specific modules contained in the UI layer, the device management layer and the communication layer may be determined by the configuration file of the device to be shared.
In other possible embodiments, the control file may be a wechat applet (e.g., the wechat applet corresponding to information 6001 in fig. 17).
S207: the first electronic device sends the control file to the second electronic device.
In some embodiments, if the control file is an installation package of the first application, the manner of sending the control file to the second electronic device 12 includes any one or more of the following: bluetooth, WLAN direct, NFC.
Possibly, the first electronic device 11 may discover the second electronic device 12 via bluetooth and then send the control file to the second electronic device 12 via WLAN direct connection. For a specific sending process, reference may be made to the description related to the embodiment a in fig. 13 to the embodiment c in fig. 14, which is not described herein again.
In other embodiments, if the control file is a wechat applet, the first electronic device 11 may send the control file to the second electronic device 12 via wechat. For a specific sending process, reference may be made to the related description of the embodiments in fig. 15 to fig. 17, which is not described herein again.
S208: and the second electronic equipment controls one or more functions of the intelligent household equipment according to the control file.
Specifically, after receiving the control file, the second electronic device 12 parses the control file to obtain one or more functions of the smart home device shared by the first electronic device 11, and controls the one or more functions of the smart home device 14.
According to the embodiment of the application, the first user can share the intelligent household equipment with the second user, and the first user can set partial functions of the intelligent household equipment controllable by the second user on the first electronic equipment, so that the sharing process of the equipment is more flexible. The second user does not need to additionally apply for an account number, the intelligent household equipment shared by the first user can be controlled, the second user does not need to set the working parameters of the intelligent household equipment again, and operation of the second user is reduced.
In some embodiments, the second operation may also be used to select a name and/or a picture of the smart home device, and the second operation may be a click operation applied to the name option and/or the picture option in the embodiment of fig. 11, or a click operation applied to the name option and/or the picture option in the embodiment of fig. 12.
The first electronic device may generate the control file according to the one or more functions, the name, and/or the picture.
In the embodiment of the application, the first user can set partial functions of the smart home device controllable by the second user on the first electronic device, and can also set whether the second user can check the name and/or the picture of the device, so that the privacy of the first user is ensured.
In some embodiments, the second user operation may also be used to select the active control duration of the smart home device, and the second user operation may be a click operation applied to the active control duration option 204 in the embodiment of fig. 11 or the active control duration 304 in the embodiment of fig. 12.
Possibly, the first electronic device may generate a control file according to the one or more functions and the effective control time length.
In the embodiment of the application, the first user can set partial functions of the intelligent household equipment controllable by the second user on the first electronic equipment, and can set the effective control duration for controlling the intelligent household equipment by the second user, so that the first user does not need to manually withdraw the control right, the operation of the first user is reduced, and the sharing efficiency of the intelligent household equipment is improved. The situation that the second user can control the intelligent home equipment all the time due to the fact that the first user forgets to take back the control right is avoided, privacy of the first user is guaranteed, and user experience of the first user is improved.
Possibly, the first electronic device may generate a control file according to the one or more functions, the name and/or the picture, and the effective control duration.
In the embodiment of the application, the first user may set, on the first electronic device, part of functions of the smart home device controllable by the second user, and may set whether the second user can check the name and/or the picture of the device, and control the effective control duration of the smart home device. By implementing the embodiment of the application, the privacy of the first user can be guaranteed, the first user does not need to manually withdraw the control right, the operation of the first user is reduced, and the sharing efficiency of the intelligent household equipment is improved. The situation that the second user can control the intelligent household equipment all the time due to the fact that the first user forgets to withdraw the control right is avoided, and user experience of the first user is improved.
The one or more functions, the active control period, the name, and/or the picture may be referred to as sharing parameters.
In some embodiments, the method may further include: the first electronic device 11 generates a key according to the valid duration; and sending the key to the smart home device 14 and the second electronic device 12. The generation process and the sending process of the key may refer to the related description of the embodiment in fig. 22, which is not described herein again.
In this embodiment, the key may be generated by the first electronic device, and validity of the key is determined by the validity control duration. The first user can set the control time limit of the second user on the intelligent household equipment by setting the effective control time length of the secret key.
In other embodiments, the method may include: the first electronic device 11 sends the valid control duration to the smart home device 14, so that the smart home device 14 generates a secret key according to the valid control duration; receiving the key sent by the smart home device 14; the key is sent to the second electronic device 12. The generation process and the sending process of the key may refer to the related description of the embodiment in fig. 23, which is not described herein again.
In the embodiment of the application, the secret key can be generated by the intelligent household equipment, and the validity of the secret key is determined by the effective control duration. The first user can set the control time limit of the second user on the intelligent household equipment by setting the effective control time length of the secret key.
In some embodiments, the above method further comprises: the second electronic device 14 encrypts the control command by the key; and sending the control command to the smart home devices 14, so that the smart home devices 14 decrypt the control command by using the key and execute the control command.
Possibly, after the second electronic device 14 receives the control file, the control file cannot be shared to the third electronic device again, so that the privacy of the first user is not disclosed, and the smart home device of the first user is prevented from being operated by others at will.
In the embodiment of the application, the second electronic device can communicate with the intelligent household device through the secret key, so that other electronic devices can be prevented from controlling the intelligent household device, and the privacy of the first user is guaranteed. In addition, the control time limit of the second user on the intelligent household equipment is set through the effective control duration of the key, the situation that the second user can always control the intelligent household equipment due to the fact that the first user forgets to withdraw the control right is avoided, and user experience of the first user is improved. The embodiment of the application also provides a computer readable storage medium. All or part of the processes in the above method embodiments may be performed by relevant hardware instructed by a computer program, which may be stored in the above computer storage medium, and when executed, may include the processes in the above method embodiments. The computer-readable storage medium includes: various media that can store program codes, such as a read-only memory (ROM) or a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, it may 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 loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in or transmitted over a computer-readable storage medium. 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, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), among others.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The modules in the device can be merged, divided and deleted according to actual needs.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (24)

1. The utility model provides a smart home equipment sharing system which characterized in that includes: the system comprises a first electronic device, a second electronic device and intelligent household equipment; wherein: the first electronic equipment is connected with the intelligent household equipment, and the first electronic equipment controls functions supported by the intelligent household equipment;
the first electronic device is configured to:
receiving a first user operation;
displaying a first user interface in response to the first user operation; the first user interface comprises a sharing allowing function of the intelligent household equipment;
receiving a second user operation acting on the first user interface;
responding to the second user operation, determining one or more functions in the functions allowing sharing as functions to be shared, and determining effective control duration of the intelligent household equipment;
receiving a third user operation;
generating a control file according to the one or more functions in response to the third user operation;
sending the control file to the second electronic equipment;
the second electronic device is configured to:
and sending a control instruction according to the control file, wherein the control instruction is used for controlling the one or more functions of the intelligent household equipment, the control instruction is an instruction encrypted by a first secret key, and the first secret key is determined according to the effective control duration.
2. The system of claim 1, wherein the first electronic device controls the smart home device through a first application program, and the control file is an installation package of the first application program.
3. The system of claim 1, wherein the control file is a WeChat applet.
4. A system according to any of claims 1-3, wherein the second user action is further for selecting a name and/or picture of the smart home device;
the generating a control file according to the one or more functions comprises: and generating the control file according to the one or more functions, the name and/or the picture.
5. The system of any of claims 1-3, wherein the generating a control file according to the one or more functions comprises: and generating the control file according to the one or more functions and the effective control duration.
6. The system of any one of claims 1-3, wherein the first electronic device is further configured to:
generating the first key according to the effective control duration;
and sending the first secret key to the intelligent household equipment and the second electronic equipment.
7. The system of any one of claims 1-3, wherein the first electronic device is further configured to:
sending the effective control duration to the intelligent home equipment so that the intelligent home equipment generates the first key according to the effective control duration;
receiving the first secret key sent by the intelligent home equipment;
and sending the first key to the second electronic equipment.
8. The system of any one of claims 1-7, wherein the second electronic device is further configured to:
and receiving the control file, and analyzing the one or more functions in the control file.
9. The system of claim 6 or 7, wherein the second electronic device is further configured to:
encrypting the control instruction through the first key;
and sending the control instruction to the intelligent household equipment so that the intelligent household equipment decrypts the control instruction by adopting the first secret key and executes the control instruction.
10. An electronic device is characterized in that the electronic device is connected with an intelligent household device and controls functions supported by the intelligent household device, and the electronic device comprises one or more processors, a memory and a wireless communication module; the memory and the wireless communication module are coupled with the one or more processors, the memory to store computer program code, the computer program code comprising computer instructions, the one or more processors to execute the computer instructions to cause the electronic device to perform:
receiving a first user operation;
displaying a first user interface in response to the first user operation; the first user interface comprises a sharing allowing function of the intelligent household equipment;
receiving a second user operation acting on the first user interface;
responding to the second user operation, determining one or more functions in the functions allowing sharing to be functions to be shared, and determining effective control duration of the intelligent household equipment;
receiving a third user operation;
generating a control file according to the one or more functions in response to the third user operation;
and sending the control file to second electronic equipment so that the second electronic equipment sends a control instruction according to the control file, wherein the control instruction is used for controlling the one or more functions of the intelligent household equipment, the control instruction is an instruction encrypted by a first key, and the first key is determined according to the effective control time length.
11. The electronic device according to claim 10, wherein the electronic device controls the smart home device through a first application program, and the control file is an installation package of the first application program.
12. The electronic device of claim 10, wherein the control file is a wechat applet.
13. The electronic device of any of claims 10-12, wherein the second user action is further to select a name and/or picture of the smart home device;
the electronic device specifically executes, when executing the control file generated according to the one or more functions: and generating the control file according to the one or more functions, the name and/or the picture.
14. The electronic device of any of claims 10-12,
the electronic device specifically executes, when executing the control file generated according to the one or more functions: and generating the control file according to the one or more functions and the effective control duration.
15. The electronic device of any of claims 10-12, wherein the electronic device further performs:
generating the first key according to the effective control duration;
and sending the first secret key to the intelligent household equipment and the second electronic equipment.
16. The electronic device of any of claims 10-12, wherein the electronic device further performs:
sending the effective control duration to the intelligent home equipment so that the intelligent home equipment generates the first key according to the effective control duration;
receiving the first secret key sent by the intelligent household equipment;
and sending the first key to the second electronic equipment.
17. A smart home device sharing method is executed by an electronic device, the electronic device is connected with a smart home device, and the electronic device controls functions supported by the smart home device, and the method includes:
receiving a first user operation;
displaying a first user interface in response to the first user operation; the first user interface comprises a sharing allowing function of the intelligent household equipment;
receiving a second user operation acting on the first user interface;
responding to the second user operation, determining one or more functions in the functions allowing sharing as functions to be shared, and determining effective control duration of the intelligent household equipment;
receiving a third user operation;
generating a control file according to the one or more functions in response to the third user operation;
and sending the control file to second electronic equipment so that the second electronic equipment sends a control instruction according to the control file, wherein the control instruction is used for controlling the one or more functions of the intelligent household equipment, the control instruction is an instruction encrypted by a first secret key, and the first secret key is determined according to the effective control duration.
18. The method according to claim 17, wherein the electronic device controls the smart home device through a first application program, and the control file is an installation package of the first application program.
19. The method of claim 17, wherein the control file is a WeChat applet.
20. A method according to any of claims 17-19, wherein the second user action is further for selecting a name and/or picture of the smart home device;
the generating a control file according to the one or more functions comprises: and generating the control file according to the one or more functions, the name and/or the picture.
21. The method of any one of claims 17-19,
the generating a control file according to the one or more functions comprises: and generating the control file according to the one or more functions and the effective control duration.
22. The method of any one of claims 17-19, further comprising:
generating the first key according to the effective control duration;
and sending the first secret key to the intelligent household equipment and the second electronic equipment.
23. The method of any one of claims 17-19, further comprising:
sending the effective control duration to the intelligent home equipment so that the intelligent home equipment generates the first key according to the effective control duration;
receiving the first secret key sent by the intelligent household equipment;
and sending the first key to the second electronic equipment.
24. A computer-readable storage medium comprising computer instructions that, when executed on an electronic device, cause the electronic device to perform the smart home device sharing method of any one of claims 17-23.
CN201980088119.XA 2019-01-31 2019-01-31 Smart home equipment sharing system and method and electronic equipment Active CN113272745B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/074168 WO2020155014A1 (en) 2019-01-31 2019-01-31 Smart home device sharing system and method, and electronic device

Publications (2)

Publication Number Publication Date
CN113272745A CN113272745A (en) 2021-08-17
CN113272745B true CN113272745B (en) 2022-12-06

Family

ID=71840680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201980088119.XA Active CN113272745B (en) 2019-01-31 2019-01-31 Smart home equipment sharing system and method and electronic equipment

Country Status (2)

Country Link
CN (1) CN113272745B (en)
WO (1) WO2020155014A1 (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114173184A (en) * 2020-09-10 2022-03-11 华为终端有限公司 Screen projection method and electronic equipment
CN114268617B (en) * 2020-09-15 2023-09-01 华为技术有限公司 Electronic equipment and positioning control method and medium thereof
CN114584412A (en) * 2020-11-30 2022-06-03 华为技术有限公司 Method for obtaining equipment control right and communication system
CN112486032A (en) * 2020-12-25 2021-03-12 广州金匙信息科技有限公司 Intelligent home control system based on cloud computing
CN113589699A (en) * 2021-07-21 2021-11-02 青岛海尔科技有限公司 Intelligent household scene control method and device
CN115708344A (en) * 2021-08-18 2023-02-21 华为技术有限公司 Method for sharing remote controller among devices, sending terminal device and receiving terminal device
CN115509139A (en) * 2021-09-30 2022-12-23 华为技术有限公司 Equipment control method, related device and communication system
CN117092921A (en) * 2022-05-12 2023-11-21 华为技术有限公司 Scene setting method and electronic equipment
CN117527737A (en) * 2022-07-29 2024-02-06 腾讯科技(深圳)有限公司 Stroke sharing method, device, equipment, storage medium and program product
CN115174266A (en) * 2022-08-09 2022-10-11 宁波奥克斯电气股份有限公司 Air conditioner control method and device, electronic equipment and computer readable storage medium
CN115955508B (en) * 2023-03-10 2023-06-02 边无际(北京)科技有限公司 Large-scale multi-class network camera identification and state sensing method and device
CN117061266B (en) * 2023-10-13 2024-04-02 荣耀终端有限公司 Control method and control device of intelligent household equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101887426B1 (en) * 2012-03-16 2018-08-10 삼성전자주식회사 Apparatus and method for ensuring privacy in contents sharing system
CN104460365B (en) * 2014-10-29 2018-10-19 小米科技有限责任公司 Apparatus control method and device
KR102314272B1 (en) * 2015-04-30 2021-10-20 삼성전자주식회사 Service sharing device and method
CN105100102B (en) * 2015-07-31 2019-07-30 宇龙计算机通信科技(深圳)有限公司 A kind of authority configuration and information configuring methods and device
CN105577494A (en) * 2016-01-04 2016-05-11 青岛海信电器股份有限公司 Control method of smart home devices, device and system
CN108121210A (en) * 2017-11-20 2018-06-05 珠海格力电器股份有限公司 Authority distributing method and device, storage medium, the processor of home appliance
CN109151012A (en) * 2018-08-11 2019-01-04 宁波亿拍客网络科技有限公司 A kind of push mode runs program technic and its application method, correlation technique

Also Published As

Publication number Publication date
WO2020155014A1 (en) 2020-08-06
CN113272745A (en) 2021-08-17

Similar Documents

Publication Publication Date Title
CN113272745B (en) Smart home equipment sharing system and method and electronic equipment
US11722449B2 (en) Notification message preview method and electronic device
CN110336720B (en) Equipment control method and equipment
CN111666119B (en) UI component display method and electronic device
CN111650840B (en) Intelligent household scene arranging method and terminal
CN113885759B (en) Notification message processing method, device, system and computer readable storage medium
CN111752443A (en) Method, related device and system for controlling page by display equipment
CN111614524A (en) Multi-intelligent-device linkage control method, device and system
CN113806105B (en) Message processing method, device, electronic equipment and readable storage medium
CN110198362B (en) Method and system for adding intelligent household equipment into contact
CN113497909B (en) Equipment interaction method and electronic equipment
CN113961157B (en) Display interaction system, display method and equipment
CN114173000B (en) Method, electronic equipment and system for replying message and storage medium
CN111505946B (en) Equipment control method and equipment
CN112237031B (en) Method for accessing intelligent household equipment to network and related equipment
CN112543447A (en) Device discovery method based on address list, audio and video communication method and electronic device
WO2024045801A1 (en) Method for screenshotting, and electronic device, medium and program product
CN113141483B (en) Screen sharing method based on video call and mobile device
CN114356195B (en) File transmission method and related equipment
CN114860178A (en) Screen projection method and electronic equipment
WO2024012398A1 (en) Message sharing method and related device
CN114237776B (en) Interaction method and device and electronic equipment
CN117014167A (en) Cloud mobile phone authorization information acquisition method, related equipment and storage medium
CN114237453A (en) Method for controlling equipment, electronic equipment and system
CN116560536A (en) Application component setting method and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant