WO2020155014A1 - 智能家居设备分享系统、方法及电子设备 - Google Patents

智能家居设备分享系统、方法及电子设备 Download PDF

Info

Publication number
WO2020155014A1
WO2020155014A1 PCT/CN2019/074168 CN2019074168W WO2020155014A1 WO 2020155014 A1 WO2020155014 A1 WO 2020155014A1 CN 2019074168 W CN2019074168 W CN 2019074168W WO 2020155014 A1 WO2020155014 A1 WO 2020155014A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
smart home
user
control
home device
Prior art date
Application number
PCT/CN2019/074168
Other languages
English (en)
French (fr)
Inventor
赵朋
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2019/074168 priority Critical patent/WO2020155014A1/zh
Priority to CN201980088119.XA priority patent/CN113272745B/zh
Publication of WO2020155014A1 publication Critical patent/WO2020155014A1/zh

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

Definitions

  • This application relates to the field of smart home technology, in particular to a smart home device sharing system, method and electronic device.
  • smart home devices are becoming more and more popular, and smart home systems are more and more widely used.
  • the widespread application of smart home systems provides users with a more convenient and comfortable home life. If the guests at home need to stay for a while, the host needs to share some smart home equipment with the guests.
  • the primary condition for sharing smart home devices is that an application provided by the manufacturer of the shared device needs to be installed on the mobile phone of the shared device. If not, the sharing process of smart home devices will be very complicated. The shareee needs to download the application, then apply for an account, and perform a series of settings for the application. Therefore, the sharing operation steps of smart home devices in the prior art are complicated and difficult to operate.
  • This application provides a smart home device sharing system, method and electronic device, which can reduce the sharing operation steps of smart home devices.
  • an embodiment of the present application provides a smart home device sharing system, including a first electronic device, a second electronic device, and a smart home device; wherein the first electronic device is connected to the smart home device, and the above-mentioned first electronic device The device controls all the functions supported by the smart home device; the first electronic device is configured to: receive a first user operation; in response to the first user operation, display a first user interface; wherein, the first user interface includes the smart Home appliances allow sharing functions; receive a second user operation that acts on the first user interface; in response to the second user operation, determine that one or more of the above allow sharing functions are functions to be shared; receive the first user operation Three user operations; in response to the third user operation, a control file is generated according to the one or more functions; the control file is sent to the second electronic device; the second electronic device is configured to: control the control file according to the control file One or more of the above functions of the smart home device.
  • control file may include an execution program and a configuration file.
  • the aforementioned configuration file is generated according to one or more functions selected by the user in the first electronic device.
  • the number of smart home devices may be one or more. Different smart home devices correspond to a configuration file. The configuration files corresponding to different smart home devices can be included in the same control file.
  • the first user can share the smart home device with the second user, and the first user can set some functions of the smart home device controllable by the second user on the first electronic device, making the device sharing process more flexible.
  • the second user does not need to apply for an additional account to control the smart home device shared by the first user, and the second user does not need to set the working parameters of the smart home device again, which reduces the operations of the second user.
  • the first electronic device controls the smart home device through a first application
  • the control file is an installation package of the first application
  • the installation package of the first application program may include a three-layer software architecture, namely the UI layer, the device management layer, and the communication layer.
  • the UI layer can be used to provide an interface for the interaction between the user and the first electronic device;
  • the device management layer can be used to manage various smart home devices, such as switching smart home devices, adjusting working parameters, and modifying device names;
  • the communication layer can be used To provide an interface for the first electronic device to interact with the smart home device.
  • the UI layer, the device management layer, and the communication layer may include multiple modules, and different smart home devices may correspond to different modules.
  • the communication layer may include multiple modules, such as a Bluetooth module, a Wi-Fi module, a mobile network module, an infrared module, and so on.
  • the installation package of the first application program is a shared version (simplified version) installation package, that is, the installation package may only include UI layer modules, device management layer modules, and communication layer modules related to the device to be shared.
  • the specific modules contained in the UI layer, device management layer, and communication layer can be determined by the configuration file of the device to be shared.
  • control file sent by the first electronic device is only related to the device to be shared, which makes the control file more streamlined, saves resources occupied during file transmission, and saves the memory occupied by the control file in the second electronic device.
  • the installation package of the first application program is a complete installation package.
  • the second electronic device can provide two usage methods for the second user, that is, log in to the application server of the first application with an existing account, or directly view the device shared by the first user for the second user, without The account can control the device.
  • the second user can use the application according to his own needs, while simplifying the sharing process of smart home devices, increasing the utilization rate of the application and improving the user experience.
  • the manner of sending the control file to the second electronic device includes any one or more of the following: Bluetooth, WLAN direct connection, and NFC.
  • the first electronic device can discover the second electronic device via Bluetooth, and then send the control file to the second electronic device via the WLAN direct connection.
  • control file is a WeChat applet.
  • the installation package of the first application program may include the program framework of the WeChat applet of the first application program.
  • the first electronic device When the first user selects one or more of the above functions on the first electronic device, the first electronic device writes the parameters corresponding to the function into the program framework of the applet.
  • the above-mentioned second user operation is also used to select the name and/or picture of the above-mentioned smart home device;
  • the above-mentioned generating a control file according to the above-mentioned one or more functions includes: according to the above-mentioned one or more functions, The above names and/or pictures generate control files.
  • the first user can set on the first electronic device some functions of the smart home device that the second user can control, and can also set whether the second user can view the name and/or picture of the device , To ensure the privacy of the first user.
  • the above-mentioned second user operation is also used to select the effective control duration of the above-mentioned smart home device;
  • the above-mentioned generating a control file according to the above-mentioned one or more functions includes: according to the above-mentioned one or more functions, the above-mentioned effective Control the duration to generate a control file.
  • the first user in addition to setting part of the functions of the smart home device controllable by the second user on the first electronic device, the first user can also set the effective control duration for the second user to control the smart home device, without The first user manually takes back control, reducing the first user's operations and improving the sharing efficiency of smart home devices. Avoiding that the second user can always control the smart home device because the first user forgets to regain the control right, guarantees the privacy of the first user, and improves the user experience of the first user.
  • the above-mentioned second user operation is also used to select the effective control duration of the above-mentioned smart home device;
  • the above-mentioned generating a control file according to the above-mentioned one or more functions includes: according to the above-mentioned one or more functions, the above-mentioned name And/or pictures, the above effective control duration to generate a control file.
  • the first user can set on the first electronic device some functions of the smart home device that the second user can control, and can also set whether the second user can view the name and/or picture of the device , And the effective control duration of the smart home device.
  • the implementation of the embodiments of the present application can guarantee the privacy of the first user, and does not require the first user to manually withdraw the control right, reduce the operation of the first user, and improve the sharing efficiency of smart home devices. It is avoided that the second user can always control the smart home device because the first user forgets to regain the control right, and the user experience of the first user is improved.
  • the first electronic device is further configured to: generate a key according to the valid duration; and send the key to the smart home device and the second electronic device.
  • the key may be generated by the first electronic device, and the validity of the key is determined by the effective control duration.
  • the first user can set the control period of the second user on the smart home device by setting the effective control duration of the key.
  • the first electronic device is further configured to: send the effective control duration to the smart home device, so that the smart home device generates a key according to the effective control duration; and receives the smart home device.
  • the key sent by the device; the key is sent to the second electronic device.
  • the key can be generated by a smart home device, and the validity of the key is determined by the effective control duration.
  • the first user can set the control period of the second user on the smart home device by setting the effective control duration of the key.
  • the second electronic device is further configured to: receive the control file, and parse the one or more functions in the control file.
  • the second electronic device after receiving the control file, parses the control file to obtain one or more functions of the smart home device shared by the first electronic device.
  • the second electronic device is further configured to: encrypt the control command with the key; send the control command to the smart home device, so that the smart home device uses the key to decrypt the Control commands and execute the above control commands.
  • the second electronic device cannot share the control file to the third electronic device again, which can ensure that the privacy of the first user is not leaked, and prevent others from randomly operating the smart home device of the first user.
  • the second electronic device can communicate with the smart home device through a key, which can prevent other electronic devices from controlling the smart home device and ensure the privacy of the first user.
  • the second user's control period of the smart home device is set to prevent the second user from being able to always control the smart home device because the first user forgets to take back the control right, thereby improving the user experience of the first user.
  • 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 with the one or more processors, and the memory is used for Store computer program code, the computer program code includes computer instructions, the one or more processors execute the computer instructions to make the electronic device execute: receive a first user operation; in response to the first user operation, display a first user interface ; Wherein, the first user interface includes a function that allows sharing of smart home devices; receiving a second user operation acting on the first user interface; in response to the second user operation, determining one or more of the functions that allow sharing A function is a function to be shared; receiving a third user operation; in response to the third user operation, generating a control file according to the one or more functions; sending the control file to the second electronic device, so that the second electronic device The one or more functions of the smart home device are controlled according to the control file.
  • control file may include an execution program and a configuration file.
  • the aforementioned configuration file is generated according to one or more functions selected by the user in the first electronic device.
  • the number of smart home devices may be one or more. Different smart home devices correspond to a configuration file. The configuration files corresponding to different smart home devices can be included in the same control file.
  • the first user can share the smart home device with the second user, and the first user can set some functions of the smart home device controllable by the second user on the first electronic device, making the device sharing process more flexible.
  • the second user does not need to apply for an additional account to control the smart home device shared by the first user, and the second user does not need to set the working parameters of the smart home device again, which reduces the operations of the second user.
  • the electronic device controls the smart home device through a first application
  • the control file is an installation package of the first application.
  • the installation package of the first application program may include a three-layer software architecture, namely the UI layer, the device management layer, and the communication layer.
  • the UI layer can be used to provide an interface for the interaction between the user and the first electronic device;
  • the device management layer can be used to manage various smart home devices, such as switching smart home devices, adjusting working parameters, and modifying device names;
  • the communication layer can be used To provide an interface for the first electronic device to interact with the smart home device.
  • the UI layer, the device management layer, and the communication layer may include multiple modules, and different smart home devices may correspond to different modules.
  • the communication layer may include multiple modules, such as a Bluetooth module, a Wi-Fi module, a mobile network module, an infrared module, and so on.
  • the installation package of the first application program is a shared version (simplified version) installation package, that is, the installation package may only include UI layer modules, device management layer modules, and communication layer modules related to the device to be shared.
  • the specific modules contained in the UI layer, device management layer, and communication layer can be determined by the configuration file of the device to be shared.
  • control file sent by the first electronic device is only related to the device to be shared, which makes the control file more streamlined, saves resources occupied during file transmission, and saves the memory occupied by the control file in the second electronic device.
  • the installation package of the first application program is a complete installation package.
  • the second electronic device can provide two usage methods for the second user, that is, log in to the application server of the first application with an existing account, or directly view the device shared by the first user for the second user, without The account can control the device.
  • the second user can use the application according to his own needs, while simplifying the sharing process of smart home devices, increasing the utilization rate of the application and improving the user experience.
  • the manner of sending the control file to the second electronic device includes any one or more of the following: Bluetooth, WLAN direct connection, and NFC.
  • the first electronic device can discover the second electronic device via Bluetooth, and then send the control file to the second electronic device via the WLAN direct connection.
  • control file is a WeChat applet.
  • the installation package of the first application program may include the program framework of the WeChat applet of the first application program.
  • the first electronic device When the first user selects one or more of the above functions on the first electronic device, the first electronic device writes the parameters corresponding to the function into the program framework of the applet.
  • the above-mentioned second user operation is also used to select the name and/or picture of the above-mentioned smart home device; when the above-mentioned electronic device executes the above-mentioned control file generation according to the above-mentioned one or more functions, it is specifically executed: One or more functions, the above names and/or pictures generate a control file.
  • the first user can set on the first electronic device some functions of the smart home device that the second user can control, and can also set whether the second user can view the name and/or picture of the device , To ensure the privacy of the first user.
  • the above-mentioned second user operation is also used to select the effective control duration of the above-mentioned smart home device; when the above-mentioned electronic device executes the above-mentioned control file generation according to the above-mentioned one or more functions, it is specifically executed: according to the above one or Multiple functions and the above effective control duration generate control files.
  • the first user in addition to setting part of the functions of the smart home device controllable by the second user on the first electronic device, the first user can also set the effective control duration for the second user to control the smart home device, without The first user manually takes back control, reducing the first user's operations and improving the sharing efficiency of smart home devices. Avoiding that the second user can always control the smart home device because the first user forgets to regain the control right, guarantees the privacy of the first user, and improves the user experience of the first user.
  • the above-mentioned second user operation is also used to select the effective control duration of the above-mentioned smart home device; when the above-mentioned electronic device executes the above-mentioned control file generation according to the above-mentioned one or more functions, it is specifically executed: according to the above one or Multiple functions, the above names and/or pictures, and the above effective control duration generate a control file.
  • the first user can set on the first electronic device some functions of the smart home device that the second user can control, and can also set whether the second user can view the name and/or picture of the device , And the effective control duration of the smart home device.
  • the implementation of the embodiments of the present application can guarantee the privacy of the first user, and does not require the first user to manually withdraw the control right, reduce the operation of the first user, and improve the sharing efficiency of smart home devices. It is avoided that the second user can always control the smart home device because the first user forgets to regain the control right, and the user experience of the first user is improved.
  • the electronic device further executes: generating a key according to the valid duration; and sending the key to the smart home device and the second electronic device.
  • the key may be generated by the first electronic device, and the validity of the key is determined by the effective control duration.
  • the first user can set the control period of the second user on the smart home device by setting the effective control duration of the key.
  • the electronic device further executes: sending the effective control duration to the smart home device, so that the smart home device generates a key according to the effective control duration; and receiving the above information sent by the smart home device Key; send the key to the second electronic device.
  • the key can be generated by a smart home device, and the validity of the key is determined by the effective control duration.
  • the first user can set the control period of the second user on the smart home device by setting the effective control duration of the key.
  • an embodiment of the present application provides a method for sharing smart home devices, including: receiving a first user operation; in response to the first user operation, displaying a first user interface; wherein the first user interface includes a smart home
  • the device allows sharing functions; receiving a second user operation acting on the first user interface; in response to the second user operation, determining that one or more of the above sharing functions are allowed to be shared; receiving a third User operation; in response to the third user operation, a control file is generated according to the one or more functions; the control file is sent to the second electronic device, so that the second electronic device controls the smart home device according to the control file One or more functions.
  • control file may include an execution program and a configuration file.
  • the aforementioned configuration file is generated according to one or more functions selected by the user in the first electronic device.
  • the number of smart home devices may be one or more. Different smart home devices correspond to a configuration file. The configuration files corresponding to different smart home devices can be included in the same control file.
  • the first user can share the smart home device with the second user, and the first user can set some functions of the smart home device controllable by the second user on the first electronic device, making the device sharing process more flexible.
  • the second user does not need to apply for an additional account to control the smart home device shared by the first user, and the second user does not need to set the working parameters of the smart home device again, which reduces the operations of the second user.
  • the electronic device controls the smart home device through a first application
  • the control file is an installation package of the first application.
  • the installation package of the first application program may include a three-layer software architecture, namely the UI layer, the device management layer, and the communication layer.
  • the UI layer can be used to provide an interface for the interaction between the user and the first electronic device;
  • the device management layer can be used to manage various smart home devices, such as switching smart home devices, adjusting working parameters, and modifying device names;
  • the communication layer can be used To provide an interface for the first electronic device to interact with the smart home device.
  • the UI layer, the device management layer, and the communication layer may include multiple modules, and different smart home devices may correspond to different modules.
  • the communication layer may include multiple modules, such as a Bluetooth module, a Wi-Fi module, a mobile network module, an infrared module, and so on.
  • the installation package of the first application program is a shared version (simplified version) installation package, that is, the installation package may only include UI layer modules, device management layer modules, and communication layer modules related to the device to be shared.
  • the specific modules contained in the UI layer, device management layer, and communication layer can be determined by the configuration file of the device to be shared.
  • control file sent by the first electronic device is only related to the device to be shared, which makes the control file more streamlined, saves resources occupied during file transmission, and saves the memory occupied by the control file in the second electronic device.
  • the installation package of the first application program is a complete installation package.
  • the second electronic device can provide two usage methods for the second user, that is, log in to the application server of the first application with an existing account, or directly view the device shared by the first user for the second user, without The account can control the device.
  • the second user can use the application according to his own needs, while simplifying the sharing process of smart home devices, increasing the utilization rate of the application and improving the user experience.
  • the manner of sending the control file to the second electronic device includes any one or more of the following: Bluetooth, WLAN direct connection, and NFC.
  • the first electronic device can discover the second electronic device via Bluetooth, and then send the control file to the second electronic device via the WLAN direct connection.
  • control file is a WeChat applet.
  • the installation package of the first application program may include the program framework of the WeChat applet of the first application program.
  • the first electronic device When the first user selects one or more of the above functions on the first electronic device, the first electronic device writes the parameters corresponding to the function into the program framework of the applet.
  • the above-mentioned second user operation is also used to select the name and/or picture of the above-mentioned smart home device;
  • the above-mentioned generating a control file according to the above-mentioned one or more functions includes: according to the above-mentioned one or more functions, The above names and/or pictures generate control files.
  • the first user can set on the first electronic device some functions of the smart home device that the second user can control, and can also set whether the second user can view the name and/or picture of the device , To ensure the privacy of the first user.
  • the above-mentioned second user operation is also used to select the effective control duration of the above-mentioned smart home device;
  • the above-mentioned generating a control file according to the above-mentioned one or more functions includes: according to the above-mentioned one or more functions, the above-mentioned effective Control the duration to generate a control file.
  • the first user in addition to setting part of the functions of the smart home device controllable by the second user on the first electronic device, the first user can also set the effective control duration for the second user to control the smart home device, without The first user manually takes back control, reducing the first user's operations and improving the sharing efficiency of smart home devices. Avoiding that the second user can always control the smart home device because the first user forgets to regain the control right, guarantees the privacy of the first user, and improves the user experience of the first user.
  • the above-mentioned second user operation is also used to select the effective control duration of the above-mentioned smart home device;
  • the above-mentioned generating a control file according to the above-mentioned one or more functions includes: according to the above-mentioned one or more functions, the above-mentioned name And/or pictures, the above effective control duration to generate a control file.
  • the first user can set on the first electronic device some functions of the smart home device that the second user can control, and can also set whether the second user can view the name and/or picture of the device , And the effective control duration of the smart home device.
  • the implementation of the embodiments of the present application can guarantee the privacy of the first user, and does not require the first user to manually withdraw the control right, reduce the operation of the first user, and improve the sharing efficiency of smart home devices. It is avoided that the second user can always control the smart home device because the first user forgets to regain the control right, and the user experience of the first user is improved.
  • the above method further includes: generating a key according to the valid duration; and sending the key to the smart home device and the second electronic device.
  • the key may be generated by the first electronic device, and the validity of the key is determined by the effective control duration.
  • the first user can set the control period of the second user on the smart home device by setting the effective control duration of the key.
  • the above method further includes: sending the effective control duration to the smart home device, so that the smart home device generates a key according to the effective control duration; receiving the above secret sent by the smart home device Key; sending the key to the second electronic device.
  • the key can be generated by a smart home device, and the validity of the key is determined by the effective control duration.
  • the first user can set the control period of the second user on the smart home device by setting the effective control duration of the key.
  • an embodiment of the present application provides a computer-readable storage medium, including computer instructions, which when the computer instruction runs on an electronic device, cause the electronic device to execute the third aspect or the third aspect of the embodiment of the present application.
  • a smart home device sharing method provided by any one of the three possible implementations.
  • the embodiments of the present application provide a computer program product.
  • the computer program product runs on an electronic device
  • the electronic device can perform the third aspect or any one of the third aspects of the embodiments of the present application.
  • the smart home device sharing method provided by the realization method.
  • the computer-readable storage medium provided in the fourth aspect and the computer program product provided in the fifth aspect are both used to execute the smart home device sharing method provided in the third aspect, and therefore, the beneficial effects that can be achieved
  • the beneficial effects in the smart home device sharing method provided in the third aspect can be referred to, and details are not repeated here.
  • FIG. 1 is a schematic diagram of a network architecture of a smart home device sharing system provided by an embodiment of the application
  • FIG. 2 is a schematic structural diagram of a first electronic device provided by an embodiment of the application.
  • FIG. 3 is a block diagram of the software structure of the first electronic device provided by an embodiment of the application.
  • FIGS. 4-20 are schematic diagrams of some user interface embodiments provided by the embodiments of this application.
  • FIG. 21 is a schematic flowchart of a second electronic device controlling a smart home device according to an embodiment of the application.
  • FIG. 22 is a schematic diagram of a key generation process and a sending process provided by an embodiment of this application.
  • FIG. 23 is a schematic diagram of another key generation process and sending process provided by an embodiment of this application.
  • FIGS. 24-27 are schematic diagrams of other user interface embodiments provided by the embodiments of this application.
  • FIG. 28 is a schematic flowchart of a method for sharing smart home devices according to an embodiment of the application.
  • the sharer can send the information of the smart home device to the shareee, and the shareee can control the smart home device without an account after receiving the information of the smart home device.
  • the sharing process of the smart home device provided in this application is simple and quick to operate.
  • FIG. 1 is a schematic diagram of a network architecture of a smart home device sharing system provided by an embodiment of the application.
  • 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 can communicate with the router 13 and connect to the cloud server 15 through the router 13.
  • One or more smart home devices 14 can also connect 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.
  • an application program for controlling the smart home device 14 is installed on the first electronic device 11, and the application program may be, for example, a Huawei smart home.
  • Huawei Smart Home may be referred to as the first application.
  • the cloud server 15 may be an application server corresponding to an application program used to control the smart home device 14, and the cloud server 15 may be, for example, an application server of Huawei smart home. It is not limited to the Huawei smart home, and may also be other applications in specific implementation, which is not limited in the embodiment of the present application. In the subsequent embodiments of this application, the application is Huawei Smart Home as an example for description.
  • the first electronic device 11 can 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 can send control instructions to the smart home device 14 through the router 13.
  • the first electronic device 11 can be connected to the second electronic device 12 via a mobile network, and can also be connected via short-range wireless communication methods such as Bluetooth, Huawei Share, wireless local area networks (WLAN) direct connection, and short-range wireless communication.
  • Technology near field communication, NFC
  • the first electronic device 11 and the second electronic device 12 involved in the embodiments of this application may be mobile phones, tablet computers, desktops, laptops, notebook computers, ultra-mobile personal computers (UMPC), handheld Computers, netbooks, personal digital assistants (PDAs), wearable electronic devices, virtual reality devices, etc.
  • UMPC ultra-mobile personal computers
  • PDA personal digital assistants
  • wearable electronic devices virtual reality devices, etc.
  • the user who uses the first electronic device 11 is called the first user
  • the user who uses the second electronic device 12 is called the second user.
  • the smart home equipment 14 involved in the embodiments of the present application may be smart speakers, sweeping robots, smart sockets, smart lights, smart body fat scales, smart desk lamps, air purifiers, smart refrigerators, smart air conditioners, smart washing machines, smart water heaters, smart Microwave ovens, smart rice cookers, smart curtains, smart fans, smart TVs, smart set-top boxes, etc.
  • 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, Antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display 194 , And subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the first electronic device 11.
  • the first electronic device 11 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
  • AP application processor
  • modem processor modem processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller may be the nerve center and command center of the first electronic device 11.
  • the controller can generate operation control signals according to the instruction operation code and timing signals, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter/receiver (universal asynchronous) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter/receiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely a schematic illustration, and does not constitute a structural limitation of the first electronic device 11.
  • the first electronic device 11 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the wireless charging input through the wireless charging coil of the first electronic device 11. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
  • the power management module 141 is used for connecting the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110.
  • the power management module 141 and the charging management module 140 may also be provided 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, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the first electronic device 11 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the first electronic device 11.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic wave radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the first electronic device 11, including wireless local area networks (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellite systems. , GNSS), frequency modulation (FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • 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, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the first electronic device 11 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the first electronic device 11 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the first electronic device 11 implements a display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing, connected to the display 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, which execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, etc.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc.
  • the first electronic device 11 may include one or N display screens 194, and N is a positive integer greater than one.
  • the first electronic device 11 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and is converted into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and projects it to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats.
  • the first electronic device 11 may include 1 or N cameras 193, and N is a positive integer greater than 1.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the first electronic device 11 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • 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 videos in a variety of encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • applications such as intelligent cognition of the first electronic device 11 can be implemented, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the first electronic device 11.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the processor 110 executes various functional applications and data processing of the first electronic device 11 by running instructions stored in the internal memory 121.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function.
  • the data storage area can store data (such as audio data, phone book, etc.) created during the use of the first electronic device 11.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
  • UFS universal flash storage
  • the first electronic device 11 may implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
  • the speaker 170A also called a “speaker” is used to convert audio electrical signals into sound signals.
  • 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 a "handset" is used to convert audio electrical signals into sound signals.
  • the first electronic device 11 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electric signals.
  • the user can approach the microphone 170C through the mouth to make a sound, and input the sound signal to the microphone 170C.
  • 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 can implement noise reduction functions in addition to collecting sound signals. In other embodiments, the first electronic device 11 may also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
  • the earphone interface 170D is used to connect wired earphones.
  • the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may include at least two parallel plates with conductive materials. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the first electronic device 11 determines the intensity of the pressure according to the change in capacitance.
  • 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 based on the detection signal of the pressure sensor 180A.
  • touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the movement posture 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 the acceleration of the first electronic device 11 in various directions (generally three axes). When the first electronic device 11 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and apply to applications such as horizontal and vertical screen switching, pedometers and so on.
  • Distance sensor 180F used to measure distance.
  • the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode.
  • LED light emitting diode
  • photodiode a light detector
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the first electronic device 11 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
  • the temperature sensor 180J is used to detect temperature.
  • the first electronic device 11 uses the temperature detected by the temperature sensor 180J to execute the temperature processing strategy.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the display screen 194 can provide visual output related to the touch operation.
  • the touch sensor 180K may also be disposed on the surface of the first electronic device 11, which is different from the position of the display screen 194.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal.
  • the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
  • the button 190 includes a power button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the first electronic device 11 may receive key input, and generate key signal input related to user settings and function control of the first electronic device 11.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • touch operations for different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminder, receiving information, alarm clock, game, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, which can be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect to the SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the first electronic device 11.
  • the first electronic device 11 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface 195 can also be 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 call and data communication.
  • the first electronic device 11 uses an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the first electronic device 11 and cannot be separated from the first electronic device 11.
  • the structure of the second electronic device 12 is similar to the structure of the first electronic device 11, and reference may be made to the detailed description of FIG. 2, which will not be repeated here.
  • the software system of the first electronic device 11 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of the present invention takes an Android system with a layered architecture as an example to illustrate the software structure of the first electronic device 11 by way of example.
  • FIG. 3 is a block diagram of the software structure of the first electronic device 11 according to an embodiment of the present invention.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • the application framework layer provides application programming interfaces (application programming interface, API) and programming frameworks for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, and a notification manager.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display, determine whether there is a status bar, lock the screen, take a screenshot, etc.
  • the content provider is used to store and retrieve data, and make these data accessible to applications.
  • the data may include video, image, audio, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls that display text and controls that display pictures.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
  • the phone manager is used to provide the communication function of the first electronic device 11. For example, the management of call status (including connected, hanged up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, etc.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a short stay without user interaction.
  • the notification manager is used to notify the download completion, message reminder, etc.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window.
  • the status bar prompts text messages, sounds prompts, electronic equipment vibrates, and indicator lights flash.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
  • the application layer and application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
  • surface manager surface manager
  • media library Media Libraries
  • 3D graphics processing library for example: OpenGL ES
  • 2D graphics engine for example: SGL
  • the surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing.
  • the 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes touch operations into original input events (including touch coordinates, time stamps of touch operations, etc.).
  • the original input events are stored in the kernel layer.
  • the application framework layer obtains the original input event from the kernel layer, and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation and the control corresponding to the click operation is the control of the camera application icon as an example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer.
  • the camera 193 captures still images or videos.
  • 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 will not be repeated here.
  • the number in parentheses after the user interface label indicates the electronic device displayed on the user interface.
  • the number 11 in brackets indicates that the user interface is displayed on the first electronic device 11, and the number 12 in brackets indicates that the user interface is displayed on the second electronic device 12.
  • 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 the homepage in the desktop on the first electronic device 11.
  • the homepage is referred to as the user interface 40.
  • the user interface 40 may include a status bar 401, a time component icon 402, and a weather component icon 403. , Multiple application icons such as photo album icon 404, Weibo icon 405, camera icon 406, WeChat icon 407, settings icon 408, and smart home icon 409.
  • the user interface 40 may also include a page indicator 410, a phone icon 411, Short message icon 412, contact icon 413, navigation bar 414 and so on. among them:
  • the status bar 401 may include: operator indicators (for example, the operator’s name "China Mobile"), one or more signal strength indicators of wireless fidelity (wireless fidelity, Wi-Fi) signals, and mobile communication signals (also Called cellular signal) one or more signal strength indicators, time indicators and battery status indicators.
  • operator indicators for example, the operator’s name "China Mobile”
  • signal strength indicators of wireless fidelity wireless fidelity, Wi-Fi
  • mobile communication signals also Called cellular signal
  • the time component icon 402 can be used to indicate the current time, such as date, day of the week, hour and minute information, etc.
  • the weather component icon 403 can be used to indicate the type of weather, such as cloudy to clear, light rain, etc., and can also be used to indicate information such as temperature.
  • the page indicator 410 may be used to indicate which page of the application the first user is currently viewing. The first user can slide the area of multiple application icons left and right to browse application icons in other pages.
  • the navigation bar 414 may include system navigation keys such as a return button 4141, a home screen button 4142, and a call out task history button 4143.
  • the main interface is the interface displayed by the first electronic device 11 after detecting a user operation on the main interface button 4142 on any user interface.
  • the first electronic device 11 may display the previous user interface of the current user interface.
  • the first electronic device 11 may display the main interface.
  • the first electronic device 11 may display the task recently opened by the first user.
  • each navigation key can also be other, for example, 4141 can be called Back Button, 4142 can be called Home button, and 4143 can be called Menu Button, which is not limited in this application.
  • the navigation keys in the navigation bar 414 are not limited to virtual keys, and can also be implemented as physical keys.
  • FIG. 5 exemplarily shows a user interface 50 for controlling the smart home device 400.
  • the user interface 50 can be obtained by clicking the smart home icon 409 in the user interface 40.
  • the first electronic device 11 can detect a user operation (such as 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 can display the user interface shown in FIG. 5 50.
  • a user operation such as a click operation on the smart home icon 409 acting on the smart home icon 409
  • the user interface 50 may include four types of menu controls (Smart Home 501, Mall 502, Cool Play 503, My 504), and a content display area 505.
  • the content displayed in the content display area under different menus is different.
  • the currently selected menu type shown in FIG. 5 is Zhijia 501. That is, the content displayed in the content display area 505 is the content displayed under the Smart Home 501 menu.
  • the content display area 505 may include: a user name indicator 5051, a scene list 5052, a classification bar 5053, a smart home device list 5054, and an addition control 5055. among them:
  • the user name indicator 5051 is used to indicate the name of the first user.
  • the user name indicator "June's home" shown in FIG. 5 indicates that the name of the first user is "June”.
  • the scene list 5052 may include icons for one or more scenes.
  • Smart home devices turned on in different scenarios are different, and the working parameters of the same smart home device turned on in different scenarios may also be different.
  • the working parameters of the smart home device may be, for example, the volume of a smart speaker, the color or brightness of a smart lamp, the working mode or wind speed of an air purifier, and so on.
  • the smart home devices turned on in each of the above scenarios and the working parameters of the turned on smart home devices can be set and saved in advance by the first user.
  • the aforementioned scene list 5052 contains icons of four scenes, and the four scenes are “go home”, “leave home”, “enter the master bedroom”, and "enter the living room”.
  • the first electronic device 11 can detect a user operation (such as a click operation on the icon of the "go home” scene) acting on any one of the above four scenes (such as the "go home” scene), and respond to In this 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 the working parameters of the turned on smart home device.
  • the first user can click on the icon of a certain scene to turn on the smart home devices corresponding to the scene and the working parameters of these smart home devices.
  • the scene list 5052 may also include a "more” icon.
  • the first electronic device 11 can detect a user operation that acts on the "more” icon (such as a click operation on the "more” icon), and in response to the operation, the first electronic device 11 can display for viewing more The page of scene icons. In other words, the first user can click the "more” icon to view more scene icons.
  • the working state of the smart speaker in the "away from home” scenario is off, and the working state of the smart speaker in the "going home” scenario is on.
  • the working state of the smart speaker in the “entering the master bedroom” scene is on and the volume is 20; and the working state of the smart speaker in the “entering the living room” scene is on and the volume is 15.
  • the classification column 5053 may include one or more classification options for displaying the smart home devices in the smart home device list 5054.
  • the classification column 5053 can include three classification options, namely "All", “Living Room” and "Master Bedroom”.
  • the smart home device list 5054 corresponding to different categories includes display areas of different smart home devices.
  • the smart home device list 5054 includes the display area of all smart home devices.
  • the options "living room” and “master bedroom” are both set by the first user, and all smart home devices can be classified, so that the smart home device display area in the smart home device list 5054 is displayed according to categories. It is not limited to the "living room” and "master bedroom” included in the category column 5053.
  • the first user can also set other categories.
  • the embodiment of the present application is only an exemplary description, and this is not limited.
  • the smart home device list 5054 may include one or more smart home device display areas, and the display area may include pictures, names, and working status of the smart home devices.
  • the name of the smart home device can be the name set by the first user, or the default name of the smart home device.
  • the working status of the smart home device can include on and off.
  • the smart home device list 5054 may include a speaker display area 5054-a, a TV display area 5054-b, an electric lamp display area 5054-c, and a body fat scale display area 5054. -d.
  • the first electronic device 11 can detect the sliding operation acting on the smart home device list 5054, and in response to the sliding operation, the first electronic device 11 can display more display areas of the smart home device.
  • the above-mentioned display area of the smart home device can be used to open a user interface for setting working parameters.
  • the first electronic device 11 can detect a user operation on the display area 5054-f of the air purifier (such as a click operation on the display area 5054-f of the air purifier), and in response to the operation, the first electronic device 11
  • the user interface 70 for setting the operating parameters of the air purifier shown in FIG. 7 may be displayed.
  • the user interface 70 For a detailed introduction of the user interface 70, please refer to the description of the subsequent embodiment, which is not detailed here.
  • the first electronic device 11 can detect a user operation acting on the lamp display area 5054-c of the master bedroom (such as a click operation on the lamp display area 5054-c of the master bedroom), and in response to this operation, the first electronic The device 11 can display the user interface 80 shown in FIG. 8 for setting the working parameters of the lamp of the master bedroom.
  • a user operation acting on the lamp display area 5054-c of the master bedroom such as a click operation on the lamp display area 5054-c of the master bedroom
  • the first electronic The device 11 can display the user interface 80 shown in FIG. 8 for setting the working parameters of the lamp of the master bedroom.
  • the content displayed in the above content display area 505 is the content displayed under the Smart Home 501 menu.
  • the content display area 505 displays the content for purchasing smart home equipment; if the currently selected menu type is Kuwan 503, the content display area 505 displays the smart home shared by other users Information about the device; if the currently selected menu type is My 504, the content display area 505 displays the content for setting account information.
  • the add control 5055 can be used to add a device, add a scene, or share a device.
  • the first electronic device 11 can detect a user operation (such as a click operation on the add control 5055) acting on the add control 5055, and in response to the operation, the first electronic device 11 can display the display shown in FIG. 6 in the user interface 50 Control panel 601.
  • control panel 601 may include an add device control 6011, an add scene control 6012, and a sharing device control 6013. among them:
  • the add device control 6011 can be used to add smart home devices.
  • the first electronic device 11 can detect a user operation (such as a click operation on the add device control 6011) acting on the add device control 6011, and in response to the operation, the first electronic device 11 can display the user for adding a smart home device interface.
  • the add scene control 6012 can be used to add a scene.
  • the first electronic device 11 can detect a user operation (such as a click operation on the scene addition control 6012) acting on the scene addition control 6012, and in response to the operation, the first electronic device 11 can display a user interface for adding scenes.
  • Adding a scene may include setting the name of the scene, setting the smart home device that needs to be turned on in the scene, and setting the working parameters of the turned on smart home device.
  • the sharing device control 6013 can be used to share the smart home device with the second electronic device 12.
  • the first electronic device 11 can detect a user operation (such as a click operation on the sharing device control 6013) acting on the sharing device control 6013, and in response to the operation, the first electronic device 11 can display User interface 90 for smart home devices.
  • a user operation such as a click operation on the sharing device control 6013
  • the first electronic device 11 can display User interface 90 for smart home devices.
  • FIG. 7 exemplarily shows a user interface 70 for setting working parameters of the air purifier.
  • the user interface 70 may include a device information display area 701, a switch control 702, a device state parameter display area 703, and a working parameter setting area 704. among them:
  • the device information display area 701 may include a picture of the device, the name of the device (air purifier), and the like.
  • the switch control 702 can be used to switch the working state of the air purifier.
  • the first electronic device 11 can detect a user operation (such as a click operation on the switch control 702) acting on the switch control 702, and in response to the operation, the first electronic device 11 can send the air purifier to switch the working state from on It is an instruction to turn off or switch from off to on.
  • the device status parameter display area 703 can be used to display the status parameters of the device.
  • the state parameters of the equipment may be, for example, the remaining amount of the filter element (91%), the amount of purified air (1345 m 3 ), and the amount of filtered particulate matter (89 mg) shown in FIG. 7.
  • the working parameter setting area 704 can be used to set working parameters of the air purifier.
  • the working parameters of the air purifier may be, for example, the working mode (such as automatic mode or sleep mode), wind speed, and time of the timer switch shown in FIG. 7.
  • FIG. 8 exemplarily shows a user interface 80 for setting the operating parameters of the electric lamp.
  • the user interface 80 may include a device information display area 801, a switch control 802, and a working parameter setting area 803. among them:
  • the device information display area 801 may include a picture of the device, the name of the device (the lamp of the master bedroom), and the like.
  • the switch control 802 can be used to switch the working state of the electric light.
  • the switch control 802 is similar to the switch control 702, and will not be repeated here.
  • the working parameter setting area 803 can be used to set the working parameters of the lamp.
  • the working parameters of the electric light may be, for example, the color of the light (color or daylight), the brightness of the light (55%), the time of the timer switch, the time of the countdown switch, etc. as shown in FIG.
  • the user interface 90 for sharing smart home devices may include: a smart home device selection list 901, a confirm control 902, a select all control 903, a cancel control 904, and a selection result indicator 905. among them:
  • the smart home device selection list 901 may include one or more smart home device display areas.
  • 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 the pictures, names, and working status of the smart home devices.
  • the display area of each smart home device in the smart home device list 901 also includes a selection control 9011.
  • the selection control 9011 can be used to select the smart home device to be shared.
  • the first electronic device 11 can detect a user operation (such as a click operation on the selection control 9011) acting on the selection control 9011, and in response to the operation, the first electronic device 11 can display the result of the smart home device being selected.
  • the selected display mode of the smart home may be to display the selected mark in the selection control 9011, and the mark may be " ⁇ " as shown in b in FIG. 9, for example.
  • the determination control 902 can be used to determine that the selected smart home device is the smart home device to be shared.
  • the first electronic device 11 can detect a user operation (such as a click operation on the confirmation control 902) that acts on the determination control 902, and in response to the operation, the first electronic device 11 can determine which smart home devices are selected, And the user interface 100 for setting sharing parameters shown in FIG. 10 is displayed.
  • a user operation such as a click operation on the confirmation control 902
  • the select all control 903 can be used to determine all smart home devices as smart home devices to be shared.
  • the first electronic device 11 can detect a user operation on the select all control 903 (such as a click operation on the select all control 903), and in response to this operation, the first electronic device 11 can determine that all smart home devices are to be shared Smart home device.
  • the cancel control 904 can be used to cancel sharing the smart home device.
  • the first electronic device 11 can detect a user operation (such as a click operation on the cancel control 904) that acts on the cancel control 904, and in response to the operation, the first electronic device 11 can cancel sharing the smart home device.
  • the selection result indicator 905 may be used to indicate the result of the currently selected smart home device to be shared. The result can be unselected or selected. If the result is selected, the selection result indicator 905 can also be used to indicate the number of smart home devices that have been selected. For details, refer to b in FIG. 9.
  • the user interface 100 for setting sharing parameters may include: a sending control 101, a returning control 102, and a sharing device list 103. among them:
  • the sending control 101 can be used to send the device to be shared and the sharing parameters of the device to the second electronic device 12.
  • the first electronic device 11 can detect a user operation (such as 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 can display a in FIG. 13 in the user interface 100
  • the shown sharing panel 104 for sending the sharing device is updated and displayed as the canceling control 105 shown in a in FIG. 13.
  • the cancel control 105 is used to cancel sending the device to be shared and the sharing parameters of the device to the second electronic device 12.
  • the sharing parameter of the device can be obtained through the sharing parameter entry of each device in the sharing device list 103.
  • the sharing parameters of the device are all parameters by default.
  • the specific manner in which the first electronic device 11 sends 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 or a WeChat applet.
  • the installation package of the application program or the WeChat applet may include the execution program and the configuration file of the device to be shared.
  • WeChat is a kind of instant messaging software
  • Mini Program is an application that is carried on WeChat and provided with access to WeChat.
  • the return control 102 can be used to return to the previous user interface, that is, the user interface 90.
  • the first electronic device 11 can detect a user operation (such as a click operation on the return control 102) acting on the return control 102, and in response to the operation, the first electronic device 11 can display the user interface 90.
  • the first user can reselect the smart home device to be shared in the user interface 90.
  • the sharing device list 103 may be used to display a list of smart devices to be shared.
  • the sharing device list 103 may include one or more entries for setting sharing parameters.
  • the sharing device list 103 may include an entrance 1031 for setting sharing parameters of the lights of the master bedroom, and an entrance 1032 for setting sharing parameters of the air purifier.
  • the first electronic device 11 can detect a user operation (such as a click operation on the parameter entry 1031) that acts on the entrance 1031 for setting the sharing parameters of the lamp of the master bedroom, and in response to this operation, the first electronic device 11 can display a picture
  • the user interface 200 shown in 11 is used to set the sharing parameters of the lamp of the master bedroom.
  • the user interface 200 may include: a return control 201, a select all control 202, a save control 203, an entry 204 for setting effective control duration, and a sharing parameter setting list 205. among them:
  • the return control 201 can be used to return to the previous user interface, that is, the user interface 100.
  • the first electronic device 11 can detect a user operation (such as a click operation on the return control 201) that acts on the return control 201, and in response to the operation, the first electronic device 11 can display the user interface 100.
  • the select all control 202 can be used to select all parameters as sharing parameters.
  • the first electronic device 11 can detect a user operation that acts on the select all control 202 (such as a click operation on the select all control 202), and in response to the operation, the first electronic device 11 can determine that the sharing parameter setting list 205 is listed All parameters of are shared parameters.
  • the save control 203 is used to save the selected parameters.
  • the first electronic device 11 can detect a user operation (such as a click operation on the save control 203) that acts on the save control 203, and in response to the operation, the first electronic device 11 can save the selected parameters to the internal memory 121,
  • the configuration file corresponding to the smart home device 14 is generated according to the selected parameters.
  • the format of the configuration file may be .config, for example, and the configuration file may be saved in the installation package of Huawei smart home.
  • the first electronic device 11 may also display the user interface 100.
  • the entry 204 for setting the effective control duration can 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 can detect a user operation that acts on the entry 204 for setting the effective control duration (such as a click operation on the entry 204 for setting the effective control duration), and the first electronic device 11 can display different duration options (such as 1 Days, 2 days, 5 days, 10 days, etc.).
  • the first user can 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 can also manually edit the effective control duration.
  • the sharing parameter setting list 205 may include multiple parameter options. Multiple parameter options can include: switch, picture, name, color, daylight, brightness, timing, countdown, etc.
  • the first electronic device 11 can detect a user operation (such as a click operation on the switch option) that acts on any option (such as a switch option), and in response to this operation, the first electronic device 11 can determine that the switch option is to be shared parameter.
  • the first electronic device 11 displays the selected parameter with a special mark, and the special mark may be " ⁇ " as shown in FIG. 11, for example.
  • the first electronic device 11 can detect a user operation (such as a click operation on the parameter entry 1032) acting on the entrance 1032 for setting the sharing parameters of the air purifier, and in response to the operation, the first electronic device 11 can display FIG. 12 The user interface 300 for setting sharing parameters of the air purifier is shown.
  • a user operation such as a click operation on the parameter entry 1032 acting on the entrance 1032 for setting the sharing parameters of the air purifier
  • the user interface 300 may include: a return control 301, a select all control 302, a save control 303, an entry 304 for setting effective control duration, and a sharing parameter setting list 305. among them:
  • the return control 301, the select all control 302, the save control 303, and the entry 304 for setting the effective control duration are respectively consistent with the return control 201, the select all control 202, the save control 203, and the entry 204 for setting the effective control duration shown in FIG. 11. I will not repeat them here.
  • the sharing parameter setting list 305 may include multiple parameter options. Multiple parameter options can include: switch, picture, name, remaining amount of filter element, amount of purified air, amount of filtered particulate matter, automatic mode, sleep mode, wind speed, timing switch, etc.
  • the first electronic device 11 can detect a user operation (such as a click operation on the switch option) that acts on any option (such as a switch option), and in response to this operation, the first electronic device 11 can determine that the switch option is to be shared parameter.
  • the first electronic device 11 displays the selected parameter with a special mark, and the special mark may be " ⁇ " as shown in FIG. 12, for example.
  • the sharing panel 104 shown in a in FIG. 13 may include one or more sending mode options, such as Huawei Share option 1042, Bluetooth option, WLAN direct connection option, lightning mutual transmission option, WeChat option 1041, email option, QQ option , Weibo options, Huawei account friends options, etc.
  • 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.
  • Huawei Share transmission technology can quickly discover other Huawei devices in the surrounding area through Bluetooth, and then use WLAN direct connection to quickly transfer files, without traffic.
  • the first method is to send the control file to the second electronic device 12 through the Huawei Share option 1402.
  • the control file is the installation package of Huawei Smart Home.
  • the installation package may contain the executable program and the configuration file of the device to be shared.
  • the configuration file of the device to be shared may include the sharing parameters selected 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.
  • the first electronic device 11 can detect a user operation (such as a click operation on the Huawei Share option 1042) that acts on the Huawei Share option 1042, and in response to this operation, the first electronic device 11 can use the Huawei Share option 1042 to The control file is sent to the second electronic device 12.
  • a user operation such as a click operation on the Huawei Share option 1042
  • the first electronic device 11 can use the Huawei Share option 1042 to The control file is sent to the second electronic device 12.
  • the specific process in which the first electronic device 11 can send the control file to the second electronic device 12 through the Huawei Share option 1042 is as follows:
  • the first electronic device 11 discovers the surrounding second electronic device 12 through Bluetooth.
  • the first electronic device 11 can turn on Bluetooth, search for nearby second electronic devices 12 that have the Huawei Share function enabled, and display the searched second electronic devices 12 in the list 1043 shown in b in FIG. 13, the list
  • the second electronic device 12 in 1043 is displayed in the form of an avatar and a name.
  • the b in FIG. 13 exemplarily shows two second electronic devices 12 with the Huawei Share function enabled (the names of the second users who use the second electronic devices 12 are Jack and Lisa respectively).
  • the first user can click on an avatar in the list 1043 to initiate a request to send a control file to the second electronic device 12 indicated by the avatar through 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 (the name of the second user is Jack), and the user can cancel the file to be sent by clicking the avatar.
  • the first electronic device 11 sends the control file to the second electronic device 12 through the WLAN direct connection.
  • FIG. 14 exemplarily shows the homepage (user interface 400) in the desktop on the second electronic device 12, and the user interface 400 is similar to the user interface 40 of the first electronic device 11. However, since Huawei smart home is not installed on the second electronic device 12, the smart home icon 409 is not included in the user interface 400.
  • the prompt window 4001 includes a rejection control 4002, an acceptance control 4003, and sharing information; the sharing information may include the shared file name (HiLink simple.apk), file size (5.8M), sharer name (June), and so on.
  • the reject control 4002 is used to reject the first electronic device 11's request to send a control file.
  • the second electronic device 12 can detect a user operation (such as a click operation on the rejection control 4002) acting on the rejection control 4002, and in response to the operation, the second electronic device 12 rejects the first electronic device 11's request to send a control file.
  • the acceptance control 4003 is used to accept the request for 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.
  • the second electronic device 12 can detect a user operation (such as a click operation on the acceptance control 4003) acting on the acceptance control 4003, and in response to the operation, the second electronic device 12 accepts the first electronic device 11's request to send a control file.
  • the first electronic device 11 After the second electronic device 12 accepts the above-mentioned request sent by the first electronic device 11, the first electronic device 11 sends a control file to the second electronic device 12 via WLAN.
  • the icon 4004 shown in c in FIG. 14 is displayed in the user interface 400.
  • the installation package of Huawei's smart home may include a three-layer software architecture, namely the UI layer, the device management layer, and the communication layer.
  • the UI layer can be used to provide an interface for the interaction between the user and the first electronic device 11;
  • the device management layer can be used to manage various smart home devices, such as switching smart home devices, adjusting working parameters, and modifying device names;
  • the communication layer can It is 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 multiple modules, and different smart home devices may correspond to different modules.
  • the communication layer may include multiple modules, such as Bluetooth modules, Wi-Fi modules, mobile network modules, infrared modules, and so on.
  • the communication layer may include a Wi-Fi module; if the smart home device is an infrared remote control, the communication layer may include an infrared module in addition to the Wi-Fi module.
  • 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 as shown in FIG. Provided user interface 70.
  • the content in the user interface 70 and the user interface 80 can also be subdivided into multiple modules.
  • 801 in the user interface 80 can be divided into two modules, namely a picture module and a name module.
  • the installation package of Huawei Smart Home sent by the first electronic device 11 to the second electronic device 12 may be a sharing version (ie simplified version) installation package, that is, the installation package may only include UI layer modules related to the device to be shared, Device management layer module and communication layer module.
  • the specific modules contained in the UI layer, device management layer, and communication layer can be determined by the configuration file of the device to be shared.
  • the installation package of the Huawei 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 use Bluetooth, WLAN direct connection, lightning mutual transmission, NFC and other functions to send the control file to the second electronic device 12, which is not limited in this embodiment of the application.
  • the second type send the control file to the second electronic device 12 through the WeChat option 1401.
  • the control file is the WeChat applet of Huawei Smart Home.
  • the WeChat applet can contain the execution program and the configuration file of the device to be shared.
  • the configuration file of the device to be shared may include the sharing parameters selected in the embodiment of FIG. 11 or FIG. 12.
  • the first electronic device 11 can detect a user operation (such as a click operation on the option 1041) acting on the option 1041, and in response to the operation, the first electronic device 11 can send the control file to the first through the WeChat option 1041.
  • a user operation such as a click operation on the option 1041
  • the first electronic device 11 can send the control file to the first through the WeChat option 1041.
  • Two electronic equipment 12 Two electronic equipment 12.
  • the first electronic device 11 may display the WeChat user interface 500 shown in FIG. 15.
  • the user interface 500 may include a friend option list 5001, a search control 5002, a multi-select control 5003, and a return control 5004. among them:
  • the friend option list 5001 may include one or more friend options.
  • the one or more friend options included in the friend option list 5001 are the recently contacted friends of the first user.
  • the first electronic device 11 can detect a user operation (such as a click operation on the option 5001-a) acting on a certain friend option (such as option 5001-a), and in response to the operation, the first electronic device 11 can determine the The friend (for example, Jack) corresponding to the friend option is the target sharing friend, and the sharing window 5005 shown in FIG. 16 is displayed in the user interface 500.
  • the search control 5002 can be used to search for target sharing friends from all the contacts in WeChat.
  • the first electronic device 11 can detect a click operation on the search control 5002, and in response to the operation, the first electronic device 11 can display an input box, and the first user can input the name of the target sharing friend in the input box.
  • the multi-select control 5003 can be used to share the file to be shared with multiple friends.
  • the return control 5004 can be used to return to the previous user interface, that is, the user interface 100.
  • the first user can create a new chat and select the target sharing friend.
  • the first electronic device 11 can also detect a sliding operation acting on the friend option list 5001, and in response to the sliding operation, the first electronic device 11 can display more friend options.
  • FIG. 16 exemplarily shows a sharing window 5005.
  • the sharing window 5005 may include: a sharing control 5005-a, a cancellation control 5005-b, a message area 5005-c, a target sharing friend indicator 5005-d, and a shared content display area 5005-e. among them:
  • the sharing control 5005-a can be used to send the control file to the target sharing friend.
  • the first electronic device 11 can detect the click operation on the sharing control 5005-a, and in response to the click operation, the first electronic device 11 can send the control file to the target sharing friend (the electronic device used by the target sharing friend is the first Two electronic equipment 12). Possibly, the first electronic device 11 may send the message information entered by the first user in the message area 5005-c to the target sharing friend.
  • the cancel control 5005-b can be used to cancel sending the control file.
  • the first electronic device 11 may detect a click operation acting on the cancel control 5005-b, and in response to the click operation, the first electronic device 11 may cancel sending the control file.
  • the message area 5005-c can be used to leave messages to target sharing friends.
  • the first electronic device 11 may detect a click operation acting on the message area 5005-c, and in response to the click operation, the first electronic device 11 may display an input box and receive the message information input by the first user.
  • the target sharing friend indicator 5005-d may be used to indicate the target sharing friend, and specifically may include the avatar and name of the target sharing friend.
  • the shared content display area 5005-e can be used to display shared content.
  • the second electronic device 12 can display the WeChat user interface 600 shown in FIG. 17, and the user interface 600 is the connection between the target sharing friend (Jack) and the first electronic device 11.
  • Information 6001 may be included in the user interface 600.
  • the content contained in the information 6001 is the shared content displayed in the shared content display area 5005-e.
  • the aforementioned target sharing friend is the second user.
  • the installation package of the Huawei smart home may include the program framework of the WeChat applet of the Huawei smart home.
  • the first electronic device 11 can write the sharing parameters into the program framework of the applet.
  • the function of the WeChat applet of Huawei Smart Home is similar to that of the aforementioned Huawei Smart Home.
  • the WeChat applet of the Huawei smart home may include the ID number and/or MAC address of the smart home device to be shared, the selected sharing parameters in the embodiment of FIG. 11 or FIG. 12, and so on.
  • the second user can control the shared device through the applet.
  • the ID of the smart home device may be a number assigned by the cloud server 15 to the smart home device, and is used to identify the identity of the smart home device. Not limited to the ID, the identity of the smart home device can also be identified through the MAC address of the smart home device.
  • the first method is to send the control file to the second electronic device 12 through the Huawei Share option 1402.
  • the second electronic device 12 can 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 electronic device can display the user interface 700 shown in FIG.
  • the user interface 700 may include a user name indicator 7001 and a smart home device list 7002.
  • the user name indicator 7001 may be used to indicate the name of the first user of the first electronic device 11.
  • the user name indicator "June's home" 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 device display areas, and the display area may include the icons, names, and working status of the smart home devices.
  • the name of the smart home device may be the name set by the first user on the first electronic device 11, or it may be the default name of the smart home device. Whether the name of the smart home device displayed in the display area is a set name or a default name depends on the sharing parameters of the smart home device. If the sharing parameters of the smart home device include the name of the smart home device, the name of the smart home device displayed in the display area may be the name set by the first user; if the sharing parameter of the smart home device does not include the smart home device The name of the smart home device displayed in the display area can be the default name. For example, the name set by the first user may be "the lamp of the master bedroom", and the default name of the device may be "smart light". The working status of the smart home device can include on and off.
  • the above-mentioned display area of the smart home device can be used to open a user interface for setting working parameters.
  • the smart home device list 7002 in FIG. 18 may include a display area 7002-a of smart electric lights and a display area 7002-b of air purifiers.
  • the second electronic device 12 can detect a user operation (such as a click operation on the display area 7002-a) acting on the display area 7002-a, and in response to the operation, the second electronic device 12 can display the user operation shown in FIG. 19 A user interface 800 for setting the operating parameters of the smart light.
  • the second electronic device 12 can detect a user operation (such as a click operation on the display area 7002-b) acting on the display area 7002-b, and in response to the operation, the second electronic device 12 can display the user operation shown in FIG. 20 A user interface 900 for setting working parameters of the air purifier.
  • a user operation such as a click operation on the display area 7002-b
  • the content contained in the user interface 800 for setting the working parameters of the smart electric light shown in FIG. 19 may be determined by the sharing parameters of the lamp of the master bedroom set on the first electronic device 11 by the first user.
  • the specific sharing parameters can be seen in the selected parameters in the user interface 200 shown in FIG. 11.
  • the user interface 800 may include a device information display area 8001, a switch control 8002, and a working parameter setting area 8003. among them:
  • the device information display area 8001 includes the picture of the device, the default name (smart light) of the device, and so on.
  • the name of the device is not selected as the parameter to be shared. Therefore, the name of the device shown in FIG. 18 and FIG. 19 is the default name of the smart home device, which is "smart light".
  • the switch control 8002 can be used to switch the working state of the lamp.
  • the working parameter setting area 8003 can be used to set the working parameters of the lamp.
  • the working parameters of electric lights include light color (color or daylight), light brightness (55%).
  • the working parameters of the lamp in the working parameter setting area 8003 of the user interface 800 do not include the time of the timer switch and the count-down switch time.
  • the user interface 900 may include a device information display area 9001, a switch control 9002, and a working parameter setting area 9003. among them:
  • the device information display area 9001 may include a picture of the device, the name of the device (air purifier), and the like.
  • the switch control 9002 can be used to switch the working state of the air purifier.
  • the working parameter setting area 9003 can be used to set the working parameters of the air purifier.
  • the working parameters of the air purifier include working modes (such as automatic mode or sleep mode).
  • the device status parameter display area is not shown in Figure 20.
  • the wind speed and timing switch options in the sharing parameter setting list 305 are not selected as the parameters to be shared. Therefore, the working parameter setting area 9003 of the user interface 900 does not include wind speed and timing switch options.
  • the process of turning on the air purifier by the second electronic device 12 may include at least the following steps:
  • the second electronic device 12 detects a user operation acting on the switch control 9002.
  • the aforementioned user operation may be a click operation acting on the switch control 9002.
  • the second electronic device 12 sends a user datagram protocol (user datagram protocol, UDP) multicast scanning message to the router 13.
  • a user datagram protocol user datagram protocol, UDP
  • the second electronic device 12 may send the above-mentioned UDP multicast scanning message on all ports.
  • the router 13 sends a UDP multicast scan message to the smart home device 14 in the local area network.
  • one or more smart home devices 14 may be included in the local area network.
  • one or more smart home devices 14 may include an air purifier.
  • S104 The smart home device 14 in the local area network sends a UDP multicast response message to the router 13.
  • the UDP multicast response message sent by the smart home device 14 may carry the ID and IP address of the smart home device.
  • the UDP multicast response message sent by the smart home device 14 may be multicast, that is, the smart home device 14 may send a UDP multicast response message to all ports of the second electronic device 12.
  • the second electronic device 12 needs to monitor all ports after sending UDP multicast scanning messages on all ports.
  • the UDP multicast response message sent by the smart home device 14 may be unicast, that is, the smart home device 14 may send a UDP multicast response message to a specific port of the second electronic device 12.
  • the second electronic device 12 only needs to monitor one specific port after sending UDP multicast scanning messages on all ports.
  • the specific port number can be carried in the UDP multicast scanning message.
  • the router 13 sends a UDP multicast response message to the second electronic device 12.
  • the second electronic device 12 compares whether the device ID is consistent with the ID of the pre-stored air purifier. If they are consistent, perform S107; if they are not consistent, discard the ID.
  • the pre-stored ID of the air purifier may be stored in the internal memory of the second electronic device 12.
  • the pre-stored ID of the air purifier may be carried in the control file sent by the first electronic device 11 to the second electronic device 12.
  • the local area network may include multiple smart home devices, and the second electronic device 12 may receive UDP multicast response messages sent by multiple smart home devices. Therefore, the second electronic device 12 may receive the IDs and IP addresses of multiple smart home devices 14.
  • the second electronic device 12 may compare the received IDs of the multiple smart home devices 14 with the IDs of the pre-stored air purifiers to determine whether they are consistent. If they are consistent, record the IP address corresponding to the ID. If they are inconsistent, discard the ID.
  • the second electronic device 12 records the IP address of the air purifier.
  • the second electronic device 12 may save the IP address of the air purifier to the internal memory.
  • the second electronic device 12 sends an instruction to turn on the air purifier to the router 13.
  • 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 turn on the air purifier to the air purifier.
  • the router 13 may send an opening instruction to the air purifier according to the IP address.
  • the air purifier switches its working state from off to on. So far, the second electronic device 12 has realized the control of the air purifier.
  • the second electronic device 12 Since the second electronic device 12 does not have an account for the first application program and cannot control the air purifier through the cloud server 15, the second electronic device 12 can control the air purifier through the IP address of the air purifier in the local area network .
  • the accounts managed by the cloud server 15 can be reduced, and the management cost of the cloud server 15 can be reduced.
  • the second electronic device 12 automatically establishes a connection with the smart home device after receiving the aforementioned control file.
  • the second electronic device 12 can query the smart home device 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 smart home device matching the ID or MAC address The IP address of the device.
  • the second electronic device 12 can establish a connection with the smart home device shared with it according to the IP address.
  • the instruction sent by the second electronic device 12 to the router 13 is encrypted by the key.
  • This key is a temporary key.
  • the validity period of the key can be set on the first electronic device 11 by the first user. Specifically, it can be set at the "effective control duration" in FIG. 11 or FIG. 12.
  • the smart home device 14 After receiving the instruction encrypted by the key, the smart home device 14 verifies the legitimacy of the instruction. If the instruction is legal, the event corresponding to the instruction is executed. Wherein, the legality of the instruction may include the correctness of the key used to encrypt the instruction and the validity of the key.
  • the above-mentioned key may be generated by the first electronic device 11 and sent to the smart home device 14, and sent by the first electronic device 11 to the second electronic device 12.
  • FIG 22 shows the key generation process and the sending process. As shown in Figure 22, the process can include the following steps:
  • the first electronic device 11 generates a key.
  • the first electronic device 11 sends the key to the smart home device 14.
  • the smart home device 14 saves the key.
  • the first electronic device 11 sends the control file to the second electronic device 12.
  • the control file contains the key.
  • the second electronic device 12 receives the control file and saves the key.
  • the above-mentioned key may be generated by the smart home device 14 and sent to the first electronic device 11, and sent by the first electronic device 11 to the second electronic device 12.
  • Figure 23 shows another key generation process and transmission process. As shown in Figure 23, the process can include the following steps:
  • the first electronic device 11 sends an instruction to generate a key to the smart home device 14.
  • the smart home device 14 generates a key and saves the key.
  • the smart home device 14 sends the key to the first electronic device 11.
  • the first electronic device 11 sends the control file to the second electronic device 12.
  • the control file contains the key.
  • the second electronic device 12 receives the control file and saves the key. Specifically, the validity period of the above key may be counted from the moment when the key is generated.
  • the second type send the control file to the second electronic device 12 through the WeChat option 1401.
  • the second electronic device 12 can detect a user operation (such as a click operation on the information 6001) acting on the information 6001, and in response to the operation, the second electronic device 12 can display the user interface 700 shown in FIG. 18.
  • a user operation such as a click operation on the information 6001 acting on the information 6001
  • the second user can click the display area 7002-b of the smart light to make the second electronic device 12 display the user interface 900.
  • the second user can control the air purifier in the user interface 900.
  • the second electronic device 12 displays the user interface 900 and the specific process for the second user to control the air purifier in the user interface 900 can be seen in the detailed description in the first manner, which will not be repeated here.
  • the second user's control process of the smart electric light can also refer to the aforementioned control process of the air purifier, which will not be repeated in this embodiment of the application.
  • the first user can share the smart home device with the second user, and the first user can set part of the smart home device functions that the second user can control on the first electronic device 11, so that the device sharing process More flexible.
  • the second user does not need to apply for an additional account to control the smart home device shared by the first user, and the second user does not need to set the working parameters of the smart home device again, which reduces the operations of the second user.
  • the first user can set the control period of the second user on the smart home device through the temporary key, without the first user manually taking back the control right, reducing the operation of the first user, and improving the sharing efficiency of smart home devices. Avoiding that the second user can always control the smart home device because the first user forgets to regain the control right, guarantees the privacy of the first user, and improves the user experience of the first user.
  • the first electronic device 11 may prompt the first user whether to set the sharing parameters of the air purifier in the user interface 300
  • the sharing parameters set when the device was shared last time are used. If so, the first user does not need to select the sharing parameters again, which reduces the operations of the first user and improves the efficiency of the sharing device. If not, the first user can reselect the sharing parameters in the user interface 300.
  • the first electronic device 11 can update the configuration file in the installation package.
  • the second electronic device 12 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.
  • the embodiments of the present application can ensure that the privacy of the first user is not leaked, and prevent others from randomly operating the smart home device of the first user.
  • the first electronic device 11 may also send a complete installation package to the second electronic device 12.
  • the first electronic device 11 can detect a user operation (such as a long-press operation on the icon 409) acting on the icon 409, and in response to the operation, the first electronic device 11 can display in the user interface 40 Share control 415 and delete control 416.
  • the share control 415 is used to share the installation package of Huawei smart home
  • the delete control 416 is used to delete the installation package of Huawei smart home.
  • the first electronic device 11 can detect a drag operation acting on the icon 409 (such as 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 can display the icon in the user interface 40
  • the sharing panel 417 shown in FIG. 25 is displayed. Among them, the sharing panel 417 is the same as the sharing panel 401, and will not be repeated here.
  • the first electronic device 11 can send the complete installation package of the Huawei smart home to the second electronic device 12 through the sharing panel 417.
  • the sharing process please refer to the description of FIG. 13-14, which is not repeated here.
  • the second electronic device 12 may display the icon 4004 shown in FIG. 26 in the user interface 400. Icon 4004 can be used to turn on Huawei smart home.
  • the second electronic device 12 can 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 can display the user interface 1000 shown in FIG. 27.
  • a user operation such as a click operation on the icon 4004
  • the user interface 1000 may include a login control 10001 and a device sharing control 10002. among them:
  • the login control 10001 can be used to log in to the application server of Huawei Smart Home with an existing account, or to register a new account to log in to the above application server.
  • the device sharing control 10002 can be used to open the 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 second electronic device 12 can provide the second user with two ways to use it, that is, use an existing account to log in to the application server of Huawei Smart Home, or directly view the device shared by the first user for the second user.
  • the account can control the device.
  • the second user can use the application according to his own needs, while simplifying the sharing process of smart home devices, increasing the utilization rate of the application and improving the user experience.
  • FIG. 28 is a schematic flowchart of a method for sharing smart home devices according to an embodiment of the application.
  • the smart home device sharing method can include at least the following steps:
  • the first electronic device receives a first user operation.
  • the first electronic device 11 is connected to the smart home device 14, and the first electronic device 11 can control the functions supported by the smart home device 14.
  • the functions supported by the smart home device 14 may be functions viewable and controllable by the first user through the first application. Different smart home devices can support different functions.
  • the functions that can be viewed by the first user through the first application may include: the device state parameters displayed in the device state parameter display area 703 in the user interface 70 in FIG. 7 ( The remaining amount of the filter element, the amount of purified air, the amount of filtered particulate matter); the functions that the first user can control through the first application may include: the switch function provided by the switch control 702 in the user interface 70 in FIG. 7, and the working parameter setting area 704 Provide working mode (such as automatic mode or sleep mode) setting function, wind speed setting function and timing switch function.
  • working mode such as automatic mode or sleep mode
  • the functions that the first user can control through the first application may include: the switch function provided by the switch control 802 in the user interface 80 in FIG. 8 and the working parameter setting area 803
  • the light color (color or daylight) setting function, brightness adjustment function, timer switch function and countdown function are provided.
  • the functions supported by the smart light in the embodiment of the application have no functions that can be viewed.
  • the functions supported by the smart home device 14 listed above are merely illustrative. In specific implementation, the functions supported by the smart home device 14 may also include other functions, which are not limited in the embodiment of the present application.
  • the first user operation may be a click operation on the portal for sharing parameters, such as a click operation on the parameter setting portal 1031 or the parameter setting portal 1032 in FIG. 10.
  • the first user interface includes the functions that the smart home device allows for sharing. Different smart home devices allow different functions to be shared. The functions that smart home devices allow to share can be set by the manufacturer or by the user. The first user interface corresponding to different smart home devices may also be different.
  • the functions allowed to be shared by the smart home device may be a subset of the functions supported by the smart home device. That is, the functions that the smart home device allows to share are part or all of the functions supported by the smart home device.
  • the smart home device is a smart electric light
  • its allowed sharing function may be a function characterized by all parameter options included in the sharing parameter setting list 205 in the user interface 200 in FIG. 11 except for names and pictures.
  • the first user interface is the user interface 200.
  • the function allowed to be shared may be the function represented by all parameter options except the name and picture included in the sharing parameter setting list 305 in the user interface 300 in FIG. 12 .
  • the first user interface is the user interface 300.
  • the first user interface is not limited to the user interface 200 shown in FIG. 11 and the user interface 200 shown in FIG.
  • the user interface 300 is not limited in this embodiment of the application.
  • S203 The first electronic device receives a second user operation acting on the first user interface.
  • the second user operation may be a click operation acting on each parameter option in the sharing parameter setting list 205 in the embodiment of FIG. 11 or the sharing parameter setting list 305 in the embodiment of FIG. 12.
  • the function to be shared may be a subset of the functions that the smart home device allows to be shared.
  • the function to be shared may be selected by the first user from one or more of the functions allowed to be shared by the smart home device.
  • the parameter to be shared of the smart home device is the function represented by the selected parameter option in the sharing parameter setting list 205 of the user interface 200 in FIG. 11, that is, the user interface 200 is a function characterized by the parameter options (switch, color, daylight, brightness) specially marked (" ⁇ ").
  • the parameter to be shared of the smart home device is the function represented by the selected parameter option in the sharing parameter setting list 305 of the user interface 300 in FIG. 12, that is, the user interface
  • S205 The first electronic device receives a third user operation.
  • the third user operation may be a click operation acting on the save control 203 in FIG. 11 or the save control 303 in the embodiment of FIG. 12.
  • the first electronic device In response to the third user operation, the first electronic device generates a control file according to one or more functions.
  • a first application program is installed on the first electronic device 11, and the first electronic device 11 can control the smart home device 14 through the first application program.
  • the first application program may be, for example, the Huawei smart home listed in the foregoing embodiment.
  • control file may include an execution program and a configuration file.
  • the aforementioned configuration file may be generated according to one or more functions to be shared selected in the first electronic device 11 by the first user.
  • the number of smart home devices 14 may be one or more. Different smart home devices 14 respectively correspond to a configuration file. The configuration files corresponding to different smart home devices 14 can be included in the same control file.
  • control file may be an installation package of the first application program.
  • the installation package of the first application program may include a three-layer software architecture, namely the UI layer, the device management layer, and the communication layer.
  • the UI layer can be used to provide an interface for the interaction between the first user and the first electronic device 11;
  • the device management layer can be used to manage various smart home devices, such as switching smart home devices, adjusting working parameters, and modifying device names; communication
  • the layer can 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 multiple modules, and different smart home devices 14 may correspond to different modules.
  • the communication layer may include multiple modules, such as a Bluetooth module, a Wi-Fi module, a mobile network module, an infrared module, and so on.
  • the installation package of the above-mentioned first application is a shared version (simplified version) installation package (the installation package corresponding to icon 4004 in c in Figure 14), that is, the installation package may only include those related to the device to be shared UI layer module, device management layer module and communication layer module.
  • the specific modules contained in the UI layer, device management layer, and communication layer can be determined by the configuration file of the device to be shared.
  • control file may be a WeChat applet (the WeChat applet corresponding to information 6001 in FIG. 17).
  • S207 The first electronic device sends the control file to the second electronic device.
  • the manner of sending the control file to the second electronic device 12 includes any one or more of the following: Bluetooth, WLAN direct connection, and NFC.
  • the first electronic device 11 can discover the second electronic device 12 via Bluetooth, and then send the control file to the second electronic device 12 via the WLAN direct connection.
  • the specific sending process reference may be made to the related description of the a in FIG. 13 to the c in the FIG. 14 embodiment, which is not repeated here.
  • the first electronic device 11 may send the control file to the second electronic device 12 via WeChat.
  • 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.
  • WeChat For the specific sending process, reference may be made to the related description of the embodiments in FIG. 15-17, which is not repeated here.
  • S208 The second electronic device controls one or more functions of the smart home device according to 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 above one or more functions of the smart home device 14 .
  • the first user can share the smart home device with the second user, and the first user can set some functions of the smart home device controllable by the second user on the first electronic device, making the device sharing process more flexible .
  • the second user does not need to apply for an additional account to control the smart home device shared by the first user, and the second user does not need to set the working parameters of the smart home device again, which reduces the operations of the second user.
  • the above-mentioned second operation can also be used to select the name and/or picture of the smart home device, and the second operation can be a click operation on the name option and/or picture option in the embodiment of FIG. 11, or Figure 12 shows a click operation on a name option and/or a picture option in the embodiment.
  • the first electronic device may generate a control file according to the above one or more functions, the above name and/or the picture.
  • the first user can set on the first electronic device some functions of the smart home device that the second user can control, and can also set whether the second user can view the name and/or picture of the device , To ensure the privacy of the first user.
  • the above-mentioned second user operation may also be used to select the effective control duration of the smart home device, and the second user operation may act on the effective control duration option 204 in the embodiment of FIG. 11 or the effective control in the embodiment of FIG. 12 Click operation on duration 304.
  • the first electronic device may generate a control file according to the aforementioned one or more functions and the aforementioned effective control duration.
  • the first user in addition to setting part of the functions of the smart home device controllable by the second user on the first electronic device, the first user can also set the effective control duration for the second user to control the smart home device, without The first user manually takes back control, reducing the first user's operations and improving the sharing efficiency of smart home devices. Avoiding that the second user can always control the smart home device because the first user forgets to regain the control right, guarantees the privacy of the first user, and improves the user experience of the first user.
  • the first electronic device may generate a control file according to the aforementioned one or more functions, the aforementioned name and/or picture, and the aforementioned effective control duration.
  • the first user can set on the first electronic device some functions of the smart home device that the second user can control, and can also set whether the second user can view the name and/or picture of the device , And the effective control duration of the smart home device.
  • the implementation of the embodiments of the present application can guarantee the privacy of the first user, and does not require the first user to manually withdraw the control right, reduce the operation of the first user, and improve the sharing efficiency of smart home devices. It is avoided that the second user can always control the smart home device because the first user forgets to regain the control right, and the user experience of the first user is improved.
  • the aforementioned one or more functions, the aforementioned effective control duration, the aforementioned name and/or picture may be referred to as sharing parameters.
  • the aforementioned method may further include: the first electronic device 11 generates a key according to the aforementioned valid duration; and sending the aforementioned key to the aforementioned smart home device 14 and the aforementioned second electronic device 12.
  • the key generation process and the sending process reference may be made to the related description of the embodiment in FIG. 22, which is not repeated here.
  • the key may be generated by the first electronic device, and the validity of the key is determined by the effective control duration.
  • the first user can set the control period of the second user on the smart home device by setting the effective control duration of the key.
  • the above method may include: the first electronic device 11 sends the effective control duration to the smart home device 14, so that the smart home device 14 generates a key according to the effective control duration; and receives the smart home device.
  • the above-mentioned key sent by the device 14; the above-mentioned key is sent to the above-mentioned second electronic device 12.
  • the key generation process and the sending process reference may be made to the related description of the embodiment in FIG. 23, which will not be repeated here.
  • the key can be generated by a smart home device, and the validity of the key is determined by the effective control duration.
  • the first user can set the control period of the second user on the smart home device by setting the effective control duration of the key.
  • the above method further includes: the second electronic device 14 encrypts the control command with the key; sending the control command to the smart home device 14, so that the smart home device 14 uses the key to decrypt the control. Command and execute the above control commands.
  • the second electronic device 14 cannot share the control file to the third electronic device again, which can ensure that the privacy of the first user is not leaked, and prevent others from randomly operating the smart home device of the first user.
  • the second electronic device can communicate with the smart home device through a key, which can prevent other electronic devices from controlling the smart home device and ensure the privacy of the first user.
  • the second user's control period of the smart home device is set to prevent the second user from being able to always control the smart home device because the first user forgets to take back the control right, thereby improving the user experience of the first user.
  • the embodiment of the present application also provides a computer-readable storage medium. All or part of the procedures in the foregoing method embodiments may be completed by a computer program instructing relevant hardware.
  • the program may be stored in the foregoing computer storage medium. When the program is executed, it may include the procedures of the foregoing method embodiments.
  • the computer-readable storage medium includes: read-only memory (ROM) or random access memory (RAM), magnetic disks or optical disks and other media that can store program codes.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).
  • the modules in the device of the embodiment of the present application may be combined, divided, and deleted according to actual needs.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)
  • Selective Calling Equipment (AREA)

Abstract

一种智能家居设备分享系统、方法及电子设备,可以减少智能家居设备的分享步骤。方法包括:接收第一用户操作(S201);响应于第一用户操作,显示第一用户界面(200,300) (S202);其中,第一用户界面(200,300)包括智能家居设备(14)允许分享的功能;接收作用于第一用户界面(200,300)的第二用户操作(S203);响应于第二用户操作,确定允许分享的功能中的一个或多个功能为待分享的功能(S204);接收第三用户操作(S205);响应于第三用户操作,根据一个或多个功能生成控制文件(S206);发送控制文件至第二电子设备(12)(S207),以使第二电子设备(12)根据控制文件控制智能家居设备(14)的一个或多个功能(S208)。

Description

智能家居设备分享系统、方法及电子设备 技术领域
本申请涉及智能家居技术领域,尤其涉及一种智能家居设备分享系统、方法及电子设备。
背景技术
随着物联网技术的不断发展,智能家居设备越来越流行,智能家居系统应用越来越广泛。智能家居系统的广泛应用为用户提供了更加方便舒适的家居生活。若家里来客人需要小住一段时间,主人需要将某些智能家居设备分享给客人使用。
现有技术中,分享智能家居设备的首要条件是被分享者的手机上需要安装被分享设备厂商提供的应用程序。若没有,智能家居设备的分享过程将会非常复杂,被分享者需要下载应用程序,然后申请账号,并对应用程序进行一系列的设置。因此,现有技术中智能家居设备的分享操作步骤繁琐,操作难度大。
发明内容
本申请提供了一种智能家居设备分享系统、方法及电子设备,可以减少智能家居设备的分享操作步骤。
第一方面,本申请实施例提供了一种智能家居设备分享系统,包括第一电子设备、第二电子设备及智能家居设备;其中,第一电子设备与智能家居设备连接,并且上述第一电子设备控制上述智能家居设备支持的全部功能;上述第一电子设备被配置为:接收第一用户操作;响应于上述第一用户操作,显示第一用户界面;其中,上述第一用户界面包括上述智能家居设备允许分享的功能;接收作用于上述第一用户界面的第二用户操作;响应于上述第二用户操作,确定上述允许分享的功能中的一个或多个功能为待分享的功能;接收第三用户操作;响应于上述第三用户操作,根据上述一个或多个功能生成控制文件;发送上述控制文件至上述第二电子设备;上述第二电子设备被配置为:根据上述控制文件,控制上述智能家居设备的上述一个或多个功能。
具体地,上述控制文件可以包括执行程序和配置文件。上述配置文件根据用户在第一电子设备中选择的一个或多个功能生成。
具体地,智能家居设备的数量可以是一个或多个。不同的智能家居设备分别对应一个配置文件。不同智能家居设备对应的配置文件均可包含在同一个控制文件中。
本申请实施例第一用户可向第二用户分享智能家居设备,且第一用户可以在第一电子设备上设置第二用户可控制的智能家居设备的部分功能,使设备的分享过程更加灵活。第二用户无需额外申请账号,就可对第一用户分享的智能家居设备进行控制,且第二用户无需再次对智能家居设备的工作参数进行设置,减少了第二用户的操作。
在一种可能的实现方式中,上述第一电子设备通过第一应用程序控制上述智能家居设备,上述控制文件为上述第一应用程序的安装包。
具体地,第一应用程序的安装包可以包括三层软件架构,分别为UI层、设备管理层和 通信层。UI层可以用于为用户与第一电子设备的交互提供接口;设备管理层可以用于管理各个智能家居设备,例如对智能家居设备进行开关、调节工作参数、修改设备名称等;通信层可以用于为第一电子设备提供与智能家居设备的交互提供接口。
其中,UI层、设备管理层和通信层均可包括多个模块,不同的智能家居设备可能会对应不同的模块。其中,通信层可以包括多个模块,例如蓝牙模块、Wi-Fi模块、移动网络模块、红外线模块等。
可能地,上述第一应用程序的安装包为分享版(简化版)的安装包,即安装包内可以仅包括与待分享的设备相关的UI层模块、设备管理层模块和通信层模块。UI层、设备管理层和通信层包含的具体模块可由待分享设备的配置文件决定。
本申请实施例中第一电子设备发送的控制文件仅与待分享设备有关,使控制文件更加精简,节约文件传输过程中占用的资源,并节省控制文件在第二电子设备中占用的内存。
可能地,上述第一应用程序的安装包为完整的安装包。
本申请实施例中,第二电子设备可以为第二用户提供两种使用方式,即使用已有账号登录第一应用程序的应用服务器,或者直接查看第一用户为第二用户分享的设备,无需账号即可对设备进行控制。第二用户可以根据自身需求使用应用程序,在简化智能家居设备的分享过程的同时,提高应用程序的利用率,提升用户体验。
在一种可能的实现方式中,将上述控制文件发送至上述第二电子设备的方式包括以下任意一种或多种:蓝牙、WLAN直连、NFC。
可能地,第一电子设备可以通过蓝牙发现第二电子设备,再通过WLAN直连将控制文件发送至第二电子设备。
在一种可能的实现方式中,上述控制文件为微信小程序。
具体地,第一应用程序的安装包内可包括第一应用程序的微信小程序的程序框架。第一用户在第一电子设备上选择上述功能中的一个或多个时,第一电子设备将该功能对应的参数写入小程序的程序框架内。
在一种可能的实现方式中,上述第二用户操作还用于选择上述智能家居设备的名称和/或图片;上述根据上述一个或多个功能生成控制文件包括:根据上述一个或多个功能、上述名称和/或图片生成控制文件。
本申请实施例中,第一用户除了可以在第一电子设备上设置第二用户可控制的智能家居设备的部分功能之外,还可以设置第二用户是否能够查看该设备的名称和/或图片,保证第一用户的隐私。
在一种可能的实现方式中,上述第二用户操作还用于选择上述智能家居设备的有效控制时长;上述根据上述一个或多个功能生成控制文件包括:根据上述一个或多个功能、上述有效控制时长生成控制文件。
本申请实施例中,第一用户除了可以在第一电子设备上设置第二用户可控制的智能家居设备的部分功能之外,还可以设置第二用户控制该智能家居设备的有效控制时长,无需第一用户手动收回控制权,减少第一用户的操作,提升智能家居设备的分享效率。避免由于第一用户忘记收回控制权导致第二用户可以一直控制智能家居设备,保障第一用户的隐私,提升第一用户的用户体验。
在一种可能的实现方式中,上述第二用户操作还用于选择上述智能家居设备的有效控制时长;上述根据上述一个或多个功能生成控制文件包括:根据上述一个或多个功能、上述名称和/或图片、上述有效控制时长生成控制文件。
本申请实施例中,第一用户除了可以在第一电子设备上设置第二用户可控制的智能家居设备的部分功能之外,还可以设置第二用户是否能够查看该设备的名称和/或图片,以及控制该智能家居设备的有效控制时长。实施本申请实施例可以保障第一用户的隐私,且无需第一用户手动收回控制权,减少第一用户的操作,提升智能家居设备的分享效率。避免由于第一用户忘记收回控制权导致第二用户可以一直控制智能家居设备,提升第一用户的用户体验。
在一种可能的实现方式中,上述第一电子设备还被配置为:根据上述有效时长生成密钥;将上述密钥发送至上述智能家居设备及上述第二电子设备。
本申请实施例中,密钥可以由第一电子设备生成,密钥的有效性由有效控制时长决定。第一用户可以通过设置密钥的有效控制时长设置第二用户对智能家居设备的控制期限。
在一种可能的实现方式中,上述第一电子设备还被配置为:将上述有效控制时长发送至上述智能家居设备,以使上述智能家居设备根据上述有效控制时长生成密钥;接收上述智能家居设备发送的上述密钥;将上述密钥发送至上述第二电子设备。
本申请实施例中,密钥可以由智能家居设备生成,密钥的有效性由有效控制时长决定。第一用户可以通过设置密钥的有效控制时长设置第二用户对智能家居设备的控制期限。
在一种可能的实现方式中,上述第二电子设备还被配置为:接收上述控制文件,解析上述控制文件中的上述一个或多个功能。
本申请实施例中,第二电子设备接收到控制文件后,对控制文件进行解析,得到第一电子设备分享的智能家居设备的一个或多个功能。
在一种可能的实现方式中,上述第二电子设备还被配置为:通过上述密钥加密控制命令;将上述控制命令发送至上述智能家居设备,以使上述智能家居设备采用上述密钥解密上述控制命令,并执行上述控制命令。
可能地,第二电子设备接收到控制文件后,无法再次将该控制文件分享至第三电子设备,可以保证第一用户的隐私不被泄露,防止他人随意操作第一用户的智能家居设备。
本申请实施例中,第二电子设备可以通过密钥与智能家居设备进行通信,可以防止其他电子设备控制智能家居设备,保证第一用户的隐私。此外,通过设置密钥的有效控制时长设置第二用户对智能家居设备的控制期限,避免由于第一用户忘记收回控制权导致第二用户可以一直控制智能家居设备,提升第一用户的用户体验。
第二方面,本申请实施例提供了一种电子设备,包括一个或多个处理器、存储器以及无线通信模块;上述存储器以及上述无线通信模块与上述一个或多个处理器耦合,上述存储器用于存储计算机程序代码,上述计算机程序代码包括计算机指令,上述一个或多个处理器执行上述计算机指令以使上述电子设备执行:接收第一用户操作;响应于上述第一用户操作,显示第一用户界面;其中,上述第一用户界面包括智能家居设备允许分享的功能;接收作用于上述第一用户界面的第二用户操作;响应于上述第二用户操作,确定上述允许分享的功能中的一个或多个功能为待分享的功能;接收第三用户操作;响应于上述第三用 户操作,根据上述一个或多个功能生成控制文件;发送上述控制文件至第二电子设备,以使上述第二电子设备根据上述控制文件控制上述智能家居设备的上述一个或多个功能。
具体地,上述控制文件可以包括执行程序和配置文件。上述配置文件根据用户在第一电子设备中选择的一个或多个功能生成。
具体地,智能家居设备的数量可以是一个或多个。不同的智能家居设备分别对应一个配置文件。不同智能家居设备对应的配置文件均可包含在同一个控制文件中。
本申请实施例第一用户可向第二用户分享智能家居设备,且第一用户可以在第一电子设备上设置第二用户可控制的智能家居设备的部分功能,使设备的分享过程更加灵活。第二用户无需额外申请账号,就可对第一用户分享的智能家居设备进行控制,且第二用户无需再次对智能家居设备的工作参数进行设置,减少了第二用户的操作。
在一种可能的实现方式中,上述电子设备通过第一应用程序控制上述智能家居设备,上述控制文件为上述第一应用程序的安装包。
具体地,第一应用程序的安装包可以包括三层软件架构,分别为UI层、设备管理层和通信层。UI层可以用于为用户与第一电子设备的交互提供接口;设备管理层可以用于管理各个智能家居设备,例如对智能家居设备进行开关、调节工作参数、修改设备名称等;通信层可以用于为第一电子设备提供与智能家居设备的交互提供接口。
其中,UI层、设备管理层和通信层均可包括多个模块,不同的智能家居设备可能会对应不同的模块。其中,通信层可以包括多个模块,例如蓝牙模块、Wi-Fi模块、移动网络模块、红外线模块等。
可能地,上述第一应用程序的安装包为分享版(简化版)的安装包,即安装包内可以仅包括与待分享的设备相关的UI层模块、设备管理层模块和通信层模块。UI层、设备管理层和通信层包含的具体模块可由待分享设备的配置文件决定。
本申请实施例中第一电子设备发送的控制文件仅与待分享设备有关,使控制文件更加精简,节约文件传输过程中占用的资源,并节省控制文件在第二电子设备中占用的内存。
可能地,上述第一应用程序的安装包为完整的安装包。
本申请实施例中,第二电子设备可以为第二用户提供两种使用方式,即使用已有账号登录第一应用程序的应用服务器,或者直接查看第一用户为第二用户分享的设备,无需账号即可对设备进行控制。第二用户可以根据自身需求使用应用程序,在简化智能家居设备的分享过程的同时,提高应用程序的利用率,提升用户体验。
在一种可能的实现方式中,将上述控制文件发送至上述第二电子设备的方式包括以下任意一种或多种:蓝牙、WLAN直连、NFC。
可能地,第一电子设备可以通过蓝牙发现第二电子设备,再通过WLAN直连将控制文件发送至第二电子设备。
在一种可能的实现方式中,上述控制文件为微信小程序。
具体地,第一应用程序的安装包内可包括第一应用程序的微信小程序的程序框架。第一用户在第一电子设备上选择上述功能中的一个或多个时,第一电子设备将该功能对应的参数写入小程序的程序框架内。
在一种可能的实现方式中,上述第二用户操作还用于选择上述智能家居设备的名称和/ 或图片;上述电子设备执行上述根据上述一个或多个功能生成控制文件时具体执行:根据上述一个或多个功能、上述名称和/或图片生成控制文件。
本申请实施例中,第一用户除了可以在第一电子设备上设置第二用户可控制的智能家居设备的部分功能之外,还可以设置第二用户是否能够查看该设备的名称和/或图片,保证第一用户的隐私。
在一种可能的实现方式中,上述第二用户操作还用于选择上述智能家居设备的有效控制时长;上述电子设备执行上述根据上述一个或多个功能生成控制文件时具体执行:根据上述一个或多个功能、上述有效控制时长生成控制文件。
本申请实施例中,第一用户除了可以在第一电子设备上设置第二用户可控制的智能家居设备的部分功能之外,还可以设置第二用户控制该智能家居设备的有效控制时长,无需第一用户手动收回控制权,减少第一用户的操作,提升智能家居设备的分享效率。避免由于第一用户忘记收回控制权导致第二用户可以一直控制智能家居设备,保障第一用户的隐私,提升第一用户的用户体验。
在一种可能的实现方式中,上述第二用户操作还用于选择上述智能家居设备的有效控制时长;上述电子设备执行上述根据上述一个或多个功能生成控制文件时具体执行:根据上述一个或多个功能、上述名称和/或图片、上述有效控制时长生成控制文件。
本申请实施例中,第一用户除了可以在第一电子设备上设置第二用户可控制的智能家居设备的部分功能之外,还可以设置第二用户是否能够查看该设备的名称和/或图片,以及控制该智能家居设备的有效控制时长。实施本申请实施例可以保障第一用户的隐私,且无需第一用户手动收回控制权,减少第一用户的操作,提升智能家居设备的分享效率。避免由于第一用户忘记收回控制权导致第二用户可以一直控制智能家居设备,提升第一用户的用户体验。
在一种可能的实现方式中,上述电子设备还执行:根据上述有效时长生成密钥;将上述密钥发送至上述智能家居设备及上述第二电子设备。
本申请实施例中,密钥可以由第一电子设备生成,密钥的有效性由有效控制时长决定。第一用户可以通过设置密钥的有效控制时长设置第二用户对智能家居设备的控制期限。
在一种可能的实现方式中,上述电子设备还执行:将上述有效控制时长发送至上述智能家居设备,以使上述智能家居设备根据上述有效控制时长生成密钥;接收上述智能家居设备发送的上述密钥;将上述密钥发送至上述第二电子设备。
本申请实施例中,密钥可以由智能家居设备生成,密钥的有效性由有效控制时长决定。第一用户可以通过设置密钥的有效控制时长设置第二用户对智能家居设备的控制期限。
第三方面,本申请实施例提供了一种智能家居设备分享方法,包括:接收第一用户操作;响应于上述第一用户操作,显示第一用户界面;其中,上述第一用户界面包括智能家居设备允许分享的功能;接收作用于上述第一用户界面的第二用户操作;响应于上述第二用户操作,确定上述允许分享的功能中的一个或多个功能为待分享的功能;接收第三用户操作;响应于上述第三用户操作,根据上述一个或多个功能生成控制文件;发送上述控制文件至第二电子设备,以使上述第二电子设备根据上述控制文件控制上述智能家居设备的上述一个或多个功能。
具体地,上述控制文件可以包括执行程序和配置文件。上述配置文件根据用户在第一电子设备中选择的一个或多个功能生成。
具体地,智能家居设备的数量可以是一个或多个。不同的智能家居设备分别对应一个配置文件。不同智能家居设备对应的配置文件均可包含在同一个控制文件中。
本申请实施例第一用户可向第二用户分享智能家居设备,且第一用户可以在第一电子设备上设置第二用户可控制的智能家居设备的部分功能,使设备的分享过程更加灵活。第二用户无需额外申请账号,就可对第一用户分享的智能家居设备进行控制,且第二用户无需再次对智能家居设备的工作参数进行设置,减少了第二用户的操作。
在一种可能的实现方式中,,上述电子设备通过第一应用程序控制上述智能家居设备,上述控制文件为上述第一应用程序的安装包。
具体地,第一应用程序的安装包可以包括三层软件架构,分别为UI层、设备管理层和通信层。UI层可以用于为用户与第一电子设备的交互提供接口;设备管理层可以用于管理各个智能家居设备,例如对智能家居设备进行开关、调节工作参数、修改设备名称等;通信层可以用于为第一电子设备提供与智能家居设备的交互提供接口。
其中,UI层、设备管理层和通信层均可包括多个模块,不同的智能家居设备可能会对应不同的模块。其中,通信层可以包括多个模块,例如蓝牙模块、Wi-Fi模块、移动网络模块、红外线模块等。
可能地,上述第一应用程序的安装包为分享版(简化版)的安装包,即安装包内可以仅包括与待分享的设备相关的UI层模块、设备管理层模块和通信层模块。UI层、设备管理层和通信层包含的具体模块可由待分享设备的配置文件决定。
本申请实施例中第一电子设备发送的控制文件仅与待分享设备有关,使控制文件更加精简,节约文件传输过程中占用的资源,并节省控制文件在第二电子设备中占用的内存。
可能地,上述第一应用程序的安装包为完整的安装包。
本申请实施例中,第二电子设备可以为第二用户提供两种使用方式,即使用已有账号登录第一应用程序的应用服务器,或者直接查看第一用户为第二用户分享的设备,无需账号即可对设备进行控制。第二用户可以根据自身需求使用应用程序,在简化智能家居设备的分享过程的同时,提高应用程序的利用率,提升用户体验。
在一种可能的实现方式中,将上述控制文件发送至上述第二电子设备的方式包括以下任意一种或多种:蓝牙、WLAN直连、NFC。
可能地,第一电子设备可以通过蓝牙发现第二电子设备,再通过WLAN直连将控制文件发送至第二电子设备。
在一种可能的实现方式中,上述控制文件为微信小程序。
具体地,第一应用程序的安装包内可包括第一应用程序的微信小程序的程序框架。第一用户在第一电子设备上选择上述功能中的一个或多个时,第一电子设备将该功能对应的参数写入小程序的程序框架内。
在一种可能的实现方式中,上述第二用户操作还用于选择上述智能家居设备的名称和/或图片;上述根据上述一个或多个功能生成控制文件包括:根据上述一个或多个功能、上述名称和/或图片生成控制文件。
本申请实施例中,第一用户除了可以在第一电子设备上设置第二用户可控制的智能家居设备的部分功能之外,还可以设置第二用户是否能够查看该设备的名称和/或图片,保证第一用户的隐私。
在一种可能的实现方式中,上述第二用户操作还用于选择上述智能家居设备的有效控制时长;上述根据上述一个或多个功能生成控制文件包括:根据上述一个或多个功能、上述有效控制时长生成控制文件。
本申请实施例中,第一用户除了可以在第一电子设备上设置第二用户可控制的智能家居设备的部分功能之外,还可以设置第二用户控制该智能家居设备的有效控制时长,无需第一用户手动收回控制权,减少第一用户的操作,提升智能家居设备的分享效率。避免由于第一用户忘记收回控制权导致第二用户可以一直控制智能家居设备,保障第一用户的隐私,提升第一用户的用户体验。
在一种可能的实现方式中,上述第二用户操作还用于选择上述智能家居设备的有效控制时长;上述根据上述一个或多个功能生成控制文件包括:根据上述一个或多个功能、上述名称和/或图片、上述有效控制时长生成控制文件。
本申请实施例中,第一用户除了可以在第一电子设备上设置第二用户可控制的智能家居设备的部分功能之外,还可以设置第二用户是否能够查看该设备的名称和/或图片,以及控制该智能家居设备的有效控制时长。实施本申请实施例可以保障第一用户的隐私,且无需第一用户手动收回控制权,减少第一用户的操作,提升智能家居设备的分享效率。避免由于第一用户忘记收回控制权导致第二用户可以一直控制智能家居设备,提升第一用户的用户体验。
在一种可能的实现方式中,上述方法还包括:根据上述有效时长生成密钥;将上述密钥发送至上述智能家居设备及上述第二电子设备。
本申请实施例中,密钥可以由第一电子设备生成,密钥的有效性由有效控制时长决定。第一用户可以通过设置密钥的有效控制时长设置第二用户对智能家居设备的控制期限。
在一种可能的实现方式中,上述方法还包括:将上述有效控制时长发送至上述智能家居设备,以使上述智能家居设备根据上述有效控制时长生成密钥;接收上述智能家居设备发送的上述密钥;将上述密钥发送至上述第二电子设备。
本申请实施例中,密钥可以由智能家居设备生成,密钥的有效性由有效控制时长决定。第一用户可以通过设置密钥的有效控制时长设置第二用户对智能家居设备的控制期限。
第四方面,本申请实施例提供了一种计算机可读存储介质,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如本申请实施例第三方面或第三方面的任意一种可能的实现方式提供的智能家居设备分享方法。
第五方面,本申请实施例提供了一种计算机程序产品,当该计算机程序产品在电子设备上运行时,使得该电子设备执行本申请实施例第三方面或第三方面的任意一种可能的实现方式提供的智能家居设备分享方法。
可以理解地,上述第四方面提供的计算机可读存储介质,以及第五方面提供的计算机程序产品均用于执行第三方面所提供的智能家居设备分享方法,因此,其所能达到的有益效果可参考第三方面所提供的智能家居设备分享方法中的有益效果,此处不再赘述。
附图说明
图1为本申请实施例提供的智能家居设备分享系统的网络架构示意图;
图2为本申请实施例提供的第一电子设备的结构示意图;
图3为本申请实施例提供的第一电子设备的软件结构框图;
图4-图20为本申请实施例提供的一些用户界面的实施例的示意图;
图21为本申请实施例提供的第二电子设备控制智能家居设备的流程示意图;
图22为本申请实施例提供的一种密钥的生成过程及发送过程的示意图;
图23为本申请实施例提供的另一种密钥的生成过程及发送过程的示意图;
图24-图27为本申请实施例提供的另一些用户界面的实施例的示意图;
图28为本申请实施例提供的智能家居设备分享方法的流程示意图。
具体实施方式
下面将结合附图对本申请实施例中的技术方案进行清楚、详尽地描述。
本申请实施例中,分享者可以向被分享者发送智能家居设备的信息,被分享者接收到智能家居设备的信息之后无需账号即可控制智能家居设备。本申请提供的智能家居设备的分享过程操作简便快捷。
首先,请参看图1。图1为本申请实施例提供的一种智能家居设备分享系统的网络架构示意图。
如图1所示,智能家居设备分享系统的网络架构可以包括第一电子设备11、第二电子设备12、路由器13、一个或多个智能家居设备14及云端服务器15。第一电子设备11可以与路由器13进行通信,通过路由器13连接云端服务器15,一个或多个智能家居设备14也可以通过路由器13连接云端服务器15。第一电子设备11可以通过云端服务器15向智能家居设备14发送控制指令。
其中,第一电子设备11上安装有用于控制智能家居设备14的应用程序,该应用程序例如可以是华为智能家居。在一种实施例中,可将华为智能家居称为第一应用程序。云端服务器15可以是用于控制智能家居设备14的应用程序对应的应用服务器,该云端服务器15例如可以是华为智能家居的应用服务器。不限于华为智能家居,在具体实现中还可以是其他的应用程序,本申请实施例对此不作限定。本申请后续实施例中以该应用程序为华为智能家居为例进行说明。
第一电子设备11可以与第二电子设备12连接,向第二电子设备12发送智能家居设备14的信息,使第二电子设备12可以通过路由器13向智能家居设备14发送控制指令。其中,第一电子设备11可以通过移动网络与第二电子设备12连接,还可以通过短距离无线通信方式例如蓝牙、Huawei Share、无线局域网(wireless local area networks,WLAN)直连、近距离无线通信技术(near field communication,NFC)等与第二电子设备12连接。
本申请实施例中涉及的第一电子设备11和第二电子设备12可以是手机、平板电脑、桌面型、膝上型、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、手持计算机、上网本、个人数字助理(personal digital assistant,PDA)、可穿戴电子设备、虚拟现实设备等。
本申请实施例中将使用第一电子设备11的用户称为第一用户,将使用第二电子设备12的用户称为第二用户。
本申请实施例涉及的智能家居设备14可以是智能音箱、扫地机器人、智能插座、智能电灯、智能体脂秤、智能台灯、空气净化器、智能电冰箱、智能空调、智能洗衣机、智能热水器、智能微波炉、智能电饭锅、智能窗帘、智能风扇、智能电视、智能机顶盒等。
接下来,介绍本申请以下实施例中提供的示例性第一电子设备11。
图2示出了第一电子设备11的结构示意图。
第一电子设备11可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本发明实施例示意的结构并不构成对第一电子设备11的具体限定。在本申请另一些实施例中,第一电子设备11可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是第一电子设备11的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标 识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对第一电子设备11的结构限定。在本申请另一些实施例中,第一电子设备11也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过第一电子设备11的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
第一电子设备11的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。第一电子设备11中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在第一电子设备11上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在第一电子设备11上的包括无线局域网(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模 块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,第一电子设备11的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得第一电子设备11可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
第一电子设备11通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,第一电子设备11可以包括1个或N个显示屏194,N为大于1的正整数。
第一电子设备11可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,第一电子设备11可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当第一电子设备11在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。第一电子设备11可以支持一种或多种视频编解码器。这样,第一电子设备11可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现第一电子设备11的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展第一电子设备11的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行第一电子设备11的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储第一电子设备11使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
第一电子设备11可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。第一电子设备11可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当第一电子设备11接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。第一电子设备11可以设置至少一个麦克风170C。在另一些实施例中,第一电子设备11可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,第一电子设备11还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压 力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。第一电子设备11根据电容的变化确定压力的强度。当有触控操作作用于显示屏194,第一电子设备11根据压力传感器180A检测所述触控操作强度。第一电子设备11也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触控操作强度的触控操作,可以对应不同的操作指令。例如:当有触控操作强度小于第一压力阈值的触控操作作用于短消息应用图标时,执行查看短消息的指令。当有触控操作强度大于或等于第一压力阈值的触控操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定第一电子设备11的运动姿态。
气压传感器180C用于测量气压。
磁传感器180D包括霍尔传感器。
加速度传感器180E可检测第一电子设备11在各个方向上(一般为三轴)加速度的大小。当第一电子设备11静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。
环境光传感器180L用于感知环境光亮度。
指纹传感器180H用于采集指纹。第一电子设备11可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,第一电子设备11利用温度传感器180J检测的温度,执行温度处理策略。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触控操作。触摸传感器可以将检测到的触控操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触控操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于第一电子设备11的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。第一电子设备11可以接收按键输入,产生与第一电子设备11的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触控操作,可以对应不同的振动反 馈效果。作用于显示屏194不同区域的触控操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和第一电子设备11的接触和分离。第一电子设备11可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。第一电子设备11通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,第一电子设备11采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在第一电子设备11中,不能和第一电子设备11分离。
第二电子设备12的结构与第一电子设备11的结构类似,可参考图2的详细描述,此处不赘述。
第一电子设备11的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明第一电子设备11的软件结构。
图3是本发明实施例的第一电子设备11的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图3所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图3所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供第一电子设备11的通信功能。例如通话状态的管理(包括接通, 挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
下面结合捕获拍照场景,示例性说明在已开启第一控制模式的情况下,第一电子设备11软件以及硬件的工作流程。
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作是触摸单击操作,该单击操作所对应的控件为相机应用图标的控件为例,相机应用调用应用框架层的接口,启动相机应用,进而通过调用内核层启动摄像头驱动,通过摄像头193捕获静态图像或视频。
第二电子设备12的软件结构与第一电子设备11的软件结构类似,可参考图3的详细描述,此处不赘述。
下面介绍本申请实施例涉及的应用场景以及该场景下的用户界面(user interface,UI)实施例。
以下附图中,用户界面标号后括号内的数字指示该用户界面显示的电子设备。括号内的数字11指示该用户界面显示在第一电子设备11上,括号内的数字12指示该用户界面显 示在第二电子设备12上。例如图4中的40(11)指示用户界面40显示在第一电子设备11上,图14中的400(12)指示用户界面400显示在第二电子设备12上。
图4示例性示出了第一电子设备11上的桌面(desktop)中的主页,此处将主页称为用户界面40,用户界面40可以包括状态栏401、时间组件图标402和天气组件图标403、多个应用程序的图标例如相册图标404、微博图标405、相机图标406、微信图标407、设置图标408以及智能家居图标409,用户界面40中还可以包括页面指示符410、电话图标411、短信息图标412、联系人图标413及导航栏414等。其中:
状态栏401可以包括:运营商指示符(例如运营商的名称“中国移动”)、无线高保真(wireless fidelity,Wi-Fi)信号的一个或多个信号强度指示符、移动通信信号(又可称为蜂窝信号)的一个或多个信号强度指示符、时间指示符和电池状态指示符。
时间组件图标402可用于指示当前时间,例如日期、星期几、时分信息等。
天气组件图标403可用于指示天气类型,例如多云转晴、小雨等,还可以用于指示气温等信息。
页面指示符410可用于指示第一用户当前浏览的是哪一个页面中的应用程序。第一用户可以左右滑动多个应用程序图标的区域,来浏览其他页面中的应用程序图标。
导航栏414可以包括:返回按键4141、主界面(Home screen)按键4142、呼出任务历史按键4143等系统导航键。其中,主界面为第一电子设备11在任何一个用户界面检测到作用于主界面按键4142的用户操作后显示的界面。当检测到第一用户点击返回按键4141时,第一电子设备11可显示当前用户界面的上一个用户界面。当检测到第一用户点击主界面按键4142时,第一电子设备11可显示主界面。当检测到第一用户点击呼出任务历史按键4143时,第一电子设备11可显示第一用户最近打开过的任务。各导航键的命名还可以为其他,比如,4141可以叫Back Button,4142可以叫Home button,4143可以叫Menu Button,本申请对此不做限制。导航栏414中的各导航键不限于虚拟按键,也可以实现为物理按键。
图5示例性示出了用于控制智能家居设备400的用户界面50。用户界面50可以通过点击用户界面40中的智能家居图标409得到。
第一电子设备11可以检测到作用于智能家居图标409的用户操作(如在智能家居图标409上的点击操作),响应于该用户操作,第一电子设备11可以显示图5所示的用户界面50。
如图5所示,用户界面50可以包括:四种菜单控件(智家501、商城502、酷玩503、我的504)、内容显示区505。不同菜单下内容显示区中的显示的内容不同。图5中示出的当前选择的菜单种类为智家501。即内容显示区505中显示的内容是智家501菜单下显示的内容。
如图5所示,内容显示区505可以包括:用户名称指示符5051、场景列表5052、分类栏5053、智能家居设备列表5054、添加控件5055。其中:
用户名称指示符5051用于指示第一用户的名称。例如,图5中示出的用户名称指示符“June的家”指示第一用户的名称为“June”。
场景列表5052中可以包括一个或多个场景的图标,不同场景下开启的智能家居设备不 同,且不同场景下开启的相同的智能家居设备的工作参数也可以不同。智能家居设备的工作参数例如可以是智能音箱的音量、智能电灯的颜色或亮度、空气净化器的工作模式或风速等。上述各个场景下开启的智能家居设备以及开启的智能家居设备的工作参数可由第一用户提前设定并保存。
示例性地,上述场景列表5052中包含了四种场景的图标,这四种场景分别为“回家”、“离家”、“进入主卧”、“进入客厅”。第一电子设备11可以检测到作用于上述四种场景中任意一种场景(如“回家”场景)的图标上的用户操作(如在“回家”场景图标上的点击操作),响应于该操作,第一电子设备11可以向云端服务器15发送开启该场景对应的智能家居设备的指令,以及设置开启的智能家居设备的工作参数的指令。也即是说,第一用户可以点击某场景的图标,以开启该场景对应的智能家居设备以及这些智能家居设备的工作参数。
场景列表5052中还可以包含“更多”图标。第一电子设备11可以检测到作用于“更多”图标上的用户操作(如在“更多”图标上的点击操作),响应于该操作,第一电子设备11可以显示用于查看更多场景图标的页面。也即是说,第一用户可以点击“更多”图标查看更多的场景图标。
例如,“离家”场景下智能音箱的工作状态为关闭,而“回家”场景下智能音箱的工作状态为开启。又例如,“进入主卧”场景下智能音箱的工作状态为开启,且音量为20;而“进入客厅”场景下智能音箱的工作状态为开启,且音量为15。
分类栏5053可以包括一个或多个分类选项,用于使智能家居设备分类显示在智能家居设备列表5054中。
如图5所示,分类栏5053中可以包括三个分类选项,分别是“全部”、“客厅”和“主卧”。不同的分类对应的智能家居设备列表5054中包含不同的智能家居设备的展示区。“全部”选项被选定时,智能家居设备列表5054中包含所有智能家居设备的展示区。选项“客厅”和“主卧”均由第一用户设置,可以将全部的智能家居设备分类,使智能家居设备列表5054中的智能家居设备展示区按照分类展示。不限于分类栏5053中包括的“客厅”和“主卧”,第一用户还可以设置其他分类,本申请实施例仅为示例性说明,对此不作限定。
智能家居设备列表5054中可以包括一个或多个智能家居设备的展示区,该展示区可以包括智能家居设备的图片、名称及工作状态。智能家居设备的名称可以是第一用户设置的名称,还可以是该智能家居设备的默认名称。智能家居设备的工作状态可以包括开启和关闭。
示例性地,如图5所示,上述智能家居设备列表5054中可以包括音箱的展示区5054-a、电视的展示区5054-b、电灯的展示区5054-c、体脂秤的展示区5054-d、台灯的展示区5054-e、空气净化器的展示区5054-f等。第一电子设备11可以检测到作用于智能家居设备列表5054的滑动操作,响应于该滑动操作,第一电子设备11可以显示更多的智能家居设备的展示区。
上述智能家居设备的展示区可以用于打开设置工作参数的用户界面。
第一电子设备11可以检测到作用于空气净化器的展示区5054-f的用户操作(如在空气净化器的展示区5054-f上的点击操作),响应于该操作,第一电子设备11可以显示图7示出的用于设置空气净化器的工作参数的用户界面70。关于用户界面70的详细介绍见后续实施例的描述,此处暂不详述。
第一电子设备11可以检测到作用于主卧的灯的展示区5054-c的用户操作(如在主卧的灯的展示区5054-c上的点击操作),响应于该操作,第一电子设备11可以显示图8示出的用于设置主卧的灯的工作参数的用户界面80。关于用户界面80的详细介绍见后续实施例的描述,此处暂不详述。
以上内容显示区505中显示的内容是智家501菜单下显示的内容。
若当前选择的菜单种类为商城502,则内容显示区505中显示用于购买智能家居设备的内容;若当前选择的菜单种类为酷玩503,则内容显示区505中显示其他用户分享的智能家居设备的相关资讯;若当前选择的菜单种类为我的504,则内容显示区505中显示用于设置账号信息的内容。
添加控件5055可以用于添加设备、添加场景或者分享设备。第一电子设备11可以检测到作用于添加控件5055的用户操作(如在添加控件5055上的点击操作),响应于该操作,第一电子设备11可以在用户界面50中显示图6所示的控制面板601。
如图6所示,控制面板601可以包括添加设备控件6011、添加场景控件6012和分享设备控件6013。其中:
添加设备控件6011可以用于添加智能家居设备。第一电子设备11可以检测到作用于添加设备控件6011的用户操作(如在添加设备控件6011上的点击操作),响应于该操作,第一电子设备11可以显示用于添加智能家居设备的用户界面。
添加场景控件6012可以用于添加场景。第一电子设备11可以检测到作用于添加场景控件6012的用户操作(如在添加场景控件6012上的点击操作),响应于该操作,第一电子设备11可以显示用于添加场景的用户界面。添加场景可以包括设置场景的名称,设置该场景下需要开启的智能家居设备,以及设置开启的智能家居设备的工作参数。
分享设备控件6013可以用于向第二电子设备12分享智能家居设备。第一电子设备11可以检测到作用于分享设备控件6013的用户操作(如在分享设备控件6013上的点击操作),响应于该操作,第一电子设备11可以显示图9示出的用于分享智能家居设备的用户界面90。关于用户界面90的详细介绍见后续实施例的描述,此处暂不详述。
图7示例性示出了用于设置空气净化器的工作参数的用户界面70。用户界面70可以包括设备信息显示区701、开关控件702、设备状态参数显示区703以及工作参数设置区704。其中:
设备信息显示区701可以包括设备的图片、设备的名称(空气净化器)等。
开关控件702可以用于切换空气净化器的工作状态。第一电子设备11可以检测到作用于开关控件702的用户操作(如在开关控件702上的点击操作),响应于该操作,第一电子设备11可以向空气净化器发送将工作状态从开启切换为关闭或者从关闭切换为开启的指令。
设备状态参数显示区703可以用于显示设备的状态参数。其中,设备的状态参数例如可以是图7示出的滤芯剩余量(91%)、净化空气量(1345m 3)、过滤颗粒物的量(89毫克)等。
工作参数设置区704可以用于设置空气净化器的工作参数。其中,空气净化器的工作参数例如可以是图7示出的工作模式(如自动模式或者睡眠模式)、风速、定时开关的时间等。
图8示例性示出了用于设置电灯的工作参数的用户界面80。用户界面80可以包括设备信息显示区801、开关控件802及工作参数设置区803。其中:
设备信息显示区801可以包括设备的图片、设备的名称(主卧的灯)等。
开关控件802可以用于切换电灯的工作状态。开关控件802与开关控件702类似,此处不赘述。
工作参数设置区803可以用于设置电灯的工作参数。其中,电灯的工作参数例如可以是图8示例性示出的灯光颜色(彩色或日光)、灯光亮度(55%)、定时开关的时间、倒计时开关的时间等。
接下来结合前述图4-图8描述的应用场景介绍第一电子设备11如何将智能家居设备分享给第二电子设备200。
如图9中的a所示,用于分享智能家居设备的用户界面90可以包括:智能家居设备选择列表901、确定控件902、全选控件903、取消控件904、选择结果指示符905。其中:
智能家居设备选择列表901中可以包括一个或多个智能家居设备的展示区。智能家居设备选择列表901与智能家居设备列表5054中包含的智能家居设备的展示区类似,包括智能家居设备的图片、名称及工作状态。此外,智能家居设备列表901中的每一个智能家居设备的展示区还包括一个选择控件9011。
选择控件9011可以用于选择待分享的智能家居设备。第一电子设备11可以检测到作用于选择控件9011的用户操作(如在选择控件9011上的点击操作),响应于该操作,第一电子设备11可以显示该智能家居设备被选定的结果。该智能家居被选定的显示方式可以是在该选择控件9011中显示被选定的标记,该标记例如可以是图9中的b所示的“√”。
确定控件902可以用于确定被选定的智能家居设备为待分享的智能家居设备。第一电子设备11可以检测到作用于确定控件902的用户操作(如在确定控件902上的点击操作),响应于该操作,第一电子设备11可以确定被选定的智能家居设备有哪些,并显示图10所示的用于设置分享参数的用户界面100。关于用户界面100的详细介绍见后续实施例的描述,此处暂不详述。
全选控件903可以用于确定所有的智能家居设备为待分享的智能家居设备。第一电子设备11可以检测到作用于全选控件903的用户操作(如在全选控件903上的点击操作),响应于该操作,第一电子设备11可以确定所有的智能家居设备为待分享的智能家居设备。
取消控件904可以用于取消分享智能家居设备。第一电子设备11可以检测到作用于取消控件904的用户操作(如在取消控件904上的点击操作),响应于该操作,第一电子设备11可以取消分享智能家居设备。
选择结果指示符905可以用于指示当前选择的待分享的智能家居设备的结果。该结果可以是未选择或已选择。若结果为已选择,选择结果指示符905还可以用于指示已选定的智能家居设备的数量是多少,具体可参考图9中的b。
不限于图9中的b示出的选择结果,在具体实现中还可以有其他的选择结果,本申请实施例对此不作限定。
如图10所示,用于设置分享参数的用户界面100可以包括:发送控件101、返回控件 102和分享设备列表103。其中:
发送控件101可以用于发送待分享设备以及该设备的分享参数至第二电子设备12。第一电子设备11可以检测到作用于发送控件101的用户操作(如在发送控件101上的点击操作),响应于该操作,第一电子设备11可在用户界面100中显示图13中的a所示的用于发送分享设备的分享面板104,并将发送控件101更新显示为图13中的a所示的取消控件105。
其中,取消控件105用于取消向第二电子设备12发送待分享设备以及该设备的分享参数。关于分享面板104的详细介绍见后续实施例的描述,此处暂不详述。其中,设备的分享参数可以通过分享设备列表103中各个设备的分享参数入口获得。设备的分享参数的具体设置过程详见后续描述。若第一用户未在分享设备列表103中为某个设备设置分享参数,则默认该设备的分享参数为所有的参数。
其中,第一电子设备11向第二电子设备12发送待分享设备以及该设备的分享参数的具体方式可以是第一电子设备11向第二电子设备12发送控制文件。该控制文件可以是应用程序的安装包,还可以是微信小程序。其中,应用程序的安装包或者微信小程序中可包含执行程序和待分享设备的配置文件。采用这两种方式发送控制文件的具体过程详见后续实施例的描述,此处暂不详述。其中,微信是一种即时通讯软件,小程序是搭载于微信且由微信提供访问入口的一种应用。
返回控件102可以用于返回上一个用户界面,即用户界面90。第一电子设备11可以检测到作用于返回控件102的用户操作(如在返回控件102上的点击操作),响应于该操作,第一电子设备11可以显示用户界面90。第一用户可以在用户界面90中重新选择待分享的智能家居设备。
分享设备列表103可以用于展示待分享的智能设备的列表。分享设备列表103可以包括一个或多个设置分享参数的入口。如图10所示,分享设备列表103可以包括设置主卧的灯的分享参数的入口1031,以及设置空气净化器的分享参数的入口1032。
第一电子设备11可以检测到作用于设置主卧的灯的分享参数的入口1031的用户操作(如在参数的入口1031上的点击操作),响应于该操作,第一电子设备11可以显示图11所示的用于设置主卧的灯的分享参数的用户界面200。
如图11所示,用户界面200可以包括:返回控件201、全选控件202、保存控件203、设置有效控制时长的入口204、分享参数设置列表205。其中:
返回控件201可以用于返回上一个用户界面,即用户界面100。第一电子设备11可以检测到作用于返回控件201的用户操作(如在返回控件201上的点击操作),响应于该操作,第一电子设备11可以显示用户界面100。
全选控件202可以用于选定所有的参数作为分享参数。第一电子设备11可以检测到作用于全选控件202的用户操作(如在全选控件202上的点击操作),响应于该操作,第一电子设备11可以确定分享参数设置列表205中列出的所有参数为分享参数。
保存控件203用于保存已选定的参数。第一电子设备11可以检测到作用于保存控件203的用户操作(如在保存控件203上的点击操作),响应于该操作,第一电子设备11可以保存已选定的参数至内部存储器121,根据已选定的参数生成该智能家居设备14对应的配置文件,该配置文件的格式例如可以是.config,该配置文件可以保存在华为智能家居的安装 包内。此外,响应于该操作,第一电子设备11还可以显示用户界面100。
设置有效控制时长的入口204可以用于设置第二电子设备12控制智能家居设备14的有效时间。第一电子设备11可以检测到作用于设置有效控制时长的入口204的用户操作(如在设置有效控制时长的入口204上的点击操作),第一电子设备11可以显示不同的时长选项(如1天、2天、5天、10天等)。第一用户可以选择不同的选项设置第二电子设备12控制智能家居设备14的有效控制时长。可能地,第一用户还可以手动编辑有效控制时长。
分享参数设置列表205可以包括多个参数选项。多个参数选项可以包括:开关、图片、名称、颜色、日光、亮度、定时、倒计时等。第一电子设备11可以检测到作用于任一选项(如开关选项)的用户操作(如在开关选项上的点击操作),响应于该操作,第一电子设备11可以确定开关选项为待分享的参数。第一电子设备11将被选定的参数以特殊标记显示,该特殊标记例如可以是图11所示的“√”。
第一电子设备11可以检测到作用于设置空气净化器的分享参数的入口1032的用户操作(如在参数的入口1032上的点击操作),响应于该操作,第一电子设备11可以显示图12所示的用于设置空气净化器的分享参数的用户界面300。
如图12所示,用户界面300可以包括:返回控件301、全选控件302、保存控件303、设置有效控制时长的入口304、分享参数设置列表305。其中:
返回控件301、全选控件302、保存控件303、设置有效控制时长的入口304分别与图11中示出的返回控件201、全选控件202、保存控件203、设置有效控制时长的入口204一致,此处不赘述。
分享参数设置列表305可以包括多个参数选项。多个参数选项可以包括:开关、图片、名称、滤芯剩余量、净化空气量、过滤颗粒物量、自动模式、睡眠模式、风速、定时开关等。第一电子设备11可以检测到作用于任一选项(如开关选项)的用户操作(如在开关选项上的点击操作),响应于该操作,第一电子设备11可以确定开关选项为待分享的参数。第一电子设备11将被选定的参数以特殊标记显示,该特殊标记例如可以是图12所示的“√”。
不限于图11和图12示出的被选定的分享参数,在具体实现中还可以是其他的分享参数,本申请实施例对此不作限定。
图13中的a所示的分享面板104可以包括一个或多个发送方式选项,例如Huawei Share选项1042、蓝牙选项、WLAN直连选项、闪电互传选项、微信选项1041、电子邮件选项、QQ选项、微博选项、华为账号好友选项等。各个选项均可用于使用该方式向第二电子设备12发送需要分享的设备以及该设备的分享参数。其中,Huawei Share传输技术可通过蓝牙快速发现周边其他华为设备,然后利用WLAN直连快速传输文件,传输过程无需流量。
接下来分别详细介绍两种发送方式。
第一种:通过Huawei Share选项1402向第二电子设备12发送控制文件。其中,控制文件为华为智能家居的安装包。安装包中可包含执行程序和待分享设备的配置文件。待分享设备的配置文件中可包含图11或图12实施例中被选定的分享参数。第一电子设备11向第二电子设备12发送的文件格式例如可以是.apk。
具体地,第一电子设备11可以检测到作用于Huawei Share选项1042的用户操作(如 在Huawei Share选项1042上的点击操作),响应于该操作,第一电子设备11可以通过Huawei Share选项1042将控制文件发送至第二电子设备12。
第一电子设备11可以通过Huawei Share选项1042将控制文件发送至第二电子设备12的具体过程如下:
首先,第一电子设备11通过蓝牙发现周围的第二电子设备12。
具体地,第一电子设备11可以开启蓝牙,搜索附近开启了Huawei Share功能的第二电子设备12,将搜索到的第二电子设备12显示在图13中的b所示的列表1043中,列表1043中的第二电子设备12以头像和名称的形式展示。图13中的b示例性示出了两个开启了Huawei Share功能的第二电子设备12(使用第二电子设备12的第二用户的名称分别为Jack、Lisa)。第一用户可以点击列表1043中的某个头像通过Huawei Share向该头像指示的第二电子设备12发起发送控制文件的请求。图13中的c示例性示出了第一电子设备11向第二电子设备12(第二用户的名称为Jack)发起请求后的分享面板104,用户可以通过点击头像取消待发送的文件。
其次,第一电子设备11通过WLAN直连向第二电子设备12发送控制文件。
具体地,图14中的a示例性示出了第二电子设备12上的桌面中的主页(用户界面400),用户界面400与第一电子设备11的用户界面40类似。但由于第二电子设备12上没有安装华为智能家居,所以用户界面400中不包括智能家居图标409。
图14中的b示出了第二电子设备12收到第一电子设备11发送的控制文件后,在用户界面400中显示的提示窗4001。提示窗4001中包括拒绝控件4002、接受控件4003和分享信息;其中,分享信息可以包括分享的文件名(HiLink simple.apk)、文件大小(5.8M)、分享者名称(June)等。
拒绝控件4002用于拒绝第一电子设备11发送控制文件的请求。第二电子设备12可以检测到作用于拒绝控件4002的用户操作(如在拒绝控件4002上的点击操作),响应于该操作,第二电子设备12拒绝第一电子设备11发送控制文件的请求。
接受控件4003用于接受第一电子设备11发送的控制文件的请求,即第二电子设备12同意接收第一电子设备11发送的控制文件。第二电子设备12可以检测到作用于接受控件4003的用户操作(如在接受控件4003上的点击操作),响应于该操作,第二电子设备12接受第一电子设备11发送控制文件的请求。
第二电子设备12接受第一电子设备11发送的上述请求后,第一电子设备11通过WLAN向第二电子设备12发送控制文件。
第二电子设备12接收到第一电子设备11发送的控制文件后,在用户界面400中显示图14中的c所示的图标4004。
具体地,华为智能家居的安装包可以包括三层软件架构,分别为UI层、设备管理层和通信层。UI层可以用于为用户与第一电子设备11的交互提供接口;设备管理层可以用于管理各个智能家居设备,例如对智能家居设备进行开关、调节工作参数、修改设备名称等;通信层可以用于为第一电子设备11提供与智能家居设备14的交互提供接口。
其中,UI层、设备管理层和通信层均可包括多个模块,不同的智能家居设备可能会对应不同的模块。其中,通信层可以包括多个模块,例如蓝牙模块、Wi-Fi模块、移动网络模 块、红外线模块等。
例如,若智能家居设备为主卧的灯,则通信层可包括Wi-Fi模块;若智能家居设备为红外遥控器,则通信层除了可包括Wi-Fi模块之外,还可包括红外模块。
又例如,若智能家居设备为主卧的灯,则UI层提供的用户界面可以是图8提供的用户界面80;若智能家居设备为空气净化器,则UI层提供的用户界面可以是图7提供的用户界面70。进一步地,用户界面70和用户界面80中的内容还可以细分成多个模块。如用户界面80中的801可分为两个模块,分别为图片模块和名称模块。
第一电子设备11向第二电子设备12发送的华为智能家居的安装包可以是分享版(即简化版)的安装包,即安装包内可以仅包括与待分享的设备相关的UI层模块、设备管理层模块和通信层模块。UI层、设备管理层和通信层包含的具体模块可由待分享设备的配置文件决定。
在另外一种实施例中,第一电子设备11向第二电子设备12发送的华为智能家居的安装包可以是完整的安装包。
不限于Huawei Share功能,第一电子设备11还可以采用蓝牙、WLAN直连、闪电互传、NFC等功能向第二电子设备12发送控制文件,本申请实施例对此不做限定。
第二种:通过微信选项1401向第二电子设备12发送控制文件。其中,控制文件为华为智能家居的微信小程序。微信小程序中可包含执行程序和待分享设备的配置文件。待分享设备的配置文件中可包含图11或图12实施例中被选定的分享参数。
具体地,第一电子设备11可以检测到作用于选项1041的用户操作(如在选项1041上的点击操作),响应于该操作,第一电子设备11可以通过微信选项1041将控制文件发送至第二电子设备12。
第一电子设备11可以通过选项1041将控制文件发送至第二电子设备12的具体过程如下:
具体地,响应于上述作用于选项1041的用户操作,第一电子设备11可以显示图15所示的微信的用户界面500。用户界面500可以包括好友选项列表5001、搜索控件5002、多选控件5003及返回控件5004。其中:
好友选项列表5001可以包括一个或多个好友选项。好友选项列表5001中包括的一个或多个好友选项为第一用户最近联系的好友。第一电子设备11可以检测到作用于某个好友选项(如选项5001-a)的用户操作(如在选项5001-a上的点击操作),响应于该操作,第一电子设备11可以确定该好友选项对应的好友(如Jack)为目标分享好友,并在用户界面500中显示图16所示的分享窗口5005。
搜索控件5002可以用于从微信所有的联系人中搜索目标分享好友。第一电子设备11可以检测到作用于搜索控件5002的点击操作,响应于该操作,第一电子设备11可以显示输入框,第一用户可以在输入框中输入目标分享好友的名称。
多选控件5003可以用于将待分享的文件分享给多位好友。
返回控件5004可以用于返回上一个用户界面,即用户界面100。
此外,若好友选项列表5001中不包括目标分享好友,第一用户可以创建新聊天,选择 目标分享好友。
此外,第一电子设备11还可以检测到作用于好友选项列表5001的滑动操作,响应于该滑动操作,第一电子设备11可以显示更多的好友选项。
图16示例性示出了分享窗口5005。如图16所示,分享窗口5005可以包括:分享控件5005-a、取消控件5005-b、留言区域5005-c、目标分享好友指示符5005-d及分享内容显示区5005-e。其中:
分享控件5005-a可以用于将控制文件发送至目标分享好友。第一电子设备11可以检测到作用于分享控件5005-a的点击操作,响应于该点击操作,第一电子设备11可以将控制文件发送至目标分享好友(目标分享好友使用的电子设备即为第二电子设备12)。可能地,第一电子设备11可以将第一用户在留言区域5005-c中输入的留言信息发送至目标分享好友。
取消控件5005-b可以用于取消发送控制文件。第一电子设备11可以检测到作用于取消控件5005-b的点击操作,响应于该点击操作,第一电子设备11可以取消发送控制文件。
留言区域5005-c可以用于给目标分享好友留言。第一电子设备11可以检测到作用于留言区域5005-c的点击操作,响应于该点击操作,第一电子设备11可以显示输入框,接收第一用户输入的留言信息。
目标分享好友指示符5005-d可以用于指示目标分享好友,具体可包括目标分享好友的头像和名称。
分享内容显示区5005-e可以用于显示分享内容。
第一电子设备11将控制文件发送至目标分享好友后,第二电子设备12可以显示图17所示的微信的用户界面600,用户界面600为目标分享好友(Jack)与第一电子设备11的第一用户(June)的微信聊天界面。用户界面600中可以包括信息6001。信息6001包含的内容即为分享内容显示区5005-e中显示的分享内容。
具体地,上述目标分享好友即为第二用户。
具体地,华为智能家居的安装包内可以包含华为智能家居的微信小程序的程序框架。第一用户在第一电子设备11上设置待分享设备的分享参数时,第一电子设备11可将分享参数写入小程序的程序框架内。
其中,华为智能家居的微信小程序的功能与前述华为智能家居的功能类似。华为智能家居的微信小程序内可包括被分享的智能家居设备的ID号和/或MAC地址、图11或图12实施例中被选定的分享参数等。第二用户可以通过小程序控制已分享的设备。
其中,智能家居设备的ID可以是云端服务器15为该智能家居设备分配的编号,用于标识该智能家居设备的身份。不限于ID,还可以通过智能家居设备的MAC地址标识该智能家居设备的身份。
接下来分别介绍通过上述两种方式发送控制文件后,如何在第二电子设备12上控制已分享的设备。
第一种:通过Huawei Share选项1402向第二电子设备12发送控制文件。
第二电子设备12可以检测到作用于图标4004的用户操作(如在图标4004上的点击操 作),响应于该操作,电子设备可以显示图18所示的用户界面700。其中,用户界面700可以包括用户名称指示符7001、智能家居设备列表7002。
其中,用户名称指示符7001可以用于指示第一电子设备11的第一用户的名称。例如,图18中示出的用户名称指示符“June的家”指示第一电子设备11的第一用户的名称为“June”。
智能家居设备列表7002可以包括一个或多个被分享的智能家居设备的展示区,该展示区可以包括智能家居设备的图标、名称及工作状态。智能家居设备的名称可以是第一用户在第一电子设备11上设置的名称,还可以是该智能家居设备的默认名称。展示区中展示的智能家居设备的名称是设置的名称或者是默认的名称取决于该智能家居设备的分享参数。若该智能家居设备的分享参数中包括智能家居设备的名称,则展示区中展示的智能家居设备的名称可以是第一用户设置的名称;若该智能家居设备的分享参数中不包括智能家居设备的名称,则展示区中展示的智能家居设备的名称可以是默认的名称。例如,第一用户设置的名称可以是“主卧的灯”,而该设备的默认的名称可以是“智能电灯”。智能家居设备的工作状态可以包括开启和关闭。
上述智能家居设备的展示区可以用于打开设置工作参数的用户界面。图18中的智能家居设备列表7002中可包括智能电灯的展示区7002-a和空气净化器的展示区7002-b。第二电子设备12可以检测到作用于展示区7002-a的用户操作(如在展示区7002-a上的点击操作),响应于该操作,第二电子设备12可以显示图19示出的用于设置智能电灯的工作参数的用户界面800。第二电子设备12可以检测到作用于展示区7002-b的用户操作(如在展示区7002-b上的点击操作),响应于该操作,第二电子设备12可以显示图20示出的用于设置空气净化器的工作参数的用户界面900。
图19示出的用于设置智能电灯的工作参数的用户界面800包含的内容可以由第一用户在第一电子设备11上设置的主卧的灯的分享参数决定。具体的分享参数可见图11示出的用户界面200中被选定的参数。
如图19所示,用户界面800可以包括设备信息显示区8001、开关控件8002及工作参数设置区8003。其中:
设备信息显示区8001包括设备的图片、设备的默认的名称(智能电灯)等。
具体地,从图11中可以看出,设备的名称未被选定为待分享的参数。因此,图18和图19中显示的设备的名称为该智能家居设备的默认的名称,即为“智能电灯”。
开关控件8002可以用于切换电灯的工作状态。
工作参数设置区8003可以用于设置电灯的工作参数。其中,电灯的工作参数包括灯光颜色(彩色或日光)、灯光亮度(55%)。
具体地,从图11中可以看出,分享参数设置列表205中的定时和倒计时选项均未被选定为待分享的参数。因此,用户界面800的工作参数设置区8003中电灯的工作参数不包括定时开关的时间、倒计时的开关时间。
如图20所示,用户界面900可以包括设备信息显示区9001、开关控件9002及工作参数设置区9003。其中:
设备信息显示区9001可以包括设备的图片、设备的名称(空气净化器)等。
开关控件9002可以用于切换空气净化器的工作状态。
工作参数设置区9003可以用于设置空气净化器的工作参数。其中,空气净化器的工作参数包括工作模式(如自动模式或者睡眠模式)。
具体地,从图12中可以看出,设备的状态参数滤芯剩余量(91%)、净化空气量(1345m 3)、过滤颗粒物的量(89毫克)均未被选定为待分享的参数。因此,图20中未显示设备状态参数显示区。
具体地,从图12中可以看出,分享参数设置列表305中的风速和定时开关选项均未被选定为待分享的参数。因此,用户界面900的工作参数设置区9003中不包括风速和定时开关选项。
接下来以开启空气净化器为例,结合图21说明第二电子设备12如何开启空气净化器。
如图21所示,第二电子设备12开启空气净化器的过程至少可以包括以下几个步骤:
S101:第二电子设备12检测到作用于开关控件9002的用户操作。
具体地,上述用户操作可以是作用于开关控件9002的点击操作。
S102:第二电子设备12向路由器13发送用户数据报协议(user datagram protocol,UDP)组播扫描消息。
具体地,第二电子设备12可以在所有端口上发送上述UDP组播扫描消息。
S103:路由器13向局域网内的智能家居设备14发送UDP组播扫描消息。
具体地,局域网内可以包括一个或多个智能家居设备14。其中,一个或多个智能家居设备14可以包括空气净化器。
S104:局域网内的智能家居设备14向路由器13发送UDP组播响应消息。
具体地,智能家居设备14发送的UDP组播响应消息可以携带该智能家居设备的ID和IP地址。
在一种可能的实现方式中,智能家居设备14发送的UDP组播响应消息可以是多播,即智能家居设备14可以向第二电子设备12的所有端口发送UDP组播响应消息。第二电子设备12在所有端口上发送UDP组播扫描消息后需监听所有端口。
在另一种可能的实现方式中,智能家居设备14发送的UDP组播响应消息可以是单播,即智能家居设备14可以向第二电子设备12的特定端口发送UDP组播响应消息。第二电子设备12在所有端口上发送UDP组播扫描消息时后只需监听一个特定端口。该特定端口号可携带在UDP组播扫描消息中。
S105:路由器13向第二电子设备12发送UDP组播响应消息。
S106:第二电子设备12比较设备ID与预存的空气净化器的ID是否一致。若一致,执行S107;若不一致,丢弃ID。
具体地,预存的空气净化器的ID可保存在第二电子设备12的内部存储器中。预存的空气净化器的ID可携带在第一电子设备11向第二电子设备12发送的控制文件中。
具体地,局域网内可能包括多个智能家居设备,第二电子设备12可能会接收到多个智能家居设备发送的UDP组播响应消息。因此第二电子设备12可能会接收到多个智能家居设备14的ID和IP地址。
第二电子设备12可以将接收到的多个智能家居设备14的ID与预存的空气净化器的ID相比,判断是否一致。若一致,则记录该ID对应的IP地址。若不一致,则丢弃该ID。
S107:第二电子设备12记录空气净化器的IP地址。
具体地,第二电子设备12可以将空气净化器的IP地址保存至内部存储器。
S108:第二电子设备12向路由器13发送开启空气净化器的指令。
具体地,第二电子设备12向路由器13发送的开启空气净化器的指令可以携带该空气净化器的IP地址。
S109:路由器13向空气净化器发送开启空气净化器的指令。
具体地,路由器13可以根据IP地址向空气净化器发送开启指令。
S110:空气净化器将其工作状态切换为开启。
具体地,空气净化器接收到开启指令后,将其工作状态从关闭切换为开启。至此,第二电子设备12实现了对空气净化器的控制。
由于第二电子设备12没有申请第一应用程序的账号,无法通过云端服务器15对空气净化器进行控制,因此,第二电子设备12可以通过局域网内空气净化器的IP地址对空气净化器进行控制。可以减少云端服务器15管理的账号,降低云端服务器15的管理成本。
在一些实施例中,第二电子设备12在接收到上述控制文件后,自动与智能家居设备建立连接。
具体地,第二电子设备12在接收到上述控制文件后,可根据控制文件中携带的智能家居设备的ID或MAC地址查询局域网内的智能家居设备,记录与该ID或MAC地址匹配的智能家居设备的IP地址。第二电子设备12可根据IP地址与其分享的智能家居设备建立连接。
此外,第二电子设备12向路由器13发送的指令由密钥加密。该密钥为临时的密钥。密钥的有效期限可由第一用户在第一电子设备11上设置。具体可以是在图11或图12中的“有效控制时长”处设置。智能家居设备14接收到被密钥加密过的指令后,验证指令的合法性。若指令合法,则执行该指令相应的事件。其中,指令的合法性可以包括加密上述指令的密钥的正确性及密钥的有效性。
在一种可能的实施例中,上述密钥可由第一电子设备11生成后发送给智能家居设备14,并由第一电子设备11发送给第二电子设备12。
图22示出了密钥的生成过程及发送过程。如图22所示,该过程可以包括以下几个步骤:
1、第一电子设备11生成密钥。
2、第一电子设备11发送密钥至智能家居设备14。
3、智能家居设备14保存密钥。
4、第一电子设备11发送控制文件至第二电子设备12。其中,控制文件中包含密钥。
5、第二电子设备12接收控制文件,保存密钥。
本申请实施例对上述步骤2-3、4-5实现的先后顺序不作限定。
在另外一种可能的实施例中,上述密钥可由智能家居设备14生成后发送给第一电子设备11,并由第一电子设备11发送给第二电子设备12。
图23示出了另一种密钥的生成过程及发送过程。如图23所示,该过程可以包括以下几个步骤:
1、第一电子设备11向智能家居设备14发送生成密钥的指令。
2、智能家居设备14生成密钥,保存密钥。
3、智能家居设备14向第一电子设备11发送密钥。
4、第一电子设备11发送控制文件至第二电子设备12。其中,控制文件中包含密钥。
5、第二电子设备12接收控制文件,保存密钥。具体地,上述密钥的有效时长可以从该密钥生成的时刻开始计时。
第二种:通过微信选项1401向第二电子设备12发送控制文件。
第二电子设备12可以检测到作用于信息6001的用户操作(如在信息6001上的点击操作),响应于该操作,第二电子设备12可以显示图18所示的用户界面700。
第二电子设备12显示用户界面700后,第二用户可以点击智能电灯的展示区7002-b使第二电子设备12显示用户界面900。第二用户可在用户界面900中对空气净化器进行控制。第二电子设备12显示用户界面900以及第二用户在用户界面900中对空气净化器进行控制的具体过程可见第一种方式中的详细描述,此处不赘述。
第二用户对智能电灯的控制过程也可参考上述对空气净化器的控制过程,本申请实施例对此不再赘述。
本申请实施例中,第一用户可向第二用户分享智能家居设备,且第一用户可以在第一电子设备11上设置第二用户可控制的智能家居设备的部分功能,使设备的分享过程更加灵活。第二用户无需额外申请账号,就可对第一用户分享的智能家居设备进行控制,且第二用户无需再次对智能家居设备的工作参数进行设置,减少了第二用户的操作。此外,第一用户可以通过临时密钥设置第二用户对智能家居设备的控制期限,无需第一用户手动收回控制权,减少第一用户的操作,提升智能家居设备的分享效率。避免由于第一用户忘记收回控制权导致第二用户可以一直控制智能家居设备,保障第一用户的隐私,提升第一用户的用户体验。
在一种可能的实施例中,当第一用户再次分享某设备如空气净化器时,第一电子设备11可以在用于设置空气净化器的分享参数的用户界面300中,提示第一用户是否沿用上一次分享该设备时设置的分享参数。若是,第一用户无需再次选择分享参数,减少第一用户的操作,提高分享设备的效率。若否,第一用户可以在用户界面300中重新选择分享参数。第一电子设备11可以更新安装包内的配置文件。
在一种可能的实施例中,第二电子设备12接收到控制文件后,第二电子设备12无法再次将该控制文件分享至第三电子设备。本申请实施例可以保证第一用户的隐私不被泄露,防止他人随意操作第一用户的智能家居设备。
不限于上述图10-图14实施例中示出的第一电子设备11向第二电子设备12发送分享版安装包(即安装包内仅包括与待分享的设备相关的UI层模块、设备管理层模块和通信管理层模块),本申请实施例中第一电子设备11还可以向第二电子设备12发送完整的安装包。
如图24所示,第一电子设备11可以检测到作用于图标409的用户操作(如在图标409上的长按操作),响应于该操作,第一电子设备11可以在用户界面40中显示分享控件415和删除控件416。其中,分享控件415用于分享华为智能家居的安装包,删除控件416用 于删除华为智能家居的安装包。
第一电子设备11可以检测到作用于图标409的拖动操作(如将图标409拖动至分享控件415所在的区域),响应于该拖动操作,第一电子设备11可以在用户界面40中显示图25所示的分享面板417。其中,分享面板417与分享面板401一致,在此不再赘述。
第一电子设备11可以通过分享面板417将华为智能家居完整的安装包发送至第二电子设备12。具体的分享过程可参考图13-图14的描述,此处不赘述。
第二电子设备12接收第一电子设备11分享的华为智能家居完整的安装包后,第二电子设备12可以在用户界面400中显示图26所示的图标4004。图标4004可以用于开启华为智能家居。
具体地,第二电子设备12可以检测到作用于图标4004的用户操作(如在图标4004上的点击操作),响应于该操作,第二电子设备12可以显示图27所示的用户界面1000。
如图27所示,用户界面1000可以包括登录控件10001和设备分享控件10002。其中:
登录控件10001可以用于使用已有账号登录华为智能家居的应用服务器,或者注册新账号登录上述应用服务器。
设备分享控件10002可以用于打开用户界面700。第二用户可以通过用户界面700查看第一用户分享的智能家居设备,并控制智能家居设备。具体过程可以参考图18-图21实施例的相关描述,此处不赘述。
本申请实施例中,第二电子设备12可以为第二用户提供两种使用方式,即使用已有账号登录华为智能家居的应用服务器,或者直接查看第一用户为第二用户分享的设备,无需账号即可对设备进行控制。第二用户可以根据自身需求使用应用程序,在简化智能家居设备的分享过程的同时,提高应用程序的利用率,提升用户体验。
图28为本申请实施例提供的一种智能家居设备分享方法流程示意图。
如图28所示,智能家居设备分享方法至少可以包括以下几个步骤:
S201:第一电子设备接收第一用户操作。
具体地,第一电子设备11与智能家居设备14连接,且第一电子设备11可以控制智能家居设备14支持的功能。智能家居设备14支持的功能可以是第一用户通过第一应用程序可查看的功能以及可控制的功能。不同的智能家居设备可以支持的不同的功能。
示例性地,若智能家居设备14为空气净化器,则第一用户通过第一应用程序可查看的功能可以包括:图7中用户界面70中设备状态参数显示区703中显示的设备状态参数(滤芯剩余量、净化空气量、过滤颗粒物的量);第一用户通过第一应用程序可控制的功能可以包括:图7中用户界面70中开关控件702提供的开关功能、工作参数设置区704中提供的工作模式(如自动模式或者睡眠模式)设置功能、风速设置功能及定时开关功能。
示例性地,若智能家居设备14为智能电灯,则第一用户通过第一应用程序可控制的功能可以包括:图8中用户界面80中开关控件802提供的开关功能、工作参数设置区803中提供的灯光颜色(彩色或日光)设置功能、亮度调节功能、定时开关功能及倒计时功能。本申请实施例中的智能电灯支持的功能没有可查看的功能。
上述列举的智能家居设备14支持的功能仅为示例性说明,在具体实现中智能家居设备 14支持的功能还可以包括其他,本申请实施例对此不作限定。
具体地,第一用户操作可以是作用于分享参数的入口上的点击操作,如作用于图10中参数设置入口1031或参数设置入口1032上的点击操作。
S202:响应于第一用户操作,第一电子设备显示第一用户界面。
其中,第一用户界面中包括上述智能家居设备允许分享的功能。不同的智能家居设备允许分享的功能可能不同。智能家居设备允许分享的功能可以由出厂商设置,也可以由用户设置。不同的智能家居设备对应的第一用户界面也可能不同。
具体地,智能家居设备允许分享的功能可以是该智能家居设备支持的功能的子集。即智能家居设备允许分享的功能为该智能家居设备支持的功能的部分或者全部。
示例性地,若该智能家居设备为智能电灯,则其允许分享的功能可以是图11中用户界面200中分享参数设置列表205中包含的除名称和图片之外的所有参数选项表征的功能。第一用户界面即为用户界面200。
示例性地,若该智能家居设备为空气净化器,则其允许分享的功能可以是图12中用户界面300中分享参数设置列表305中包含的除名称和图片之外的所有参数选项表征的功能。第一用户界面即为用户界面300。
不限于上述列举的智能电灯和空气净化器,在具体实现中,被分享的智能家居设备还可以是其他,因此第一用户界面也不限于图11示出的用户界面200和图12示出的用户界面300,本申请实施例对此不作限定。
S203:第一电子设备接收作用于第一用户界面的第二用户操作。
具体地,第二用户操作可以是作用于图11实施例中分享参数设置列表205或图12实施例中分享参数设置列表305中各个参数选项上的点击操作。
S204:响应于第二用户操作,第一电子设备确定上述允许分享的功能中的一个或多个功能为待分享的功能。
具体地,待分享的功能可以是该智能家居设备允许分享的功能的子集。待分享的功能可以由第一用户从该智能家居设备允许分享的功能中选择一个或多个。
示例性地,若该智能家居设备为智能电灯,则该智能家居设备的待分享参数为图11中用户界面200的分享参数设置列表205中被选定的参数选项表征的功能,即为用户界面200中被特殊标记(“√”)的参数选项(开关、颜色、日光、亮度)表征的功能。
示例性地,若该智能家居设备为智能电灯,则该智能家居设备的待分享参数为图12中用户界面300的分享参数设置列表305中被选定的参数选项表征的功能,即为用户界面300中被特殊标记(“√”)的参数选项(开关、自动、睡眠)表征的功能。
S205:第一电子设备接收第三用户操作。
可能地,第三用户操作可以是作用于图11中保存控件203或图12实施例中保存控件303上的点击操作。
S206:响应于第三用户操作,第一电子设备根据一个或多个功能生成控制文件。
具体地,第一电子设备11上安装了第一应用程序,第一电子设备11可以通过第一应用程序控制智能家居设备14,第一应用程序例如可以是前述实施例中列举的华为智能家居。
具体地,控制文件可以包括执行程序和配置文件。上述配置文件可以根据第一用户在 第一电子设备11中选择的一个或多个待分享的功能生成。
具体地,智能家居设备14的数量可以是一个或多个。不同的智能家居设备14分别对应一个配置文件。不同智能家居设备14对应的配置文件均可包含在同一个控制文件中。
在一些实施例中,控制文件可以是第一应用程序的安装包。
具体地,第一应用程序的安装包可以包括三层软件架构,分别为UI层、设备管理层和通信层。UI层可以用于为第一用户与第一电子设备11的交互提供接口;设备管理层可以用于管理各个智能家居设备,例如对智能家居设备进行开关、调节工作参数、修改设备名称等;通信层可以用于为第一电子设备11提供与智能家居设备14的交互提供接口。
其中,UI层、设备管理层和通信层均可包括多个模块,不同的智能家居设备14可能会对应不同的模块。其中,通信层可以包括多个模块,例如蓝牙模块、Wi-Fi模块、移动网络模块、红外线模块等。
可能地,上述第一应用程序的安装包为分享版(简化版)的安装包(如图14中的c中图标4004对应的安装包),即安装包内可以仅包括与待分享的设备相关的UI层模块、设备管理层模块和通信层模块。UI层、设备管理层和通信层包含的具体模块可由待分享设备的配置文件决定。
在另一些可能的实施例中,控制文件可以是微信小程序(如图17中的信息6001对应的微信小程序)。
S207:第一电子设备发送控制文件至第二电子设备。
在一些实施例中,若控制文件是第一应用程序的安装包,将上述控制文件发送至上述第二电子设备12的方式包括以下任意一种或多种:蓝牙、WLAN直连、NFC。
可能地,第一电子设备11可以通过蓝牙发现第二电子设备12,再通过WLAN直连将控制文件发送至第二电子设备12。具体的发送过程可参考图13中的a-图14中的c实施例的相关描述,此处不赘述。
在另一些实施例中,若控制文件是微信小程序,则第一电子设备11可以通过微信将控制文件发送至第二电子设备12。具体的发送过程可参考图15-图17实施例的相关描述,此处不赘述。
S208:第二电子设备根据控制文件,控制智能家居设备的上述一个或多个功能。
具体地,第二电子设备12接收到控制文件后,对控制文件进行解析,得到第一电子设备11分享的智能家居设备的一个或多个功能,控制智能家居设备14的上述一个或多个功能。
本申请实施例中第一用户可向第二用户分享智能家居设备,且第一用户可以在第一电子设备上设置第二用户可控制的智能家居设备的部分功能,使设备的分享过程更加灵活。第二用户无需额外申请账号,就可对第一用户分享的智能家居设备进行控制,且第二用户无需再次对智能家居设备的工作参数进行设置,减少了第二用户的操作。
在一些实施例中,上述第二操作还可以用于选择智能家居设备的名称和/或图片,第二操作可以是作用于图11实施例中名称选项和/或图片选项上的点击操作,或图12实施例中名称选项和/或图片选项上的点击操作。
第一电子设备可以根据上述一个或多个功能、上述名称和/或图片生成控制文件。
本申请实施例中,第一用户除了可以在第一电子设备上设置第二用户可控制的智能家居设备的部分功能之外,还可以设置第二用户是否能够查看该设备的名称和/或图片,保证第一用户的隐私。
在一些实施例中,上述第二用户操作还可以用于选择智能家居设备的有效控制时长,第二用户操作可以是作用于图11实施例中有效控制时长选项204或图12实施例中有效控制时长304上的点击操作。
可能地,第一电子设备可以根据上述一个或多个功能、上述有效控制时长生成控制文件。
本申请实施例中,第一用户除了可以在第一电子设备上设置第二用户可控制的智能家居设备的部分功能之外,还可以设置第二用户控制该智能家居设备的有效控制时长,无需第一用户手动收回控制权,减少第一用户的操作,提升智能家居设备的分享效率。避免由于第一用户忘记收回控制权导致第二用户可以一直控制智能家居设备,保障第一用户的隐私,提升第一用户的用户体验。
可能地,第一电子设备可以根据上述一个或多个功能、上述名称和/或图片、上述有效控制时长生成控制文件。
本申请实施例中,第一用户除了可以在第一电子设备上设置第二用户可控制的智能家居设备的部分功能之外,还可以设置第二用户是否能够查看该设备的名称和/或图片,以及控制该智能家居设备的有效控制时长。实施本申请实施例可以保障第一用户的隐私,且无需第一用户手动收回控制权,减少第一用户的操作,提升智能家居设备的分享效率。避免由于第一用户忘记收回控制权导致第二用户可以一直控制智能家居设备,提升第一用户的用户体验。
上述一个或多个功能、上述有效控制时长、上述名称和/或图片可称为分享参数。
在一些实施例中,上述方法还可以包括:第一电子设备11根据上述有效时长生成密钥;将上述密钥发送至上述智能家居设备14及上述第二电子设备12。密钥的生成过程及发送过程可参考图22实施例的相关描述,此处不赘述。
本申请实施例中,密钥可以由第一电子设备生成,密钥的有效性由有效控制时长决定。第一用户可以通过设置密钥的有效控制时长设置第二用户对智能家居设备的控制期限。
在另一些实施例中,上述方法可以包括:第一电子设备11将上述有效控制时长发送至上述智能家居设备14,以使上述智能家居设备14根据上述有效控制时长生成密钥;接收上述智能家居设备14发送的上述密钥;将上述密钥发送至上述第二电子设备12。密钥的生成过程及发送过程可参考图23实施例的相关描述,此处不赘述。
本申请实施例中,密钥可以由智能家居设备生成,密钥的有效性由有效控制时长决定。第一用户可以通过设置密钥的有效控制时长设置第二用户对智能家居设备的控制期限。
在一些实施例中,上述方法还包括:第二电子设备14通过上述密钥加密控制命令;将上述控制命令发送至上述智能家居设备14,以使上述智能家居设备14采用上述密钥解密上述控制命令,并执行上述控制命令。
可能地,第二电子设备14接收到控制文件后,无法再次将该控制文件分享至第三电子设备,可以保证第一用户的隐私不被泄露,防止他人随意操作第一用户的智能家居设备。
本申请实施例中,第二电子设备可以通过密钥与智能家居设备进行通信,可以防止其他电子设备控制智能家居设备,保证第一用户的隐私。此外,通过设置密钥的有效控制时长设置第二用户对智能家居设备的控制期限,避免由于第一用户忘记收回控制权导致第二用户可以一直控制智能家居设备,提升第一用户的用户体验。本申请实施例还提供了一种计算机可读存储介质。上述方法实施例中的全部或者部分流程可以由计算机程序来指令相关的硬件完成,该程序可存储于上述计算机存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。该计算机可读存储介质包括:只读存储器(read-only memory,ROM)或随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可存储程序代码的介质。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者通过所述计算机可读存储介质进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。
本申请实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。
本申请实施例装置中的模块可以根据实际需要进行合并、划分和删减。
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。

Claims (24)

  1. 一种智能家居设备分享系统,其特征在于,包括:第一电子设备、第二电子设备及智能家居设备;其中:所述第一电子设备与所述智能家居设备连接,并且所述第一电子设备控制所述智能家居设备支持的功能;
    所述第一电子设备被配置为:
    接收第一用户操作;
    响应于所述第一用户操作,显示第一用户界面;其中,所述第一用户界面包括所述智能家居设备允许分享的功能;
    接收作用于所述第一用户界面的第二用户操作;
    响应于所述第二用户操作,确定所述允许分享的功能中的一个或多个功能为待分享的功能;
    接收第三用户操作;
    响应于所述第三用户操作,根据所述一个或多个功能生成控制文件;
    发送所述控制文件至所述第二电子设备;
    所述第二电子设备被配置为:
    根据所述控制文件,控制所述智能家居设备的所述一个或多个功能。
  2. 如权利要求1所述的系统,其特征在于,所述第一电子设备通过第一应用程序控制所述智能家居设备,所述控制文件为所述第一应用程序的安装包。
  3. 如权利要求1所述的系统,其特征在于,所述控制文件为微信小程序。
  4. 如权利要求1-3任一项所述的系统,其特征在于,所述第二用户操作还用于选择所述智能家居设备的名称和/或图片;
    所述根据所述一个或多个功能生成控制文件包括:根据所述一个或多个功能、所述名称和/或图片生成控制文件。
  5. 如权利要求1-3任一项所述的系统,其特征在于,所述第二用户操作还用于选择所述智能家居设备的有效控制时长;
    所述根据所述一个或多个功能生成控制文件包括:根据所述一个或多个功能、所述有效控制时长生成控制文件。
  6. 如权利要求5所述的系统,其特征在于,所述第一电子设备还被配置为:
    根据所述有效时长生成密钥;
    将所述密钥发送至所述智能家居设备及所述第二电子设备。
  7. 如权利要求5所述的系统,其特征在于,所述第一电子设备还被配置为:
    将所述有效控制时长发送至所述智能家居设备,以使所述智能家居设备根据所述有效控制时长生成密钥;
    接收所述智能家居设备发送的所述密钥;
    将所述密钥发送至所述第二电子设备。
  8. 如权利要求1-7任一项所述的系统,其特征在于,所述第二电子设备还被配置为:
    接收所述控制文件,解析所述控制文件中的所述一个或多个功能。
  9. 如权利要求6或7所述的系统,其特征在于,所述第二电子设备还被配置为:
    通过所述密钥加密控制命令;
    将所述控制命令发送至所述智能家居设备,以使所述智能家居设备采用所述密钥解密所述控制命令,并执行所述控制命令。
  10. 一种电子设备,其特征在于,所述电子设备与智能家居设备连接,且所述电子设备控制所述智能家居设备支持的功能,所述电子设备包括一个或多个处理器、存储器以及无线通信模块;所述存储器以及所述无线通信模块与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器执行所述计算机指令以使所述电子设备执行:
    接收第一用户操作;
    响应于所述第一用户操作,显示第一用户界面;其中,所述第一用户界面包括所述智能家居设备允许分享的功能;
    接收作用于所述第一用户界面的第二用户操作;
    响应于所述第二用户操作,确定所述允许分享的功能中的一个或多个功能为待分享的功能;
    接收第三用户操作;
    响应于所述第三用户操作,根据所述一个或多个功能生成控制文件;
    发送所述控制文件至第二电子设备,以使所述第二电子设备根据所述控制文件控制所述智能家居设备的所述一个或多个功能。
  11. 如权利要求10所述的电子设备,其特征在于,所述电子设备通过第一应用程序控制所述智能家居设备,所述控制文件为所述第一应用程序的安装包。
  12. 如权利要求10所述的电子设备,其特征在于,所述控制文件为微信小程序。
  13. 如权利要求10-12任一项所述的电子设备,其特征在于,所述第二用户操作还用于选择所述智能家居设备的名称和/或图片;
    所述电子设备执行所述根据所述一个或多个功能生成控制文件时具体执行:根据所述一个或多个功能、所述名称和/或图片生成控制文件。
  14. 如权利要求10-12任一项所述的电子设备,其特征在于,所述第二用户操作还用于选择所述智能家居设备的有效控制时长;
    所述电子设备执行所述根据所述一个或多个功能生成控制文件时具体执行:根据所述一个或多个功能、所述有效控制时长生成控制文件。
  15. 如权利要求14所述的电子设备,其特征在于,所述电子设备还执行:
    根据所述有效时长生成密钥;
    将所述密钥发送至所述智能家居设备及所述第二电子设备。
  16. 如权利要求14所述的电子设备,其特征在于,所述电子设备还执行:
    将所述有效控制时长发送至所述智能家居设备,以使所述智能家居设备根据所述有效控制时长生成密钥;
    接收所述智能家居设备发送的所述密钥;
    将所述密钥发送至所述第二电子设备。
  17. 一种智能家居设备分享方法,其特征在于,所述方法由电子设备执行,所述电子设备与智能家居设备连接,且所述电子设备控制所述智能家居设备支持的功能,所述方法包括:
    接收第一用户操作;
    响应于所述第一用户操作,显示第一用户界面;其中,所述第一用户界面包括所述智能家居设备允许分享的功能;
    接收作用于所述第一用户界面的第二用户操作;
    响应于所述第二用户操作,确定所述允许分享的功能中的一个或多个功能为待分享的功能;
    接收第三用户操作;
    响应于所述第三用户操作,根据所述一个或多个功能生成控制文件;
    发送所述控制文件至第二电子设备,以使所述第二电子设备根据所述控制文件控制所述智能家居设备的所述一个或多个功能。
  18. 如权利要求17所述的方法,其特征在于,所述电子设备通过第一应用程序控制所述智能家居设备,所述控制文件为所述第一应用程序的安装包。
  19. 如权利要求17所述的方法,其特征在于,所述控制文件为微信小程序。
  20. 如权利要求17-19任一项所述的方法,其特征在于,所述第二用户操作还用于选择所述智能家居设备的名称和/或图片;
    所述根据所述一个或多个功能生成控制文件包括:根据所述一个或多个功能、所述名称和/或图片生成控制文件。
  21. 如权利要求17-19任一项所述的方法,其特征在于,所述第二用户操作还用于选择所述智能家居设备的有效控制时长;
    所述根据所述一个或多个功能生成控制文件包括:根据所述一个或多个功能、所述有效控制时长生成控制文件。
  22. 如权利要求21所述的方法,其特征在于,所述方法还包括:
    根据所述有效时长生成密钥;
    将所述密钥发送至所述智能家居设备及所述第二电子设备。
  23. 如权利要求22所述的方法,其特征在于,所述方法还包括:
    将所述有效控制时长发送至所述智能家居设备,以使所述智能家居设备根据所述有效控制时长生成密钥;
    接收所述智能家居设备发送的所述密钥;
    将所述密钥发送至所述第二电子设备。
  24. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求17-23中任一项所述的智能家居设备分享方法。
PCT/CN2019/074168 2019-01-31 2019-01-31 智能家居设备分享系统、方法及电子设备 WO2020155014A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2019/074168 WO2020155014A1 (zh) 2019-01-31 2019-01-31 智能家居设备分享系统、方法及电子设备
CN201980088119.XA CN113272745B (zh) 2019-01-31 2019-01-31 智能家居设备分享系统、方法及电子设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/074168 WO2020155014A1 (zh) 2019-01-31 2019-01-31 智能家居设备分享系统、方法及电子设备

Publications (1)

Publication Number Publication Date
WO2020155014A1 true WO2020155014A1 (zh) 2020-08-06

Family

ID=71840680

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/074168 WO2020155014A1 (zh) 2019-01-31 2019-01-31 智能家居设备分享系统、方法及电子设备

Country Status (2)

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

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112486032A (zh) * 2020-12-25 2021-03-12 广州金匙信息科技有限公司 一种基于云计算的智能家居控制系统
CN113589699A (zh) * 2021-07-21 2021-11-02 青岛海尔科技有限公司 智能家居场景控制方法及装置
CN114173184A (zh) * 2020-09-10 2022-03-11 华为终端有限公司 投屏方法和电子设备
CN114168235A (zh) * 2020-08-20 2022-03-11 华为技术有限公司 一种功能切换入口的确定方法与电子设备
CN114268617A (zh) * 2020-09-15 2022-04-01 华为技术有限公司 电子设备及其定位控制方法和介质
WO2022111728A1 (zh) * 2020-11-30 2022-06-02 华为技术有限公司 一种获取设备控制权的方法与通信系统
CN115174266A (zh) * 2022-08-09 2022-10-11 宁波奥克斯电气股份有限公司 空调控制方法、装置、电子设备和计算机可读存储介质
CN115708344A (zh) * 2021-08-18 2023-02-21 华为技术有限公司 设备之间分享遥控器的方法、发送端设备和接收端设备
WO2023051643A1 (zh) * 2021-09-30 2023-04-06 华为技术有限公司 设备控制方法、相关装置及通信系统
CN115955508A (zh) * 2023-03-10 2023-04-11 边无际(北京)科技有限公司 一种大规模多品类网络摄像头识别及状态感知方法及装置
CN117061266A (zh) * 2023-10-13 2023-11-14 荣耀终端有限公司 智能家居设备的控制方法和控制装置
WO2023216892A1 (zh) * 2022-05-12 2023-11-16 华为技术有限公司 场景设置方法及电子设备

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117527737A (zh) * 2022-07-29 2024-02-06 腾讯科技(深圳)有限公司 行程分享方法、装置、设备、存储介质及程序产品

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130247223A1 (en) * 2012-03-16 2013-09-19 Korea Advanced Institute Of Science And Technology Apparatus and method for ensuring privacy in contents sharing system
CN104460365A (zh) * 2014-10-29 2015-03-25 小米科技有限责任公司 设备控制方法和装置
CN105100102A (zh) * 2015-07-31 2015-11-25 宇龙计算机通信科技(深圳)有限公司 一种权限配置以及信息配置方法和装置
CN105577494A (zh) * 2016-01-04 2016-05-11 青岛海信电器股份有限公司 一种智能家居设备的控制方法、装置和系统
CN108121210A (zh) * 2017-11-20 2018-06-05 珠海格力电器股份有限公司 家电设备的权限分配方法和装置、存储介质、处理器
CN108541378A (zh) * 2015-04-30 2018-09-14 三星电子株式会社 服务共享设备和方法
CN109151012A (zh) * 2018-08-11 2019-01-04 宁波亿拍客网络科技有限公司 一种推送方式运行程序方法及其运用方法、相关方法

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130247223A1 (en) * 2012-03-16 2013-09-19 Korea Advanced Institute Of Science And Technology Apparatus and method for ensuring privacy in contents sharing system
CN104460365A (zh) * 2014-10-29 2015-03-25 小米科技有限责任公司 设备控制方法和装置
CN108541378A (zh) * 2015-04-30 2018-09-14 三星电子株式会社 服务共享设备和方法
CN105100102A (zh) * 2015-07-31 2015-11-25 宇龙计算机通信科技(深圳)有限公司 一种权限配置以及信息配置方法和装置
CN105577494A (zh) * 2016-01-04 2016-05-11 青岛海信电器股份有限公司 一种智能家居设备的控制方法、装置和系统
CN108121210A (zh) * 2017-11-20 2018-06-05 珠海格力电器股份有限公司 家电设备的权限分配方法和装置、存储介质、处理器
CN109151012A (zh) * 2018-08-11 2019-01-04 宁波亿拍客网络科技有限公司 一种推送方式运行程序方法及其运用方法、相关方法

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114168235A (zh) * 2020-08-20 2022-03-11 华为技术有限公司 一种功能切换入口的确定方法与电子设备
CN114168235B (zh) * 2020-08-20 2024-06-11 华为技术有限公司 一种功能切换入口的确定方法与电子设备
CN114173184A (zh) * 2020-09-10 2022-03-11 华为终端有限公司 投屏方法和电子设备
CN114268617B (zh) * 2020-09-15 2023-09-01 华为技术有限公司 电子设备及其定位控制方法和介质
CN114268617A (zh) * 2020-09-15 2022-04-01 华为技术有限公司 电子设备及其定位控制方法和介质
WO2022111728A1 (zh) * 2020-11-30 2022-06-02 华为技术有限公司 一种获取设备控制权的方法与通信系统
CN114584412A (zh) * 2020-11-30 2022-06-03 华为技术有限公司 一种获取设备控制权的方法与通信系统
CN112486032A (zh) * 2020-12-25 2021-03-12 广州金匙信息科技有限公司 一种基于云计算的智能家居控制系统
CN113589699A (zh) * 2021-07-21 2021-11-02 青岛海尔科技有限公司 智能家居场景控制方法及装置
CN115708344A (zh) * 2021-08-18 2023-02-21 华为技术有限公司 设备之间分享遥控器的方法、发送端设备和接收端设备
WO2023020393A1 (zh) * 2021-08-18 2023-02-23 华为技术有限公司 设备之间分享遥控器的方法、发送端设备和接收端设备
WO2023051643A1 (zh) * 2021-09-30 2023-04-06 华为技术有限公司 设备控制方法、相关装置及通信系统
WO2023216892A1 (zh) * 2022-05-12 2023-11-16 华为技术有限公司 场景设置方法及电子设备
CN115174266B (zh) * 2022-08-09 2024-05-10 宁波奥克斯电气股份有限公司 空调控制方法、装置、电子设备和计算机可读存储介质
CN115174266A (zh) * 2022-08-09 2022-10-11 宁波奥克斯电气股份有限公司 空调控制方法、装置、电子设备和计算机可读存储介质
CN115955508A (zh) * 2023-03-10 2023-04-11 边无际(北京)科技有限公司 一种大规模多品类网络摄像头识别及状态感知方法及装置
CN115955508B (zh) * 2023-03-10 2023-06-02 边无际(北京)科技有限公司 一种大规模多品类网络摄像头识别及状态感知方法及装置
CN117061266A (zh) * 2023-10-13 2023-11-14 荣耀终端有限公司 智能家居设备的控制方法和控制装置
CN117061266B (zh) * 2023-10-13 2024-04-02 荣耀终端有限公司 智能家居设备的控制方法和控制装置

Also Published As

Publication number Publication date
CN113272745B (zh) 2022-12-06
CN113272745A (zh) 2021-08-17

Similar Documents

Publication Publication Date Title
WO2020155014A1 (zh) 智能家居设备分享系统、方法及电子设备
WO2020192714A1 (zh) 显示设备控制页面的方法、相关装置及系统
US11450322B2 (en) Speech control method and electronic device
US11385857B2 (en) Method for displaying UI component and electronic device
WO2021013158A1 (zh) 显示方法及相关装置
US20220124100A1 (en) Device Control Method and Device
WO2021164445A1 (zh) 一种通知处理方法、电子设备和系统
CN113885759A (zh) 通知消息处理方法、设备、系统及计算机可读存储介质
WO2020224447A1 (zh) 一种在联系人中添加智能家居设备的方法及系统
WO2021052204A1 (zh) 基于通讯录的设备发现方法、音视频通信方法及电子设备
CN116360725B (zh) 显示交互系统、显示方法及设备
CN114115770B (zh) 显示控制的方法及相关装置
WO2022078295A1 (zh) 一种设备推荐方法及电子设备
US20220124607A1 (en) Method for Accessing Network by Smart Home Device and Related Device
WO2024045801A1 (zh) 用于截屏的方法、电子设备、介质以及程序产品
WO2020062014A1 (zh) 一种向输入框中输入信息的方法及电子设备
WO2020216144A1 (zh) 一种添加邮件联系人的方法和电子设备
WO2023142941A1 (zh) 播放记录显示方法及相关设备
WO2023142935A1 (zh) 应用组件管理方法及相关设备
US12028300B2 (en) Method, apparatus, and system for sending pictures after thumbnail selections
WO2023207799A1 (zh) 消息处理方法和电子设备
US20230208790A1 (en) Content sharing method, apparatus, and system
CN117014167A (zh) 云手机授权信息获取方法以及相关设备、存储介质
CN116560536A (zh) 应用组件设置方法及相关设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19913416

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19913416

Country of ref document: EP

Kind code of ref document: A1