Device login method, electronic device and system

By using a second device with a display screen in a smart home system to generate QR code login information for a third device without a display screen, the problem of users having difficulty identifying devices is solved, the device login process is automated, and operational efficiency and user experience are improved.

CN116866098BActive Publication Date: 2026-05-29HUAWEI TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2022-03-28
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

In smart home systems, users often struggle to determine which device to log into for configuration and testing, especially for devices without displays, such as whole-house smart home hubs or routers, which are difficult and inefficient to operate.

Method used

The second device, equipped with a display screen, assigns registration information to the third device and generates a QR code associated with login information. This assists the first device in automatically obtaining the address of the third device, enabling login by scanning the code and reducing the difficulty of operation for users.

Benefits of technology

It improves the efficiency and user experience of device login, reducing the need for users to manually enter addresses and perform key operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116866098B_ABST
    Figure CN116866098B_ABST
Patent Text Reader

Abstract

The application provides a device login method, an electronic device and a system, and relates to the technical field of terminals. In the technical scheme of the application, a first device can log into a third device by means of a second device configured with a display screen, so as to reduce the difficulty of user operation and improve the user experience. The method comprises the following steps: the first device forwards registration information sent by the third device to the second device. The second device registers the third device according to the registration information, and the third device sends login information to the second device after the registration is completed. The first device scans a two-dimensional code displayed by the second device and associated with the login information of the third device, so as to log into the third device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal technology, and in particular to a device login method, electronic device, and system. Background Technology

[0002] With the development of terminal technology, users own more and more electronic devices. In the home, for example, IoT technology connects various devices (such as audio-visual equipment, lighting systems, and environmental control devices) to form a smart home system, providing users with multiple functions such as appliance control and lighting control. This smart home system includes devices such as a whole-house smart hub, a whole-house smart mini-hub, and routers, which act as a central hub for home services. Users can log in to this hub via electronic devices (such as mobile phones) to configure and adjust the devices within the smart home system.

[0003] The standard smart home hub is equipped with a display screen, allowing users to log in by scanning a QR code displayed on the hub using an electronic device. However, as business needs evolve, the central hub for home operations may shift to devices without displays, such as a lightweight smart home hub or a router. Logging into these devices via electronic devices requires manually entering the device's address, which is cumbersome. Furthermore, if the smart home system includes multiple devices that support login, it can be difficult for users to determine which device to log into for configuration and testing. Summary of the Invention

[0004] To address the aforementioned technical problems, embodiments of this application provide a device login method, electronic device, and system. The technical solution provided by these embodiments allows a first device to log in to a third device, which serves as the central hub for home services, via a second device equipped with a display screen, thereby reducing user operational difficulty and improving the user experience.

[0005] To achieve the above-mentioned technical objectives, the embodiments of this application provide the following technical solutions:

[0006] Firstly, a device login method is provided, applied to a third device. The method includes: receiving a registration request sent by a second device, the registration request carrying registration information, which is registration information assigned by the third device; after obtaining the registration information, sending login information to the second device; the login information instructs the second device to generate a QR code associated with the login information, which is used to assist the first device in logging into the third device.

[0007] In some embodiments, the third device is, for example, a whole-house smart home hub or a router.

[0008] In this way, the third device can assign registration information to the second device equipped with a display screen, thereby establishing a trusted connection between the second and third devices. Subsequently, users no longer need to manually enter the address or operate the host buttons; the first device can automatically obtain the address of the third device through the second device, enabling login via QR code scanning. This reduces the difficulty of user operation and improves login efficiency.

[0009] According to the first aspect, before receiving the registration request sent by the second device, the method further includes: receiving a first setting command sent by the first device, the first setting command being used to set the third device as the main home service hub; generating registration information according to the first setting command; and sending the registration information to the first device.

[0010] In some embodiments, the third device can determine the number of home service hubs (i.e., the second device) based on the home service hub information carried in the first setting command. Then, the third device can allocate a corresponding number of registration information entries to the home service hubs based on the number of hubs.

[0011] In some embodiments, the third device, based on the first setting command, determines that it is the main home service hub and needs to be configured as an entry point for other smart home devices. Then, the third device assigns registration information to the second device to establish a trusted communication connection, thereby issuing login information for logging into the third device. This facilitates the first device's subsequent login to the third device using the login information from the second device, reducing the difficulty of user operation.

[0012] According to the first aspect, or any implementation of the first aspect above, before receiving the first setting command sent by the first device, the method further includes: negotiating a key with the first device for transmitting data.

[0013] In this way, the security of data transmission between devices is ensured through key negotiation.

[0014] According to the first aspect, or any implementation of the first aspect above, before receiving the registration request sent by the second device, the method further includes: receiving a device information request sent by the first device; and sending a first device information response to the first device, the first device information response carrying the device type and device capabilities of the third device.

[0015] In some embodiments, the device capabilities are configured with an identifier for identifying the device identity. The first device can determine whether the third device or the second device is logging into the smart home system for the first time based on the identifier, and then determine whether there is a master home business hub or slave home business hub in the environment that has been assigned a device identity.

[0016] If the first device determines that such a device does not exist in the current smart home system, the first device can divide the main home service hub and the secondary home service hub according to the device type and device capabilities; or, display device information and respond to user operations to determine the main home service hub and the secondary home service hub.

[0017] According to the first aspect, or any implementation of the first aspect above, the method further includes: sending updated login information to the second device according to a preset period.

[0018] In this way, the second device can assist the first device in logging into the third device based on the latest login information, thereby reducing the risk of abnormal logins caused by login information leakage.

[0019] Secondly, a device login method is provided, applied to a second device. The method includes: receiving registration information sent by a first device, the registration information including a first address of a third device; sending a registration request to the third device corresponding to the first address based on the registration information, the registration request carrying registration information; receiving login information sent by the third device; and displaying a QR code associated with the login information, the QR code being used to assist the first device in logging into the third device.

[0020] In this way, users no longer need to manually enter the address or operate the host buttons. The first device can scan the QR code displayed on the second device's screen, which links to the third device's device information, to automatically obtain the third device's address and achieve login via QR code. This reduces the difficulty of user operation and improves login efficiency.

[0021] According to the second aspect, receiving registration information sent by the first device includes: receiving a second setting command sent by the first device, the second setting command being used to set the second device as a home service hub, the second setting command carrying registration information.

[0022] According to the second aspect, or any implementation of the second aspect above, before registering with the third device corresponding to the first address based on the registration information, the method further includes: negotiating a key with the third device for transmitting data.

[0023] According to the second aspect, or any implementation of the second aspect above, before receiving the registration information sent by the first device, the method further includes: receiving a device information request sent by the first device; and sending a second device information response to the first device, the second device information response carrying the device type and device capabilities of the second device.

[0024] According to the second aspect, or any implementation of the second aspect above, the method further includes: receiving updated login information sent by a third device at a preset period; and updating the locally stored login information based on the updated login information.

[0025] According to the second aspect, or any implementation of the second aspect above, displaying the QR code associated with login information includes: displaying the QR code associated with login information in response to a user operation; or, receiving a login information display instruction sent by the first device and displaying the QR code associated with login information; or, automatically displaying the QR code associated with login information after receiving login information.

[0026] For the technical effects of the second aspect and any of its implementation methods, please refer to the technical effects of the first aspect and any of its implementation methods mentioned above, which will not be repeated here.

[0027] Thirdly, a device login method is provided, applied to a third device. The method includes: forwarding registration information sent by the third device to a second device, the registration information including a first address of the third device; scanning a QR code displayed on the second device that is associated with login information of the third device to log in to the third device; the login information is information sent by the third device obtained by the second device after registering with the third device corresponding to the first address based on the registration information.

[0028] According to the third aspect, before forwarding the registration information sent by the third device to the second device, the method further includes: in response to a user's operation on the first application, sending device information requests to the second device and the third device. Based on the received first device information response from the third device and the received second device information response from the second device, a device list is displayed, wherein the first device information response carries the device type and capabilities of the third device, and the second device information response carries the device type and capabilities of the second device. In response to a user's operation on the device list, it is determined that the third device is the primary home service hub, and the second device is the secondary home service hub.

[0029] According to the third aspect, or any implementation of the third aspect above, the method further includes: sending a first setting command to a third device; the first setting command is used to set the third device as the main home service hub. Receiving registration information sent by the third device, the registration information being information generated by the third device after receiving the first setting command.

[0030] According to the third aspect, or any implementation of the third aspect above, before sending the first setting command to the third device, the method further includes: negotiating a key with the third device for transmitting data.

[0031] According to the third aspect, or any implementation of the third aspect above, the registration information sent by the third device is forwarded to the second device, including: sending a second setting command to the second device, the second setting command being used to set the second device as a home service hub, the second setting command carrying registration information.

[0032] According to the third aspect, or any implementation of the third aspect above, scanning the QR code displayed by the second device that is associated with the login information of the third device to log in to the third device includes: scanning the QR code displayed by the second device that is associated with the login information of the third device, obtaining the first address and verification code included in the login information; sending the verification code to the third device according to the first address, and logging in to the third device.

[0033] According to the third aspect, or any implementation of the third aspect above, before forwarding the registration information sent by the third device to the second device, the method further includes: negotiating a key with the second device for transmitting data.

[0034] For the technical effects of the third aspect and any of its implementation methods, please refer to the technical effects of the first aspect and any of its implementation methods mentioned above, which will not be repeated here.

[0035] Fourthly, a device login system is provided, comprising a first device, a second device, and a third device. The first device forwards registration information sent by the third device to the second device, the registration information including a first address of the third device. The second device sends a registration request to the third device corresponding to the first address based on the registration information, the registration request carrying the registration information. The third device, after obtaining the registration information, sends login information to the second device. The second device also displays a QR code associated with the login information. The first device further scans the QR code to log in to the third device.

[0036] According to the fourth aspect, the first device is further configured to send a device information request to the second device and the third device in response to a user's operation on the first application. The third device is further configured to send a first device information response to the first device based on the received device information request, the first device information response carrying the device type and device capabilities of the third device. The second device is further configured to send a second device information response to the first device based on the received device information request, the second device information response carrying the device type and device capabilities of the second device.

[0037] According to the fourth aspect, or any implementation of the third aspect above, the first device is further configured to display a device list based on a first device information response received from a third device and a second device information response received from a second device. The first device is also configured to, in response to a user's operation on the device list, determine that the third device is the primary home service hub and the second device is the secondary home service hub.

[0038] According to the fourth aspect, or any implementation of the third aspect above, the first device is further configured to send a first setting command to the third device; the first setting command is used to set the third device as the main home service hub. The third device is further configured to generate registration information according to the first setting command. The third device is further configured to send the registration information to the first device.

[0039] According to the fourth aspect, or any of the implementations of the third aspect above, the first device is also used to send a second setting command to the second device, the second setting command being used to set the second device as a home service hub, and the second setting command carrying registration information.

[0040] According to the fourth aspect, or any implementation of the third aspect above, the login information includes the first address of the third device and a verification code. The first device is specifically used to send a verification code to the third device based on the first address to log in to the third device.

[0041] According to the fourth aspect, or any implementation of the third aspect above, the first device is further configured to negotiate a key for transmitting data with at least one of the second and third devices.

[0042] For the technical effects of the fourth aspect and any of its implementation methods, please refer to the technical effects of the first aspect and any of its implementation methods mentioned above, which will not be repeated here.

[0043] Fifthly, an electronic device is provided. The electronic device includes: a processor and a memory, the memory being coupled to the processor. The memory stores computer-readable instructions, and when the processor reads the computer-readable instructions from the memory, the electronic device performs the following actions: receiving a registration request sent by a second device, the registration request carrying registration information, the registration information being registration information assigned by a third device; after obtaining the registration information, sending login information to the second device; the login information instructs the second device to generate a QR code associated with the login information, the QR code being used to assist the first device in logging into the third device.

[0044] According to the fifth aspect, when the processor reads computer-readable instructions from memory, it also causes the electronic device to perform the following operations: receive a first setting command sent by the first device, the first setting command being used to set the third device as the main home service hub; generate registration information according to the first setting command; and send the registration information to the first device.

[0045] According to the fifth aspect, or any implementation of the fifth aspect above, when the processor reads computer-readable instructions from memory, it also causes the electronic device to perform the following operation: negotiate a key with the first device for transmitting data.

[0046] According to the fifth aspect, or any implementation thereof, when the processor reads computer-readable instructions from memory, it also causes the electronic device to perform the following operations: receiving a device information request sent by the first device; and sending a first device information response to the first device, the first device information response carrying the device type and device capabilities of the third device.

[0047] According to the fifth aspect, or any implementation of the fifth aspect above, when the processor reads computer-readable instructions from memory, it also causes the electronic device to perform the following operation: sending updated login information to the second device at a preset period.

[0048] The technical effects of the fifth aspect and any of its implementations can be found in the first aspect and any of its implementations, and will not be repeated here.

[0049] Sixthly, an electronic device is provided. The electronic device includes: a processor, a memory, and a display screen, the memory and display screen being coupled to the processor. The memory stores computer-readable instructions, and when the processor reads the computer-readable instructions from the memory, the electronic device performs the following actions: receiving registration information sent by a first device, the registration information including a first address of a third device; sending a registration request to the third device corresponding to the first address based on the registration information, the registration request carrying registration information; receiving login information sent by the third device; and displaying a QR code associated with the login information, the QR code being used to assist the first device in logging into the third device.

[0050] According to the sixth aspect, receiving registration information sent by the first device includes: receiving a second setting command sent by the first device, the second setting command being used to set the second device as a home service hub, the second setting command carrying registration information.

[0051] According to the sixth aspect, or any implementation thereof, when the processor reads computer-readable instructions from memory, it also causes the electronic device to perform the following operation: negotiate a key with a third device for transmitting data.

[0052] According to the sixth aspect, or any implementation thereof, when the processor reads computer-readable instructions from memory, it also causes the electronic device to perform the following operations: receiving a device information request sent by a first device; and sending a second device information response to the first device, the second device information response carrying the device type and device capabilities of the second device.

[0053] According to the sixth aspect, or any implementation thereof, when the processor reads computer-readable instructions from memory, it also causes the electronic device to perform the following operations: receiving updated login information sent by a third device at a preset period; and updating the locally stored login information based on the updated login information.

[0054] According to the sixth aspect, or any implementation of the sixth aspect above, displaying the QR code associated with login information includes: displaying the QR code associated with login information in response to a user operation; or, receiving a login information display instruction sent by the first device and displaying the QR code associated with login information; or, automatically displaying the QR code associated with login information after receiving login information.

[0055] For the technical effects of the sixth aspect and any of its implementations, please refer to the technical effects of the second aspect and any of its implementations mentioned above; they will not be repeated here.

[0056] A seventh aspect provides an electronic device. The electronic device includes: a processor and a memory, the memory being coupled to the processor, the memory storing computer-readable instructions, wherein when the processor reads the computer-readable instructions from the memory, the electronic device performs the following actions: forwarding registration information sent by a third device to a second device, the registration information including a first address of the third device; scanning a QR code displayed on the second device that is associated with login information of the third device to log in to the third device; the login information being information sent by the third device obtained by the second device after registering with the third device corresponding to the first address based on the registration information.

[0057] According to the seventh aspect, when the processor reads computer-readable instructions from memory, it also causes the electronic device to perform the following operations: In response to a user's operation on the first application, it sends device information requests to the second and third devices. Based on the received first device information response from the third device and the received second device information response from the second device, it displays a device list, wherein the first device information response carries the device type and device capabilities of the third device, and the second device information response carries the device type and device capabilities of the second device. In response to a user's operation on the device list, it determines that the third device is the primary home service hub and the second device is the secondary home service hub.

[0058] According to the seventh aspect, or any implementation thereof, when the processor reads computer-readable instructions from memory, it also causes the electronic device to perform the following operations: sending a first setting command to a third device; the first setting command is used to set the third device as the main home service hub; and receiving registration information sent by the third device, the registration information being information generated by the third device after receiving the first setting command.

[0059] According to the seventh aspect, or any implementation thereof, when the processor reads computer-readable instructions from memory, it also causes the electronic device to perform the following operation: negotiate a key with a third device for transmitting data.

[0060] According to the seventh aspect, or any implementation of the seventh aspect above, the registration information sent by the third device is forwarded to the second device, including: sending a second setting command to the second device, the second setting command being used to set the second device as a home service hub, the second setting command carrying registration information.

[0061] According to aspect seven, or any implementation thereof, scanning a QR code displayed on the second device that is associated with the third device to log in to the third device includes: scanning the QR code displayed on the second device that is associated with the third device to obtain a first address and a verification code included in the login information; sending the verification code to the third device based on the first address to log in to the third device.

[0062] According to the seventh aspect, or any implementation thereof, when the processor reads computer-readable instructions from memory, it also causes the electronic device to perform the following operation: negotiate a key with the second device for transmitting data.

[0063] The technical effects of the seventh aspect and any of its implementations can be found in the third aspect and any of its implementations, and will not be repeated here.

[0064] Eighthly, embodiments of this application provide an electronic device having the function of implementing the device login method as described in the first aspect and any of its possible implementations. This function can be implemented in hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-described function.

[0065] The technical effects of the eighth aspect and any implementation thereof can be found in the first aspect and any implementation thereof, and will not be repeated here.

[0066] Ninthly, embodiments of this application provide an electronic device having the function of implementing the device login method as described in the second aspect and any of its possible implementations. This function can be implemented in hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-described function.

[0067] The technical effects of the ninth aspect and any of its implementations can be found in the second aspect and any of its implementations, and will not be repeated here.

[0068] In a tenth aspect, embodiments of this application provide an electronic device having the function of implementing the device login method as described in the third aspect and any of its possible implementations. This function can be implemented in hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-described function.

[0069] The technical effects of the tenth aspect and any of its implementations can be found in the third aspect and any of its implementations mentioned above, and will not be repeated here.

[0070] Eleventhly, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program (also referred to as instructions or code) that, when executed by an electronic device, causes the electronic device to perform the method of the first aspect or any embodiment of the first aspect; or causes the electronic device to perform the method of the second aspect or any embodiment of the second aspect; or causes the electronic device to perform the method of the third aspect or any embodiment of the third aspect.

[0071] The technical effects of the eleventh aspect and any of its implementations can be found in the first aspect and any of its implementations, and will not be repeated here.

[0072] In a twelfth aspect, embodiments of this application provide a computer program product that, when run on an electronic device, causes the electronic device to perform the method of the first aspect or any one of the embodiments of the first aspect; or causes the electronic device to perform the method of the second aspect or any one of the embodiments of the second aspect; or causes the electronic device to perform the method of the third aspect or any one of the embodiments of the third aspect.

[0073] The technical effects of the twelfth aspect and any of its implementations can be found in the first aspect and any of its implementations, which will not be repeated here.

[0074] In a thirteenth aspect, embodiments of this application provide a circuit system including a processing circuit configured to perform the method of the first aspect or any one of the embodiments of the first aspect; or, the processing circuit configured to perform the method of the second aspect or any one of the embodiments of the second aspect; or, the processing circuit configured to perform the method of the third aspect or any one of the embodiments of the third aspect.

[0075] The technical effects corresponding to the thirteenth aspect and any of the implementation methods of the thirteenth aspect can be found in the first aspect and any of the implementation methods of the first aspect mentioned above, and will not be repeated here.

[0076] In a fourteenth aspect, embodiments of this application provide a chip system including at least one processor and at least one interface circuit. The at least one interface circuit is used to perform transceiver functions and send instructions to the at least one processor. When the at least one processor executes the instructions, the at least one processor executes the method of the first aspect or any one of the embodiments of the first aspect; or, the at least one processor executes the method of the second aspect or any one of the embodiments of the second aspect; or, the at least one processor executes the method of the third aspect or any one of the embodiments of the third aspect.

[0077] The technical effects of the fourteenth aspect and any of its implementations can be found in the first aspect and any of its implementations, and will not be repeated here. Attached Figure Description

[0078] Figure 1A A schematic diagram of the device login method provided in this application embodiment;

[0079] Figure 1B A schematic diagram of the communication system used in the device login method provided in this embodiment of the application;

[0080] Figure 2A Schematic diagram 2 of the device login method provided in the embodiments of this application;

[0081] Figure 2B Schematic diagram 2 of the communication system used in the device login method provided in this application embodiment;

[0082] Figure 3 A schematic diagram of the communication system used in the device login method provided in the embodiments of this application. Figure 3 ;

[0083] Figure 4A A schematic diagram of the hardware structure of the first or second device provided in the embodiments of this application;

[0084] Figure 4BA schematic diagram of the hardware structure of the third device provided in the embodiments of this application;

[0085] Figure 5 Flowchart of the device login method provided in the embodiments of this application Figure 3 ;

[0086] Figure 6 A schematic diagram of the interface provided for an embodiment of this application;

[0087] Figure 7 A second schematic diagram of the interface provided for an embodiment of this application;

[0088] Figure 8 This is a schematic diagram of a QR code scanning scenario provided in an embodiment of this application;

[0089] Figure 9 Interface illustration provided for embodiments of this application Figure 3 ;

[0090] Figure 10 A schematic diagram of the structure of the first device provided in the embodiments of this application;

[0091] Figure 11 This is a schematic diagram of the structure of the second device provided in an embodiment of this application;

[0092] Figure 12 A schematic diagram of the structure of the third device provided in the embodiments of this application. Detailed Implementation

[0093] The technical solutions of the embodiments of this application are described below with reference to the accompanying drawings. In the description of the embodiments of this application, the terminology used in the following embodiments is for the purpose of describing specific embodiments only and is not intended to be a limitation of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to include expressions such as “one or more,” unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this application, “at least one” and “one or more” refer to one or more (including two).

[0094] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized. The term "connection" includes direct connections and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated.

[0095] In the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.

[0096] In some scenarios, during the pre-installation phase of a smart home system, before delivery to the user, installation and maintenance engineers need to configure and test the devices. This process is known as the pre-installation process. During pre-installation, the installation and maintenance engineer logs into the first application (e.g., mobile phone) via an electronic device. After applying the application, log in to the home business hub of the smart home system through the first application in the electronic device to complete the configuration and debugging of smart home devices in the smart home system.

[0097] The home service hub integrates the central services of the smart home system, enabling the management and control of various smart home devices. Optionally, resident or constantly powered devices within the smart home system can be designated as the home service hub. For example, the home service hub could be a whole-house smart host, a whole-house smart mini-host, a router, or other similar devices.

[0098] For example, taking the electronic device used by the installation and maintenance engineer as a mobile phone and the home business hub as a whole-house smart host or a whole-house smart light host as an example, the process of electronic devices logging into the home business hub during the pre-installation process will be introduced.

[0099] For example, such as Figure 1AAs shown, after logging into the first application on the mobile phone, a device list will be displayed, and the installation and maintenance engineer can select a device that supports login (i.e., step 1.1). Then, in response to the user's device selection, the mobile phone will display the host login interface (i.e., step 1.2), through which the user can scan the host's QR code or enter the host's internet protocol address.

[0100] In such Figure 1A In the pre-installation process shown, the central hub for home services is the whole-house smart home host. The whole-house smart home host is equipped with a display screen, which displays a QR code in response to user interaction (i.e., step 1.3). Subsequently, the user's mobile phone responds by scanning the QR code displayed on the whole-house smart home host using the first application, completing the login process (i.e., step 1.4). Figure 1B As shown, after successfully logging into the whole-house smart host 102, mobile phone 101 can establish a communication connection with the whole-house smart host 102. Installation and maintenance engineers can use the first application to complete the configuration and debugging of other smart home devices in the smart home system through the whole-house smart host 102.

[0101] For example, such as Figure 2A As shown, steps 2.1 and 2.2 are the same as described above. Figure 1A As shown in steps 1.1 and 1.2, after logging into the first application on the mobile phone, the host login interface can be displayed in response to the user's selection of a device from the displayed device list. If the home business hub is a whole-house smart light host, since the whole-house smart light host does not have a display screen, login needs to be completed via button authentication.

[0102] Specifically, since the mobile phone cannot automatically obtain the IP address of the login device during the login process, the installation and maintenance engineer needs to view the IP address of the login device on the router's management page. Afterwards, once the mobile phone detects the user's input of the host IP address on the host login interface (i.e., step 2.3), it sends a login request to the device corresponding to that host IP address (such as the whole-house smart home host) (i.e., step 2.4). After receiving the login request and detecting the user's key presses (i.e., step 2.5), the whole-house smart home host allows the mobile phone to log in, thus enabling mobile phone login to the whole-house smart home host (i.e., step 2.6). Figure 2B As shown, after successfully logging into the whole-house smart light host 103, mobile phone 101 can establish a communication connection with the whole-house smart light host 103. Installation and maintenance engineers can use the first application to complete the configuration and debugging of other smart home devices in the smart home system through the whole-house smart light host 103.

[0103] With the development of terminal technology, smart home devices can be flexibly combined and sold to meet diverse user needs. Therefore, within the same smart home system, multiple devices can support login to the first application (i.e., multiple devices can serve as the central hub for home operations). This leads to installation and maintenance engineers being unable to determine the correct device to log in to during the device selection process described in steps 1.2 or 2.2 above.

[0104] Furthermore, as mentioned above Figure 2A In the scenario depicted, where the whole-house smart home hub (or router) serves as the central processing unit for home services, the installation and maintenance engineer needs to individually view and input the hub's IP address. Furthermore, to prevent accidental operation by residents, the login button on the whole-house smart home hub typically requires special tools. Therefore, this type of home service hub without a display screen presents significant operational difficulties for users, impacting login efficiency.

[0105] Furthermore, since each login requires access to the login device (as mentioned above) Figure 1B The whole-house smart host 102 shown, or as described above Figure 2B To complete the corresponding operation on the whole-house smart light host 103 shown, the installation and maintenance engineer needs to determine the location of the login device and walk to that location to operate the login device, which will also affect the login efficiency.

[0106] Therefore, this application provides a device login method, which enables electronic devices to log in to the home service hub with the help of screen devices, reducing the difficulty of user operation and improving the user experience.

[0107] Figure 3 This is a schematic diagram of the communication system for the device login application provided in an embodiment of this application. Figure 3 As shown in (a), the communication system includes a first device 100, a second device 200 and a third device 300.

[0108] Optionally, the first device 100 is the device used by the installation and maintenance engineer to log into the home service hub. For example, it can be a mobile phone, tablet, laptop, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), wearable device, artificial intelligence (AI) device, or other terminal device. The operating system installed on the first device 100 includes, but is not limited to, […]. Or other operating systems. This application does not limit the specific type of the first device 100 or the operating system installed on it.

[0109] Optionally, the second device 200 can be, for example, a smart home device, a mobile phone, tablet computer, laptop computer, netbook, PDA, wearable device, AI device, or other terminal device. Among these, smart home devices include, for example, smart home control panels, audio-visual equipment (such as large-screen devices, speakers, etc.), lighting systems (such as table lamps, light bulbs, etc.), environmental control equipment (such as air purifiers, robot vacuum cleaners, etc.), security systems (such as cameras, smart door locks, etc.), kitchen appliances (such as ovens, dishwashers, etc.), and smart sensors.

[0110] The operating system installed on the second device 200 includes, but is not limited to, the following: Alternatively, it may use another operating system. The second device 200 may also not have an operating system installed. This application does not limit the specific type of the second device 200, whether it has an operating system installed, or the type of operating system if it does have an operating system installed.

[0111] Optionally, the third device 300 serves as the central hub for home services, managing and controlling devices in the smart home system (such as the second device 200). After the first device 100 logs into the third device 300 through the first application, it can perform the device configuration and debugging process during the pre-installation phase. The third device 300 can be, for example, a whole-house smart home hub, or something similar. Figure 3 The whole-house smart light host shown in (a) can be, or can be, for example, Figure 3 The router and other smart home devices shown in (b) are examples. This application does not limit the specific type of the third device 300.

[0112] Optionally, the bandwidth of the third device 300 supports the third device 300 in configuring other devices in the communication system, and / or the third device 300 as a long-term device in the communication system, and / or the third device 300 as a resident device in the communication system.

[0113] The first application has the function of configuring and testing smart home devices during the pre-installation process. For example, the first application is... application.

[0114] In some embodiments, the number of second devices 200 is one or more. Each second device 200 includes at least one device with a display screen, which is a device that supports login to the first application and can also serve as a home service hub.

[0115] Optionally, the bandwidth of the at least one screen device does not support the configuration of a third device 300, and / or the at least one screen device is not a long-term power device, and / or the at least one screen device is not a resident device.

[0116] In the case where both the at least one screen-equipped device and the third device 300 exist simultaneously in the communication system, the first device 100 can set the third device 300 as the primary home service hub and the at least one screen-equipped device as the secondary home service hub. Alternatively, in response to the installation and maintenance engineer's primary / secondary service hub assignment operation, the first device 100 sets the third device 300 as the primary home service hub and the at least one screen-equipped device as the secondary home service hub. Afterwards, the third device 300 is used to configure and debug the second device 200 (including the at least one screen-equipped device).

[0117] Optionally, in addition to the at least one screen device that supports login to the first application, the other second device 200 may be a smart home device that supports login to the first application, or a regular smart home device that does not support login to the first application.

[0118] In some embodiments, the first device 100 can establish wireless communication connections with the second device 200 and the third device 300 via wireless communication technology. The wireless communication technology includes, but is not limited to, at least one of the following: wireless local area networks (WLAN) (such as Wireless Fidelity (Wi-Fi) networks), power line communication (PLC), Bluetooth (BT) (e.g., classic Bluetooth or Bluetooth Low Energy (BLE)), near field communication (NFC), Zigbee, frequency modulation (FM), infrared (IR), etc.

[0119] Optionally, the first device 100, the second device 200, and the third device 300 all support proximity discovery. For example, after the first device 100 approaches the second device 200 and the third device 300, the first device 100, the second device 200, and the third device 300 can discover each other and then establish wireless communication connections such as Wi-Fi peer-to-peer (P2P) connections.

[0120] For example, the second device 200 and the third device 300 establish a wireless communication connection via a local area network (LAN). For instance, both the second device 200 and the third device 300 are connected to the same router. Subsequently, after the first device 100 accesses the LAN (e.g., connected to the router), it can discover the second device 200 and the third device 300 and establish a wireless communication connection.

[0121] In some embodiments, after the first device 100, the second device 200, and the third device 300 are connected to the same local area network, the first device 100 can log in to the third device 300 through the display screen of the screen device in the second device 200 that supports login of the first application. Afterwards, the first application in the first device 100 can configure and debug the second device 200 through the third device 300, completing the pre-installation process of the smart home system.

[0122] For example, Figure 4A A schematic diagram of a structure of a first device 100 or a second device 200 is shown.

[0123] The first device 100 or the second device 200 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 sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0124] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the first device 100 or the second device 200. In other embodiments of this application, the first device 100 or the second device 200 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0125] For example, the second device 200 is a large-screen device, and the second device 200 does not include the mobile communication module 150.

[0126] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.

[0127] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.

[0128] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0129] In some embodiments, the processor 110 may include one or more interfaces. Interfaces 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, and / or a universal serial bus (USB) interface, etc.

[0130] USB port 130 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, USB Type-C port, etc. USB port 130 can be used to connect a charger to charge the first device 100 or the second device 200, and can also be used for data transfer between the first device 100 or the second device 200 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other first devices, such as AR devices.

[0131] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the first device 100 or the second device 200. In other embodiments of this application, the first device 100 or the second device 200 may also adopt different interface connection methods or a combination of multiple interface connection methods as described in the above embodiments.

[0132] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the first device 100 or the second device 200. While charging the battery 142, the charging management module 140 can also supply power to the first device via the power management module 141.

[0133] The power management module 141 connects 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, providing power to the processor 110, internal memory 121, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.

[0134] The wireless communication function of the first device 100 or the second device 200 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor.

[0135] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the first device 100 or the second device 200 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.

[0136] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the first device 100 or the second device 200. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0137] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs a sound signal through an audio device or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.

[0138] The wireless communication module 160 can provide solutions for wireless communication applications on the first device 100 or the second device 200, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0139] In some embodiments, the first device 100, the second device 200, and the third device 300 are connected to the same Wi-Fi network via a wireless communication module and can discover each other. The first device 100 can display the discovered devices on the display screen 194. In response to user operation, it can identify the main home service hub (such as the third device 300) and the secondary home service hub (such as the second device 200). Thus, the first device 100 can obtain the login information of the main home service hub through the secondary home service hub and log in to the main home service hub.

[0140] In some embodiments, antenna 1 of the first device 100 or the second device 200 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling the first device 100 or the second device 200 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).

[0141] The first device 100 or the second device 200 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0142] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be manufactured using a liquid crystal display (LCD), such as an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a mini-LED, a micro-LED, a micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the first device 100 or the second device 200 may include one or N displays 194, where N is a positive integer greater than 1.

[0143] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the first device 100 or the second device 200 may include one or N cameras 193, where N is a positive integer greater than 1.

[0144] The external storage interface 120 can be used to connect an external storage card, such as a Micro SD card, to expand the storage capacity of the first device 100 or the second device 200. The external storage card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external storage card.

[0145] Internal memory 121 can be used to store computer executable program code, which includes instructions. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of the first device 100 or the second device 200 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. Processor 110 executes various functional applications and data processing of the first device 100 or the second device 200 by running instructions stored in internal memory 121 and / or instructions stored in memory disposed in the processor.

[0146] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110. The first device 100 or the second device 200 can use the audio module 170 for, for example, music playback, recording, etc. The audio module 170 may include a speaker, receiver, microphone, headphone jack, and application processor, etc., to implement audio functions.

[0147] The sensor module 180 may include pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, accelerometers, distance sensors, proximity sensors, fingerprint sensors, temperature sensors, touch sensors, ambient light sensors, bone conduction sensors, etc.

[0148] Button 190 includes a power button, volume buttons, etc. Button 190 can be a mechanical button or a touch button. The first device 100 or the second device 200 can receive button input and generate key signal inputs related to user settings and function control of the first device 100 or the second device 200.

[0149] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can correspond to touch operations performed on different applications (such as taking photos, playing audio, etc.). Motor 191 can also correspond to different vibration feedback effects for touch operations performed on different areas of the display screen 194. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.

[0150] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.

[0151] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to make contact with or separate from the first device 100 or the second device 200. The first device 100 or the second device 200 can support one or N SIM card interfaces, where N is a positive integer greater than 1.

[0152] For example, Figure 4B A schematic diagram of a third device 300 is shown.

[0153] The third device 300 includes at least one processor 201, a communication line 202, a memory 203, and at least one communication interface 204. The memory 203 may also be included within the processor 201.

[0154] The processor 201 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the program of the present application.

[0155] Communication line 202 may include a path for transmitting information between the aforementioned components.

[0156] Communication interface 204 is used for communication with other devices. In this embodiment, the communication interface can be a module, circuit, bus, interface, transceiver, or other device capable of communication functions, used for communication with other devices. Optionally, when the communication interface is a transceiver, the transceiver can be a separately configured transmitter used to send information to other devices, or it can be a separately configured receiver used to receive information from other devices. The transceiver can also be a component that integrates sending and receiving information functions; this embodiment does not limit the specific implementation of the transceiver.

[0157] The memory 203 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto. The memory may exist independently and be connected to the processor via communication line 202. The memory may also be integrated with the processor.

[0158] The memory 203 stores computer execution instructions for implementing the scheme of this application, and its execution is controlled by the processor 201. The processor 201 executes the computer execution instructions stored in the memory 203, thereby implementing the device login method provided in the following embodiments of this application.

[0159] Optionally, the computer execution instructions in the embodiments of this application may also be referred to as application code, instructions, computer program or other names, and the embodiments of this application do not specifically limit them.

[0160] In a specific implementation, as one embodiment, the processor 201 may include one or more CPUs, for example... Figure 4B CPU0 and CPU1 in the CPU.

[0161] In a specific implementation, as one example, the third device 300 may include multiple processors, for example... Figure 4B Processors 201 and 207 are described herein. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor here may refer to one or more devices, circuits, and / or processing cores used to process data (e.g., computer program instructions).

[0162] The third device 300 described above can be a general-purpose device or a special-purpose device, and the embodiments of this application do not limit the type of the third device 300. The structure illustrated in the embodiments of this application does not constitute a specific limitation on the third device 300. In other embodiments of this application, the third device 300 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components can be implemented in hardware, software, or a combination of software and hardware. For example, in the case where the third device 300 is a whole-house smart host, it is equipped with a display screen.

[0163] The following describes the device login method provided in this application embodiment, taking the first device 100 as a mobile phone, the second device 200 as a smart home control panel, and the third device 300 as a whole-house smart light host as an example.

[0164] In some embodiments, during the pre-installation process before the smart home system is delivered to residents, it is necessary to configure the control functions and scene functions of the smart home devices in the smart home system to complete the deployment and installation of the whole-house smart environment. The smart home system includes a home service hub, which connects to the smart home devices within the system for managing and controlling them. Installation and maintenance engineers can log into the home service hub using a first application to configure and test the smart home devices, completing the pre-installation process of the smart home system.

[0165] It should be noted that the embodiments of this application take the first application as an example. This example demonstrates the device login process. For login processes of other applications used for deploying and installing whole-house smart environments, please refer to [the provided text]. The application login process.

[0166] For example, Figure 5 This is a schematic flowchart of a device login method provided in an embodiment of this application. Figure 5 As shown, the method includes the following steps.

[0167] S501: The mobile phone detected the user's device search operation.

[0168] In some embodiments, after the mobile phone detects the user's action of launching the first application, it can launch the first application. During the display of the first application, the mobile phone can search for devices that support login to the first application. Among these devices, those that support login to the first application include devices that can serve as a central hub for home services, providing a control interface for all smart home devices.

[0169] Optionally, based on users' needs for flexible device usage, device manufacturers can break down existing smart home systems that originally consist of multiple smart home devices. These different smart home devices can then be freely combined to form a smart home system that meets the user's needs. Therefore, manufacturers configure multiple smart home devices to support login to the first application, ensuring that after a user selects smart home devices, the resulting smart home system includes at least one device that supports login.

[0170] Therefore, a smart home system may contain one or more smart home devices that support login. During the login process, the mobile phone needs to search for these smart home devices, select one of them as the main home service hub for this pre-installation process, and complete the configuration and debugging of the smart home devices through the main home service hub.

[0171] In some embodiments, a wireless local area network (WLAN) (such as a wireless fidelity (Wi-Fi) network) is configured in the home environment. After the mobile phone connects to the Wi-Fi network, it can search for multiple smart home devices that have already connected to the Wi-Fi network and support the login of the first application.

[0172] For example, such as Figure 6 In the interface 601 shown in (a), after the mobile phone detects the user's click on the first application icon 61, it confirms the launch of the first application. Figure 6 As shown in (b), after the phone launches the first application, it displays the device addition interface 602. After the phone detects the user's click on the add control 62, it begins to search for devices that support login with the first application, and displays them as shown in (b). Figure 6 Interface 603 is shown in (c).

[0173] It should be noted that in this embodiment of the application, "user" refers to the user who configures the smart home system, such as an installation and maintenance engineer, and will not be described further below.

[0174] S502a: The mobile phone sends a device information request to the whole-house smart light host.

[0175] S502b: The mobile phone sends a device information request to the smart home control panel.

[0176] In some embodiments, during steps S502a and S502b, the mobile phone sends a device information request during the device search process to discover devices within the local area network that support login with the first application. Optionally, the device information request can be sent in the form of a multicast message.

[0177] For example, the smart home system to be configured includes a whole-house smart light host and a smart home control panel. The mobile phone sends device information requests to the whole-house smart light host and the smart home control panel.

[0178] It should be noted that the execution order of steps S502a and S502b is not limited in the embodiments of this application.

[0179] The S503a smart home hub sends device information to the mobile phone in response.

[0180] S503b, the smart home control panel sends device information responses to the mobile phone.

[0181] In some embodiments, during steps S503a and S503b, after receiving a device information request, the device supporting the first application login (such as a whole-house smart home hub and a smart home control panel) can send a device information response to the mobile phone. Optionally, the device information response may include information such as its own device name, device type, and device capabilities.

[0182] Optionally, the device information request carries an identifier. After receiving the device information request, the device in the smart home system identifies the identifier and determines the device that supports the login of the first application to respond to the device information request, that is, to send a device information response to the mobile phone.

[0183] Optionally, the mobile phone can also send device information requests to some smart home devices in the smart home system. Optionally, some smart home devices that receive the device information request can also include their device information in the device information response.

[0184] It should be noted that the execution order of steps S503a and S503b is not limited in the embodiments of this application.

[0185] S504: The mobile phone responds based on the device information and displays a list of devices.

[0186] In some embodiments, after receiving a device information response, the mobile phone determines whether the corresponding device is a device that is logging into the smart home environment to be configured for the first time. Then, the mobile phone displays a device list including smart home devices that are logging into the smart home environment to be configured for the first time.

[0187] For example, during device configuration, the mobile phone assigns a corresponding device identity to smart home devices (such as a master home service hub or a slave home service hub). The device capabilities of each smart home device will have a corresponding identifier to indicate its assigned device identity. Therefore, after receiving a device information response, the mobile phone can determine whether the smart home device sending the response is logging into the smart home environment to be configured for the first time, based on the device capabilities carried within it. If the device information response does not include this identifier in its device capabilities, it indicates that the device is logging into the smart home environment to be configured for the first time.

[0188] For example, such as Figure 6 As shown in interface 603 (c), during the device search process, after the mobile phone identifies the device that is logging into the smart home environment to be configured for the first time, it will proceed as follows: Figure 6 These devices are displayed on interface 604 shown in (d).

[0189] Optionally, the phone can display the device names of smart home devices in the smart home environment to be configured for the first time in the device list, making it easier for users to distinguish between different devices.

[0190] S505: In response to user operation, the mobile phone determines the main home service hub and the secondary home service hub.

[0191] In some embodiments, all displayed smart home devices can support login to the first application and configuration of the smart home environment, but the capabilities of different smart home devices vary. Therefore, users can set the smart home device with stronger capabilities as the main home service hub and other smart home devices as secondary home service hubs.

[0192] For example, based on equipment capabilities such as bandwidth, whether it is a long-term powered device, and whether it is a permanently stationed device, primary and secondary home service hubs can be designated. For instance, devices with high bandwidth can be designated as primary home service hubs, and other devices as secondary home service hubs. Alternatively, devices with long-term powered devices can be designated as primary home service hubs, and other devices as secondary home service hubs. Or, permanently stationed devices can be designated as primary home service hubs, and other devices as secondary home service hubs.

[0193] In some embodiments, the mobile phone, in response to a user action, can determine the main home service hub and the secondary home service hub.

[0194] For example, such as Figure 6 As shown in interface 604 (d), when the mobile phone detects the user's click on control 63, it can determine the whole-house smart light host corresponding to control 63 as the main home business hub, and other smart home devices as the secondary home business hubs.

[0195] In other embodiments, the mobile phone can automatically divide the main home service hub and the secondary home service hub according to preset master-slave home service hub division conditions and the device information response received in steps S503a and S503b above. Optionally, after determining the main home service hub, the mobile phone can display a prompt message to prompt the user to confirm whether to set the device automatically assigned to the main home service hub as the main home service hub. If the user's confirmation operation is detected, the device automatically assigned to the main home service hub is set as the main home service hub, completing the division of the main and secondary home service hubs. If the user's cancellation operation is detected, the following can be displayed: Figure 6 The interface 604 shown in (d) divides the main home furnishing business hub and the secondary home furnishing business hub according to the user's operation.

[0196] S506: The mobile phone sends a command to the whole-house smart light host to set the main home service hub.

[0197] In some embodiments, the mobile phone negotiates keys with each smart home device displayed in the device list to ensure the security of subsequent data transmission between devices.

[0198] For example, mobile phones and various smart home devices are configured with pre-set personal identification numbers (PINs), and the key negotiation process is performed through the pre-set PIN. For instance, the mobile phone and various smart home devices negotiate keys according to the Simple Password Exponential Key Exchange (SPEKE) protocol to determine the negotiated key used to encrypt the transmitted data subsequently.

[0199] In some embodiments, after identifying the main home service hub, the mobile phone sends a main home service hub setting command encrypted with negotiation key 1 to the main home service hub (such as a whole-house smart light host) to instruct the main home service hub to determine its own device identity. Optionally, the main home service hub setting command carries information about the secondary home service hubs, such as the number of secondary home service hubs.

[0200] S507, Whole-house smart light host allocates registration information from the home business center.

[0201] In some embodiments, after receiving and decrypting the main home service hub setting command, the whole-house smart light host can determine itself as the main home service hub and needs to be configured as an entry point for other smart home devices. Furthermore, the whole-house smart light host assigns registration information to the secondary home service hubs, which is used to register the main home service hub.

[0202] Optionally, the whole-house smart home hub can determine the number of slave home service hubs based on the slave home service hub information carried in the main home service hub setting command. Then, the whole-house smart home hub can assign a corresponding number of registration information entries to each slave home service hub based on the number of slave home service hubs.

[0203] The S508 smart home hub sends registration information to the mobile phone.

[0204] In some embodiments, the whole-house smart light host encrypts the determined registration information using negotiation key 1 and sends it to the mobile phone. The mobile phone then receives the registration information.

[0205] S509: The mobile phone sends a home service hub setting command carrying registration information to the smart home control panel.

[0206] In some embodiments, after receiving the registration information, the mobile phone decrypts the registration information, encrypts it again using negotiation key 2, and sends it to the home service hub (such as a smart home control panel). Optionally, the mobile phone sends a home service hub setting command to the home service hub, which instructs the home service hub to determine its own device identity and includes the registration information in the home service hub setting command.

[0207] In other embodiments, the mobile phone can also send the home service hub setting command and registration information separately. For example, in step S506 above, while the mobile phone is sending the main home service hub setting command to the whole-house smart light host, it can also send the secondary home service hub setting command to the smart home control panel. Afterwards, after obtaining the registration information, the mobile phone forwards the registration information separately to the smart home control panel.

[0208] The S510 and smart home control panel complete the registration with the whole-house smart light host based on the registration information.

[0209] In some embodiments, the smart home control panel and the whole-house smart light host negotiate a key based on a preset PIN to determine a negotiation key 3 used to encrypt communication data, thereby ensuring communication security. For example, the smart home control panel and the whole-house smart light host negotiate the key according to the SPEKE protocol.

[0210] In some embodiments, after receiving and decrypting a setting command from the home service hub, the smart home control panel obtains the registration information carried therein. Optionally, the registration information includes the IP address of the whole-house smart light host. Then, based on the registration information and negotiation key 3, the smart home control panel can register with the whole-house smart light host corresponding to the IP address. The whole-house smart light host determines that the registration information used by the currently registered smart home control panel is the registration information assigned to it. Therefore, the whole-house smart light host can determine that the smart home control panel is a trusted device and complete the registration of the smart home control panel.

[0211] S511, the whole-house smart light host sends login information to the smart home control panel.

[0212] In some embodiments, after registration is completed, the whole-house smart light host sends login information encrypted with negotiation key 3 to the smart home control panel. This login information is used to log in to the whole-house smart light host. Optionally, the device login information includes its own login IP address and verification code.

[0213] S512, the smart home control panel displays a QR code associated with login information.

[0214] In some embodiments, after receiving login information, the smart home control panel generates a QR code associated with the login information using a preset algorithm.

[0215] For example, such as Figure 7 As shown in (a), in response to a user operation, the smart home control panel displays a settings interface 701. On the settings interface 701, after the smart home control panel detects a user clicking on control 71, it can display the following: Figure 7 Interface 702 is shown in (b). On interface 702, the smart home control panel displays a QR code for login information associated with the whole-house smart home hub. Optionally, the smart home control panel may also automatically display the login QR code at appropriate times without requiring user click controls.

[0216] In some embodiments, after receiving login information, the smart home control panel saves the login information. This allows other electronic devices to generate a corresponding QR code based on the saved login information when they subsequently need to log in to the whole-house smart home hub, assisting them in completing the login process.

[0217] S513. Scan the QR code displayed on the smart home control panel with your mobile phone to obtain login information.

[0218] In some embodiments, such as Figure 8As shown, the first application on the mobile phone can scan the QR code displayed on the smart home control panel through the login interface to obtain the login information of the whole-house smart light host.

[0219] Optionally, the smart home control panel can also generate and display information for completing the login process in other possible forms after receiving the login information sent by the whole-house smart light host.

[0220] S514: The mobile phone logs in to the whole-house smart light host based on the login information.

[0221] In some embodiments, after obtaining the login information, the mobile phone determines the included IP address and verification code. Then, based on the IP address, the mobile phone sends the verification code, encrypted using negotiation key 1, to the device corresponding to that IP address (such as the whole-house smart home hub). Correspondingly, the whole-house smart home hub corresponding to the IP address receives the verification code sent by the mobile phone, decrypts it, and determines that the verification code is its own generated verification code. Therefore, the whole-house smart home hub confirms that the mobile phone verification is successful and allows the mobile phone to log in. Subsequently, the user can log in to the whole-house smart home hub through the first application on the mobile phone, search for other smart home devices, and complete the configuration and debugging of the whole-house smart home scene.

[0222] In this way, users no longer need to manually enter the IP address or manually operate the main unit buttons. Their mobile phones, using devices with screens, can automatically obtain the IP address of the main home appliance service hub through the primary application, enabling login. This reduces the difficulty of user operation and improves login efficiency.

[0223] In addition, users can log in to the main home furnishing service hub from the nearby home furnishing service hub, without having to go to the main home furnishing service hub, thus improving the convenience of operation.

[0224] Furthermore, the mobile phone can automatically obtain device information of smart home devices and display the device names of smart home devices, helping users to distinguish multiple smart home devices that support login and making it easier for users to operate.

[0225] In some embodiments, the above Figure 5 The method shown is applicable to the initial smart home environment configuration scenario when a device logs in for the first time. In subsequent configurations of the smart home environment, the mobile phone no longer needs to distinguish between the main and secondary home service hubs, i.e., it no longer needs to execute actions such as... Figure 5 The dashed box shows steps S504-S511. Instead, step S512 is executed directly after steps S503a and S503b.

[0226] In other embodiments, if the user determines that a trust relationship has been established between the devices of the main home service hub and the secondary home service hub earlier, steps S508-S510 may not be executed, and the main home service hub may directly send the login information to the secondary home service hub.

[0227] For example, as described in step S504 above, during the device configuration process, the mobile phone assigns a corresponding device identity (such as a master home service hub or a slave home service hub) to the smart home device. The device capabilities of the smart home device can be configured with an identifier to represent the device identity. Therefore, in step S503a or S503b above, after the mobile phone receives the device information response, it can determine whether a master home service hub and a slave home service hub have already been assigned in the current smart home environment based on whether the device capabilities include an identifier to represent the device identity.

[0228] If the mobile phone determines that a master home service hub and slave home service hubs have already been assigned in the current smart home environment, the phone can directly display the device names of all scanned devices that support the first application, and identify the master and slave home service hubs included. Then, the user can operate the slave home service hub to display a QR code (i.e., directly execute step S512), scan the QR code with the first application on the phone to log in to the master home service hub. This allows for the configuration and testing of existing smart home devices and / or newly added smart home devices in the smart home environment.

[0229] In some embodiments, if the whole-house smart control panel has determined that the smart home control panel is a trusted device, then the whole-house smart control panel sends login information to the smart home control panel at preset intervals. Correspondingly, the smart home control panel updates its historical login information based on the latest login information received.

[0230] In this way, the smart home control panel can assist users in logging into the whole-house smart home hub using the latest login information, thereby reducing the risk of unauthorized logins due to leaked login information.

[0231] In some embodiments, the number of secondary home service hubs capable of displaying the associated login information QR code can be one or more. Optionally, multiple secondary home service hubs can obtain the login information of the primary home service hub according to the aforementioned method. When there are multiple secondary home service hubs, users can choose the secondary home service hub located nearby, or the primary home service hub can determine the secondary home service hub for displaying the QR code associated with the login information according to certain election rules, thereby improving the convenience of operation. Furthermore, users can also directly select the secondary home service hub on their mobile phones and instruct the selected secondary home service hub to display the QR code, further reducing the difficulty of user operation and improving login efficiency.

[0232] For example, such as Figure 6 As shown in interface 604 (d), after the mobile phone confirms that the user has selected the main home furnishing service hub, it can display the following: Figure 9 Interface 901 is shown. Interface 901 displays selectable smart home service hubs, allowing users to directly choose the hub for their desired operation. For example, the user can select a nearby smart home control panel. As shown in interface 901, after the mobile phone detects the user's click on control 91, it sends a command to the corresponding smart home control panel to display host login information. Upon receiving the command, the smart home control panel displays a QR code associated with the host login information, allowing the mobile phone to scan the QR code to complete the host login.

[0233] The above embodiments all use the example of a main home service hub (such as a whole-house smart home control unit, router, etc.) without a display function to illustrate the device login method provided in this application. It should be noted that the device login method provided in this application is also applicable to main home service hubs (such as whole-house smart home control units) with a display function. In this way, even when the main home service hub is not near the user, the user does not need to go to the location of the main home service hub to log in, effectively improving login efficiency, increasing login flexibility, and enhancing the user experience.

[0234] The above combination Figures 5-9 The device login method provided in the embodiments of this application is described in detail below. Figures 10-12 This application provides a detailed description of the first device, the second device, and the third device provided in its embodiments.

[0235] In one possible design, Figure 10 This is a schematic diagram of the structure of the first device provided in an embodiment of this application. Figure 10 As shown, the first device 1000 may include a transceiver unit 1001 and a processing unit 1002. The first device 1000 can be used to implement the functions of the first device 100 or mobile phone involved in the above method embodiments.

[0236] Optionally, the transceiver unit 1001 is used to support the execution of the first device 1000. Figure 5 S501, S502a, S502b, S503a, S503b, S505, S506, S508, S509, S513 and S514.

[0237] Optionally, the processing unit 1002 is configured to support the execution of the first device 1000. Figure 5 S504 and S505 in the example.

[0238] The transceiver unit may include a receiving unit and a transmitting unit, and may be implemented by a transceiver or transceiver-related circuit components, and may be a transceiver or transceiver module. The operation and / or function of each unit in the first device 1000 are respectively to implement the corresponding process of the device login method described in the above method embodiments. All relevant content of each step involved in the above method embodiments can be referred to the functional description of the corresponding functional unit, and will not be repeated here for the sake of brevity.

[0239] Optionally, Figure 10 The first device 1000 shown may also include a storage unit ( Figure 10 (not shown in the image), this storage unit stores a program or instruction. When the transceiver unit 1001 and the processing unit 1002 execute the program or instruction, it causes... Figure 10 The first device 1000 shown can execute the device login method described in the above method embodiments.

[0240] Figure 10 The technical effects of the first device 1000 shown can be referred to the technical effects of the device login method described in the above method embodiments, and will not be repeated here.

[0241] In addition to being in the form of the first device 1000, the technical solutions provided in this application may also be functional units or chips in the first device, or devices used in conjunction with the first device.

[0242] In one possible design, Figure 11 This is a schematic diagram of the structure of the second device provided in an embodiment of this application. Figure 11 As shown, the second device 1100 may include a transceiver unit 1101, a processing unit 1102, and a display unit 1103. The second device 1100 can be used to implement the functions of the second device 200 or the smart home control panel involved in the above method embodiments.

[0243] Optionally, the transceiver unit 1101 is used to support the second device 1100 in performing [operations]. Figure 5S502b, S503b, S509, S510, S511 and S513.

[0244] Optionally, the processing unit 1102 is used to support the execution of the second device 1100. Figure 5 The S510 in the middle.

[0245] Optionally, the display unit 1103 is used to support the execution of the second device 1100. Figure 5 S512 in the middle.

[0246] The transceiver unit may include a receiving unit and a transmitting unit, and may be implemented by a transceiver or transceiver-related circuit components, and may be a transceiver or transceiver module. The operation and / or function of each unit in the second device 1100 are respectively to implement the corresponding process of the device login method described in the above method embodiments. All relevant content of each step involved in the above method embodiments can be referred to the functional description of the corresponding functional unit, and for the sake of brevity, it will not be repeated here.

[0247] Optionally, Figure 11 The second device 1100 shown may also include a storage unit ( Figure 11 (not shown in the image), this storage unit stores a program or instruction. When the transceiver unit 1101, processing unit 1102, and display unit 1103 execute the program or instruction, it causes... Figure 11 The second device 1100 shown can execute the device login method described in the above method embodiments.

[0248] Figure 11 The technical effects of the second device 1100 shown can be referred to the technical effects of the device login method described in the above method embodiments, and will not be repeated here.

[0249] In addition to being in the form of a second device 1100, the technical solution provided in this application may also be a functional unit or chip in a second device, or a device used in conjunction with a second device.

[0250] In one possible design, Figure 12 A schematic diagram of the structure of the third device provided in an embodiment of this application. For example... Figure 12 As shown, the third device 1200 may include a transceiver unit 1201 and a processing unit 1202. The third device 1200 can be used to implement the functions of the third device 300, the whole-house smart host, or the router involved in the above method embodiments.

[0251] Optionally, the transceiver unit 1201 is used to support the third device 1200 in performing [operations]. Figure 5 S502a, S503a, S506, S508 and S514.

[0252] Optionally, the processing unit 1202 is used to support the execution of the third device 1200. Figure 5 S507 in the middle.

[0253] The transceiver unit may include a receiving unit and a transmitting unit, and may be implemented by a transceiver or transceiver-related circuit components, and may be a transceiver or transceiver module. The operation and / or function of each unit in the third device 1200 are respectively to implement the corresponding process of the device login method described in the above method embodiments. All relevant content of each step involved in the above method embodiments can be referred to the functional description of the corresponding functional unit, and for the sake of brevity, it will not be repeated here.

[0254] Optionally, Figure 12 The third device 1200 shown may also include a storage unit ( Figure 12 (not shown in the image), this storage unit stores a program or instruction. When the transceiver unit 1201 and the processing unit 1202 execute the program or instruction, it causes... Figure 12 The third device 1200 shown can execute the device login method described in the above method embodiments.

[0255] Figure 12 The technical effects of the third device 1200 shown can be referred to the technical effects of the device login method described in the above method embodiments, and will not be repeated here.

[0256] In addition to being in the form of a third device 1200, the technical solution provided in this application may also be a functional unit or chip in a third device, or a device used in conjunction with a third device.

[0257] This application embodiment also provides a device login system, including: such as Figure 10 The first device 1000 shown, such as Figure 11 The second device 1100 shown, and as shown Figure 12 The third device 1200 is shown.

[0258] Optionally, in the device login system provided in this application embodiment, each device can execute the device login method described in the above method embodiments. The technical effects of this device login system can be referred to the technical effects of the device login method described in the above method embodiments, and will not be repeated here.

[0259] This application also provides a chip system, including: a processor coupled to a memory, the memory being used to store programs or instructions, wherein when the program or instructions are executed by the processor, the chip system implements the methods in any of the above method embodiments.

[0260] Optionally, the chip system may contain one or more processors. These processors can be implemented in hardware or software. When implemented in hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented in software, the processor can be a general-purpose processor, implemented by reading software code stored in memory.

[0261] Optionally, the chip system may contain one or more memories. The memory may be integrated with the processor or disposed separately from it; this application embodiment does not limit this. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or disposed separately on different chips. This application embodiment does not specifically limit the type of memory or the arrangement of the memory and processor.

[0262] For example, the chip system may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor (CPU), a network processor (NP), a digital signal processor (DSP), a micro controller unit (MCU), a programmable logic device (PLD), or other integrated chips.

[0263] It should be understood that each step in the above method embodiments can be completed by integrated logic circuits in the processor hardware or by instructions in software form. The method steps disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or being executed by a combination of hardware and software modules in the processor.

[0264] This application also provides a computer-readable storage medium storing a computer program. When the computer program is run on a computer, it causes the computer to perform the aforementioned steps to implement the device login method described in the above embodiments.

[0265] This application also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned steps to implement the device login method described in the above embodiments.

[0266] In addition, this application also provides an apparatus. Specifically, the apparatus may be a component or module, and may include one or more processors and a memory connected together. The memory stores a computer program. When the computer program is executed by one or more processors, the apparatus performs the device login method described in the above method embodiments.

[0267] The apparatus, computer-readable storage medium, computer program product, or chip provided in the embodiments of this application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects of the corresponding methods provided above, and will not be repeated here.

[0268] The steps of the methods or algorithms described in conjunction with the embodiments of this application can be implemented in hardware or by a processor executing software instructions. The software instructions can consist of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, portable hard disks, CD-ROMs, or any other form of storage medium well known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can reside in an application-specific integrated circuit (ASIC).

[0269] Through the above description of the embodiments, those skilled in the art will clearly understand that, for the sake of convenience and brevity, the division of the above functional modules is only used as an example. In practical applications, the above functions can be assigned to different functional modules as needed; that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0270] In the several embodiments provided in this application, it should be understood that the disclosed methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of modules or units is only a logical functional division, and there may be other division methods in actual implementation; for example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of modules or units may be electrical, mechanical or other forms.

[0271] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0272] Computer-readable storage media include, but are not limited to, any of the following: USB flash drive, portable hard drive, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, and other media capable of storing program code.

[0273] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A device login system, characterized in that, The system includes a first device, a second device, and a third device; The first device is used for: Obtain the device information of the second device and the device information of the third device; Based on the device information of the second device and the device information of the third device, the third device is determined to be the main home furnishing business hub, and the second device is the secondary home furnishing business hub. Based on the fact that the third device is the main home service hub and the second device is the secondary home service hub, the registration information sent by the third device is forwarded to the second device, and the registration information includes the first address of the third device; The second device is configured to send a registration request to the third device corresponding to the first address based on the registration information, wherein the registration request carries the registration information; The third device is used to send login information to the second device after obtaining the registration information; The second device is also used to display a QR code associated with the login information; The first device is also used to scan the QR code to log in to the third device.

2. The system according to claim 1, characterized in that, The first device is also configured to send a device information request to the second device and the third device in response to an operation performed by the user on the first application; The third device is further configured to send a first device information response to the first device according to the received device information request, wherein the first device information response carries the device type and device capabilities of the third device; The second device is further configured to send a second device information response to the first device according to the received device information request, wherein the second device information response carries the device type and device capabilities of the second device.

3. The system according to claim 2, characterized in that, The first device is further configured to display a device list based on the first device information response received from the third device and the second device information response received from the second device; The first device is further configured to, in response to a user's operation on the device list, determine that the third device is the primary home service hub and the second device is the secondary home service hub.

4. The system according to any one of claims 1-3, characterized in that, The first device is further configured to send a first setting command to the third device; the first setting command is configured to set the third device as the main home service hub. The third device is also used to generate the registration information according to the first setting command; The third device is also used to send the registration information to the first device.

5. The system according to any one of claims 1-3, characterized in that, The first device is further configured to send a second setting command to the second device, the second setting command being configured to set the second device as a home service hub, the second setting command carrying the registration information.

6. The system according to any one of claims 1-3, characterized in that, The login information includes the first address and verification code of the third device; The first device is specifically used to send the verification code to the third device based on the first address, and to log in to the third device.

7. The system according to any one of claims 1-3, characterized in that, The first device is also configured to negotiate a key for transmitting data with at least one of the second device and the third device.

8. A device login method, characterized in that, Applied to a third device, the method includes: Send the device information of the third device to the first device; the device information of the third device is used by the first device to determine that the third device is the main home service hub. Receive a registration request sent by a second device, the registration request carrying registration information, the registration information being the registration information assigned by the third device; After obtaining the registration information, login information is sent to the second device; the login information is used to instruct the second device to generate a QR code associated with the login information, and the QR code is used to assist the first device in logging into the third device.

9. The method according to claim 8, characterized in that, Before receiving the registration request sent by the second device, the method further includes: Receive a first setting command sent by the first device, the first setting command being used to set the third device as the main home service hub; The registration information is generated according to the first setting command; Send the registration information to the first device.

10. The method according to claim 9, characterized in that, Before receiving the first setting command sent by the first device, the method further includes: Negotiate a key with the first device for transmitting data.

11. The method according to any one of claims 8-10, characterized in that, Before sending the device information of the third device to the first device, the method further includes: Receive the device information request sent by the first device; Sending the device information of the third device to the first device includes: Send a first device information response to the first device, the first device information response carrying the device type and device capabilities of the third device.

12. The method according to any one of claims 8-10, characterized in that, The method further includes: According to a preset cycle, the updated login information is sent to the second device.

13. A device login method, characterized in that, Applied to a second device, the method includes: Send device information of the second device to the first device; the device information of the second device is used by the first device to determine that the second device is the home service hub. Receive registration information sent by the first device, wherein the registration information includes the first address of the third device; Based on the registration information, a registration request is sent to the third device corresponding to the first address, the registration request carrying the registration information; Receive login information sent by the third device; Display a QR code associated with the login information, the QR code being used to assist the first device in logging into the third device.

14. The method according to claim 13, characterized in that, The receipt of registration information sent by the first device includes: The system receives a second setting command sent by the first device. The second setting command is used to set the second device as a home service hub, and the second setting command carries the registration information.

15. The method according to claim 13 or 14, characterized in that, Before registering with the third device corresponding to the first address based on the registration information, the method further includes: Negotiate a key with the third device for transmitting data.

16. The method according to claim 13 or 14, characterized in that, Before sending the device information of the second device to the first device, the method further includes: Receive the device information request sent by the first device; Sending the device information of the second device to the first device includes: Send a second device information response to the first device, the second device information response carrying the device type and device capabilities of the second device.

17. The method according to claim 13 or 14, characterized in that, The method further includes: According to a preset cycle, receive updated login information sent by the third device; Update the locally stored login information based on the updated login information.

18. The method according to claim 13 or 14, characterized in that, The display of the QR code associated with the login information includes: In response to user actions, a QR code associated with the login information is displayed; Alternatively, receive the login information display instruction sent by the first device and display the QR code associated with the login information; Alternatively, after receiving the login information, a QR code associated with the login information can be automatically displayed.

19. A device login method, characterized in that, Applied to a first device, the method includes: Obtain the device information of the second device and the device information of the third device; Based on the device information of the second device and the device information of the third device, the third device is determined to be the main home furnishing business hub, and the second device is the secondary home furnishing business hub. Based on the fact that the third device is the main home service hub and the second device is the secondary home service hub, the registration information sent by the third device is forwarded to the second device, and the registration information includes the first address of the third device; Scan the QR code displayed on the second device that is associated with the login information of the third device to log in to the third device; the login information is the information sent by the third device after the second device registers with the third device corresponding to the first address based on the registration information.

20. The method according to claim 19, characterized in that, Before obtaining the device information of the second device and the device information of the third device, the method further includes: In response to a user's action on the first application, a device information request is sent to the second device and the third device; The step of determining, based on the device information of the second device and the device information of the third device, that the third device is the primary home service hub and the second device is the secondary home service hub includes: Based on the first device information response received from the third device and the second device information response received from the second device, a device list is displayed. The first device information response carries the device type and device capabilities of the third device, and the second device information response carries the device type and device capabilities of the second device. In response to a user's action on the device list, the third device is determined to be the primary home service hub, and the second device is the secondary home service hub.

21. The method according to claim 19 or 20, characterized in that, The method further includes: Send a first setting command to the third device; the first setting command is used to set the third device as the main home service hub; The system receives registration information sent by the third device, which is generated by the third device after receiving the first setting command.

22. The method according to claim 19 or 20, characterized in that, Before sending the first setting command to the third device, the method further includes: Negotiate a key with the third device for transmitting data.

23. The method according to claim 19 or 20, characterized in that, The forwarding of registration information sent by the third device to the second device includes: A second setting command is sent to the second device, the second setting command being used to set the second device as a home service hub, and the second setting command carrying the registration information.

24. The method according to claim 19 or 20, characterized in that, The step of scanning the QR code displayed on the second device that is associated with the login information of the third device to log in to the third device includes: Scan the QR code displayed on the second device that is associated with the login information of the third device to obtain the first address and verification code included in the login information; The verification code is sent to the third device based on the first address to log in to the third device.

25. The method according to claim 19 or 20, characterized in that, Before forwarding the registration information sent by the third device to the second device, the method further includes: Negotiate a key with the second device for transmitting data.

26. An electronic device, characterized in that, include: A processor and a memory, the memory being coupled to the processor, the memory being used to store computer-readable instructions, which, when read from the memory by the processor, cause the electronic device to perform the method as described in any one of claims 8-12.

27. An electronic device, characterized in that, include: A processor, a memory, and a display screen, wherein the memory and the display screen are coupled to the processor, the memory being used to store computer-readable instructions, which, when read from the memory by the processor, cause the electronic device to perform the method as described in any one of claims 13-18.

28. An electronic device, characterized in that, include: A processor and a memory, the memory being coupled to the processor, the memory being used to store computer-readable instructions, which, when read from the memory by the processor, cause the electronic device to perform the method as described in any one of claims 19-25.

29. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a computer program that, when executed on an electronic device, causes the electronic device to perform the method as described in any one of claims 8-12; or causes the electronic device to perform the method as described in any one of claims 13-18; or causes the electronic device to perform the method as described in any one of claims 19-25.

30. A computer program product, characterized in that, When the computer program product is run on a computer, it causes the computer to perform the method as described in any one of claims 8-12; or, causes the computer to perform the method as described in any one of claims 13-18; or, causes the computer to perform the method as described in any one of claims 19-25.