Method and device for setting home devices in a batch - Patents.com
The method uses dual antennas on an electronic device to configure multiple smart home devices in batch by transmitting registration credentials at a short range, addressing the complexity and inefficiency of individual device configuration, thereby enhancing setup efficiency and user experience.
Patent Information
- Application Number
- JP2023517876
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-09-18
- Filing Date
- 2021-08-18
- Publication Date
- 2024-11-06
- Estimated Expiration
- 2041-08-18
AI Technical Summary
The existing process of configuring and registering smart home devices with a wireless local area network is complex and time-consuming, especially when multiple devices need to be configured in succession, leading to low efficiency in network configuration and registration.
A method and device for configuring multiple smart home devices in batch using an electronic device with dual antennas, where one antenna operates at a shorter range to transmit registration credentials and network settings directly to devices within close proximity, simplifying the process and reducing the time required for network configuration and registration.
The method significantly reduces the time and enhances the efficiency of network configuration and registration for multiple smart home devices by allowing simultaneous setup through a short-range transmission, improving user experience and reducing the complexity of the process.
Smart Images

Figure 0007578358000008 
Figure 0007578358000009 
Figure 0007578358000010
Abstract
Description
[Technical field]
[0001] TECHNICAL FIELD Embodiments of the present application relate to the field of communications, and in particular to a method and device for configuring home devices in batches. [Background technology]
[0002] With the development of electronic information technology, smart home devices are gradually penetrating into people's daily life. Smart home devices may use the home as a platform to integrate home devices related to home life to control over wireless local area networks such as Wireless Fidelity (Wi-Fi) to improve home security, convenience, and comfort.
[0003] Specifically, a smart home application (APP) for controlling a home device may be installed on a user's electronic device (such as a mobile phone or a tablet computer). A prerequisite for controlling a home device by using a management APP is that the home device is configured through a network and registered in a home cloud of the smart home APP.
[0004] The network configuration and registration process of a home device may include the following four steps: (1) the home device enters a state to be networked and broadcasts a Wi-Fi signal to be discovered; (2) the electronic device (such as a mobile phone) scans and discovers the home device by using the smart home APP; (3) the mobile phone establishes a Wi-Fi connection to the home device and sends the SSID and password of the wireless local area network to the home device, so that the home device connects to the router based on the SSID and password; (4) the mobile phone uses the smart home APP to help the home device register to the home cloud of the smart home, and the home cloud sends the device identifier ( Device ID ) Assign to home devices.
[0005] By using the above solution, each home device needs to perform the above four steps to complete network configuration and registration. As a result, the network configuration and registration process of the home device is complicated and takes a long time. Furthermore, when batch network configuration and registration is performed for multiple home devices, the mobile phone needs to sequentially perform network configuration and registration for each of the multiple home devices in succession. As a result, the efficiency of network configuration and registration of the home device is low. Summary of the Invention
[0006] The present application provides a method and device for configuring home devices in batches to simplify the network configuration and registration process of home devices, reduce the time spent on network configuration and registration of home devices, and further improve the efficiency of performing batch network configuration and registration for home devices.
[0007] According to a first aspect, the present application provides a method for configuring home devices in a batch. The method may be used by an electronic device to perform a batch network configuration for a plurality of home devices. The electronic device has a first APP installed thereon, and the electronic device includes a first antenna and a second antenna. The transmission distance of the first antenna is a first distance, and the transmission distance of the second antenna is a second distance, and the first distance is shorter than the second distance.
[0008] In the method, the electronic device may display a first interface of a first APP. The first interface is used to trigger the electronic device to perform batch network configuration for a plurality of home devices. The electronic device may display a second interface in response to a first operation of the user on the first interface. The second interface is used to set the number and at least one device type of home devices to be network configured. The device type of the home devices is classified based on the function of the home devices. Then, the electronic device receives and displays a number M set by the user on the second interface, and receives and displays device types of the M home devices set by the user on the second interface, where M≧2 and M is a positive integer. Then, the electronic device may request a cloud server to assign registration credentials to the M home devices in response to a second operation of the user on the second interface. The cloud server is a server of the first APP. Finally, the electronic device may broadcast a first message by using a first antenna. The first message includes the registration credentials, a service set identifier (SSID) of the wireless local area network, and an access password. The first message is used to instruct the M home devices to access the wireless local area network and register with the cloud server based on the registration credentials.
[0009] It should be noted that before the method of the present application is executed, a user can control all the home devices to be networked to be powered on and place all the home devices to be networked together. After being powered on, the home devices to be networked may activate their wireless communication modules to receive network configuration data from the electronic device. Since all the home devices to be networked are placed together, it may be convenient for a user to use the electronic device to approach the home devices to be networked individually and perform batch network configuration for the home devices such that the electronic device approaches the home devices in a short distance (e.g., within 30 millimeters) in a short time (e.g., 1 second).
[0010] According to the method of the present application, the electronic device can be supported in performing batch network configuration for M home devices at a time. For example, all M home devices whose distance to the electronic device is shorter than a first distance can receive a first message broadcast by the electronic device by using a first antenna. In this way, the M home devices can access the wireless local area network based on the SSID and access password in the first message, and register with the cloud server based on the registration credentials.
[0011] According to the methods of the present application, the network configuration registration process of a home device may be simplified, the time spent on network configuration and registration for a home device may be reduced, and the efficiency of performing batch network configuration registration for home devices may be improved.
[0012] In a possible design of the first aspect, the method further includes the electronic device displaying a third interface in response to a second user operation on the second interface, the third interface including a first icon for each of the M home devices and first status information for each home device, the first icon being a generic icon for home devices of the same device type, and the first status information being used to indicate that the home device is in a state to be network configured.
[0013] A third interface displayed on the electronic device in response to the second operation includes a generic icon for each of the M home devices. Home devices of different device types have different generic icons. For example, an air conditioner and a refrigerator have different generic icons. The electronic device displays the generic icons of the home devices to allow a user to easily identify the device types of the home devices to be network configured.
[0014] The third interface further includes status information of each home device, for example, first status information. A user can use the first status information to determine that the home device is in a state to be network configured.
[0015] In another possible design manner of the first aspect, after the electronic device broadcasts the first message by using the first antenna, the method in this embodiment of the present application may further include: the electronic device receives a first response message from the first home device, and the electronic device updates the first status information of the first home device on the third interface to second status information in response to the first response message, where the second status information is used to indicate that the network configuration is being performed for the first home device. The first response message is sent after the first home device receives the first message, and the first home device is any one of the M home devices.
[0016] The first response message is sent after the first home device receives the first message. After receiving the first message, the first home device can access the wireless local area network based on the SSID and access password in the first message, and then register with the cloud server based on the registration credentials. In other words, after the first home device receives the first message, network configuration and registration can be performed, that is, network configuration is performed for the first home device. Therefore, after receiving the first response message, the electronic device can update the first status information of the first home device to the second status information to indicate that network configuration is being performed for the first home device.
[0017] In this design manner, the electronic device can timely update the network setting status of the home device. For example, the first status information (e.g., "to be network set up") is timely updated to the second status information (e.g., "network setting in progress"). In this way, it can be convenient for the user to know the network setting progress of the home device, and the user experience in the network setting process of the home device can be improved.
[0018] In another possible design aspect of the first aspect, after the first home device is successfully registered with the cloud server, the cloud server may send first setting information of the first home device to the electronic device, so that the electronic device can update the icon and status information of the first home device.
[0019] Specifically, the electronic device may receive first setting information of the first home device from the cloud server. The first setting information includes a second icon of the first home device. The first setting information is determined based on a product type of the first home device, and home devices of different product types have different first setting information. The second icon is a dedicated icon of a home device of the same product type. Then, the electronic device updates the first icon of the first home device in the third interface to the second icon, and updates the first status information or the second status information of the first home device to the third status information. The third status information is used to indicate that the network configuration for the home device is successful, and the second status information is used to indicate that the network configuration for the first home device is being performed.
[0020] Home devices of different product types have different second icons (i.e., dedicated icons). The electronic device updates the first icon (i.e., generic icon) of the first home device in the third interface to the second icon (i.e., dedicated icon) so that the user can easily identify the product type of the first home device.
[0021] In this design manner, the electronic device can timely update the network setting status of the home device. For example, the second status information (e.g., "Network setting in progress") is timely updated to the third status information (e.g., "Network setting successful"). In this way, it can be convenient for the user to know the network setting progress of the home device, and the user experience in the network setting process of the home device can be improved.
[0022] In another possible design manner of the first aspect, the method further includes, when the electronic device does not receive the first configuration information of the first home device from the cloud server within a second preset time after broadcasting the first message, the electronic device updates the first status information or the second status information of the first home device on the third interface to fourth status information, where the fourth status information is used to indicate that the network configuration for the first home device has failed.
[0023] It should be understood that when the electronic device does not receive the first setting information of the first home device from the cloud server within a second preset period after broadcasting the first message, the network setting of the first home device is relatively likely to fail. In this case, the electronic device updates the first status information or the second status information of the first home device to the fourth status information to indicate to the user that the network setting for the first home device has failed. In this way, the user can know the network setting status of the first home device in time and decide whether to perform the network setting for the first home device again.
[0024] In another possible design manner of the first aspect, the first setting information further includes interface elements and control instructions used by the electronic device to remotely control a control page of the first home device through the first APP. The method in this embodiment of the present application further includes the electronic device controlling the first home device by using the first APP according to the control page and control instructions of the first home device.
[0025] For example, the electronic device may display a control page of the first home device, interact with a user by using the control page of the first home device, and send control commands to the first home device to control the first home device.
[0026] In another possible design manner of the first aspect, the electronic device may further receive a third operation performed by a user on the third interface, the third operation is used to trigger the electronic device to exit from displaying the third interface, and in response to the third operation, the electronic device stops broadcasting the first message. In other words, after exiting from the third interface, the electronic device may stop broadcasting the first message to terminate the network configuration process of the M home devices.
[0027] In another possible design manner of the first aspect, the electronic device may request the cloud server to assign registration credentials to the M home devices in the following manner: in response to the second operation, the electronic device sends a first request to the cloud server, the first request is used to request the cloud server to assign registration credentials to the M home devices, and the electronic device receives a first response from the cloud server, the first response including the registration credentials.
[0028] In another possible design manner of the first aspect, the electronic device may determine whether the electronic device stores first icons corresponding to device types of the M home devices, and if the electronic device stores first icons corresponding to device types of the M home devices, the electronic device may display the first icons stored on the electronic device.
[0029] In another possible design manner of the first aspect, the electronic device may obtain second setting information including first icons of the M home devices from the cloud server. Specifically, the first request includes indication information of device types of the M home devices, and the first request is further used to obtain the first icons of the M home devices from the cloud server based on the indication information of device types of the M home devices. The first response further includes second setting information of the M home devices, and the second setting information includes the first icons of the M home devices.
[0030] In another possible design aspect of the first aspect, the electronic device may obtain second setting information including first icons of the M home devices from the cloud server only if the electronic device does not store first icons corresponding to the device types of the M home devices.
[0031] In another possible design manner of the first aspect, the first request further includes the number M of home devices to be networked. In this way, it may be determined from the cloud server that the M home devices to be networked need to register with the cloud server by using the registration credential. In this case, when the (M+1)th home device registers with the cloud server by using the registration credential, the cloud server may reject the registration request of the (M+1)th home device.
[0032] In another possible design manner of the first aspect, the first request further includes a first account used by the electronic device to log in to the first APP. The registration request further includes the first account.
[0033] Including a first account in the first request, the first account may be used by the cloud server to authenticate the home device requesting registration and to determine whether a registration request initiated by the home device is triggered by an electronic device using the first account to log in.
[0034] In another possible design manner of the first aspect, the electronic device may actively obtain the first setting information of the home device whose network setting is successful from the cloud server. Specifically, before the electronic device receives the first setting information of the first home device from the cloud server, the method of the present application further includes the electronic device sending a second request to the cloud server, where the second request includes a first account used by the electronic device to log in to the first APP.
[0035] The electronic device receiving first setting information of the first home device from the cloud server includes the electronic device receiving a second response from the cloud server, the second response including a device identifier and the first setting information of the home device that registers with the cloud server by using the first account, and the home device that registers with the cloud server by using the first account includes the first home device.
[0036] According to a second aspect, the present application provides a method for configuring home devices in a batch. The method may be used by an electronic device to perform a batch network configuration for a plurality of home devices. The electronic device includes a first antenna and a second antenna. A transmission range of the first antenna is a first distance, and a transmission range of the second antenna is a second distance, where the first distance is shorter than the second distance. method applies to home devices.
[0037] In the above method, the home device may receive a first message from the electronic device. The first message is sent by the electronic device by using a first antenna, and the first message includes a registration credential and an SSID and an access password of the wireless local area network. The home device may access the wireless local area network by using the SSID and the access password, and then send a registration request to the cloud server by using the wireless local area network to request to register with the cloud server. The registration request includes the registration credential, an indication information of a product type of the home device, and a product serial number (SN) of the home device.
[0038] In the present application, all home devices whose distance to the electronic device is shorter than the first distance can receive the first message. In this way, all home devices that can receive the first message can execute the method of the second aspect for network configuration and registration. In other words, according to the method of the present application, the electronic device can be supported in performing batch network configuration for M home devices at a time. According to the method of the present application, the network configuration registration process of the home device can be simplified, the time spent on network configuration and registration for the home device can be reduced, and the efficiency of performing batch network configuration registration for the home device can be improved.
[0039] In another possible design aspect of the second aspect, the method further includes, after receiving the first message, the home device sending a first response message to the electronic device, where the first response message is used to indicate that network configuration is being performed for the home device.
[0040] In another possible design manner of the second aspect, the first message further includes a first account used by the electronic device to log in to the first application APP, and the registration request further includes the first account.
[0041] For the advantageous effects that can be achieved by the method of the second aspect and any possible design aspects of the second aspect, please refer to the advantageous effects in the first aspect and any possible design aspects of the first aspect, and the details will not be described again here.
[0042] According to a third aspect, the present application provides a method for configuring home devices in a batch. The method may be applied to a cloud server. The cloud server may receive a first request from an electronic device, the first request including device types of the M home devices, where M≧2, where M is a positive integer; the cloud server assigns first registration credentials to the M home devices in response to the first request, and obtains second configuration information of the M home devices based on the device types of the M home devices, the second configuration information of the M home devices including first icons of the M home devices, where the first icons are generic icons of home devices of the same device type; the cloud server sends a first response to the electronic device, the first response including: No. 1 The registration request includes registration credentials and second setting information of the M home devices, and the cloud server receives a registration request from a first home device, the first home device being any one of the M home devices, the registration request includes the second registration credentials and a product serial number SN of the home device, and the cloud server assigns a device identifier to the first home device if authentication of the first home device is successful, and the successful authentication of the first home device includes the second registration credentials being the same as the first registration credentials.
[0043] In a possible design manner of the third aspect, the registration request further includes indication information of a product type of the home device. After the cloud server assigns a device identifier to the first home device, the method further includes the cloud server sending the device identifier and first setting information of the first home device to the electronic device, the first setting information includes a second icon of the first home device, the first setting information is determined based on the product type of the first home device, home devices of different product types have different first setting information, and the second icon is a dedicated icon of the home device of the same product type.
[0044] In another possible design manner of the third aspect, the first request further includes a first account used by the electronic device to log in to the first APP, and the registration request further includes a second account, the second account being obtained by the first home device from the first message from the electronic device. Successful authentication of the first home device further includes the second account being the same as the first account.
[0045] In another possible design manner of the third aspect, before the cloud server sends the device identifier and the first setting information of the first home device to the electronic device, the method of the present application further includes the cloud server receiving a second request from the electronic device, the second request including the first account. The cloud server sending the device identifier and the first setting information of the first home device to the electronic device includes the cloud server sending a second response to the electronic device, the second response including the device identifier and the first setting information of the home device that registers with the cloud server by using the first account, and the home device that registers with the cloud server by using the first account includes the first home device.
[0046] In another possible design manner of the third aspect, successful authentication of the first home device further includes at least one of the following conditions: the second registration credentials are within a preset validity period; and the first home device is the (Mi)th home device to register with the cloud server by using the first account, where i≧0, i is an integer, and the first request further includes a number M.
[0047] For the advantageous effects that can be achieved by the method in the third aspect and any possible design aspects of the third aspect, please refer to the advantageous effects in the first aspect and any possible design aspects of the first aspect, and the details will not be described again here.
[0048] According to a fourth aspect, the present application provides a method for configuring home devices in a batch. The method may be used by an electronic device to perform a batch network configuration for a plurality of home devices. The electronic device has a first APP installed thereon, and the electronic device includes a first antenna and a second antenna. The transmission distance of the first antenna is a first distance, and the transmission distance of the second antenna is a second distance, and the first distance is shorter than the second distance.
[0049] In the above method, the electronic device may display a first interface of a first APP, the first interface being used to trigger the electronic device to perform batch network configuration for a plurality of home devices, and the electronic device may display a second interface in response to a first user operation on the first interface, the second interface being used to set a number and at least one device type of the home devices to be network configured, the device type being classified based on the function of the home device.
[0050] Then, the electronic device may receive and display a number M set by the user on the second interface, and receive and display device types of the M home devices set by the user on the second interface, where M≧2 and M is a positive integer. The electronic device may request the cloud server to assign registration credentials to the M home devices in response to the user's second operation on the second interface. The cloud server is a server of the first APP.
[0051] Thereafter, the electronic device may broadcast a first message by using the first antenna. The first message includes the registration credential and a service set identifier SSID and an access password of the wireless local area network. A distance between each of the M home devices and the electronic device is shorter than the first distance. Therefore, the M home devices may receive the first message. After receiving the first message from the electronic device, any one of the M home devices (e.g., the first home device) may access the wireless local area network by using the SSID and the access password.
[0052] Then, the first home device may send a registration request to the cloud server by using the wireless local area network, where the registration request includes the registration credential and the SN of the home device. After the cloud server receives the registration request from the first home device, if the authentication of the first home device is successful, the cloud server may assign a device identifier to the first home device. In this way, the network configuration and registration process for the home device can be completed. The successful authentication of the first home device indicates that the home device is registered. , Nobori The registration credentials in the registration request are the same as the registration credentials assigned to the M home devices by the cloud server.
[0053] In a possible design manner of the fourth aspect, the registration request further includes an indication of a product type of the home device. The method further includes the electronic device displaying a third interface in response to the second operation. The third interface includes a first icon of each of the M home devices and first status information of each home device, the first icon being a generic icon of home devices of the same device type, and the first status information being used to indicate that the home device is in a state to be network configured.
[0054] After the cloud server assigns a device identifier to the first home device, the method of the present application further includes the cloud server sending the device identifier and first setting information of the first home device to the electronic device, the electronic device receiving the first setting information of the first home device from the cloud server, and the electronic device updating the first icon of the first home device to a second icon in the third interface and updating the status information of the first home device to third status information.
[0055] The first setting information includes a second icon of the first home device, the first setting information is determined based on a product type of the first home device, home devices of different product types have different first setting information, and the second icon is a dedicated icon of a home device of the same product type. The third status information is used to indicate that the network setting for the home device is successful, and the second status information is used to indicate that the network setting for the first home device is being performed.
[0056] In another possible design manner of the fourth aspect, after a first home device among the M home devices receives the first message from the electronic device, the method of the present application further includes: the first home device sending a first response message to the electronic device, where the first response message is used to indicate that network configuration is being performed for the home device; the electronic device receiving the first response message from the first home device; and in response to the first response message, the electronic device updating first status information of the first home device on the third interface to second status information, where the second status information is used to indicate that network configuration is being performed for the first home device.
[0057] The electronic device updating the status information of the first home device to the third status information includes the electronic device updating the second status information of the first home device at the third interface to the third status information.
[0058] In another possible design manner of the fourth aspect, before the electronic device displays the third interface, the method of the present application further includes: the electronic device sending a first request to the cloud server in response to the second operation, the first request including device types of the M home devices; the cloud server receiving the first request from the electronic device; the cloud server assigning registration credentials to the M home devices in response to the first request and obtaining second setting information of the M home devices based on the device types of the M home devices, the second setting information of the M home devices including first icons of the M home devices, the first icons being generic icons for home devices of the same device type; and the cloud server sending a first response to the electronic device, the first response including the registration credentials and the second setting information of the M home devices.
[0059] In another possible design manner of the fourth aspect, the first message further includes a first account used by the electronic device to log in to the first application APP, and the registration request further includes the first account.
[0060] Successfully authenticating the first home device further includes: the first account included in the first request is the same as the first account included in the registration request.
[0061] In another possible design aspect of the fourth aspect, before the cloud server sends the device identifier and the first setting information of the first home device to the electronic device, the method of the present application further includes the electronic device sending a second request to the cloud server, the second request including the first account, and the cloud server receiving the second request from the electronic device.
[0062] The cloud server sending the device identifier and the first setting information of the first home device to the electronic device may specifically include the cloud server sending a second response to the electronic device, where the second response includes the device identifier and the first setting information of the home device that registers with the cloud server by using the first account, and the home device that registers with the cloud server by using the first account includes the first home device.
[0063] The electronic device receiving the first configuration information of the first home device from the cloud server includes the electronic device receiving a second response from the cloud server.
[0064] In another possible design manner of the fourth aspect, successful authentication of the first home device further includes at least one of the following conditions: the registration credentials are within a preset validity period; and the first home device is the (Mi)th home device to register with the cloud server by using the first account, where i≧0, i is an integer, and the first request further includes a number M.
[0065] In another possible design manner of the fourth aspect, the method of the present application further includes, when the electronic device does not receive the first configuration information of the first home device from the cloud server within a second preset time after broadcasting the first message, the electronic device updates the status information of the first home device on the third interface to fourth status information, the fourth status information being used to indicate that the network configuration for the first home device has failed.
[0066] For the advantageous effects that can be achieved by the method in the fourth aspect and any possible design aspects of the fourth aspect, please refer to the advantageous effects in the first aspect and any possible design aspects of the first aspect, and the details will not be described again here.
[0067] According to a fifth aspect, the present application provides an electronic device, the electronic device having a first APP installed thereon, the electronic device comprising a memory, a display, a communication module, and one or more processors. The memory, the display, and the communication module are coupled to the processor. The display is configured to display an image or an interface generated by the processor, the communication module is configured to communicate with other devices, and the memory is configured to store data in the electronic device. The memory is further configured to store computer program code. The computer program code includes computer instructions, which when executed by the processor, can cause the electronic device to perform the method of the first aspect or the fourth aspect and any possible design manner of the first aspect or the fourth aspect performed by the electronic device.
[0068] According to a sixth aspect, the present application provides a home device. The home device includes a memory, a communication module, and one or more processors. The communication module includes a first antenna and a second antenna. A transmission range of the first antenna is a first distance, and a transmission range of the second antenna is a second distance, the first distance being shorter than the first distance. The memory and the communication module are coupled to the processor. The communication module is configured to communicate with other devices, and the memory is configured to store data in the home device. The memory is further configured to store computer program code. The computer program code includes computer instructions. When the computer instructions are executed by the processor, the home device can execute the method performed by the home device in the second aspect or the fourth aspect and any possible design manner of the second aspect or the fourth aspect.
[0069] According to a seventh aspect, the present application provides a cloud server. The cloud server includes a memory, a communication module, and one or more processors. The memory and the communication module are coupled to the processor. The communication module is configured to communicate with other devices, and the memory is configured to store data in the cloud server. The memory is further configured to store computer program code. The computer program code includes computer instructions. When the computer instructions are executed by the processor, the cloud server can perform the method performed by the cloud server in the third aspect or the fourth aspect and any possible design manner of the third aspect or the fourth aspect.
[0070] According to an eighth aspect, the present application provides a chip system. The chip system is applied to an electronic device including a display, a communication module, and a memory. The chip system includes one or more interface circuits and one or more processors. The interface circuits and the processors are interconnected by using lines. The interface circuits are configured to receive signals from the memory and transmit signals to the processor. The signals include computer instructions stored in the memory. When the processor executes the computer instructions, the electronic device can perform the method of the first aspect or the fourth aspect and the method performed by the electronic device in any possible design manner of the first aspect or the fourth aspect.
[0071] According to a ninth aspect, the present application provides a chip system. The chip system is applied to a home device including a communication module and a memory. The communication module includes a first antenna and a second antenna, the first antenna has a transmission distance of a first distance, the second antenna has a transmission distance of a second distance, and the first distance is shorter than the second distance. The chip system includes one or more interface circuits and one or more processors. The interface circuits and the processors are interconnected by using lines. The interface circuits are configured to receive signals from the memory and transmit signals to the processor. The signals include computer instructions stored in the memory. When the processor executes the computer instructions, the home device can perform the method performed by the home device in the second aspect or the fourth aspect and any possible design manner of the second aspect or the fourth aspect.
[0072] According to a tenth aspect, the present application provides a chip system. The chip system is applied to a cloud server including a communication module and a memory. The chip system includes one or more interface circuits and one or more processors. The interface circuits and the processors are interconnected by using lines. The interface circuits are configured to receive signals from the memory and send signals to the processor. The signals include computer instructions stored in the memory. When the processor executes the computer instructions, the electronic device can perform the method performed by the cloud server in the third aspect or the fourth aspect and any possible design manner of the third aspect or the fourth aspect.
[0073] According to an eleventh aspect, an embodiment of the present application provides a computer storage medium. The computer storage medium includes computer instructions, which when executed on a device, can cause the device to perform the method of the first aspect, the second aspect, the third aspect, or the fourth aspect, and any possible design manner of the first aspect, the second aspect, the third aspect, or the fourth aspect. The device can be an electronic device, a home device, or a cloud server as described above.
[0074] According to a twelfth aspect, an embodiment of the present application provides a computer program product. When the computer program product is executed on a computer, the computer can execute the method of the first aspect, the second aspect, the third aspect, or the fourth aspect, and any possible design manner of the first aspect, the second aspect, the third aspect, or the fourth aspect. The computer can be an electronic device, a home device, or a cloud server as described above.
[0075] For advantageous effects that can be achieved by the electronic device according to the fifth aspect, the home device according to the sixth aspect, the cloud server according to the seventh aspect, the chip system according to the eighth to tenth aspects, the computer storage medium according to the eleventh aspect, and the computer program product according to the twelfth aspect, please refer to the advantageous effects in the first aspect and any possible design aspects of the first aspect, and the details will not be described again here. [Brief description of the drawings]
[0076] [Figure 1] 1 is a schematic diagram of a communication system to which a method for configuring home devices in batches according to an embodiment of the present application is applied; [Diagram 2] FIG. 1 is a schematic diagram of a hardware structure of a mobile phone according to an embodiment of the present application. [Diagram 3] FIG. 2 is a schematic diagram of a hardware structure of a home device according to an embodiment of the present application. [Figure 4A]FIG. 2 is a schematic diagram of a structure of an antenna and related components according to an embodiment of the present application. [Figure 4B] FIG. 2 is a schematic diagram of another structure of an antenna and related components according to an embodiment of the present application. [Figure 4C] FIG. 2 is a schematic diagram of another structure of an antenna and related components according to an embodiment of the present application. [Figure 4D] FIG. 2 is a schematic diagram of another structure of an antenna and related components according to an embodiment of the present application. [Figure 4E] FIG. 2 is a schematic diagram of the transmission distance of an antenna according to an embodiment of the present application. [Figure 5A] 2 is a flowchart of a method for configuring home devices in a batch according to an embodiment of the present application; [Figure 5B] 2 is a flowchart of a method for configuring home devices in a batch according to an embodiment of the present application; [Figure 5C] 2 is a flowchart of a method for configuring home devices in a batch according to an embodiment of the present application; [Figure 6] FIG. 2 is a schematic diagram of a display interface of a mobile phone 100 according to an embodiment of the present application. [Figure 7A] FIG. 2 is a schematic diagram of another display interface of an electronic device according to an embodiment of the present application. [Figure 7B] FIG. 2 is a schematic diagram of another display interface of an electronic device according to an embodiment of the present application. [Figure 7C] FIG. 2 is a schematic diagram of another display interface of an electronic device according to an embodiment of the present application. [Figure 8A] FIG. 2 is a schematic diagram of another display interface of an electronic device according to an embodiment of the present application. [Figure 8B] FIG. 2 is a schematic diagram of another display interface of an electronic device according to an embodiment of the present application. [Figure 8C] FIG. 2 is a schematic diagram of another display interface of an electronic device according to an embodiment of the present application. [Figure 8D]FIG. 2 is a schematic diagram of another display interface of an electronic device according to an embodiment of the present application. [Figure 8E] FIG. 2 is a schematic diagram of another display interface of an electronic device according to an embodiment of the present application. [Figure 9A] FIG. 2 is a schematic diagram of another display interface of an electronic device according to an embodiment of the present application. [Figure 9B-1] 1 is a flowchart of another method for configuring home devices in a batch according to an embodiment of the present application; [Figure 9B-2] 1 is a flowchart of another method for configuring home devices in a batch according to an embodiment of the present application; [Figure 9B-3] 1 is a flowchart of another method for configuring home devices in a batch according to an embodiment of the present application; [Figure 9C] 4 is a flowchart of a method for performing authentication by a cloud server according to an embodiment of the present application. [Figure 10A] FIG. 2 is a schematic diagram of another display interface of an electronic device according to an embodiment of the present application. [Figure 10B] FIG. 2 is a schematic diagram of another display interface of an electronic device according to an embodiment of the present application. [Figure 11] FIG. 2 is a schematic diagram of another display interface of an electronic device according to an embodiment of the present application. [Figure 12A] FIG. 2 is a schematic diagram of another display interface of an electronic device according to an embodiment of the present application. [Figure 12B] FIG. 2 is a schematic diagram of another display interface of an electronic device according to an embodiment of the present application. [Figure 13] FIG. 2 is a schematic diagram of another display interface of an electronic device according to an embodiment of the present application. [Figure 14] FIG. 2 is a schematic diagram of another display interface of an electronic device according to an embodiment of the present application. [Figure 15A] FIG. 2 is a schematic diagram of another display interface of an electronic device according to an embodiment of the present application. [Figure 15B]FIG. 2 is a schematic diagram of another display interface of an electronic device according to an embodiment of the present application. [Figure 16] FIG. 2 is a schematic diagram of another display interface of an electronic device according to an embodiment of the present application. [Figure 17] FIG. 1 is a schematic diagram of the structure of a chip system according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0077] The terms "first" and "second" mentioned below are merely intended for descriptive purposes and should not be understood as an indication or implication of the relative importance of the technical features shown or an implicit indication of the number of the technical features shown. Thus, features qualified by "first" and "second" may explicitly or implicitly include one or more features. In the description of the embodiments, unless otherwise specified, "plurality of" means two or more.
[0078] An embodiment of the present application provides a method for configuring home devices in a batch, which is used by an electronic device that interacts with multiple home devices (e.g., home devices) to perform network configuration and registration for the multiple home devices.
[0079] 1 is a schematic diagram of a communication system in which the method for configuring home devices in a batch is applied according to an embodiment of the present application. As shown in FIG. 1, the communication system may include an electronic device 100 (e.g., a mobile phone), a plurality of home devices 200, a router 120, and a cloud server 130.
[0080] A first APP (also called smart home APP, home APP, or management APP) configured to manage home devices is installed on the electronic device 100. The electronic device 100 may support batch network configuration and registration for multiple home devices 200 by using the first APP. The cloud server 130 is a server of the first APP and is configured to manage multiple home devices 200. In this embodiment of the present application, the home devices are internet of things (IoT) devices, and the cloud server 130 is an IoT server.
[0081] The router 120 may provide a wireless local area network, such as a home wireless local area network. The electronic device 100 may access the wireless local area network provided by the router 120 and may further obtain the SSID and access password of the wireless local area network. The electronic device 100 may further send network configuration data and registration data to the home device 200.
[0082] For example, the network setting data may include the SSID and access password of the wireless local area network, and the registration data may include a token used for authentication between the home device 200 and the cloud server 130, the SN of the home device 200, etc.
[0083] The home device 200 can access the wireless local area network provided by the router 120 by using the SSID and access password, and then register with the cloud server 130 by using the registration data to complete the home device network setup and registration process.
[0084] For example, the home device 200 may be a smart home device such as a smart air conditioner, a smart speaker, a smart light bulb, a smart TV, a smart camera, a smart fan, an electronic cooker, or a body fat scale, etc. The specific form of the home device 200 is not limited here in this embodiment of the present application.
[0085] For example, the electronic device in this embodiment of the present application may be a mobile phone, a tablet computer, a laptop, a wearable device (e.g., a smart watch), a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, or a personal digital assistant (PDA), a device including a display and a short-range communication module, such as an augmented reality (AR) / virtual reality (VR) device. The specific form of the electronic device is not particularly limited in this embodiment of the present application. The speaker may be a smart speaker.
[0086] In this embodiment of the present application, an example in which the electronic device 100 shown in Fig. 1 is a mobile phone is used to describe the structure of the electronic device provided in the embodiment of the present application. As shown in Fig. 2, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headset interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display 194, a subscriber identification module (SIM) card interface 195, and the like.
[0087] The sensor module 180 may include sensors such as 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, an optical proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, and a bone conduction sensor 180M.
[0088] It may be understood that the structure shown in this embodiment does not constitute a specific limitation for the electronic device 100. In some other embodiments, the electronic device 100 may include more or fewer components than shown, or some components may be combined, or some components may be divided, or different component arrangements may be used. The components shown may be implemented by hardware, software, or a combination of software and hardware.
[0089] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DPS), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be separate components or may be integrated into one or more processors.
[0090] The controller may be the brain and command center of the electronic device 100. The controller may generate operation control signals according to instruction operation codes and time series signals, so as to complete the control of instruction reading and instruction execution.
[0091] A memory may also be disposed in the processor 110 and configured to store instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that have been used by the processor 110 or are used periodically. When the processor 110 needs to use the instructions or data again, the processor may retrieve the instructions or data directly from the memory. This avoids repeated accesses, reduces the latency of the processor 110, and improves system efficiency.
[0092] In some embodiments, the processor 110 may include one or more interfaces, which may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, a universal serial bus (USB) interface, and / or the like.
[0093] It may be understood that the interface connection relationships between modules shown in this embodiment are merely an example for the purposes of description and do not constitute limitations on the structure of the electronic device 100. In some other embodiments of the present application, the electronic device 100 may alternatively use an interface connection scheme different from that of the above embodiment, or may use a combination of multiple interface connection schemes.
[0094] The charging management module 140 is configured to receive a charging input from a charger. The charger may be a wireless charger or a wired charger. In some embodiments of wired charging, the charging management module 140 may receive the charging input of the wired charger through the USB interface 130. In some embodiments of wireless charging, the charging management module 140 may receive the wireless charging input by using a wireless charging coil of the electronic device 100. The charging management module 140 may further provide power to the electronic device by using the power management module 141 when charging the battery 142.
[0095] The power management module 141 is configured to connect to 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 to provide power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, etc. The power management module 141 may be further configured to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage or impedance). In some other embodiments, the power management module 141 may alternatively be located in the processor 110. In some other embodiments, the power management module 141 and the charging management module 140 may alternatively be located in the same device.
[0096] The wireless communication functions of the electronic device 100 may be implemented by antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, a modem processor, a baseband processor, and so on.
[0097] Antenna 1 and Antenna 2 are configured to transmit and receive electromagnetic signals. Each antenna of electronic device 100 may be configured to cover one or more communication frequency bands. Different antennas may also be multiplexed to improve antenna utilization. For example, Antenna 1 may be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas may be used with tuning switches.
[0098] The mobile communication module 150 may provide a solution provided to the electronic device 100 for wireless communication including 2G, 3G, 4G, 5G, etc. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc.
[0099] Antenna 1 of electronic device 100 is coupled to mobile communication module 150. Mobile communication module 150 may receive electromagnetic waves through antenna 1, perform processing such as filtering and amplifying on the received electromagnetic waves, and send the electromagnetic waves to a modem processor for demodulation. Mobile communication module 150 may further amplify signals modulated by the modem processor and convert the signals to electromagnetic waves radiated by antenna 1. In some embodiments, at least some of the functional modules in mobile communication module 150 may be located in processor 110. In some embodiments, at least some of the functional modules of mobile communication module 150 may be located in the same device as at least some of the modules of processor 110.
[0100] The wireless communication module 160 may provide a solution applied to the electronic device 100 for wireless communication, such as wireless local area network (WLAN), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC) technology, infrared (IR) technology, etc. For example, the WLAN may be a wireless fidelity (Wi-Fi) network.
[0101] The antenna 2 of the electronic device 100 is coupled to the wireless communication module 160. The wireless communication module 160 may be one or more components incorporating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves by the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signal, and sends the processed signal to the processor 110. The wireless communication module 160 may further receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into an electromagnetic wave to be radiated by the antenna 2.
[0102] Antenna 2 may include one or more antennas. The one or more antennas may be classified into a first antenna (called a weak antenna or a very short-range antenna) and a second antenna (called a normal antenna, also called a strong antenna). A transmission distance (e.g., a first distance) for transmitting a wireless signal by the first antenna is shorter than a transmission distance (e.g., a second distance) for transmitting a wireless signal by the second antenna. The second antenna and the first antenna may be switched.
[0103] The radio transmission power when the electronic device 100 operates by using the first antenna is smaller than the radio transmission power when the electronic device 100 operates by using the second antenna. The first distance is the distance covered by the radio transmission power when the first antenna operates. The second distance is the distance covered by the radio transmission power when the second antenna operates.
[0104] The second antenna and the first antenna implement network communication with other devices (e.g., the home device 200) by using the wireless communication module of the electronic device 100. Figure 4A is a schematic diagram of an antenna structure of the electronic device 100 according to an embodiment of the present application.
[0105] In an example, the second antenna and the first antenna may be two different antennas. The electronic device 100 shown in FIG. 2 may be the electronic device 40 (e.g., a mobile phone) shown in FIG. 4A. The electronic device 40 may include a microcontroller unit (MCU) 404, a wireless communication module 403, an antenna 401, and an antenna 402.
[0106] The antenna 401 shown in Fig. 4A is the second antenna, and the antenna 402 is the first antenna. The antenna 2 shown in Fig. 2 may include the antenna 401 and the antenna 402 shown in Fig. 4A. The wireless communication module 160 shown in Fig. 2 may be the wireless communication module 403 shown in Fig. 4A. The MCU 404 shown in Fig. 4A may be implemented by the processor 110 in Fig. 2. The wireless communication module 403 may be a Wi-Fi chip, and the radio frequency input / output (RFIO) pin of the wireless communication module 403 is connected to the antenna 401 or the antenna 402 by using a single-pole double-throw switch.
[0107] The MCU 404 may include a central processing unit, memory, counters, clocks, interrupts, a serial peripheral interface (SPI), a UART interface, a universal serial bus interface, etc. The UART interface is a universal serial data bus and is configured to perform asynchronous communication. The bus may be a two-way communication bus, converting data to be transmitted between serial and parallel communication.
[0108] In some embodiments, the MCU 404 exchanges information with the wireless communication module 403 by using a UART interface. The wireless communication module 403 is configured to implement wireless communication between the electronic device 100 and other devices (e.g., the home device 200). For a detailed description of the wireless communication module 403, please refer to the detailed description of the wireless communication module 160 in the above embodiment. The details will not be described again here.
[0109] The antenna 401 and the antenna 402 are configured to transmit and receive electromagnetic waves. Furthermore, the wireless communication module 403 converts the electromagnetic waves received from the antenna 401 or the antenna 402 into signals and sends the signals to the MCU 404 for processing, or the wireless communication module 403 receives signals to be transmitted from the MCU 404 and converts the signals into electromagnetic waves that are radiated by using the antenna 401 or the antenna 402. In this embodiment of the present application, the antenna 402 The first distance to transmit a signal is the antenna 401 The signal is transmitted over a distance shorter than the second.
[0110] In some embodiments, MCU 404 may control switching between antenna 401 and antenna 402. When electronic device 100 uses antenna 401, if the distance between electronic device 100 and another device (e.g., home device 200) is shorter than a second distance, the other device may use antenna 401 to implement communication between the other device and electronic device 100. 401 When the electronic device 100 uses the antenna 402, if the distance between the electronic device 100 and another device (e.g., a mobile phone) is shorter than a first distance, the electronic device 100 can receive the signal transmitted by the electronic device 100 by using the antenna 402 to implement communication between the other device and the electronic device 100.
[0111] For example, the electronic device 100 may include an antenna 402 The electronic device 100 may transmit the first message to the surrounding devices by using an antenna 401 The electronic device 100 may receive the first response message and the setting information (e.g., the second setting information and the first setting information) sent by the other device by using the antenna 401 or the antenna 402. The electronic device 100 may further connect to a Wi-Fi router by using the antenna 401 or the antenna 402.
[0112] In some other embodiments, the second antenna and the first antenna may share a portion of the cabling, for example as described in the embodiment shown in FIGS. 4B-4D. Please refer to .
[0113] In this embodiment of the present application, the electronic device implements ultra-short-range communication by using the first antenna. In this embodiment of the present application, the dual antennas (first antenna and second antenna) of the electronic device 100 may be switched by using a radio frequency switch. Physically, the first antenna and the radio frequency switch (the first antenna shown by the dashed line in Figures 4B to 4D) may both be located in the shielding cover, or the first antenna may be located on the chip. Figures 4B to 4D are schematic diagrams of three structures of the first antenna.
[0114] The purpose of the first antenna in this embodiment of the present application is to shorten the transmission distance as much as possible. The principle of configuring the first antenna may be as follows: (1) Shorten the length of the antenna to reduce the electromagnetic waves radiated into the air; (2) Reducing the radiation efficiency and using resistance to convert some of the electromagnetic radiation into heat energy that is dissipated; (3) It reduces return loss and reflects some of the radio frequency energy back to the chip.
[0115] The first antenna may be specifically implemented as follows: (1) Shorten the antenna; (2) Cutting a point in the path of the true antenna or grounding the point with a resistor, inductor, or capacitor; (3) Use a shielding cover.
[0116] It should be understood that the specific implementations of the first antenna (1) and (2) may be implemented on a PCB substrate or in a chip.
[0117] It should be further understood that the function of the shielding cover is to block the path along which electromagnetic waves are radiated by the antenna to the receiver, so as to achieve the purpose of attenuating the radiation.
[0118] It should be further understood that shortening the antenna means that the first antenna is shorter than the second antenna. The structures of the three first antennas are shown in Figures 4B to 4D. The first antennas are shown in dashed lines in Figures 4B to 4D. The structure of the second antenna in Figures 4B to 4D includes a filter circuit (e.g., a π-type circuit), a matching circuit (e.g., a π-type circuit), and an antenna body outside the matching circuit (e.g., the antenna body can be a metal cabling) that is connected by using an RFIO pin. The first antenna a shown in dashed lines in Figure 4B, the first antenna b shown in dashed lines in Figure 4C, and the first antenna c shown in dashed lines in Figure 4D have different lengths, but are each shorter than the second antenna. The filter circuit is configured to prevent interference, and the matching circuit is configured to match the second antenna.
[0119] For example, as shown in FIG. 4B, the first antenna may be directly disconnected by using a radio frequency input / output (RFIO) pin of the Wi-Fi chip in the shielding cover. The first antenna may include an RFIO pin, a cabling, and a first-way switch of a two-way switch (the first-way switch is not connected to any component). The two-way switch refers to a switch between the RFIO and the filter circuit, and the RFIO pin can be connected to or disconnected from the filter circuit by using the switch. The first-way switch is a switch connected to the RFIO pin and disconnected from the filter circuit as shown in FIG. 4B. It should be understood that the two-way switch in this embodiment of the present application may be a single-pole double-throw switch.
[0120] For example, as shown in FIG. 4C, the first antenna b may be connected to ground by using a matching component (e.g., a resistor) through the RFIO of the Wi-Fi chip in the shielding cover. The first antenna b may include an RFIO pin, a cabling, a two-way switch, a first-way switch (the first-way switch is connected to the resistor), and a resistor. Some electromagnetic radiation may be converted to heat energy that is consumed through the resistor ground, so as to reduce the radiation efficiency of the first antenna b. The two-way switch refers to a switch between the RFIO pin and each of the resistor and the filter circuit. By using the switch, the RFIO pin can be connected to the resistor and disconnected from the filter circuit, or the RFIO pin can be disconnected from the resistor and connected to the filter circuit. The first-way switch is a switch connected to the resistor and disconnected from the filter circuit.
[0121] For example, as shown in FIG. 4D, the first antenna c may be connected to a matching component (e.g., a resistor) by using an RFIO pin of a Wi-Fi chip in a shielding cover, and then connected to ground after passing through a chip matching filter circuit. The first antenna c may include an RFIO pin, cabling, a filter circuit, a first-way switch of a two-way switch (the first-way switch is connected to the resistor), and a resistor. c To reduce the radiation efficiency of the shielding cover, some electromagnetic radiation may be converted into heat energy to be consumed through the resistor ground. The two-way switch refers to a switch between the filter circuit inside the shielding cover and the resistor and the matching circuit outside the shielding cover, respectively. By using the switch, the filter circuit inside the shielding cover can be connected to the resistor and disconnected from the matching circuit outside the shielding cover, or the filter circuit inside the shielding cover can be disconnected from the resistor and connected to the matching circuit outside the shielding cover. The first-way switch is a switch that connects the filter circuit inside the shielding cover and the resistor.
[0122] It should be understood that the second antenna of Figures 4B-C may include an antenna body connected to the RFIO pin, cabling, a second-way switch of the two-way switch, a filter circuit, a matching circuit, and an antenna body connected to the outside of the matching circuit. The second-way switch is a switch that connects the RFIO pin and the filter circuit.
[0123] 4D may include an RFIO pin, a filter circuit, a cabling, a second-way switch of the two-way switch, a matching circuit, and an antenna body connected outside the matching circuit. The second-way switch is a switch that connects the filter circuit inside the shielding cover and the matching circuit outside the shielding cover.
[0124] It should be understood that the wireless communication module 403 shown in FIG. 4A may be the Wi-Fi chip of FIGS. 4B to 4C.
[0125] The above different first antenna structures cooperate with different Tx power settings of the Wi-Fi chip, so that different ultra-short range communication requirements (eg, from 10 cm to 2 m) can be satisfied.
[0126] For example, Table 1 shows the communication distances of several different first antenna configurations in conjunction with different transmit powers. [Table 1]
[0127] Due to the characteristics of the physical components in the chip, the difference between the maximum transmission power and the minimum transmission power of the antenna is related. When the minimum transmission power of the electronic device 100 is lowered to a very low value, the maximum transmission power is also lowered. In this way, the distance requirement during normal operation is not met. In this embodiment of the present application, since different smart devices have different structures and have different safety performance requirements for the smart devices, the manufacturers of the smart devices may use different first antenna structures and transmission powers to ensure the communication distance of the smart devices. For example, in the case of different smart air conditioner manufacturers, the thickness of the housing of the smart air conditioner may be different. In this case, when the first antenna structure and transmission power are the same, the communication distance at which the smart air conditioner can be found may also be different. Different smart device manufacturers may test and obtain the safe distance at which the smart device can be found based on the structure of the smart device, the structure of the first antenna, and the specific transmission power.
[0128] With reference to the above two examples, an example is used in which the second distance is 5 meters and the first distance is 0.3 meters. When the electronic device 100 uses the second antenna (i.e., a strong antenna), if the distance between the electronic device 100 and the other device (e.g., the home device 200) is shorter than the second distance (e.g., the other device is at position 1 shown in FIG. 4E), the electronic device 100 can communicate with the other device (e.g., a mobile phone) when the electronic device 100 uses the first antenna (i.e., a weak antenna), if the distance between the electronic device 100 and the other device (e.g., the home device 200) is shorter than the first distance (e.g., the other device is at position 2 shown in FIG. 4E), the electronic device 100 can communicate with the other device (e.g., a mobile phone).
[0129] The electronic device 100 performs display functions through a GPU, a display 194, an application processor, etc. The GPU is a microprocessor for image processing and is connected to the display 194 and the application processor. The GPU is configured to perform mathematical and geometric calculations and render images. The processor 110 may include one or more GPUs that execute program instructions to generate or modify display information. The display 194 may be a touch screen, and the display 194 is configured to display images, videos, etc.
[0130] The electronic device 100 may implement the picture taking function by using an ISP, a camera 193, a video codec, a GPU, a display 194, an application processor, etc. In some embodiments, the ISP may be located in the camera 193. The camera 193 is configured to capture still images or video. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.
[0131] The external memory interface 120 may be used to connect to an external storage card, such as a microSD card, to expand the storage capabilities of the electronic device 100. The external storage card communicates with the processor 110 through the external memory interface 120 to perform data storage functions. For example, the external memory card stores files such as music and video files.
[0132] The internal memory 121 may be configured to store computer executable program code. The executable program code includes instructions. The processor 110 executes the instructions stored in the internal memory 121 to perform various functional applications and data processing of the electronic device 100. For example, in this embodiment of the present application, the processor 110 may execute the instructions stored in the internal memory 121, which may include a program storage area and a data storage area.
[0133] The program storage area may store an operating system, applications required by at least one function (e.g., audio playback function or image playback function), etc. The data storage area may store data generated when the electronic device 100 is in use (e.g., audio data and address books), etc. Additionally, the internal memory 121 may include high speed random access memory, or may include non-volatile memory, such as at least one disk storage device, flash memory, or universal flash storage (UFS).
[0134] The electronic device 100 may implement audio functions, such as music playback and recording, by using an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headset jack 170D, an application processor, and so on.
[0135] The audio module 170 is configured to convert digital audio information to analog audio signals for output, and to convert analog audio input to digital audio signals. The headset jack 170D is configured to connect to a wired headset. The headset interface 170D may be the USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of USA (CTIA) standard interface.
[0136] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or may be touch buttons. The motor 191 may generate a vibration prompt. The motor 191 may be configured to provide an incoming call vibration prompt or a touch vibration prompt. The indicator 192 may be an indicator light and may be configured to indicate a charging status and a battery power change, and may further be configured to indicate messages, missed calls, notifications, and the like. The SIM card interface 195 is configured to connect to a SIM card. The SIM card may be inserted into or removed from the SIM card interface 195 to effect attachment and detachment from the electronic device 100. The electronic device 100 may support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 may support a nano SIM card, a micro SIM card, a SIM card, and the like.
[0137] 3 is a schematic diagram of the structure of a home device 200 according to an embodiment of the present application. As shown in FIG. 3, the home device 200 may include a processor 301, an external memory interface 302, an internal memory 303, a USB interface 305, a power management module 304, an antenna a, a wireless communication module 308, and other functional modules. The other functional modules are configured to implement related functions of the home device 200. For example, a smart speaker may include an audio module 307, a loudspeaker 307A, a display 306, and so on. Alternatively, a smart TV may include an audio module 307, a loudspeaker 307A, a display 306, and so on. As another example, a smart air conditioner may include a cooling module, and so on, and a smart light bulb may include a light-emitting module, and so on.
[0138] The processor 301 may include one or more processing units. For example, the processor 301 may include an AP, a modem processor, a GPU, an ISP, a controller, a memory, a video codec, a DSP, a baseband processor, and / or an NPU. The different processing units may be separate components or may be integrated into one or more processors. A memory may further be disposed in the processor 301 and configured to store instructions and data.
[0139] The power management module 304 is configured to connect to a power source. The power management module 304 may be further connected to the processor 301, the internal memory 303, the display 306, the wireless communication module 308, etc. The power management module 304 receives a power input through the USB interface 305 and provides power to the processor 301, the internal memory 303, the display 306, the wireless communication module 308, etc. In some embodiments, the power management module 304 may alternatively be located in the processor 301.
[0140] The wireless communication function of the home device 200 may be implemented by an antenna, a wireless communication module 308, etc. The wireless communication module 308 may be applied to the home device 200 to provide wireless communication solutions including WLAN (e.g., Wi-Fi network), Bluetooth (BT), GNSS, etc.
[0141] The wireless communication module 308 may be one or more components incorporating at least one communication processing module. The wireless communication module 308 receives electromagnetic waves through the antenna a, performs frequency modulation and filtering on the electromagnetic wave signal, and sends the processed signal to the processor 301. The wireless communication module 308 may also receive signals to be transmitted from the processor 301, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves that are radiated by the antenna. In some embodiments, the antenna a of the home device 200 is coupled to the wireless communication module 308, so that the home device 200 can communicate with a network and other devices by using wireless communication technology. For example, the wireless communication module 308 in this embodiment of the present application may be a Bluetooth module or a Wi-Fi module. The wireless communication module 308 is configured to transmit data with devices such as the electronic device 100, the router 120, and the cloud server 130.
[0142] The antenna a may include one or more antennas. The one or more antennas may be classified into a first antenna (weak antenna) and a second antenna (normal antenna, also called strong antenna). A transmission distance (e.g., first distance) of transmitting a wireless signal by the first antenna is shorter than a transmission distance (e.g., second distance) of transmitting a wireless signal by the second antenna. The second antenna and the first antenna may be switched. The second antenna and the first antenna implement network communication with other devices (e.g., mobile phones) by using a wireless communication module in the home device 200.
[0143] In one example, the second antenna and the first antenna may be two different antennas, as shown in Figure 4A, or the second antenna and the first antenna may share a portion of the cabling, as shown in Figures 4B-4D.
[0144] Home device 200 may perform display functions by using a GPU, a display 306, an application processor, etc. The GPU is a microprocessor for image processing and is connected to the display 306 and the application processor. The GPU is configured to perform mathematical and geometric calculations and render images. Processor 301 may include one or more GPUs that execute program instructions to generate or modify display information.
[0145] Display 306 is configured to display images, videos, etc. Display 306 includes a display panel. The display panel may be an LCD, an OLED, an AMOLED, an FLED, a mini LED, a micro LED, a micro OLED, a QLED, etc. For example, in this embodiment of the present application, display 306 may be configured to display image content corresponding to audio data played by home device 200, an operation interface of home device 200, etc.
[0146] A video codec is configured to compress or decompress digital video. Home device 200 may support one or more video codecs. Thus, home device 200 may play or record video in multiple encoding formats, e.g., MPEG1, MPEG2, MPEG3, and MPEG4.
[0147] The internal memory 303 may be configured to store computer executable program code. The executable program code includes instructions. The processor 301 executes the instructions stored in the internal memory 303 to perform various functional applications and data processing of the home device 200. The internal memory 303 may include a program storage area and a data storage area. The program storage area may store an operating system, applications required by at least one function (e.g., audio playback function or image playback function), and the like. The data storage area may store data generated when the electronic device 200 is in use (e.g., audio playback record), and the like. Furthermore, the internal memory 303 may include a high-speed random access memory, or may include a non-volatile memory, such as at least one disk storage device, flash memory, or UFS.
[0148] The external memory interface 302 connects to an external memory card, such as a microSD card, Home Devices 200 An external memory card may be used to extend the storage capabilities of the processor 301. The external memory card communicates with the processor 301 through the external memory interface 302 to perform data storage functions. For example, the external memory card stores files such as music and video files.
[0149] Home device 200 may perform audio functions, such as music generation and recording and voice sampling, through audio module 307, speaker 307A, microphone 307B, application processor, etc.
[0150] The audio module 307 is configured to convert digital audio information to analog audio signals for output, and is also configured to convert analog audio input to digital audio signals. The audio module 307 may further be configured to encode and decode audio signals. In some embodiments, the audio module 307 may be located in the processor 301, or some functions of the audio module 307 may be located in the processor 301. The speaker 307A, also called a "loudspeaker," is configured to convert audio electrical signals into acoustic signals. The microphone 307B, also called a "microphone" or "mic," is configured to collect acoustic signals and convert the acoustic signals into electrical signals.
[0151] All the methods of the above embodiments may be implemented in an electronic device comprising the above hardware structure and in a home device comprising the above hardware structure.
[0152] The embodiment of the present application provides a method for configuring home devices in batches. The method can be applied to the interaction between the electronic device 100 (e.g., mobile phone 100), the home device 200, the router 120, and the cloud server 130 shown in Fig. 1 to complete the network configuration and registration process of the home device 200. The mobile phone 100 has a first APP installed, and the cloud server 130 is the IoT cloud server of the first APP. As shown in Fig. 5A to Fig. 5C, the method in this embodiment of the present application includes steps S501 to S515.
[0153] Before performing steps S501 to S515, the user may control all the home devices to be networked to be powered on, and place all the home devices to be networked together. After being powered on, the home devices to be networked may start up their wireless communication modules to receive network setting data from the mobile phone 100. Since all the home devices to be networked are placed together, it may be convenient for the user to use the mobile phone 100 to approach the home devices to be networked individually, and perform batch network setting for the home devices so that the mobile phone 100 approaches the home devices in a short distance (e.g., within 30 millimeters) in a short time (e.g., 1 second).
[0154] S501: The mobile phone 100 displays a first interface of a first APP, and the first interface is used to trigger the mobile phone 100 to perform batch network configuration for multiple home devices.
[0155] For example, the first APP in this embodiment of the present application may be an application corresponding to the icon "Home" 601 shown in Fig. 6. As shown in Fig. 6, the mobile phone 100 may receive a tap operation performed by a user on the icon "Home" 601. In response to the tap operation, the mobile phone 100 may launch the first APP and display the home page 701 (i.e., the first interface 701) of the first APP shown in Fig. 7A. The first interface 701 includes an option, e.g., a "Batch Network Configuration" option 703, that is used to trigger the mobile phone 100 to perform batch network configuration for multiple home devices.
[0156] Furthermore, the first interface 701 may further include a "My Home Devices" option 702. The "My Home Devices" option 702 is used to trigger the mobile phone 100 to control the home devices for which the network configuration is successful. For example, in response to a tapping operation (e.g., a clicking operation) performed by a user on the "My Home Devices" option 702, the mobile phone 100 may display a home device management interface 1501 as shown in FIG. 15A. As shown in FIG. 15A, the home device management interface 1501 includes management options for a smart camera and a smart refrigerator. It can be seen from FIG. 15A that the network configuration for the smart camera and the smart refrigerator is successful. In this embodiment of the present application, the network configuration is successful means that the home device has accessed the wireless local area network provided by the router 120 and registered with the cloud server 130.
[0157] S502: In response to a first operation on the first interface, the mobile phone 100 displays a second interface, which is used to set the number and device types of home devices to be networked.
[0158] The first operation may be a tap operation performed by the user on an option in the first interface used to trigger the mobile phone 100 to perform a batch network configuration for multiple home devices. For example, the first operation may be a tap operation (e.g., a click operation) performed by the user on the "Batch Network Configuration" option 703 in the first interface 701 shown in Fig. 7A. Alternatively, the first operation may be any gesture, such as a pre-set gesture, e.g., an L-shape gesture, an S-shape gesture, or a √-shape gesture, input by the user on the first interface.
[0159] In response to a first operation performed by a user on the "Batch Network Configuration" option 703 shown in Fig. 7A, the mobile phone 100 may display a second interface 704 shown in Fig. 7B. The second interface 704 is used to set the device type and the number M of home devices to be network configured. For example, the second interface 704 may include a setting item for the number of devices to be network configured, e.g., a setting item 708 for "Number of Devices to be Network Configured", and a setting item for at least one type of device to be network configured, e.g., a setting item 706 for "Type 1 of Devices to be Network Configured" and a setting item 707 for "Type 2 of Devices to be Network Configured".
[0160] The "Number of devices to be networked" setting item 708 is used to set the number of home devices to be networked. The "Type 1 of devices to be networked" setting item 706 and the "Type 2 of devices to be networked" setting item 707 are used to set the device types of the home devices to be networked.
[0161] The device type of the home device may be determined based on the function of the home device. For example, based on the functions of various home devices, the device types of the home devices may include air conditioners, washing machines, lighting, floor mopping robots, rice cookers, televisions, fans, etc.
[0162] The above device types may be referred to as device categories of home devices, and each device category (i.e., Device Type) may be further classified into multiple product types. The product types may be referred to as device subcategories of home devices. For example, home devices of the same device type may be classified into home devices of different product types based on the manufacturer and / or product model.
[0163] For example, for a home device with device type air conditioner, there may be home devices with multiple product types, such as air conditioners with product model a manufactured by manufacturer 1, air conditioners with product model b manufactured by manufacturer 1, air conditioners with product model c manufactured by manufacturer 2, and air conditioners with product model d manufactured by manufacturer 3.
[0164] In summary, the product type of a home device not only indicates the device type of the home device, but may also indicate information such as the manufacturer and / or product model of the home device.
[0165] It can be understood that for home devices of the same product type, a manufacturer may manufacture multiple home devices. The product serial number SN of the home device can uniquely identify each home device. For example, multiple air conditioners of the same product type have different SNs.
[0166] S503: The mobile phone 100 receives and displays the number M of home devices to be networked and the device types set by the user in the second interface.
[0167] For example, in the following implementation, the method in this embodiment of the present application is described by using an example in which the mobile phone 100 performs batch network configuration for the lights (including smart light bulb 1, smart light bulb 2, smart light bulb 3, and smart desk light) shown in Figure 1. In this example, the device type of the home device to be network configured is "lighting" and the number M=4.
[0168] For example, as shown in FIG. 8A, the mobile phone 100 may receive and display the number of home devices to be networked, 4, set by the user in the setting item 708 "Number of home devices to be networked," and may receive and display the device type of the home device to be networked, "Lighting," set in the setting item 706 "Type of home device to be networked 1."
[0169] Optionally, the second interface may further include a task name setting item for the batch network configuration. For example, the task name setting item is a "Task Name" setting item 705 shown in Fig. 7B. The task name setting item is configured to set a task name of this batch network configuration.
[0170] A user can set the task name of the batch network configuration to Task 1, Task 2, or Task 3. Alternatively, when a user performs network configuration for home devices of various device types in a batch based on the device type of the home device, the user may set the task name of the batch network configuration based on the device type, such as smart speaker, light, smart refrigerator, or smart washing machine. For example, as shown in FIG. 8A, the task name set in the "Task Name" setting item 705 is "Light". Alternatively, when a user performs batch network configuration for home devices of various device types based on the installation area of the home device, the user may set the task name for the batch network configuration based on the area where the home device currently needs network configuration is located, such as bedroom, living room, restaurant, etc. For example, as shown in FIG. 8B, the task name set in the "Task Name" setting item 705 is "Living Room".
[0171] It should be noted that the second interface includes at least one type setting for the device to be network configured, such as a setting for "type 1 of device to be network configured" 706 and a setting for "type 2 of device to be network configured" 707. A user can set different device types for different devices to be network configured.
[0172] For example, assume that a user wants to perform batch network configuration for three smart air conditioners and two smart speakers shown in Fig. 1 at once. In this case, the mobile phone 100 may receive the device type "air conditioner" (not shown) selected by the user in the setting item 706 of "Type 1 of device to be network configured", receive and display the "speaker" (not shown) selected by the user in the setting item 707 of "Type 2 of device to be network configured", and display the number 5 (not shown) entered by the user in the setting item 708 of "Number of home devices to be network configured" in the second interface 704 shown in Fig. 7B.
[0173] In other words, the mobile phone 100 can receive one or more device types set by the user in the second interface. Specifically, the mobile phone 100 can perform batch network configuration for home devices of the same device type at one time, or perform batch network configuration for multiple home devices of different device types at one time, which is not limited in this embodiment of the present application.
[0174] It should be noted that only home devices having the same network configuration process can be configured in a batch with the same network configuration process. For example, home devices of the same device type have the same network configuration process and can be configured in a batch with the same network configuration process. Home devices of different device types may have the same network configuration process and can be configured in a batch with the same network configuration process. Most home devices have the same network configuration process and can be configured in a batch with the same network configuration process. However, some home devices have a network configuration process different from that of other home devices and cannot be configured in a batch with the same network configuration process with other home devices. The reason why different home devices have different network configuration processes may include the following two aspects.
[0175] (1) Different home devices support different Wi-Fi types so that they have different network setup processes. For example, some home devices support the Wi-Fi 6 standard, while most home devices currently support the Wi-Fi 4 standard and / or the Wi-Fi 5 standard. The network setup process of a home device supporting the Wi-Fi 6 standard is different from the network setup process of a home device supporting the Wi-Fi 4 standard and / or the Wi-Fi 5 standard.
[0176] Some home devices not only need to register with the cloud server 130 as IoT devices, but also need to be used as other functional devices to provide services to users or other devices. For example, some routers not only function as IoT devices to register with the cloud server 130, but also function as gateways to access the network and provide wireless local area networks to other home devices. The network configuration process of this type of router is different from that of other home devices.
[0177] In order to avoid network configuration failures caused by different network configuration processes of home devices of multiple device types set by the user in the second interface, in the following implementation, the mobile phone 100 may prompt the user to select home devices having the same network configuration process to perform batch network configuration.
[0178] The second interface includes a type setting item of at least one device to be network configured. The type setting item of the at least one network device to be network configured includes a first type setting item and a second type setting item, for example, a setting item 706 of "type 1 of device to be network configured" and a setting item 707 of "type 2 of device to be network configured" shown in FIG. 7B, FIG. 8A, or FIG. 8B.
[0179] In implementation, the mobile phone 100 may receive and display the first device type set by the user in the first type setting item. For example, the mobile phone 100 may receive and display the first device type "lighting" set by the user in the setting item 706 of "type 1 of device to be network configured" shown in FIG. 8B.
[0180] Then, the mobile phone 100 receives a tap operation performed by the user on the drop-down menu button of the second type setting item. In response to the tap operation, the mobile phone 100 may display multiple options of the second device type. The network configuration process of multiple home devices of the second device type is the same as the network configuration process of the home devices of the first device type, and batch network configuration can be performed in one network configuration process.
[0181] For example, the mobile phone 100 may receive a tap operation performed by a user on a drop-down menu button of the setting item 707 of "Device type 2 to be network configured" shown in Fig. 8B. In response to the tap operation, the mobile phone 100 may display a device type selection window 801 shown in Fig. 8C. The device type selection window 801 includes a plurality of second device type options, such as an air conditioner option, a washing machine option, a refrigerator option, and a television option. The network configuration process of the air conditioner, the washing machine, the refrigerator, and the television is the same as the network configuration process of the light, so that batch network configuration can be performed in a one-time network configuration process.
[0182] Optionally, the device type selection window 801 may further include prompt information: "The following device types are available for batch network setup with lighting."
[0183] In this implementation, the mobile phone 100 may provide the user with an option of a device type that can be used for batch network setup together with the home device of the first device type set in the first type setting item in the second type setting item. In this way, the user may set the device type that can be used for batch network setup together with the home device of the first device type in the second type setting item. In this way, the success rate of batch network setup may be increased.
[0184] In another implementation, the mobile phone 100 may receive and display a first device type set by a user in the first type setting item. Then, the mobile phone 100 receives a tap operation performed by the user on a drop-down menu button of the second type setting item. In response to the tap operation, the mobile phone 100 may display a plurality of options of a third device type. The mobile phone 100 may receive a selection operation performed by the user on a fourth device type option among the plurality of third device type options. The fourth device type is one of the plurality of third device types. A network configuration process of a home device of the fourth device type is different from a network configuration process of a home device of the first device type, and batch network configuration cannot be performed in a one-time network configuration process. In response to the selection operation performed by the user on the fourth device type option, the mobile phone 100 may send first prompt information. The first prompt information is used to notify the user that a network configuration process of a home device of the fourth device type is different from a network configuration process of a home device of the first device type. The first prompt information may further prompt the user to reset the device type in the second type setting item.
[0185] For example, the mobile phone 100 may receive a tap operation performed by a user on a drop-down menu button of the setting item 707 of "Device type 2 to be network configured" shown in FIG. 8B. In response to the tap operation, the mobile phone 100 may display a device type selection window 802 shown in FIG. 8D. The device type selection window 802 includes a plurality of third device type options, such as an air conditioner option, a router option, a refrigerator option, and a television option. The network configuration process of the air conditioner, the refrigerator, and the television is the same as the network configuration process of the light, so that batch network configuration may be performed in a one-time network configuration process. However, the network configuration process of the router may be different from the network configuration process of the light, so that batch network configuration may not be performed in a one-time network configuration process.
[0186] In response to a selection operation performed by a user on the router option (i.e., the fourth device type option) shown in Fig. 8D, the mobile phone 100 may display the first prompt information 803 shown in Fig. 8E, for example, "There may be a risk of network setting failure in the batch network setting between the router and the light. Please check again." The first prompt information may further include an "OK" button and a "Reset" button. The "OK" button is used to trigger the mobile phone 100 to display the fourth device type in the second type setting item. The "Reset" button is used to trigger the mobile phone 100 to redisplay a plurality of third device type options so that the user can select the device type again.
[0187] In this implementation, when the user sets an option of a device type that has a risk of network configuration failure in the batch network configuration of the home device of the first device type in the second type setting item, prompt information is sent to the user. In this way, the possibility of network configuration failure caused by an inappropriate device type selected by the user can be reduced, and the success rate of the batch network configuration can be increased. Furthermore, the user's network configuration experience can be further promoted.
[0188] In some other embodiments, the second interface may include a code scan control used to trigger the mobile phone 100 to enable a code scan function. A two-dimensional code tag or a barcode tag may be attached to a home device. A user may control the mobile phone 100 to scan the two-dimensional code tag or the barcode tag attached to the home device to be networked. The mobile phone 100 may obtain the device type of the home device to be networked by scanning the two-dimensional code tag or the barcode tag. For example, the setting item 706 of "Device type 1 to be networked" and the setting item 707 of "Device type 2 to be networked" on the second interface may be replaced with a scan control.
[0189] S504: In response to the second operation on the second interface, the mobile phone 100 requests the cloud server 130 to assign registration credentials to the M home devices to be network configured.
[0190] The second operation is used to trigger the mobile phone 100 to register with the cloud server 130 to assign registration credentials to the M home devices to be networked. For example, the second operation can be any gesture, such as a pre-set gesture input by a user on the second interface, for example, an L-shaped gesture, an S-shaped gesture, or a √-shaped gesture. The second operation is different from the above first operation.
[0191] As another example, the second interface includes a button, such as an "OK" button 709 shown in FIG. 7B or FIG. 8A, used to trigger the mobile phone 100 to request the cloud server 130 to assign registration credentials to the M home devices to be networked. In response to a second operation (e.g., a tap operation) performed by a user on the "OK" button 709, the mobile phone 100 may request the cloud server 130 to assign registration credentials to the M home devices to be networked. A "Cancel" button 710 shown in FIG. 7B or FIG. 8A is used to trigger the mobile phone 100 to cancel the batch network configuration task. For example, in response to a tap operation performed by a user on the "Cancel" button 710, the mobile phone 100 may display the first interface 701 shown in FIG. 7A.
[0192] For the specific method of the mobile phone 100 requesting the cloud server 130 to assign the registration credentials to the M home devices to be networked, please refer to the detailed description in the following embodiment. The details will not be described again here.
[0193] S505: The mobile phone 100 displays the third interface and broadcasts the first message by using the weak antenna.
[0194] The first message may be called an ultra-short-range message or a short-range message because it is broadcast by the mobile phone 100 using a weak antenna (i.e., the first antenna). The third interface includes first icons of the M home devices to be networked and first status information of the home devices to be networked. The first status information is used to indicate that the home devices are in a state to be networked, that is, waiting for network configuration. For example, in response to a second operation performed by a user on the second interface (e.g., a tap operation performed by a user on the "OK" button 709 shown in FIG. 8A), the mobile phone 100 may display a third interface 901 shown in FIG. 9A. The third interface 901 includes first status information of the four lights, for example, "network configuration to be performed".
[0195] The first icon of each of the M home devices is obtained based on the device type of the home device. The first icon corresponding to each device type is a generic icon of the home device of this device type. In other words, for home devices of the same device type, the first icons of the home devices are the same. For example, the third interface 901 shown in FIG. 9A includes four first icons of lights, such as first icon 904, first icon 905, first icon 906, and first icon 907. The four lights include three smart light bulbs and one smart desk light shown in FIG. 1. Although the smart light bulb shown in FIG. 1 is different from the smart desk light, the device type of both the smart light bulb and the smart desk light is "lighting", so the four first icons in the third interface 901 are the same.
[0196] In some embodiments, the mobile phone 100 (e.g., the first APP of the mobile phone 100) may pre-store a first icon (i.e., a generic icon) of a home device of each device type. In this way, in response to the second operation, the mobile phone 100 may search for a first icon of a home device of a device type set by a user in the second interface from the pre-stored generic icons of home devices of multiple device types, and then the mobile phone 100 may display a third interface including the first icon.
[0197] For example, the mobile phone 100 may pre-store generic icons for home devices of the various device types shown in Table 2. [Table 2]
[0198] In some other embodiments, in response to the second operation, the mobile phone 100 may obtain, from the cloud server 130, first icons of the home devices of the device type set by the user in the second interface.
[0199] Specifically, in response to the above second operation, the mobile phone 100 may send instruction information of the device type set by the user in the second interface to the cloud server 130. After receiving the instruction information of the device type, the cloud server 130 may send second setting information (also referred to as general setting information) of the home device of the device type to the mobile phone 100.
[0200] The general setting information may alternatively be referred to as a general profile. The cloud server 130 stores general profiles of home devices of multiple device types. The general setting information (e.g., general profile) of the home devices of each device type may include a general identifier (i.e., a first identifier) of the home devices of this device type.
[0201] Optionally, the general profile of a home device of each device type may further include other setting information of the home device of this device type, which may include information such as icons of basic functions of the home device of this device type. For example, the other setting information of a home device whose device type is "lighting" may include an on / off icon, a brightness adjustment icon, etc. As another example, the other setting information of a home device whose device type is "air conditioner" may include an on / off icon, a temperature adjustment icon, etc.
[0202] In some other embodiments, when requesting the cloud server 130 to assign registration credentials to the M home devices to be network configured, the mobile phone 100 may obtain from the cloud server 130 a general profile of the home devices of the device type set by the user in the second interface.
[0203] In this embodiment, in response to a second operation on the second interface, the mobile phone 100 may perform a neighborhood aware network (NAN) broadcast and network configuration process. Specifically, steps S504 and S505 may be replaced by steps S1 to S4 shown in Figures 9B-1 and 9B-2. That is, the above NAN broadcast and network configuration process may include steps S1 to S4.
[0204] S1: The mobile phone 100 sends a first request to the cloud server 130 in response to a second operation on the second interface. The first request includes an indication of the device type and a first account set by the user on the second interface.
[0205] The first request is used to request the cloud server 130 to assign registration credential tokens to the M home devices of the above device type. The registration credential tokens are used to perform authentication when the M home devices of the above device type register with the cloud server 130.
[0206] S2: The cloud server 130 receives a first request from the mobile phone 100, assigns registration credentials 1 to the M home devices of the above device type, and stores the first account, the device type, the registration credentials 1, and the correspondence between the first account, the device type, and the registration credentials 1.
[0207] The cloud server 130 may assign the same registration credential to multiple home devices for which the batch network configuration is executed at one time. For example, the cloud server 130 may assign the same registration credential 1 to the M home devices of the above device types. However, for home devices that do not belong to the same batch network configuration, the cloud server 130 assigns different registration credentials to those home devices. For example, the cloud server 130 may store the APP accounts, device types, and registration credentials shown in Table 3, and the correspondence between the APP accounts, device types, and registration credentials. [Table 3]
[0208] As shown in Table 3, the electronic device (e.g., tablet computer) of the first APP login account-1 is connected to a home device (e.g., air conditioner) of device type C and a home device (e.g., air conditioner) of device type B. Home DevicesWhen the tablet computer of the first APP login account-1 executes batch network configuration for a home device of device type D (e.g., a speaker), the registration credential assigned by the cloud server 130 to the air conditioner and the washing machine for the current batch network configuration is Token 2. When the tablet computer of the first APP login account-1 executes batch network configuration for a home device of device type D (e.g., a speaker), the registration credential assigned by the cloud server 130 to the speaker for the current batch network configuration is Token 3. Token 3 is different from Token 2.
[0209] When an electronic device (e.g., the mobile phone 100) of the first APP login account-2 (e.g., the above-mentioned first account) executes a batch network configuration for a home device (e.g., a light) of device type A, for this batch network configuration, illumination The registration credential assigned by cloud server 130 to is Token 1 (i.e., Registration Credential 1 above). Token 1 is different from Token 2, which is different from Token 3.
[0210] The registration credentials may be randomly generated by the cloud server 130, or the registration credentials may be generated by the cloud server 130 by using a preset algorithm, which is not limited in this embodiment of the present application.
[0211] In some other embodiments, the first request further includes the number M of home devices to be networked. In this embodiment, the cloud server 130 may further store the first account, the above device type, the number M, the registration credential 1, and the correspondence between the first account, the above device type, the number M, and the registration credential 1. For example, the cloud server 130 may store the APP account, the device type, the number of home devices to be networked, the registration credential, and the correspondence between the APP account, the device type, the number of home devices to be networked, and the registration credential shown in Table 4. [Table 4]
[0212] S3: The cloud server 130 sends a first response to the mobile phone 100. The first response includes the second setting information and the registration credential 1.
[0213] The second setting information is general setting information of the home device of the device type set by the user in the second interface, that is, a general profile.
[0214] It should be noted that in this embodiment of the present application, the mobile phone 100 may communicate with the cloud server 130 in an encrypted manner. In other words, in the process of the mobile phone 100 wirelessly communicating with the cloud server 130, all transmitted data is encrypted. In this way, the data security of the wireless communication may be improved. For example, the key or password used by the mobile phone 100 to wirelessly communicate with the cloud server 130 may be negotiated by the mobile phone 100 and the cloud server 130.
[0215] S4: The mobile phone 100 receives the first response, obtains a first icon of the home device to be network configured from the second setting information in the first response, displays a third interface, and broadcasts a first message by using a weak antenna.
[0216] The third interface includes the first icon. The third interface further includes first status information of the home device to be network configured.
[0217] Optionally, the third interface may further include second prompt information. The second prompt information is used to prompt the user to move the mobile phone 100 closer to the home device to be networked. For example, the third interface 901 shown in FIG. 9A may further include second prompt information 908 such as "Place the mobile phone close to the device to be networked."
[0218] Optionally, the third interface may further include indication information used to indicate the number and device types of home devices to be network configured, for example indication information 902 shown in FIG. 9A.
[0219] The first message in this embodiment of the present application (i.e., an ultra-short-range message or a short-range message) may include the SSID and access password of the wireless local area network provided by the router 120, and the registration credential 1. The first message may further include a first account. The first account and the registration credential 1 are used to perform authentication when the home device registers with the cloud server 130.
[0220] For example, the mobile phone 100 may transmit the first message at a high frequency. For example, the mobile phone 100 may transmit K first messages every second. For example, K may be any value, such as 100, 150, 200, 300, 500, or 600.
[0221] In step S505 or S4, the time for the mobile phone 100 to broadcast the first message by using the weak antenna may be determined based on the number M of home devices to be networked. The more the number M of home devices to be networked, the longer the time for the mobile phone 100 to broadcast the first message by using the weak antenna.
[0222] The effective transmission distance over which the mobile phone 100 performs wireless communication by using a weak antenna is a first distance. The effective transmission distance over which the mobile phone 100 performs wireless communication by using a strong antenna is a second distance. For example, the second distance may be any distance such as 5 meters, 3 meters, 4 meters, or 6 meters. The first distance is a distance less than 0.1 meters, such as 3 centimeters, 4 centimeters, or 5 centimeters.
[0223] In other words, when the mobile phone 100 uses a strong antenna, the mobile phone 100 can communicate with the home device if the distance between the mobile phone 100 and the home device is shorter than a second distance. When the mobile phone 100 uses a weak antenna, the mobile phone 100 can communicate with the home device if the distance between the mobile phone 100 and the home device is shorter than a first distance.
[0224] It can be understood that the effective transmission distance of the mobile phone 100 performing wireless communication by using the weak antenna is a first distance (e.g., 0.3 meters). The first message sent by the mobile phone 100 can be received only when the distance between the other device (e.g., the home device 200) and the mobile phone 100 is shorter than the first distance. However, the first message sent by the mobile phone 100 cannot be received when the distance between the other device and the mobile phone 100 is longer than the first distance. After receiving the first message, the other device may access the wireless local area network provided by the router 120 by using the SSID and access password in the first message, or may register with the cloud server 130 by using the registration credential 1 in the first message.
[0225] In this embodiment of the present application, since ultra-short-range communication is used, it can be ensured that the first message (i.e., ultra-short-range message or short-range message) sent by the mobile phone 100 is not received by other devices, and the safety of data between the mobile phone 100 and the home device can be ensured. Furthermore, other devices can be prevented from accessing the wireless local area network provided by the router 120 by using the SSID and access password in the first message, and other devices can be prevented from registering with the cloud server 130 by using the registration credential 1 in the first message, so the safety of user information is protected.
[0226] After step S505, the user may place the mobile phone 100 near the home device 200 to be networked (e.g., the smart light bulb or smart desk lamp shown in FIG. 1) based on the prompt in the third interface. The user may hold the mobile phone 100 near each home device to be networked for 1 to 2 seconds. In this way, all home devices to be networked can receive the first message. In this embodiment of the present application, the mobile phone 100 may be near the home device to be networked means that the distance between the mobile phone 100 and the home device to be networked is 3 to 5 centimeters.
[0227] After the user places the mobile phone 100 near the home device (e.g., smart light bulb 1) to be networked, such that the distance between the mobile phone 100 and the smart light bulb 1 is within a first distance, the smart light bulb 1 may receive the first message sent by the mobile phone 100. After step S505, the method in this embodiment of the present application may further include S506 to S509.
[0228] S506: The smart bulb 1 receives the first message broadcast by the mobile phone 100, and accesses the wireless local area network provided by the router 120 by using the SSID and access password in the first message.
[0229] For how the home device 200 to be networked can access the wireless local area network provided by the router 120 by using the SSID and the access password, please refer to the relevant description in the prior art, and the details will not be described again here.
[0230] In some embodiments, after the smart bulb 1 receives the first message broadcast by the mobile phone 100, or after the smart bulb 1 accesses the wireless local area network provided by the router 120, the method in this embodiment of the present application further includes steps S506' and S506". S506': The smart bulb 1 may send a response message 1 of the first message to the mobile phone 100. The response message 1 is used to indicate that the network configuration is being performed for the smart bulb 1. After receiving the response message 1, the mobile phone 100 executes step S506". S506": The mobile phone 100 updates the first status information of the first icon in the third interface to the second status information. The second status information is used to indicate that the network configuration is being performed for the home device. For example, the mobile phone 100 displays the third interface 1001 shown in FIG. 10A, and the first status information of the first icon 904 in the third interface 1001, "Network configuration to be performed", is updated to the second status information, "Network configuration in progress". Optionally, the mobile phone 100 may further update the indication information indicating the number of home devices to be networked in the third interface. For example, the mobile phone 100 may update the indication information 902 shown in FIG. 9A to the indication information 1002 shown in FIG. 10A.
[0231] In this embodiment, the mobile phone 100 can timely update the network setting status of the home device. For example, the mobile phone 100 can timely update the first status information (e.g., "Network setting to be performed") to the second status information (e.g., "Network setting in progress"). In this way, it can be convenient for the user to know the network setting progress of the home device, and the user experience in the network setting process of the home device can be improved.
[0232] In some other embodiments, the response message 1 may further include an identifier of the smart bulb 1. The identifier of the smart bulb 1 is different from a device identifier (Device ID) assigned to the smart bulb 1 by the cloud server. The identifier of the smart bulb 1 may be an identifier of the smart bulb 1 that can be used to uniquely identify the smart bulb 1 before delivery. For example, the identifier of the smart bulb 1 may be the SN of the smart bulb 1.
[0233] S507: The smart light bulb 1 sends a registration request a to the cloud server 130. The registration request a includes the registration credential 1, the first account, an indication of the product type a of the smart light bulb 1, and the SN of the smart light bulb 1.
[0234] The product type a of the smart bulb 1 is a subtype of the device type of the smart bulb 1. For detailed descriptions of the product type, device type and SN, please refer to the relevant descriptions in the above embodiments. The details will not be described again here.
[0235] S508: The cloud server 130 receives the registration request a and performs authentication for the product type a of the smart bulb 1 and / or the registration credentials 1 based on the first account in the registration request a.
[0236] From the above description, it can be seen that the cloud server 130 stores the registration credentials assigned by the cloud server 130, the APP account requesting to assign the registration credentials, the device type of the home device that should use the registration credentials, and the correspondence between the registration credentials 1, the APP account, and the device type. For example, the cloud server 130 may store the APP accounts, device types, and registration credentials shown in Tables 2 and 3, and the correspondence between the APP account device types and the registration credentials.
[0237] Based on this, as shown in FIG. 9C, the cloud server 130 may perform authentication on the product type and / or registration credentials 1 of the smart bulb 1 based on the first account in the registration request a, which may include steps S(1) to S(8).
[0238] S(1): The cloud server 130 searches the stored APP accounts for the first account in the registration request a.
[0239] After step S(1), if the cloud server 130 finds the first account, it indicates that the electronic device is logged in to the first APP by using the first account to request the cloud server 130 to apply the registration credentials to the home device to be networked. In this case, the cloud server 130 may execute step S(2).
[0240] After step S(1), if the cloud server 130 does not find the first account, it indicates that the electronic device has not logged in to the first APP by using the first account to request the cloud server 130 to apply the registration credentials to the home device to be networked. The first account may be an incorrect account. In this case, the cloud server 130 may perform step S(8) to determine that the authentication is unsuccessful.
[0241] S(2): The cloud server 130 searches the stored registration credentials for the registration credential x corresponding to the first account. After step S(2), the cloud server 130 may execute step S(3).
[0242] S(3): The cloud server 130 determines whether the registration credential 1 in the registration request a is the same as the found registration credential x.
[0243] After step S(3), if the registration credential 1 in the registration request a is the same as the found registration credential x, it indicates that the registration credential 1 is the registration credential assigned by the cloud server 130 to the home device to be network configured. In this case, the cloud server 130 may execute step S(4).
[0244] After step S(3), if the registration credential 1 in the registration request a is different from the found registration credential x, it indicates that the registration credential 1 is not the registration credential assigned by the cloud server 130 to the home device to be network configured. The registration credential 1 is an incorrect credential. In this case, the cloud server 130 may perform step S(8) to determine that the authentication is unsuccessful.
[0245] S(4): Cloud server 130 determines whether registration credential 1 is within a preset validity period.
[0246] The preset validity period of the registration credential refers to a first preset time period starting from the time when the cloud server 130 assigns the registration credential to the home device to be network configured. For example, the first preset time period may be 30 minutes, 15 minutes, 10 minutes, 1 hour, 2 hours, 3 hours, etc. The first preset time period may be preset, or the first preset period may be set by a user.
[0247] When allocating the registration credential 1 to the home device to be network configured, the cloud server 130 may set a timestamp to record a start time within the preset validity period of the registration credential 1. The cloud server 130 may perform step S(4), look up the timestamp of the registration credential 1, and determine whether the registration credential 1 is within the preset validity period based on the current time, the start time recorded in the timestamp, and the first preset time.
[0248] After step S(4), if the registration credential is within the preset validity period, the cloud server 130 may perform step S(5). If the registration credential is not within the preset validity period, the cloud server 130 may perform step S(8) to determine that the authentication is unsuccessful.
[0249] It should be noted that step S(4) is optional, and the cloud server 130 may not execute step S(4). Specifically, after step S(3), if the registration credential 1 in the registration request a is the same as the found registration credential x, the cloud server 130 may directly execute step S(5).
[0250] S(5): The cloud server 130 searches the stored registration credentials for the device type x corresponding to the first account. After step S(5), the cloud server 130 may execute step S(6).
[0251] S(6): The cloud server 130 determines whether the product type a in the registration request a is a subtype of the device type x.
[0252] Cloud server 130 may store multiple product types for each device type. Multiple product types within each device type may be pre-populated in cloud server 130. Only product types of home devices produced by vendors recognized by cloud server 130 are populated in cloud server 130. For example, cloud server 130 may store the device type and product type table shown in Table 5. [Table 5]
[0253] As shown in Table 5, the cloud server 130 stores multiple product types for device type A (e.g., lighting), such as product type a (i.e., product type of smart light bulb 1) and product type b (i.e., product type of smart desk lamp).
[0254] After step S(6), if the product type a in the registration request a is a subtype of the device type x, it indicates that the home device of the product type a is a home device authenticated by the cloud server 130. In this case, the cloud server 130 may perform step (7) to determine that the authentication is successful.
[0255] After step S(6), if the product type a in the registration request a is not a subtype of the device type x, it indicates that the home device of the product type a is not a home device authenticated by the cloud server 130. In this case, the cloud server 130 may perform step S(8) to determine that the authentication is unsuccessful.
[0256] S(7): Cloud server 130 determines that the authentication was successful.
[0257] S(8): The cloud server 130 determines that authentication failed.
[0258] In some other embodiments, the cloud server 130 may further perform authentication against the product type of the smart bulb 1 first, and then perform authentication against the registration credentials 1. For example, in this embodiment, after the cloud server 130 performs step S(1), if the cloud server 130 does not find the first account, the cloud server 130 performs step S(8). If the cloud server 130 finds the first account after step S(1), The cloud server 130 Execute step S(5) May After step S(5), the cloud server 130 may execute step S(6). After step S(6), if the product type a in the registration request a is not a subtype of the device type x, the cloud server 130 may execute step S(8). After step S(6), if the product type a in the registration request a is a subtype of the device type x, the cloud server 130 may execute steps S(2) to S(4). After step S(4), if the registration credential 1 is within a preset validity period, the cloud server 130 may execute step S(7), or if the registration credential 1 is not within a preset validity period, the cloud server 130 may execute step S(8).
[0259] It should be noted that step S(4) is optional, and the cloud server 130 may not execute step S(4). Specifically, after step S(3), if the registration credential 1 in the registration request a is the same as the found registration credential x, the cloud server 130 may directly execute step S(7).
[0260] In some other embodiments, the first request further includes the number M of home devices to be networked. As shown in Table 4, the cloud server 130 further stores the number M. In this embodiment, the cloud server 130 may further determine whether the number of home devices requesting to be registered by using the registration credential 1 exceeds the number M. For example, if the smart light bulb 1 is the mth home device requesting to be registered by using the registration credential 1, authentication may be successful, where 1≦m≦M, and m is an integer. Or, if the smart light bulb 1 is the (M+k)th home device requesting to be registered by using the registration credential 1, authentication fails, where k≧1, and k is an integer.
[0261] After step S508, if the authentication is successful, the cloud server 130 may perform step S509 to assign a device identifier (Device ID) to the smart light bulb 1. If the authentication fails, the cloud server 130 does not assign a device ID to the smart light bulb 1.
[0262] In some embodiments, if the cloud server 130 determines that the registration credential 1 is not within a preset validity period, the cloud server 130 may delete information from Table 3 or Table 4, such as the APP account, device type, and number of the home device to be network-configured corresponding to the registration credential 1.
[0263] S509: If the authentication is successful, the cloud server 130 assigns the device ID a to the smart bulb 1.
[0264] After step S509, the cloud server 130 may store the SN a, the device ID a, and the correspondence between the SN a and the device ID a of the smart bulb 1. The SN is used to uniquely identify the smart bulb 1.
[0265] Optionally, the cloud server 130 may store registration information of the home device registered with the cloud server 130, such as the APP account used by the home device in the cloud server 130, the product type of the home device, the SN of the home device, and the device ID of the home device.
[0266] For example, after the cloud server 130 assigns the device ID a to the smart light bulb 1, the cloud server 130 may store the registration information of the smart light bulb 1 shown in Table 6. [Table 6]
[0267] After placing the mobile phone 100 near the smart light bulb 1, the user may immediately place the mobile phone 100 near the smart desk lamp. After the distance between the mobile phone 100 and the smart desk lamp is within the first distance, the smart desk lamp may receive the first message sent by the mobile phone 100. After step S505, the method in this embodiment of the present application may further include steps S510 to S515. It should be noted that in this embodiment of the present application, steps S510 to S513 and steps S506 to S509 may be performed in parallel. In other words, the mobile phone 100 does not need to perform network configuration for home devices one by one. Instead, in the method of broadcasting the first message, the network configuration is running for the home device that receives the first message. In other words, according to the method in this embodiment of the present application, asynchronous parallel network configuration can be performed for multiple home devices, so that the efficiency of batch network configuration for multiple home devices can be improved.
[0268] S510: The smart desk lamp receives the first message broadcast by the mobile phone 100, and accesses the wireless local area network provided by the router 120 by using the SSID and access password in the first message.
[0269] In some embodiments, after the smart desk lamp receives the first message broadcast by the mobile phone 100 or after the smart desk lamp accesses the wireless local area network provided by the router 120, the method in this embodiment of the present application further includes steps S510' and S510". S510': The smart desk lamp may send a response message 2 of the first message to the mobile phone 100. The response message 2 is used to indicate that the network configuration is being performed for the smart desk lamp. After receiving the response message 2, the mobile phone 100 may execute step S510". S510": The mobile phone 100 updates the first status information of other first icons in the third interface to the second status information. The second status information is used to indicate that the network configuration is being performed for the home device. For example, the mobile phone 100 may display the third interface 1003 shown in FIG. 10B, and the first status information of the first icon 905 in the third interface 1003, "Network configuration to be performed", is updated to the second status information, "Network configuration in progress". Optionally, the mobile phone 100 may further update the indication information indicating the number of home devices to be networked in the third interface. For example, the mobile phone 100 may update the indication information 1002 shown in FIG. 10A to the indication information 1004 shown in FIG. 10B.
[0270] In this embodiment, the mobile phone 100 can timely update the network setting status of the home device. For example, the mobile phone 100 can timely update the first status information (e.g., "Network setting to be performed") to the second status information (e.g., "Network setting in progress"). In this way, it can be convenient for the user to know the network setting progress of the home device, and the user experience in the network setting process of the home device can be improved.
[0271] S511: The smart desk lamp sends a registration request b to the cloud server 130. The registration request b includes the registration credential 1, the first account, indication information of the product type b of the smart desk lamp, and the SN of the smart desk lamp.
[0272] S512: The cloud server 130 receives the registration request b, and performs authentication for the product type b of the smart desk lamp and / or the registration credential 1 based on the first account in the registration request b.
[0273] After step S512, the cloud server 130 may execute step S513 to assign a device identifier (Device ID) to the smart desk lamp if the authentication is successful. If the authentication fails, the cloud server 130 does not assign a device ID to the smart desk lamp.
[0274] S513: If the authentication is successful, the cloud server 130 assigns a device ID b to the smart desk lamp.
[0275] After step S513, the cloud server 130 may store the SN b, the device ID b, and the correspondence between the SN b and the device ID b of the smart bulb 1. The SN b is used to uniquely identify the smart bulb 1.
[0276] After step S513, the cloud server 130 may store the registration information of the home device registered in the cloud server 130. For example, the cloud server 130 may store the device ID b After assigning to the smart desk lamp, the cloud server 130 may store the registration information of the smart desk lamp shown in Table 7. [Table 7]
[0277] It can be understood that when the mobile phone 100 approaches the smart light bulb 2 and the smart light bulb 3 shown in Fig. 1, the smart light bulb 2 and the smart light bulb 3 can receive the first message broadcast by the mobile phone 100, and the smart light bulb 2 and the smart light bulb 3 can access the wireless local area network provided by the router 120 and request to register with the cloud server 130 based on the information carried in the first message (not shown). For how the smart light bulb 2 and the smart light bulb 3 access the wireless local area network provided by the router 120 and request to register with the cloud server 130, please refer to steps S506 to S509 or steps S510 to S513 in the above embodiment. Details will not be described again here in this embodiment of the present application.
[0278] In some other embodiments, after assigning the device ID to the home device, the cloud server 130 may send a registration response to the home device. The registration response is used to indicate that the home device has successfully registered with the cloud server 130. The registration response may include the device ID assigned to the home device by the cloud server 130. For example, the cloud server 130 may send a registration response a to the smart light bulb 1. The registration response may include the device ID a. The cloud server 130 may send a registration response b to the smart desk lamp. The registration response b may include the device ID b.
[0279] After receiving the registration response, the home device may send third prompt information. The third prompt information is used to indicate that the home device has successfully registered with the cloud server 130. For example, the third prompt information may be a preset indicator prompt, a preset voice prompt, or a preset text prompt. This is not limited in this embodiment of the present application.
[0280] The home device sends the third prompt information after successfully registering with the cloud server 130, so that the user can know the network setting information of each home device, and the user can immediately remove the home device whose network setting has failed and reconfigure the network for the home device whose network setting has failed.
[0281] It should be noted that, in order to ensure data safety in the process of communication between the home device and the cloud server 130, the home device (e.g., smart light bulb 1, smart desk lamp, smart light bulb 2, or smart light bulb 3) may establish a secure connection channel with the cloud server 130, and then interact with the cloud server 130 by using the secure connection channel. For the method of establishing a secure connection channel between the home device and the cloud server 130, please refer to the relevant descriptions in the prior art. The details will not be described again here.
[0282] It can be understood that if the cloud server 130 assigns a device ID to a home device, it indicates that the network setup for the home device is successful. If the cloud server 130 does not assign a device ID to a home device, it indicates that the network setup for the home device is unsuccessful. If the authentication performed by the cloud server 130 for the registration request initiated by the home device fails, it indicates that the network setup for the home device is unsuccessful.
[0283] It can be seen from the above embodiment that after the mobile phone 100 broadcasts the first message in step S505, the home device that receives the first message interacts with the cloud server 130 to complete the home device registration process. For example, after step S505, the smart light bulb 1 interacts with the cloud server 130, and the process of registering the smart light bulb 1 with the cloud server 130 can be completed by performing steps S506 to S509. As another example, after step S505, the smart desk lamp interacts with the cloud server 130, and the process of registering the smart desk lamp with the cloud server 130 can be completed by performing steps S510 to S513.
[0284] In other words, in this embodiment of the present application, after the mobile phone 100 executes step S505 to broadcast the first message, the mobile phone 100 does not need to participate in the registration process of the home device by the cloud server 130. Therefore, after executing steps S501 to S505 to perform network configuration for a group of home devices, the mobile phone 100 may execute the next batch network configuration task in response to the user's operation to perform the batch network configuration for the next group of home devices, without waiting for the registration of the previous group of home devices to be completed. In this way, the efficiency of the batch network configuration of the mobile phone 100 may be improved.
[0285] It can be understood that the mobile phone 100 may trigger network configuration tasks for multiple groups of home devices in a batch based on user operation, where each group of home devices includes multiple home devices. In other words, the mobile phone 100 may sequentially trigger multiple batch network configuration tasks, where each batch network configuration task is used to implement network configuration and registration processes for multiple home devices.
[0286] Based on this, when a batch network setting task is not created in the first APP of the mobile phone 100, the mobile phone 100 may display the second interface in response to the first operation. The second interface may further include a task name setting item for the batch network setting. For example, the task name setting item is the "Task Name" setting item 705 shown in FIG. 7B. The task name setting item is configured to set a task name of this batch network setting. For example, a user can set the task name of the batch network setting to Task 1, Task 2, or Task 3. As another example, when a user performs network setting for home devices of various device types in a batch based on the device type of the home device, the user can set the task name of the batch network setting based on the device type such as smart speaker, lighting, smart refrigerator, or smart washing machine.
[0287] Please note that the above "the mobile phone 100 logs in to the first APP by using the first account, and no batch network configuration task is created" can be classified into the following two cases: (1) the first APP is logged in by using the first account, and no batch network configuration task is created; (2) the first APP is logged in by using the first account to trigger a batch network configuration task, but the batch network configuration task is deleted. The deleted batch network configuration task may be a completed batch network configuration task or an incomplete batch network configuration task. For a detailed description of deleting the batch network configuration task, the completed batch network configuration task, and the incomplete batch network configuration task by the mobile phone 100, please refer to the detailed description in the following embodiment. The details will not be described again here.
[0288] Mobile phone 100 is number one accountWhen the user logs into the first APP by using the "new network configuration task" option 714 shown in FIG. 7C , and there is a batch network configuration task created, in response to the first operation, the mobile phone 100 may display a task list interface (network configuration task interface 711 shown in FIG. 7C ). The task list interface 711 includes a new option used to trigger the mobile phone 100 to create a batch network configuration task, for example, a "new network configuration task" option 714 shown in FIG. 7C . The "new network configuration task" option 714 is used to trigger the mobile phone 100 to create a network configuration task. For example, in response to a tap operation (e.g., a click operation) performed by the user on the "new network configuration task" option 714, the mobile phone 100 may display a second interface.
[0289] The task list interface 711 further includes one or more batch network setting tasks that have been generated when the first APP is logged in by using the first account, for example, a "task a" option 712 and a "smart speaker" option 713 shown in FIG. 7C. The task name of the batch network setting task corresponding to the "task a" option 712 is "task a". The "task a" option 712 is used to trigger the mobile phone 100 to display a network setting task interface (e.g., the third interface above) whose task name is "task a". The "smart speaker" option 713 is used to trigger the mobile phone 100 to display a network setting task interface (e.g., the third interface above) whose task name is "smart speaker". The task list interface 711 further includes a "back" button 715. In response to a tap operation performed by a user on the "back" button 715, the mobile phone 100 may display the first interface 701 shown in FIG. 7A.
[0290] Furthermore, after the home device is registered with the cloud server 130, the mobile phone 100 may update the icon registered with the cloud server 130 on the third interface, for example, updating a generic icon to an icon specific to the home device. The mobile phone 100 may further update the status registered with the cloud server 130 on the third interface, for example, updating the status of the home device to a registration completed status.
[0291] In some embodiments, after assigning a device ID to each home device, the cloud server 130 may send the device ID and the first setting information of the home device to the mobile phone 100. For example, after step S509, the cloud server 130 may send the device ID a and the first setting information a of the smart light bulb 1 to the mobile phone 100. As another example, after step S513, the cloud server 130 may send the device ID b and the first setting information b of the smart desk lamp to the mobile phone 100.
[0292] The first setting information of the home device may also be referred to as a specific profile or specific setting information of the home device. The first setting information may include information such as a second icon specific to the home device, an interface element of a control page for performing remote control on the home device by using the first APP, and a control command for performing remote control on the home device by using the first APP. The first setting information of the home device is different from the second setting information. For example, the second icon 1102 shown in FIG. 11 is an icon specific to the smart light bulb 1, and the first icon 904 shown in FIG. 10B is a generic icon of the smart light bulb 1, and the second icon 1102 is different from the first icon 904. As another example, the second icon 1103 shown in FIG. 11 is an icon specific to the smart desk lamp, and the first icon 905 shown in FIG. 10B is a generic icon of the smart desk lamp, and the second icon 1103 is different from the first icon 905.
[0293] In this embodiment, after receiving the first setting information of the home device, the mobile phone 100 updates the first icon of the home device in the third interface to a second icon, and updates the first status information or the second status information of the home device in the third interface to third status information. The third status information is used to indicate that the home device has registered with the cloud server 130.
[0294] For example, the first setting information a of the smart light bulb 1 and the smart Desk lamp After receiving the first setting information b, the mobile phone 100 may display a third interface 1101 shown in FIG. 11. The first icon 904 of the smart light bulb 1 shown in FIG. 10B is updated to the second icon 1102 shown in FIG. 11, and the second status information "Network setting" of the first icon 904 shown in FIG. 10B is updated to the third status information "Complete" of the second icon 1102. The first icon 905 of the smart desk lamp shown in FIG. 10B is updated to the second icon 1103 shown in FIG. 11. The second status information "Network setting" of the first icon 905 shown in FIG. 10B is updated to the third status information "Complete" of the second icon 1103. Optionally, the mobile phone 100 may further update the indication information indicating the number of home devices to be network-configured in the third interface. For example, the mobile phone 100 may update the indication information 1004 shown in FIG. 10B to the indication information 1104 shown in FIG. 11.
[0295] In this embodiment, when the mobile phone 100 receives the device IDs of M home devices (e.g., smart light bulb 1, smart desk lamp, smart light bulb 2, and smart light bulb 3), the mobile phone 100 may display the third interface 1201 shown in FIG. 12A. In the third interface 1201 shown in FIG. 12A, the mobile phone 100 displays the second icons and third status information of the M home devices. Optionally, the mobile phone 100 may further update the indication information to indicate the number of home devices to be networked in the third interface. For example, the mobile phone 100 may update the indication information 1004 shown in FIG. 10B to the indication information 1202 shown in FIG. 12A.
[0296] The cloud server 130 may not only send the device ID and the first setting information of the home device to the mobile phone 100, but also send an identifier of the home device (e.g., the SN of the home device) to the mobile phone 100. The SN of the home device may be used by the mobile phone 100 to identify the home device whose second status information needs to be updated to third status information by the mobile phone 100 based on the first setting information.
[0297] In this embodiment, if the mobile phone 100 does not receive the device ID and the first setting information of any one of the M home devices sent by the cloud server 130 within the second preset time after broadcasting the first message, the mobile phone 100 may determine that the network setting for the home device has failed (also referred to as network setting failure). In this case, the mobile phone 100 may update the first status information or the second status information of the home device in the third interface to the fourth status information. The fourth status information is used to indicate that the network setting for the home device has failed. For example, the second preset time is any duration, such as 1 hour, 2 hours, 3 hours, 6 hours, or 12 hours.
[0298] For example, assume that the mobile phone 100 receives only the device IDs and the first setting information of three of the above four home devices within a second preset time after broadcasting the first message, but does not receive the device ID and the first setting information of the other home device. The mobile phone 100 may display the third interface 1204 shown in Fig. 12B. In the third interface 1204 shown in Fig. 12B, the mobile phone 100 displays the second icons and the third status information of the three home devices, and displays the first icon 907 and the fourth status information (e.g., "timeout") of the other home device.
[0299] In this embodiment, after assigning a device ID to each home device, the cloud server 130 may send the device ID and the first setting information of the corresponding home device to the mobile phone 100 in real time. In this way, the mobile phone 100 can timely update the icon and status information of the home device in the third interface. In this way, the user experience in the process of the user performing network settings for the home device can be improved.
[0300] In some other embodiments, the mobile phone 100 may actively obtain the device ID and the first setting information of the home device registered in the cloud server 130 from the cloud server 130. Specifically, after step S505, the mobile phone 100 may obtain the device ID of the home device registered in the cloud server 130 from the cloud server 130. As shown in FIG. 5C or FIG. 9B-3, after step S505, the method in this embodiment of the present application may further include steps S514 and S515.
[0301] S514: The mobile phone 100 obtains, from the cloud server 130, the device ID and the first setting information of the home device to be registered in the cloud server 130 by using the first account.
[0302] Specifically, step S514 may include steps S514a to S514d.
[0303] S514a: The mobile phone 100 sends a second request to the cloud server 130. The second request includes the first account, and the second request is used to obtain a device ID and first setting information of the home device to be registered in the cloud server 130 by using the first account.
[0304] The registration request sent by the smart light bulb 1 to the cloud server 130 and the registration request sent by the smart desk lamp both include the first account. When the cloud server 130 assigns device IDs to the smart light bulb 1 and the smart desk lamp, it indicates that the network setting on the cloud server 130 for the smart light bulb 1 and the smart desk lamp by using the first account is successful. For the specific content of the first setting information of the home device, please refer to the relevant description in the above embodiment. The details will not be described again here.
[0305] It should be noted that the mobile phone 100 may periodically send the second request to the cloud server 130 until the mobile phone 100 gets from the cloud server 130 the registration requests of all the home devices that register with the cloud server 130 by using the first account. The registration result may be that the network configuration is successful or that the network configuration is unsuccessful. If the cloud server 130 assigns a device ID to the home device, it indicates that the network configuration for the home device is successful. If the cloud server 130 does not assign a device ID to the home device, it indicates that the network configuration for the home device is unsuccessful. If the authentication performed by the cloud server 130 for the registration request bypassed by the home device fails, it indicates that the network configuration for the home device is unsuccessful.
[0306] Alternatively, the mobile phone 100 may periodically send the second request to the cloud server 130 within a third preset time after broadcasting the first message. Generally, in the period starting from broadcasting the first message, most of the home devices can be successfully registered with the cloud server 130, and the mobile phone 100 can obtain the device IDs and the first setting information of these home devices from the cloud server 130 by using the second request. 100 If the mobile phone does not obtain the device IDs and the first setting information of some home devices from the cloud server 130 within the third preset time, the network setting on the cloud server 130 for these home devices is less likely to be successful. 100 However, even if the mobile phone 100 continues to send the second request to the cloud server 130 after the third preset time, the mobile phone 100 does not obtain the device IDs and the first setting information of some home devices from the cloud server 130. Therefore, after the third preset time, the mobile phone 100 does not need to send the second request any more.
[0307] The third preset time is shorter than the second preset time, for example, the third preset time is any duration such as 0.5 hours, 1 hour, 2 hours, 3 hours, or 6 hours.
[0308] S514b: The cloud server 130 receives a second request from the mobile phone 100, and based on the first account in the second request, obtains the device ID and first setting information of the home device to be registered in the cloud server 130 by using the first account.
[0309] After receiving the second request from the mobile phone 100, the cloud server 130 may search for the device ID and product type of the home device registered by using the first account among the home devices registered on the cloud server 130. For example, assume that the network settings on the cloud server 130 for the smart light bulb 1 and the smart desk lamp are successful when the cloud server 130 receives the second request. In this case, the cloud server 130 stores the registration information shown in Tables 6 and 7. The cloud server 130 can find the device ID a and product type a of the smart light bulb 1 registered by using the first account, and the device ID b and product type b of the smart desk lamp registered by using the first account.
[0310] Then, the cloud server 130 may obtain the first setting information of the found home device whose product type is found. The cloud server 130 may store the first setting information of the home device of multiple product types. For example, the cloud server 130 may obtain the first setting information a of the smart light bulb 1 based on the product type a, and obtain the first setting information b of the smart desk lamp based on the product type b.
[0311] S514c: The cloud server 130 sends a second response to the mobile phone 100. The second response includes the device ID and the first setting information of the home device to be registered in the cloud server 130 by using the first account.
[0312] S514d: The mobile phone 100 receives a second response from the cloud server 130.
[0313] The mobile phone 100 may periodically send the second request to the cloud server 130, so that each time the cloud server 130 receives the second request, the cloud server 130 may perform steps S514b and S514c to return a second response to the mobile phone 100. The second request periodically sent by the mobile phone 100 to the cloud server 130 may be the same, but the second response returned by the cloud server 130 to the mobile phone 100 may be different each time. Specifically, each second response may carry the device ID and first setting information of a different home device.
[0314] For example, when the cloud server 130 receives the initial second request, smart light bulb 1 and smart desk light are registered with the cloud server 130, but smart light bulb 2 and smart light bulb 3 are not registered with the cloud server 130. In this case, the initial second response returned by the cloud server 130 to the mobile phone 100 may include the device IDs and first setting information of smart light bulb 1 and smart desk light.
[0315] When the cloud server 130 receives the second second request, the smart light bulb 2 and the smart light bulb 3 are registered in the cloud server 130. In this case, the second second response returned by the cloud server 130 to the mobile phone 100 may include the device IDs and the first setting information of the smart light bulb 2 and the smart light bulb 3.
[0316] S515: The mobile phone 100 updates the first icon corresponding to the home device in the third interface to a second icon based on the first setting information of the home device, and updates the status information of the corresponding home device to third status information.
[0317] For a detailed description of the first setting information, please refer to the relevant description in the above embodiment. The details will not be described again here. The second icon of the home device is an icon specific to the home device. The second icons of home devices of the same product type are the same, and the second icons of home devices of different product types are different. For example, the second icon 1102 shown in FIG. 11 is an icon specific to the smart light bulb 1, and the second icon 1103 shown in FIG. 11 is an icon specific to the smart desk lamp 1. Specific to icons, and the second icon 1102 is different from the second icon 1103.
[0318] For example, it is assumed that the first second response received by the mobile phone 100 includes the device IDs and the first setting information of the smart light bulb 1 and the smart desk lamp. The display interface of the mobile phone 100 may be switched from the third interface 1003 shown in FIG. 10B to the third interface 1101 shown in FIG. 11. The first icon 904 of the smart light bulb 1 shown in FIG. 10B is updated to the second icon 1102 shown in FIG. 11, and the second status information "Network setting" of the first icon 04 shown in FIG. 10B is updated to the third status information "Complete" of the second icon 1102. The first icon 905 of the smart desk lamp shown in FIG. 10B is updated to the second icon 1103 shown in FIG. 11. The second status information "Network setting" of the first icon 905 shown in FIG. 10B is updated to the third status information "Complete" of the second icon 1103.
[0319] Status information of the first icon 906 and 1 Please note that the reason why the status information of icon 907 is switched from the first status information (e.g., “Network setting up to be scheduled”) shown in FIG. 10B to the second status information (e.g., “Network setting up in progress”) shown in FIG. 11B is because mobile phone 100 receives a response message to the first message sent by smart bulb 2 and smart bulb 3.
[0320] In some embodiments, all M home devices may successfully register with the cloud server 130. For example, it is assumed that the second second response received by the mobile phone 100 includes device IDs and first setting information of smart bulb 2 and smart bulb 3. The display interface of the mobile phone 100 may be switched from the third interface 1101 shown in Fig. 11 to the third interface 1201 shown in Fig. 12A. In the third interface 1201 shown in Fig. 12A, the mobile phone 100 displays the second icons and third status information (e.g., "Complete") of the M home devices.
[0321] In some embodiments, step S515 may be replaced by the following: if the mobile phone 100 obtains from the cloud server 130 within a second preset time period starting from broadcasting the first message, the mobile phone 100 updates the first icon of the corresponding home device in the third interface to a second icon based on the first setting information of the home device, and updates the status information of the corresponding home device to third status information.
[0322] In some embodiments, the network configuration for some home devices may fail due to failure of authentication of the cloud server 130. In this case, the cloud server 130 does not assign a device ID to the home device and does not send the first configuration information of the home device to the mobile phone 100 by using the second response.
[0323] In this embodiment, if the mobile phone 100 does not obtain the device ID and the first setting information of any one of the M home devices transmitted by the cloud server 130 within a second preset time period starting from broadcasting the first message, the mobile phone 100 may determine that the network setting for the home device has failed (also referred to as network setting failure). In this case, the mobile phone 100 may update the first status information or the second status information of the home device in the third interface to the fourth status information. The fourth status information is used to indicate that the network setting for the home device has failed. For example, the second preset time period is any duration, such as 1 hour, 2 hours, 3 hours, 6 hours, or 12 hours.
[0324] For example, it is assumed that the second response received by the mobile phone 100 includes smart light bulb 2. Further, the mobile phone 100 2 11 does not receive the device ID and the first setting information of the smart bulb 3 within a preset time of 1101. The display interface of the mobile phone 100 may be switched from the third interface 1101 shown in Fig. 11 to the third interface 1204 shown in Fig. 12B. In the third interface 1204 shown in Fig. 12B, the mobile phone 100 displays the second icons and the third status information of the three home devices, and displays the first icon 907 and the fourth status information (e.g., "timeout") of another home device.
[0325] In this embodiment of the present application, the mobile phone 100 may timely update the network setting status of the home device. For example, the mobile phone 100 may sequentially update the network setting status of the home device from the first information (e.g., "network setting to be performed") to the second status information (e.g., "network setting in progress") and the third status information (e.g., "completed"). In this way, it may be convenient for the user to know the network setting progress of the home device, and the user experience in the network setting process of the home device may be improved.
[0326] In some embodiments, the mobile phone 100 may stop broadcasting the first message in step S505 in response to a third operation of the user on the third interface. For example, the third interface shown in FIG. 9A, FIG. 10A, FIG. 10B, FIG. 11, or FIG. 12A may include a "close" button 903. The third operation may be a tap operation (e.g., a click operation) performed by the user on the "close" button 903. Alternatively, the third operation may be a preset gesture input by the user on the third interface.
[0327] In the process in which the mobile phone 100 displays the network setting task interface (i.e., the third interface) of the batch network setting task, the mobile phone 100 may continue to broadcast the first message of the batch network setting task. However, after closing the network setting task interface (i.e., the third interface) of the batch network setting task, the mobile phone 100 no longer broadcasts the first message of the batch network setting task. For example, in response to a third operation performed by a user on the third interface shown in FIG. 9A, FIG. 10A, FIG. 10B, FIG. 11, or FIG. 12A, which may include a "Close" button 903, the mobile phone 100 may stop broadcasting the first message of the batch network setting task whose task name is "Lighting" (i.e., the first message of step S505).
[0328] Furthermore, in response to a third operation by the user on the third interface, the mobile phone 100 may further display a task list interface. The task list interface includes a task option of a batch network configuration task corresponding to the third interface. For example, assume that two batch network configuration tasks with task names of "task a" and "smart speaker" shown in FIG. 7C have been generated on the mobile phone 100 before the mobile phone 100 generates a batch network configuration task corresponding to the third interface, for example, a batch network configuration task with a task name of "lighting". In this case, in response to a third operation performed by the user on the third interface shown in FIG. 9A, FIG. 10A, FIG. 10B, FIG. 11, or FIG. 12A, the mobile phone 100 may display a task list interface 1301 shown in FIG. 13. Compared with the task list interface shown in FIG. 7C, a task option 1302 of a batch network configuration task with a task name of "lighting" is added to the task list interface 1301 shown in FIG. 13.
[0329] In some other embodiments, if all M home devices in the third interface are in the network setting state indicated by the third status information, that is, all M home devices have successfully registered with the cloud server 130, the mobile phone 100 may display the task list interface. For example, as shown in FIG. 12A, all home devices in the third interface 1201 are in the network setting state indicated by the third status information (e.g., "Complete"). In response to a tap operation (i.e., a third operation) performed by a user on the "Close" button in the third interface 1201 shown in FIG. 12A, the mobile phone 100 may display the task list interface 1301 shown in FIG. 13.
[0330] In some other embodiments, if some of the M home devices in the third interface are in a network setting state indicated by the third status information and the remaining home devices are in a network setting state indicated by the second status information or the first status information, i.e., some of the home devices have successfully registered with the cloud server 130 and some of the home devices are in the process of registering with the cloud server 130, the mobile phone 100 may display a task list interface.
[0331] In some other embodiments, if the third interface includes fourth status information, i.e., the network configuration fails for some of the M home devices, the mobile phone 100 may display the fourth interface. The fourth interface is used to indicate that the network configuration has failed for the home devices and to request the user to confirm whether to reconfigure the network for the home devices for which the network configuration has failed. For example, in response to a tap operation (i.e., a third operation) performed by the user on the "Close" button in the third interface 1204 shown in FIG. 12B, the mobile phone 100 may display the fourth interface 1401 shown in FIG. 14.
[0332] In this embodiment, the mobile phone 100 may receive a fourth operation performed by the user on the fourth interface. The fourth operation is used to trigger the mobile phone 100 to reconfigure the network for the home device whose network configuration has failed. For example, the fourth operation may be a tap operation performed on the "Yes" button in the fourth interface. In response to the user's fourth operation on the fourth interface. The mobile phone 100 may reconfigure the network for the home device whose network configuration has failed. For example, the mobile phone 100 may request the cloud server 130 to reallocate the registration credential to the home device, and then broadcast a first message including the SSID, the access password, and the registration credential. The user may hold the mobile phone close to the home device, so that the home device receives the first message. The home device may register with the cloud server 130 based on the relevant data in the first message. For the method of registering the home device with the cloud server 130, please refer to the relevant description of steps S506 to S509. Details will not be described again here.
[0333] The mobile phone 100 may further receive a fifth operation performed by the user on the fourth interface. The fifth operation is used to indicate to the mobile phone 100 not to reconfigure the network for the home device for which the network configuration has failed. For example, the fifth operation may be a tap operation performed on a "No" button in the fourth interface 1401. In response to the user's fifth operation on the fourth interface, the mobile phone 100 may display the above-mentioned task list interface, for example, the task list interface 1301 shown in FIG. 13.
[0334] In this embodiment of the present application, after the network configuration is successfully performed for the M home devices, management options for the M home devices may be added to the home device management interface displayed by the mobile phone 100. For example, in response to a tap operation performed by a user on the "back" button in the task list interface 1301 shown in Fig. 13, the mobile phone 100 may display the home device management interface 1502 shown in Fig. 15B. Compared with the home device management interface 1501 shown in Fig. 15A, management options for smart bulb 1, smart bulb 2, smart bulb 3, and smart desk lamp are added to the home device management interface 1502 shown in Fig. 15B.
[0335] In response to a tap operation performed by the user on any of the home device management options on the home device management interface, the mobile phone 100 may display a control interface of the home device. For example, in response to a tap operation performed by the user on the "smart desk light" management option shown in Fig. 15B, the mobile phone 100 may display the smart desk light control interface 1601 shown in Fig. 16. The interface elements in the control interface of each home device, the control commands sent by the mobile phone 100 to the home device in response to the operation performed by the user on the control interface, etc. are determined by the mobile phone 100 based on the first setting information (e.g., a unique profile) of the home device.
[0336] An embodiment of the present application provides a method for configuring home devices in batches. In the method, a mobile phone 100 may send network configuration information (such as registration credentials, SSID, access password, etc.) to multiple home devices by broadcasting a first message. In this way, home devices within a safe distance of the first message can receive the first message. The home devices receiving the first message may perform asynchronous parallel network configuration by using the network configuration information in the first message.
[0337] Furthermore, using ultra-short-range communication can ensure that the first message sent by the mobile phone 100 is not received by other devices, thereby ensuring the security of data transmission between the mobile phone 100 and the home device and protecting the security of user information.
[0338] Furthermore, the mobile phone 100 may timely update the network setting status of the home device. For example, the mobile phone 100 may sequentially update the network setting status of the home device from the first status information (e.g., "network setting to be performed") to the second status information (e.g., "network setting in progress") and the third status information (e.g., "completed"). In this way, it may be convenient for the user to know the network setting progress of the home device, and the user experience in the network setting process of the home device may be improved.
[0339] Some other embodiments of the present application provide an electronic device. The electronic device may include a touch screen, a memory, and one or more processors. The touch screen, the memory, and the processor are coupled. The memory is configured to store computer program code. The computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device may perform the functions or steps performed by the mobile phone in the above method embodiments. For the structure of the electronic device, please refer to the structure of the electronic device 200 shown in FIG. 2.
[0340] An embodiment of the present application provides a display device, which may be applied to an electronic device including a touch screen, configured to perform the functions or steps performed by a mobile phone in the above method embodiments.
[0341] The embodiment of the present application further provides a system-on-chip. As shown in FIG. 17, the system-on-chip 1700 includes at least one processor 1701 and at least one interface circuit 1702. The processor 1701 and the interface circuit 1702 may be interconnected by using a line. For example, the interface circuit 1702 may be configured to receive a signal from another device (e.g., a memory of an electronic device). As another example, the interface circuit 1702 may be configured to transmit a signal to another device (e.g., the processor 1701). For example, the interface circuit 1702 may read an instruction stored in a memory and transmit the instruction to the processor 1701. When the instruction is executed by the processor 1701, the electronic device may be able to perform the steps in the above embodiment. Certainly, the chip system may further include other discrete devices. This is not particularly limited in this embodiment of the present application.
[0342] An embodiment of the present application further provides a computer storage medium, the computer storage medium including computer instructions, which when executed on the electronic device described above, can cause the electronic device to perform the functions or steps performed by the mobile phone in the method embodiment described above.
[0343] An embodiment of the present application further provides a computer program product, which, when executed on a computer, enables the computer to perform the functions or steps performed by the mobile phone in the above method embodiments.
[0344] The above description of the implementation allows those skilled in the art to clearly understand that the above division of functional modules is used as an example for explanation, for convenience and concise description. In actual application, the above functions can be allocated to different modules and implemented according to requirements, that is, the internal structure of the device is divided into different functional modules to implement all or part of the above functions.
[0345] In some embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the described apparatus embodiment is merely an example. For example, the modules or division into units is merely a logical division of functions, and may be other divisions in actual implementation. For example, multiple units or components may be combined or integrated into other devices, or some functions may be ignored or not performed. Furthermore, the shown or discussed mutual couplings or direct couplings or communication connections may be implemented by using some interfaces. Indirect couplings or communication connections between devices or units may be implemented in electronic, mechanical, or other forms.
[0346] Units described as separate parts may or may not be physically separate, and parts shown as units may be one or more physical units, located in one place, or located in different places. Some or all of the units may be selected based on actual requirements to achieve the objectives of the solutions of the embodiments.
[0347] Furthermore, the functional units of the embodiments of the present application may be integrated into one processing unit, each of the units may exist physically alone, or two or more units may be integrated into one unit. The integrated unit may be implemented in the form of hardware or in the form of a software functional unit.
[0348] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, the integrated unit may be stored in a readable storage medium. Based on such understanding, the technical solutions in the embodiments of the present application may be essentially implemented in the form of a software product, or the part contributing to the prior art, or all or part of the technical solutions. The software product is stored in a storage medium and includes some instructions for instructing a device (which may be a single-chip microprocessor, chip, etc.) or a processor to execute all or part of the steps of the method described in the embodiments of the present application. The above storage medium includes any medium that can store program code, such as a USB flash drive, a removable hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0349] The above description is merely a specific implementation of the present application, and is not intended to limit the scope of protection of the present application. Any variation or replacement within the technical scope disclosed in this application should fall within the scope of protection of the present application. Therefore, the scope of protection of the present application should be subject to the scope of protection of the claims.
[0350] This application claims priority to Chinese Patent Application No. 202010988445.0, filed on September 18, 2020 with the China National Intellectual Property Office for the invention entitled "METHOD FOR CONFIGURING HOME DEVICES IN BATCHES AND DEVICE", which is hereby incorporated by reference in its entirety.
Claims
1. 1. A method for configuring home devices in a batch, the method being used by an electronic device to perform a batch network configuration for a plurality of home devices, the electronic device having a first application (APP) installed thereon, the method comprising: displaying a first interface of the first APP by the electronic device, the first interface being used to trigger the electronic device to perform a batch network configuration for the plurality of home devices; displaying, by the electronic device, a second interface in response to a first user operation on the first interface, the second interface being used to set a number of home devices to be networked and at least one device type, the device type being classified based on a function of the home devices; receiving and displaying, by the electronic device, a number M set by the user on the second interface; receiving and displaying, by the electronic device, device types of the M home devices set by the user on the second interface, where M≧2, and M is a positive integer; and requesting, by the electronic device, a cloud server to assign registration credentials to the M home devices in response to a second operation of the user on the second interface, the cloud server being a server of the first APP; broadcasting a first message by the electronic device, the first message including the registration credentials and a service set identifier (SSID) and an access password of a wireless local area network, the first message being used to instruct the M home devices to access the wireless local area network and register with the cloud server based on the registration credentials; The method according to claim 1,
2. The method further comprises displaying, by the electronic device, a third interface in response to the user's second manipulation of the second interface; the third interface includes a first icon for each of the M home devices and first status information for each home device, the first icon being a generic icon for home devices of the same device type, and the first status information being used to indicate that the home device is in a state to be network configured; The method of claim 1.
3. After broadcasting a first message by the electronic device, the method further comprises: receiving a first response message from a first home device by the electronic device, the first response message being sent after the first home device receives the first message, the first home device being any one of the M home devices; updating, by the electronic device, in response to the first response message, first status information of the first home device on the third interface to second status information, the second status information being used to indicate that network configuration is being performed for the first home device; Further comprising The method of claim 2.
4. The method comprises: receiving, by the electronic device, first setting information of the first home device from the cloud server, the first setting information including a second icon of the first home device, the first setting information being determined based on a product type of the first home device, home devices of different product types having different first setting information, and the second icon being a dedicated icon of a home device of the same product type; updating, by the electronic device, a first icon of the first home device in the third interface to the second icon, and updating the first status information or the second status information of the first home device to third status information, the third status information being used to indicate that network configuration for the first home device has been successful, and the second status information being used to indicate that network configuration for the first home device is being performed; Further comprising The method according to claim 3.
5. The method further includes updating, by the electronic device, the first status information or the second status information of the first home device on the third interface to fourth status information when the electronic device does not receive the first setting information of the first home device from the cloud server within a second preset time after broadcasting the first message; the fourth status information is used to indicate that network configuration for the first home device has failed; The method according to claim 4.
6. The first setting information further includes interface elements and control instructions of a control page used by the electronic device to remotely control the first home device through the first APP; The method further includes controlling, by the electronic device, the first home device by using the first APP based on the control page and the control instructions associated with the first home device. The method according to claim 4 or 5.
7. and requesting, by the electronic device, a cloud server to assign registration credentials to the M home devices in response to a second operation of the user on the second interface. sending a first request to the cloud server in response to the second operation by the electronic device, the first request being used to request the cloud server to assign the registration credentials to the M home devices; receiving, by the electronic device, a first response from the cloud server, the first response including the registration credential; and having 7. The method according to any one of claims 1 to 6.
8. the first request includes indication information of the device types of the M home devices, the first request is further used to obtain first icons of the M home devices from the cloud server based on the indication information of the device types of the M home devices, the first icons being included in a third interface displayed by the electronic device in response to the second operation; The first response further includes second setting information of the M home devices, the second setting information including the first icons of the M home devices. The method of claim 7.
9. The first request further includes a number M of home devices to be network configured.
9. The method according to claim 7 or 8.
10. the first request further includes a first account used by the electronic device to log into the first APP.
10. The method according to any one of claims 7 to 9.
11. Prior to receiving, by the electronic device, the first setting information of the first home device from the cloud server, the method further comprises: sending, by the electronic device, a second request to the cloud server, the second request including a first account used by the electronic device to log in to the first APP; receiving, by the electronic device, first configuration information of the first home device from the cloud server comprises receiving, by the electronic device, a second response from the cloud server; the second response includes a device identifier and first setting information of a home device to be registered in the cloud server by using the first account; The home devices that register with the cloud server by using the first account include the first home device.
7. The method according to any one of claims 4 to 6.
12. The electronic device has a first antenna and a second antenna, a transmission distance of the first antenna is a first distance and a transmission distance of the second antenna is a second distance, the first distance is shorter than the second distance, the first antenna functions as a weak antenna and the second antenna functions as a strong antenna; the first response message is received on the strong antenna and the first message is broadcast on the weak antenna. The method according to claim 3.
13. A method for configuring home devices in batches, applied to a cloud server, comprising: receiving a first request from the electronic device by the cloud server, the first request including device types of M home devices, where M≧2, and M is a positive integer; assigning, by the cloud server, first registration credentials to the M home devices in response to the first request, and obtaining second setting information of the M home devices based on the device types of the M home devices, the second setting information of the M home devices including first icons of the M home devices, the first icons being generic icons of home devices of the same device type; sending, by the cloud server, a first response to the electronic device, the first response including the first registration credential and the second configuration information of the M home devices; receiving, by the cloud server, a registration request from a first home device, the first home device being any one of the M home devices, the registration request including a second registration credential and a product serial number (SN) of the first home device; assigning, by the cloud server, a device identifier to the first home device if authentication of the first home device is successful, where successful authentication of the first home device includes the second registration credential being the same as the first registration credential; The method according to claim 1,
14. The registration request further includes an indication of a product type of the first home device; After assigning a device identifier to the first home device by the cloud server, the method further includes transmitting, by the cloud server, the device identifier and first configuration information of the first home device to the electronic device; The first setting information includes a second icon of the first home device, and the first setting information is determined based on the product type of the first home device, and home devices of different product types have different first setting information, and the second icon is a dedicated icon of a home device of the same product type. The method of claim 13.
15. The first request further includes a first account used by the electronic device to log in to a first APP, and the registration request further includes a second account, the second account being obtained by the first home device from a first message from the electronic device; Successfully authenticating the first home device further includes the second account being the same as the first account.
15. The method according to claim 13 or 14.
16. Prior to transmitting, by the cloud server, the device identifier and first configuration information of the first home device to the electronic device, the method further comprises receiving, by the cloud server, a second request from the electronic device; the second request includes a first account used by the electronic device to log into a first APP; transmitting, by the cloud server, the device identifier and first configuration information of the first home device to the electronic device includes transmitting, by the cloud server, a second response to the electronic device; the second response includes a device identifier and first setting information of a home device to be registered in the cloud server by using the first account; The home devices that register with the cloud server by using the first account include the first home device. The method of claim 14.
17. The successful authentication of the first home device is determined as follows: the second registration credential is within a preset validity period; and the first home device is the (M-i)th home device to register with the cloud server by using a first account used by the electronic device to log in to a first APP, i>0, i is an integer, and the first request further includes a number M; The method further includes at least one of the following conditions:
17. The method according to any one of claims 13 to 16.
18. 1. A method for configuring home devices in a batch, the method being used by an electronic device to perform a batch network configuration for a plurality of home devices, the electronic device having a first application (APP) installed thereon, the method comprising: displaying a first interface of the first APP by the electronic device, the first interface being used to trigger the electronic device to perform a batch network configuration for the plurality of home devices; displaying, by the electronic device, a second interface in response to a first user operation on the first interface, the second interface being used to set a number of home devices to be networked and at least one device type, the device type being classified based on a function of the home devices; receiving and displaying, by the electronic device, a number M set by the user on the second interface; receiving and displaying, by the electronic device, device types of the M home devices set by the user on the second interface, where M≧2, and M is a positive integer; and requesting, by the electronic device, a cloud server to assign registration credentials to the M home devices in response to a second operation of the user on the second interface, the cloud server being a server of the first APP; broadcasting a first message by the electronic device, the first message including the registration credentials and a service set identifier (SSID) and an access password for a wireless local area network; receiving, by a first home device of the M home devices, the first message from the electronic device; accessing, by the first home device, the wireless local area network by using the SSID and the access password; Sending a registration request to the cloud server by the first home device using the wireless local area network, the registration request including the registration credential and a product serial number (SN) of the first home device; receiving, by the cloud server, the registration request from the first home device; assigning, by the cloud server, a device identifier to the first home device if authentication of the first home device is successful, wherein successful authentication of the first home device includes the registration credentials in the registration request being the same as the registration credentials assigned to the M home devices by the cloud server; The method according to claim 1,
19. The registration request further includes an indication of a product type of the first home device, and the method further includes: and displaying a third interface by the electronic device in response to the second operation, the third interface including a first icon for each of the M home devices and first status information for each home device, the first icon being a generic icon for home devices of the same device type, and the first status information being used to indicate that the home device is in a state to be network configured; After assigning a device identifier to the first home device by the cloud server, the method further comprises: Sending the device identifier and first setting information of the first home device to the electronic device by the cloud server, the first setting information including a second icon of the first home device, the first setting information being determined based on the product type of the first home device, home devices of different product types having different first setting information, and the second icon being a dedicated icon of a home device of the same product type; receiving, by the electronic device, the first configuration information of the first home device from the cloud server; updating, by the electronic device, a first icon of the first home device in the third interface to the second icon, and updating the first status information or the second status information of the first home device to third status information, the third status information being used to indicate that network configuration for the first home device has been successful, and the second status information being used to indicate that network configuration for the first home device is being performed; Further comprising 20. The method of claim 18.
20. After receiving, by a first home device of the M home devices, the first message from the electronic device, the method further comprises: sending a first response message by the first home device to the electronic device, the first response message being used to indicate that a network configuration is being performed for the first home device; receiving the first response message from the first home device by the electronic device; updating, by the electronic device, in response to the first response message, the first status information of the first home device on the third interface to the second status information, the second status information being used to indicate that a network configuration is being performed for the first home device; Further comprising: updating the state information of the first home device to third state information includes updating, by the electronic device, the second state information of the first home device at the third interface to the third state information.
20. The method of claim 19.
21. Prior to displaying a third interface by the electronic device, the method further comprises: sending, by the electronic device, a first request to the cloud server in response to the second operation, the first request having the device types of the M home devices; receiving, by the cloud server, the first request from the electronic device; assigning, by the cloud server, the registration credentials to the M home devices in response to the first request, and obtaining second setting information of the M home devices based on the device types of the M home devices, the second setting information of the M home devices including the first icons of the M home devices, the first icons being generic icons of home devices of the same device type; sending, by the cloud server, a first response to the electronic device, the first response including the registration credential and the second configuration information of the M home devices; Further comprising 21. The method of claim 19 or 20.
22. The first message further includes a first account used by the electronic device to log into the first application (APP), and the registration request further includes the first account; Successfully authenticating the first home device further includes: a first account included in the first message is the same as the first account included in the registration request.
21. The method according to any one of claims 18 to 20.
23. Prior to transmitting, by the cloud server, the device identifier and first configuration information of the first home device to the electronic device, the method further comprises: sending, by the electronic device, a second request to the cloud server, the second request including the first account; and receiving, by the cloud server, the second request from the electronic device; and transmitting, by the cloud server, the device identifier and first configuration information of the first home device to the electronic device includes transmitting, by the cloud server, a second response to the electronic device; the second response includes a device identifier and first setting information of a home device to be registered in the cloud server by using the first account; The home device that registers with the cloud server by using the first account has the first home device, receiving, by the electronic device, the first configuration information of the first home device from the cloud server comprises receiving, by the electronic device, the second response from the cloud server.
23. The method of claim 22.
24. The successful authentication of the first home device is determined as follows: The registration credentials are within a preset validity period; and the first home device is the (M-i)th home device to register with the cloud server by using a first account used by the electronic device to log in to the first application (APP), i>0, i is an integer, and the first request further includes a number M; The method further includes at least one of the following conditions:
22. The method of claim 21.
25. The method further includes updating, by the electronic device, the first status information or the second status information of the first home device on the third interface to fourth status information when the electronic device does not receive the first setting information of the first home device from the cloud server within a second preset time after broadcasting the first message; the fourth status information is used to indicate that network configuration for the first home device has failed; 25. The method of any one of claims 19 to 21 or 24.
26. The electronic device has a first antenna and a second antenna, a transmission distance of the first antenna is a first distance, a transmission distance of the second antenna is a second distance, the first distance is shorter than the second distance, a distance between each of the M home devices and the electronic device is shorter than the first distance, the first antenna functions as a weak antenna, and the second antenna functions as a strong antenna; the first response message is received on the strong antenna and the first message is broadcast on the weak antenna.
21. The method of claim 20.
27. A device, comprising: the device has a memory, a display, a communication module, and one or more processors, the memory, the display, and the communication module being coupled to the processor; the display is configured to display an image or an interface generated by the processor, the communication module is configured to communicate with other devices, and the memory is configured to store data on the device; The memory is further configured to store computer program code, the computer program code comprising computer instructions, which, when executed by the processor, enable the device to perform a method according to any one of claims 1 to 12. Electronic devices.
28. 1. A chip system comprising: The chip system is applied to a device having a display, a communication module, and a memory; The chip system includes one or more interface circuits and one or more processors, the interface circuits and the processors being interconnected by using lines, the interface circuits being configured to receive signals from the memory and to transmit the signals to the processors, the signals including computer instructions stored in the memory; When the processor executes the computer instructions, the device is capable of performing the method according to any one of claims 1 to 12. Chip system.
29. having computer instructions; When the computer instructions are executed on a device, the device is capable of carrying out the method according to any one of claims 1 to 12. Computer storage media.
30. A computer program which, when executed on a computer, enables the computer to carry out the method according to any one of claims 1 to 12.
31. A device comprising: the device has a memory, a display, a communication module, and one or more processors, the memory, the display, and the communication module being coupled to the processor; the display is configured to display an image or an interface generated by the processor, the communication module is configured to communicate with other devices, and the memory is configured to store data on the device; The memory is further configured to store computer program code, the computer program code comprising computer instructions, which, when executed by the processor, enable the device to perform a method according to any one of claims 13 to 17. Electronic devices.
32. A chip system comprising: The chip system is applied to a device having a display, a communication module, and a memory; The chip system includes one or more interface circuits and one or more processors, the interface circuits and the processors being interconnected by using lines, the interface circuits being configured to receive signals from the memory and to transmit the signals to the processors, the signals including computer instructions stored in the memory; Execution of the computer instructions by the processor enables the device to perform the method of any one of claims 13 to 17. Chip system.
33. A method for producing a method of a computer comprising: When the computer instructions are executed on a device, the device is capable of carrying out the method according to any one of claims 13 to 17. Computer storage media.
34. A computer program which, when executed on a computer, enables the computer to carry out a method according to any one of claims 13 to 17.
Citation Information
Patent Citations
Equipment distribution network registration method, equipment and system
CN110601870A
Home appliance, home appliance network connection system, and home appliance network connection method
JP2017512396A
Control method for smart home appliances and smart home appliances
JP2019507545A
Batch registration and configuration of devices
US20180262497A1
