Equipment registration method, equipment and system
The first terminal receives user operations and obtains network connection information of the second terminal, which solves the problem of failed distribution of smart devices and improves the distribution success rate and user experience.
Patent Information
- Application Number
- CN202311041465.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-16
- Publication Date
- 2025-02-21
AI Technical Summary
In the prior art, the probability of network failure of smart devices failing due to poor network quality or inability to connect to the network during the distribution process.
Through a device registration method, the first terminal receives the operation input by the user, obtains the networking information required by the second terminal, and sends these information to the second terminal through the second connection mode to realize the registration and activation of the second terminal. No second terminal is required to meet the network connection conditions.
It improves the network distribution success rate of the second terminal, simplifies user operations, reduces dependence on the networking situation in the environment where the second terminal is located, and is suitable for a wider range of application scenarios.
Smart Images

Figure CN119497218A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminals, and in particular to a device registration method, device and system. Background Art
[0002] At present, the types and number of smart devices available to users have increased. In the process of using smart devices, users need to configure the network for smart devices. Taking the example of configuring a wireless fidelity (Wi-Fi) network for a door lock using a mobile phone, the mobile phone establishes a Bluetooth connection with the door lock and connects via Bluetooth. The mobile phone can display the network configuration interface through the installed smart home application, and the user triggers the network configuration process of the door lock by manipulating the network configuration interface. At present, in the network configuration process, the door lock needs to obtain the required network configuration information from the server to complete the network configuration.
[0003] In some scenarios, the network quality between the door lock and the server is poor, or the door lock cannot connect to the network, making it difficult for the door lock to obtain the required network configuration information from the server, resulting in network configuration failure. It can be seen that the current network configuration method has a high probability of network configuration failure. Summary of the invention
[0004] The present application provides a device registration method, device and system for improving the success rate of network configuration.
[0005] In order to achieve the above objectives, this application adopts the following technical solutions:
[0006] In a first aspect, the technical solution of the present application provides a device registration method, which can be applied to a first terminal or a component supporting the function of the first terminal (such as a chip system), and the method includes: receiving a first operation input by a user; the first operation is used to register a second terminal, and the second terminal is a terminal that supports a first connection mode and a second connection mode; obtaining first networking information required to register the second terminal, and the first networking information is used to indicate that the second terminal adopts the first connection mode to connect to the network; and sending the first networking information to the second terminal via the second connection mode.
[0007] Compared with the related art in which the second terminal is not connected to the network during initial registration, and the subsequent connection to the network requires the re-registration process, in this method, the first terminal can act as an agent for the second terminal to obtain the first networking information required for registering the second terminal, and send the first networking information to the second terminal through the second connection mode. After the second terminal obtains the first networking information, the registration process can be completed without affecting the normal use of the second terminal (such as use as an ordinary BLE device). In this way, when the second terminal has a network, it can use the first networking information to connect to the network by itself without re-registering the second terminal. It can be seen that in this method, when registering the second terminal, the second terminal does not need to have the networking conditions, which can improve the success rate of network configuration of the second terminal.
[0008] In one possible design, the first networking information includes activation information for activating the second terminal.
[0009] In other words, the information for registration and activation may be sent to the second terminal at the same time, for example, via one message.
[0010] Alternatively, after sending the first networking information to the second terminal through the second connection mode, the method further includes: obtaining the second networking information required for activating the second terminal from the server; and sending the second networking information to the second terminal through the second connection mode. In other words, the information for registration and activation can be sent to the second terminal at different times or under different conditions. For example, the first networking information for registration is first sent to the second terminal through a message, and then the second networking information for activation is sent to the second terminal through another message.
[0011] In this method, it can be ensured that the second terminal obtains the required networking information from the first terminal through the first connection mode to complete the activation of the second terminal, without affecting the subsequent networking use of the door lock, and significantly improving the user experience of the second terminal such as the door lock. In addition, during the activation of the second terminal, the second terminal does not need to have a networking environment, which reduces the dependence on the networking status of the environment where the second terminal is located, and has a wider range of application scenarios.
[0012] In a possible design, it also includes: presenting prompt information, where the prompt information is used to prompt that the second terminal has been registered and / or activated.
[0013] In this method, after the first terminal successfully sends the network connection information required for the second terminal to register, there is no need to wait for the second terminal to actually connect to the network, and prompt information of successful registration and / or activation is displayed in time, so that the user can understand the network configuration status of the second terminal in time, thereby improving the human-computer interaction experience. For example, there is no need to wait for the percentage progress of network configuration in the related technology to be completed.
[0014] In one possible design, the first networking information further includes information of an access point, or the second networking information further includes information of the access point;
[0015] The information of the access point is used to instruct the second terminal to connect to the access point for networking.
[0016] Optionally, the access point information may be obtained by the first terminal from a server, or obtained by the first terminal from an access point, or obtained from other devices (such as a central device for the entire house), without limitation.
[0017] In one possible design, in a wireless fidelity Wi-Fi network, the access point information includes at least one of the following information: a service set identifier SSID of the access point and a password of the access point; in a data network, the access point information includes at least one of the following information: a key and a user identifier.
[0018] In a possible design, after sending the first networking information to the second terminal through the second connection mode, the method further includes:
[0019] receiving a first message from the second terminal, where the first message is used to request updated access point information;
[0020] Send the updated access point information to the second terminal.
[0021] In this method, when the access point information is changed and the second terminal fails to connect to the network, the second terminal can request the updated access point information from the first terminal and receive the updated access point information from the first terminal. In this way, there is no need to re-register the second terminal to update the access point information, and the access point information required for the second terminal to connect to the network can be quickly updated, thereby improving the connection efficiency of the second terminal.
[0022] Optionally, in some other scenarios, the first terminal may acquire updated access point information and then actively send it to the second terminal.
[0023] In a possible design, after receiving the first message from the second terminal, the method further includes:
[0024] Presenting a first interface;
[0025] Receiving access point information input by the user on the first interface;
[0026] Sending updated access point information to the second terminal: sending the access point information input by the user to the second terminal.
[0027] In the method, after receiving the first message from the second terminal, the first terminal displays the first interface, allowing the user to input the access point information through the first interface, and the first terminal sends the access point information input by the user to the second terminal, so that the second terminal uses the updated access point information to quickly connect to the access point. In this process, the first terminal does not need to re-update the access point information for the second terminal through the registration process of the second terminal, which shortens the time caused by re-registration and can improve the networking efficiency of the second terminal.
[0028] In a possible design, after sending the first networking information to the second terminal through the second connection mode, the method further includes:
[0029] determining a network status of the second terminal;
[0030] According to the network status of the second terminal, the first connection mode is switched to the second connection mode for connecting with the second terminal, or the second connection mode is switched to the first connection mode for connecting with the second terminal.
[0031] Compared with the related art, if the second terminal is initially registered as a common BLE device, it is necessary to perform re-registration and obtain the activation key before switching the transmission channel with the second terminal. In this method, if there is no network when the second terminal is initially registered, it can be registered as a common device (such as a common BLE device) for use. After that, the first terminal can switch the transmission channel with the second terminal according to the network status of the second terminal. There is no need to perform a cumbersome re-registration process for the second terminal to achieve the switching of the transmission channel, which can simplify the process and improve the switching efficiency.
[0032] In one possible design, it also includes:
[0033] Using the first connection mode, sending a message for the second terminal to the server;
[0034] Using the first connection mode, a message response for the second terminal is received from the server.
[0035] Optionally, the message may be a control message or a status synchronization message, such as a door lock being pried open, toothbrush brushing data, etc.
[0036] Optionally, in some other scenarios, after the first terminal sends a message to the server, it may not receive or does not receive a message response.
[0037] In one possible design, it also includes:
[0038] Sending a message to the second terminal through the second connection mode;
[0039] A response to the message is received from the second terminal.
[0040] In one possible design, switching from using the first connection mode to using the second connection mode to connect with the second terminal according to a network state of the second terminal includes:
[0041] When the network status of the second terminal satisfies the first condition, switching from using the second connection mode to using the first connection mode to connect with the second terminal;
[0042] And / or, according to a network state of the second terminal, switching from using the first connection mode to using the second connection mode to connect with the second terminal includes:
[0043] When the network status of the second terminal does not meet the first condition, switch from using the first connection mode to using the second connection mode to connect to the second terminal; the first condition includes at least one of the following conditions: the second terminal can connect to the server, and the network quality between the second terminal and the server is higher than a threshold.
[0044] In this method, the first terminal can intelligently switch the transmission channel between the first terminal and the second terminal according to whether the network status of the second terminal meets the first condition. The switching of the transmission channel can be achieved without performing a cumbersome re-registration process, which can simplify the process and improve the switching efficiency.
[0045] Optionally, the network quality is related to at least one of the following network parameters: throughput, packet loss rate, and transmission rate. The network parameters related to the network quality may also be other parameters without limitation.
[0046] In one possible design, the method further includes:
[0047] Display a second interface, wherein the second interface includes a first control;
[0048] An operation of the user on the first control is detected, and a function of agent registration and / or agent activation is enabled.
[0049] In this way, the proxy registration and / or activation function can be intelligently enabled, so that the first terminal has the function of proxy registration and activation of the second terminal, which helps to improve the efficiency of network configuration of the second terminal.
[0050] In one possible design, the first message includes a broadcast message or a multicast message based on the second connection mode.
[0051] In this way, through the broadcast or multicast message, the second terminal can trigger the terminal (such as the first terminal) that receives the broadcast or multicast to send updated access point information for the second terminal to use when connecting to the network.
[0052] In one possible design, the first networking information also includes registration information of the second terminal, or the second networking information also includes registration information of the second terminal; the registration information includes a device identifier assigned by the server to the second terminal.
[0053] In one possible design, the activation information includes an activation key.
[0054] In one possible design, the first connection mode includes any of the following connection modes: a Wi-Fi network, a data network;
[0055] And / or, the second connection mode includes a near field connection mode, and the near field connection mode includes any of the following connection modes: Bluetooth, near field communication NFC.
[0056] The first connection mode can also be called a network connection mode, which can be used for the second terminal to connect to the Internet. The first connection mode is not limited to the above-mentioned ones. Other connection modes that can be used for connecting to the Internet can also be called the first connection mode. For example, with the evolution of technology, the connection modes that can be used for connecting to the Internet in 5G\6G and other systems can all be called the first connection mode. The second connection mode is also not limited to the above-mentioned ones, and can also include other near-field connection modes, which are used for the first terminal to send networking information to the second terminal in a timely manner.
[0057] In a second aspect, a device registration method is provided, which can be applied to a second terminal or a component (such as a chip system) supporting a second terminal function, wherein the second terminal is a terminal supporting a first connection mode and a second connection mode, and the method includes:
[0058] receiving, from the first terminal, first networking information required for registering the second terminal through the second connection mode;
[0059] Using the first networking information, the network is connected through the first connection mode.
[0060] In one possible design, the first networking information includes activation information for activating the second terminal;
[0061] Alternatively, after receiving the first networking information required for registering the second terminal from the first terminal through the second connection mode, the method further includes:
[0062] Through the second connection mode, second networking information required for activating the second terminal is received from the first terminal.
[0063] In one possible design, the first networking information further includes information of an access point, or the second networking information further includes information of the access point;
[0064] The information of the access point is used to instruct the second terminal to connect to the access point for networking.
[0065] In one possible design, in a Wi-Fi network, the information of the access point includes at least one of the following information: a service set identifier SSID of the access point and a password of the access point; in a data network, the information of the access point includes at least one of the following information: a key and a user identifier.
[0066] In a possible design, it also includes: when networking fails using the first connection mode, sending a first message for requesting updated access point information; and receiving updated access point information from the first terminal.
[0067] In a possible design, it also includes: determining a network status of the second terminal; and switching from using the first connection mode to using the second connection mode to connect with the first terminal, or switching from using the second connection mode to using the first connection mode to connect with the first terminal according to the network status of the second terminal.
[0068] In some designs, for some important data that need to be interacted, it is ideal that the server can take corresponding processing measures through server interaction. For example, when the door lock is pried open, the door lock reports the status to the server through the first connection mode, and the server takes corresponding security protection measures.
[0069] In one possible design, switching from using the first connection mode to using the second connection mode to connect with the first terminal according to a network state of the second terminal includes:
[0070] When the network status of the second terminal satisfies a first condition, switching from using the second connection mode to using the first connection mode to connect with the first terminal;
[0071] And / or, according to a network status of the second terminal, switching from using the first connection mode to using the second connection mode to connect with the first terminal includes:
[0072] When the network status of the second terminal does not meet the first condition, switch from using the first connection mode to using the second connection mode to connect to the first terminal; the first condition includes at least one of the following conditions: the second terminal can connect to the server, and the network quality between the second terminal and the server is higher than a threshold.
[0073] In one possible design, the first message includes a broadcast message or a multicast message based on the second connection mode.
[0074] In one possible design, the first networking information also includes registration information of the second terminal, or the second networking information also includes registration information of the second terminal; the registration information includes a device identifier assigned by the server to the second terminal.
[0075] In one possible design, the activation information includes an activation key.
[0076] In a possible design, the first connection mode includes any of the following connection modes: a wireless fidelity Wi-Fi network, a data network;
[0077] And / or, the second connection mode includes a near field connection mode, and the near field connection mode includes any of the following connection modes: Bluetooth, near field communication NFC.
[0078] The above mainly takes the example of the first terminal acting as an agent for the second terminal to register and activate. In other designs, the first terminal can determine the network status of the second terminal. If the second terminal has a network, the second terminal registers and activates itself. If the second terminal has no network, the first terminal acts as an agent for the second terminal to register and activate.
[0079] In a third aspect, the technical solution of the present application provides a device, comprising: an input device, a display screen, one or more processors, a memory, and one or more computer programs; wherein the processor is coupled to the input device, the processor and the memory, and the one or more computer programs are stored in the memory, and when the device is running, the processor executes the one or more computer programs stored in the memory so that the device executes the method in any design of any of the above aspects.
[0080] In a fourth aspect, the present application provides a terminal comprising a processor and a memory, the memory being used to store computer program code, the computer program code comprising computer instructions, and when the processor executes the computer instructions, a method in any possible design of any of the above aspects of the present application is executed.
[0081] In a fifth aspect, the technical solution of the present application provides a computer-readable storage medium, including computer instructions. When the computer instructions are executed on a device, the device executes any possible design method in any of the above aspects.
[0082] In a sixth aspect, the technical solution of the present application provides a computer program product, which, when executed on a device, enables the device to execute any possible design method in any of the above aspects.
[0083] In a seventh aspect, the technical solution of the present application provides a device registration system, which includes a first terminal and a second terminal in any possible design of any of the above aspects. BRIEF DESCRIPTION OF THE DRAWINGS
[0084] Figure 1A A schematic diagram of a device registration method provided for related technologies;
[0085] Figure 1B , Figure 1C A schematic diagram of the interface of the device registration method provided for the related technology;
[0086] Figure 1D , Figure 1E A schematic diagram of a device registration method provided for related technologies;
[0087] Figure 2 A schematic diagram of the architecture of a system provided in an embodiment of the present application;
[0088] Figure 3 A schematic diagram of the architecture of a system provided in an embodiment of the present application;
[0089] Figure 4 A schematic diagram of the architecture of a system provided in an embodiment of the present application;
[0090] Figure 5 A schematic diagram of the structure of a device provided in an embodiment of the present application;
[0091] Figure 6 A schematic diagram of a scenario of a device registration method provided in an embodiment of the present application;
[0092] Figure 7 A schematic diagram of a device registration method provided in an embodiment of the present application;
[0093] Figure 8 A schematic diagram of an interface provided in an embodiment of the present application;
[0094] Figure 9-11 A schematic diagram of a device registration method provided in an embodiment of the present application;
[0095] Fig.12 Schematic diagram of the scene and interface provided for the embodiment of the present application;
[0096] Fig.13 A schematic diagram of a device registration method provided in an embodiment of the present application;
[0097] Fig.14 A schematic diagram of an interface provided in an embodiment of the present application;
[0098] Fig.15 A schematic diagram of a device registration method provided in an embodiment of the present application;
[0099] Fig.16 A schematic diagram of an interface provided in an embodiment of the present application;
[0100] Fig.17 A schematic diagram of a device registration method provided in an embodiment of the present application;
[0101] Fig.18 A schematic diagram of a scenario provided for an embodiment of the present application;
[0102] Fig.19 A schematic diagram of the structure of a device registration apparatus provided in an embodiment of the present application;
[0103] Fig. 20 A schematic diagram of the structure of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0104] The terms "first" and "second" in the specification and drawings of this application are used to distinguish different objects, or to distinguish different treatments of the same object. The words "first" and "second" can distinguish the same or similar items with basically the same functions and effects. For example, the first terminal and the second terminal are only used to distinguish different devices, and their order is not limited. Those skilled in the art can understand that the words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" do not necessarily limit them.
[0105] "At least one" means one or more, and "plurality" means two or more.
[0106] "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or plural.
[0107] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0108] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0109] First, the related technologies involved in the embodiments of the present application are introduced:
[0110] 1. Multimode equipment
[0111] With the popularization of the current Internet of Things (IoT) technology, more and more devices using multiple communication protocols are emerging. Such devices can be called multi-mode devices. For example, devices such as door locks and printers that support Bluetooth low energy (BLE) and Wi-Fi protocols, and outdoor devices such as two-wheeled vehicles and scooters that support BLE and cellular protocols (such as 4G and 5G network protocols) can be called dual-mode devices.
[0112] 2. Network configuration process of multi-mode equipment
[0113] The related technology provides a method for multi-mode device network configuration, taking the example of using a mobile phone to configure the network for a door lock, such as Figure 1A , the method may include:
[0114] S1. The phone detects the door lock and shakes hands.
[0115] S2. The mobile phone requests the server to obtain the registration code of the door lock.
[0116] Figure 1B The relevant interface of the door lock network distribution is shown. Figure 1B (a), after detecting that the user clicks on the control 71 on the interface 701, the mobile phone can pop up a pop-up window 72, which includes an option button of "add device". Figure 1B (a) detects that the user clicks the "Add Device" option button, the phone can scan the surrounding devices that can be added, and jump to the page such as Figure 1B Interface 702 shown in (b) may include scanned addable devices, such as a smart door lock. Figure 1B (b), after detecting that the user clicks the "connect" button on the interface 702, the mobile phone can jump to a page such as Figure 1B The user can configure the door lock according to the prompts of interface 703, check the option of "Completed the above operations", and click the "Next" button. After detecting the above operations of the user, the mobile phone can jump to the following options such as Figure 1B Interface 704 is shown in (d). Figure 1B (d), the user can enter the WLAN password on the interface 704 and click the next button. After the mobile phone detects the user's operation, it requests the server to obtain the registration code of the door lock.
[0117] In some embodiments, detecting a user clicks Figure 1B After clicking the Next button on the interface 704 of (d), the mobile phone may display the following Figure 1CThe interface 301 shown in (a) is used to prompt that the door lock is being activated.
[0118] S3. The server returns the registration code of the door lock to the mobile phone.
[0119] S4. The mobile phone notifies the door lock to execute the activation process.
[0120] As a possible implementation manner, the mobile phone sends a notification message to the door lock, and the notification message carries the above registration code.
[0121] S5. The door lock negotiates the encryption key with the server.
[0122] After the door lock obtains the registration code from the mobile phone, it negotiates the encryption key (PSK) with the server. After that, the door lock can use the encryption key to encrypt some information reported to the server to improve the security of communication.
[0123] S6. The door lock requests the server to activate the door lock.
[0124] S7. The server returns the activation key (secret) and the device ID (device ID) assigned to the door lock to the door lock.
[0125] As a possible implementation method, after receiving the activation request from the door lock, the server generates an activation key and assigns a device identifier to the door lock, encrypts the activation key and the device identifier of the door lock, and returns the encrypted activation key and device identifier to the door lock. The door lock obtains the activation key and the device identifier assigned to the door lock by the server, which means that the door lock is activated successfully. In this way, the door lock can subsequently use the device identifier assigned to the door lock by the server and the activation key to communicate with the server through the Wi-Fi network to obtain the corresponding services provided by the server.
[0126] In some embodiments, after the server returns the activation key to the door lock, the mobile phone may display the following Figure 1C The interface 302 shown in (b) is used to prompt that the door lock is activated successfully.
[0127] S8. The door lock uses the activation key to log in to the server.
[0128] As a possible implementation method, after the door lock obtains the activation key from the server, the activation key can be used as a security credential. When the door lock uses the activation key to try to log in to the server, the server considers the door lock's login to be legitimate and allows the door lock to log in to the server to obtain the services provided by the server.
[0129] S9. The server sends a token to the door lock.
[0130] After the door lock logs in to the server, the server can send a token to the door lock. Optionally, the token includes but is not limited to at least one of the following tokens: access token (AT), refresh token (RT).
[0131] S10. The door lock interacts with the server using the token.
[0132] After the door lock obtains the token from the server, it can use the token to communicate with the server. For example, the door lock logs in to the server once, obtains the activation key and token, and uses the token as a security credential to interact with the server. Afterwards, if the door lock is powered off and then powered on again, the door lock can use the activation key to log in to the server again and obtain a new token from the server, which is used as a security credential for subsequent communication processes between the two.
[0133] In the above-mentioned related technologies, after the mobile phone scans the door lock, it can determine whether to use the door lock as a networked device when adding the door lock according to the user's operation. Figure 1D If the door lock is determined to be used as an Internet-connected device, the mobile phone will notify the door lock to execute the Internet activation process. If it is determined that the door lock does not need to be used as an Internet-connected device, the door lock will be used as a normal Bluetooth device and will no longer be connected to the Internet (such as Wi-Fi network).
[0134] In some cases, if the user enters the WLAN password on the interface 704, the mobile phone thinks that the user wants to activate the door lock to the server. In this case, the mobile phone and the door lock perform the above-mentioned network configuration process. In the network configuration process, the door lock needs to connect to the server through a router, obtain the activation key from the server, and the device identifier assigned to the door lock by the server, in order to successfully activate the door lock. Subsequently, the door lock can use the activation key and the device identifier to interact with the server.
[0135] In other cases, Figure 1B (d), if the user does not enter the WLAN password on the interface 704 and clicks the "Skip" button, the mobile phone believes that the user does not want to activate the door lock added to the server, which can be understood as the user does not want to use the door lock as a networked device. In this case, the mobile phone and the door lock do not perform the above network configuration process, the door lock can be added or registered as a common BLE device, and the door lock will no longer connect to the network.
[0136] If the door lock is registered as a common BLE device, and the user wants to connect the door lock to the Internet (such as a Wi-Fi network) later, the mobile phone needs to re-execute the above network configuration process to activate the door lock so that the door lock can be used as a networked device. For example, the user deletes the added door lock through the operation interface again, and re-activates it through operations such as Figure 1B The interface shown in (a)-(d) triggers the mobile phone to activate the door lock.
[0137] It can be seen that in the related art, during the activation of the door lock, the door lock needs to be actually connected to the router to ensure that the door lock can obtain the activation key from the server through the router, as well as the device identifier assigned to the door lock by the server, so as to successfully activate the door lock. However, due to the uncertainty of the network environment around the device, when activating the device, it is very likely that the activation will fail due to the inability of the device to connect to the network, and the device cannot be used as a networked device. For example, Figure 1E (a) In the scenario of pre-installed door locks at home, if the home has not installed a router, then through the above network configuration process, the door lock cannot obtain the activation key from the server through the router, and the device identifier assigned to the door lock by the server, resulting in the inability to activate the door lock, affecting the subsequent network use of the door lock. Figure 1E (b) Later, after installing the router at home, the mobile phone and door lock need to re-execute the above network configuration process to obtain the network configuration information required by the door lock, and the network configuration is cumbersome.
[0138] In addition, in the related technology, after the door lock is activated, it can be used as a normal BLE device or as a networked device, and can only support one channel. For example, if the mobile phone registers the door lock as a normal BLE device, the door lock can only support BLE communication with other devices. Later, if you want to use the door lock as a networked device, the user needs to operate such as Figure 1B The interface shown triggers the mobile phone to re-register and add the door lock as a connected device.
[0139] In order to solve the above technical problems, the embodiment of the present application provides a device registration method. The device registration method of the embodiment of the present application can be applied in a wireless network system, and the wireless network system can be any type of wireless network system. For example, the wireless network can be a Wi-Fi network, or a data network, or Bluetooth. The embodiment of the present application does not limit the type of wireless network system and the specific networking method.
[0140] Taking the wireless network system as a Wi-Fi network system as an example, Figure 2 FIG. 2 shows an exemplary architecture of a Wi-Fi network system to which the present application embodiment is applicable. Figure 2 The system includes an access point 300, a device 100 and a device 200.
[0141] Among them, the device 100 can establish a connection with the access point 300, and can access the cloud 400 through the access point 300 to obtain the services provided by the cloud 400. The cloud 400 can also be called a server 400. Exemplarily, the access point 300 can be a router or other access point that can connect the device 100 to the cloud 400. The embodiment of the present application does not limit the implementation form of the access point.
[0142] In the embodiment of the present application, the device 100 can act as an agent for the device 200 to obtain the networking information required by the device 200 from the access point 300, and send the networking information to the device 200 to complete the network configuration of the device 200. Subsequently, when the device 200 needs to connect to the network, it uses the networking information to access the cloud 400 through the access point 300 to obtain the services provided by the cloud 400. In this way, even if the device 200 cannot currently access the cloud, it can be ensured that the device 200 obtains the required networking information from the device 100 and completes the network configuration, without affecting the subsequent network access of the device 200.
[0143] Exemplarily, the device 100 in the embodiment of the present application can be a mobile phone, a central control device for the whole house, a tablet computer, a personal computer (PC), a personal digital assistant (PDA), a smart watch, a netbook, a wearable device, an augmented reality (AR) device, a virtual reality (VR) device, a vehicle-mounted device, a smart car, a robot, etc. The embodiment of the present application does not impose any special restrictions on the specific form of the device 100.
[0144] As a possible implementation, a smart home application is installed in the device 100, and the device 100 can obtain the above networking information from the cloud 400 through the smart home application agent device 200. Exemplarily, the smart home application is a smart life application.
[0145] Device 200 can obtain the networking information required for network configuration (such as the activation key and the device identifier assigned to device 200 by cloud 400) from device 100 to activate device 200.
[0146] In an embodiment of the present application, the device 200 may be a multi-mode device. For example, a device that supports WiFi and BLE protocols, or a device that supports data network protocols (such as 4G\5G protocols) and BLE protocols. Exemplarily, the device 200 in the embodiment of the present application may be a smart home device such as a smart door lock, a body fat scale, a sweeper, a water dispenser, etc. Alternatively, the device 200 may also be a mobile phone, a tablet, or other device, and the embodiment of the present application does not impose any special restrictions on the specific form of the device 200. The form of the device 100 may be the same as or different from the form of the device 200.
[0147] Access point 300 may be a device that provides network connection function. For example, in a Wi-Fi network, access point 300 includes but is not limited to: a wireless router (also referred to as a gateway), customer premise equipment (CPE), etc. In other communication systems, access point 300 may be replaced by a device in a corresponding system. For example, in a 5G system, access point 300 may be a device in the form of a base station, etc., and device 100 may receive the network connection information required for network configuration from cloud 400 through the base station to complete network configuration.
[0148] In some embodiments, Figure 3 , cloud 400 may include application cloud 401 and device cloud 402 .
[0149] Among them, the application cloud 401 can provide interfaces such as device registration and agent activation for the application (APP) in the device 100. The application in the device 100 can act as an agent for the device 200, register the device 200 with the application cloud 401, and activate the device 200 so that the device 200 can be used as a networked device.
[0150] As a possible implementation method, device 100 registers device 200 with application cloud 401, which can be implemented as follows: device 100 acts as an agent for device 200 to obtain the registration information of device 200 (such as the device identifier assigned by the cloud to device 200) from application cloud 401, and sends the registration information to device 200.
[0151] As a possible implementation, device 100 activates device 200 to application cloud 401 , which can be implemented as follows: device 100 acts as an agent for device 200 to obtain activation information (such as an activation key) of device 200 from application cloud 401 , and sends the activation information to device 200 .
[0152] The device cloud 402 can provide interfaces such as device connection and state synchronization for the device 100 or the device 200. The device 100 or the device 200 can be connected to the device cloud 402. The device 200 can also synchronize its own state to the device cloud 402. For example, if the device 200 is a door lock, the door lock can synchronize the open and closed states of the door lock to the device cloud 402.
[0153] As follows, combined Figure 3 The system architecture shown briefly introduces the method of the embodiment of the present application. Figure 3 , the application agent device 200 of the device 100 obtains the networking information (such as the activation key and the device identifier assigned by the cloud to the device 200) from the application cloud 401, and sends the networking information to the device 200.
[0154] In some cases, after device 200 obtains networking information from device 100, if device 200 needs to connect to the Internet, it can use the networking information to connect to device cloud 402 to obtain the corresponding services provided by device cloud 402. For example, if device 200 is a door lock and device 100 is a mobile phone, after the door lock is connected to device cloud 402, if the mobile phone wants to control the door lock to open, Figure 3 , the mobile phone can send control information to the application cloud 401 through the smart home application, the application cloud 401 sends control information to the device cloud 402, and the device cloud 402 sends control information to the connected door lock to control the door lock to open.
[0155] Exemplarily, the mobile phone sends control information to the application cloud 401 via Wi-Fi connection. The application cloud 401 sends control information to the device cloud 402 via Wi-Fi connection. The device cloud 402 sends control information to the door lock via Wi-Fi connection.
[0156] The device cloud 402 can also be used to synchronize information of the device 200 with the application cloud 401 .
[0157] In other cases, after device 200 obtains the networking information from device 100, if device 200 does not need to connect to the Internet, it can be used as a normal BLE device. Figure 3 , device 100 can send control information to device 200 through a communication connection with device 200 (such as a direct BLE connection).
[0158] like Figure 4 Shown as Figure 2 The following is an example of the structure of each device in the system. Figure 4 , taking the smart home application installed in the device 100 as a smart life application as an example, the smart life application may include a device discovery module 101, a device registration module 102, a network configuration input module 103, and an agent activation module 104. The cloud 400 may include a device login module 403, a device registration module 404, a device activation module 405, and a device connection module 406. The device 200 may include a routing connection module 204, a key management module 205, a data synchronization module 206, and a device activation module 207.
[0159] Among them, the device discovery module 101 in the smart life application can be used for the device 100 to discover and establish a communication connection (such as a Bluetooth connection) with other devices (such as the device 200).
[0160] The network configuration input module 103 may be used to obtain device information (such as a MAC address, etc.) of the device 200 from the device 200 , and use the device information of the device 200 to establish a connection with the cloud 400 .
[0161] The device registration module 102 may be used to register the device 200 with the cloud 400 on behalf of the device 200. Exemplarily, the device 100 may obtain the registration information of the device 200 (such as the device identifier assigned by the cloud to the device 200) from the cloud 400 on behalf of the device 200, and send the registration information to the device 200. The device registration module 102 may also be used to present the identifier of the successfully registered device 200 on the interface of the smart life application.
[0162] The proxy activation module 104 can be used to act as an agent for the device 200 to activate the device 200 to the cloud 400, so that the device 200 can be used as a networked device. Exemplarily, the device 100 acts as an agent for the device 200 to obtain the activation information (such as the activation key) of the device 200 from the cloud 400, and sends the activation information to the device 200.
[0163] The routing connection module 204 in the device 200 can be used to establish a communication connection with the cloud 400 when the device 200 needs to be connected to the Internet.
[0164] The key management module 205 may be used to manage the activation key obtained from the device 100 .
[0165] The device activation module 207 can be used to obtain a token from the cloud 400 using the registration information and activation information obtained from the device 100. Subsequently, the device 200 can use the token to communicate with the cloud 400. The token can be used as a security credential. When the device 200 uses the token to try to access the cloud 400, the cloud 400 considers the device 200 to be legitimate and allows the device 200 to access to obtain the services provided by the cloud 400.
[0166] The data synchronization module 206 can be used to synchronize the status information of the device 200 to the cloud 400. Taking the device 200 as an example, the door lock can synchronize the information of the open or closed status of the door lock to the cloud.
[0167] The device connection module 406 in the cloud 400 can be used to establish a communication connection with other devices (such as the device 100).
[0168] The device registration module 404 may be used to receive a registration request for the device 200 from the device 100, and the registration request may carry the device information of the device 200. The device registration module 404 may also be used to generate a device identifier assigned to the device 200, and bind and associate the real device information of the device 200 with the device identifier assigned to the device 200, such as associating the real ID of the device 200 with the ID assigned by the cloud. The device registration module 404 may also be used to return the registration information of the device 200 (such as the device identifier assigned by the cloud to the device 200) to the device 100.
[0169] The device activation module 405 can be used to send activation information to the device 100 and can also be used to send a token to the device 200.
[0170] The device login module 403 may be used to interact with the device 200 to provide corresponding services to the device 200 .
[0171] In the embodiment of the present application, the direction of signal transmission between devices is not limited to the direction shown in the drawings.
[0172] like Figure 4 It should be understood that the devices shown in the figure are only examples, and in actual applications, the devices may have more Figure 4 More or fewer components / modules may be shown, two or more components / modules may be combined, or there may be different component / module configurations, etc.
[0173] The device 100, the device 200, and the access point 300 in the embodiment of the present application can also be Figure 5 This can be achieved by using the devices in the Figure 5 The hardware structure diagram of the device provided in the embodiment of the present application is shown in FIG. The device includes at least one processor 201 , a memory 202 and at least one transceiver 203 .
[0174] 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 for controlling the execution of the program of the present application.
[0175] The above components may include communication lines for transmitting information between the above components.
[0176] Transceiver 203, used to communicate with other devices. In the embodiment of the present application, the transceiver can be a module, circuit, bus, interface or other device capable of realizing communication function, used to communicate with other devices. Optionally, the transceiver can be an independently arranged transmitter, which can be used to send information to other devices, and the transceiver can also be an independently arranged receiver, which is used to receive information from other devices. The transceiver can also be a component that integrates the functions of sending and receiving information, and the embodiment of the present application does not limit the specific implementation of the transceiver.
[0177] The memory 202 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor through a communication line. The memory may also be integrated with the processor.
[0178] The memory 202 is used to store computer-executable instructions for implementing the solution of the present application, and the execution is controlled by the processor 201. The processor 201 is used to execute the computer-executable instructions stored in the memory 202, thereby implementing the various methods provided in the following embodiments of the present application.
[0179] Optionally, the computer-executable instructions in the embodiments of the present application may also be referred to as application code, instructions, computer program or other names, which are not specifically limited in the embodiments of the present application.
[0180] In a specific implementation, as an embodiment, the processor 201 may include one or more CPUs.
[0181] In a specific implementation, as an embodiment, a device may include multiple processors. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. The processor here may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0182] like Figure 5 It should be understood that the device shown is only an example and that in actual applications the device may have more Figure 5 More or fewer components may be shown, two or more components may be combined, or there may be a different component configuration, etc.
[0183] For example, Figure 5If the device is a mobile phone or other device, the device may further include a display screen 204 for realizing a display function.
[0184] The technical solution of the embodiment of the present application can be applied to the scenario of adding and registering a multi-mode device. As follows, the technical solution of the embodiment of the present application is described in detail by scenario. The following embodiment takes the device 100 as a mobile phone, the dual-mode device 200 as a door lock supporting Wi-Fi and Bluetooth, and the access point as a router as an example, which are described uniformly here.
[0185] like Figure 6 (a) During the network configuration process, the mobile phone can act as a proxy for the door lock to obtain the network information required by the door lock from the server and send the network information to the door lock. This process does not require the door lock to actually connect to the network (such as a Wi-Fi network) to complete the network configuration of the door lock. Figure 6 (b), when the door lock needs to connect to the network, it uses the above networking information to access the network to obtain the services provided by the network.
[0186] The specific technical details of the above method are given as follows: First, the following embodiment mainly takes the mobile phone agent door lock registering with the server network as an example, but this does not constitute a limitation on the type of equipment involved.
[0187] Figure 7 An example of a device registration method is shown, and the method may include the following steps:
[0188] S101. Mobile phone displays interface A.
[0189] Among them, interface A is the interface of the mobile phone during the network configuration process, and the user can configure the door lock through interface A. For example, interface A is Figure 8 Interface 601 shown in (a).
[0190] Optionally, the mobile phone can install the corresponding application and display the interface A of the application. For example, the interface A is the interface of the smart life application.
[0191] S102: The mobile phone receives a network configuration operation performed on interface A.
[0192] For example, Figure 8 (a), the user clicks the "Connect" button on the interface 601, which can be used as a network configuration operation.
[0193] Alternatively, the network configuration operation may be other operations, and the embodiments of the present application do not limit the type of network configuration operation or the input method of the network configuration operation. Figure 1B (d), after the user enters the WLAN password in the interface 704, the user can click the "Next" button. This operation can be a network configuration operation, which is used to trigger the mobile phone to obtain the network connection information of the door lock from the server.
[0194] S103. In response to the network configuration operation, the mobile phone sends a request A to the server, where the request A is used to request the network connection information required by the smart door lock.
[0195] Optionally, request A may carry the device information of the door lock, so that the server returns the network connection information required by the door lock to the mobile phone based on the device information of the door lock.
[0196] The device information of the door lock is related to the identity of the door lock. Optionally, the device information of the door lock includes but is not limited to at least one of the following information: serial number (SN), media access control (MAC) address, model (productID, prodId), and whether Wi-Fi information is required for networking. Among them, the serial number is used to verify the legal identity of the device.
[0197] The networking information required by the door lock is the information required for the door lock to access the server. Optionally, the networking information includes but is not limited to at least one of the following information: registration information, activation information. Optionally, the registration information includes but is not limited to at least one of the following information: the device identifier (deviceId) and the encryption key (psk) assigned by the server to the door lock. Optionally, the activation information includes but is not limited to at least one of the following information: an activation key (serect). Among them, the encryption key is used to encrypt information between the door lock and the server. The activation key is used as a security credential for the door lock to communicate with the server. The door lock can use the activation key to request access to the server. The server can allow the door lock to access the server after determining that the door lock is legal based on the activation key used by the door lock.
[0198] Still following the above example, Figure 8 (a), after detecting that the user clicks the "Connect" button on the interface 601 of the smart life application (an example of a network configuration operation), the mobile phone determines that the user wants to configure the network for the smart door lock. The smart life application of the mobile phone uses the communication connection between the mobile phone and the server to register and activate the door lock on the server, such as sending a request A to the server and receiving the network connection information required for the door lock configuration from the server, so as to register and activate the door lock with the server.
[0199] In the embodiment of the present application, the communication connection may also be referred to as a communication channel (referred to as a channel for short), or a session, or may have other names.
[0200] Optionally, before S103, the mobile phone can establish a connection with the door lock, and negotiate the authentication process with the door lock through the Bluetooth protocol to negotiate the key. Optionally, the Bluetooth protocol includes but is not limited to any of the following protocols: BLE, classic Bluetooth protocol. Optionally, the negotiated authentication includes but is not limited to speke authentication. After negotiating the key, the mobile phone can query the door lock for the device information of the door lock (such as the MAC address).
[0201] Optionally, the mobile phone may also obtain information about the access point, and the information about the access point may also be regarded as networking information. The information about the access point is used to indicate that the second terminal is connected to the access point for networking. Exemplarily, in a Wi-Fi network, if the access point is a router, the information about the access point may include: a service set identifier (SSID) of the router, and a login password of the router (which may be referred to as the password of the router). In a data network, the information about the access point includes at least one of the following information: a key, a user identifier.
[0202] As a possible implementation method, the mobile phone can display an interface, and the user can use the interface (such as Figure 1B Alternatively, the mobile phone obtains the access point information from the hub device or other devices.
[0203] S104. The server returns the network connection information to the mobile phone.
[0204] In the embodiment of the present application, after receiving request A from the mobile phone, the server returns the networking information required by the door lock to the mobile phone.
[0205] S105. The mobile phone sends network connection information to the door lock.
[0206] As a possible implementation method, the mobile phone sends the above networking information to the door lock through the smart life application.
[0207] For example, if the communication connection between the mobile phone and the door lock is a BLE connection, the mobile phone sends the above networking information to the door lock through the BLE (an example of the second connection mode). The mobile phone can also send networking information through other near-field communication protocols (or near-field connection modes), which is not limited in the embodiments of the present application.
[0208] Compared with the related art, it is necessary to select whether the device is used as a networked device at the beginning of device registration, and the user must participate in the selection, which brings great trouble to the user. The user does not know the specific selection and the corresponding selection consequences. The technical solution of the embodiment of the present application, after the door lock obtains the network information, it can connect to the network if it can, and it can wait for the next connection if it cannot connect to the network, such as waiting until the router is plugged in the network cable to restore the signal, or plugging the SIM card into the device and then trying to connect to the network. This process does not require the user to perform complicated operations. The door lock can try to connect to the network by itself when the conditions for connecting to the network are met, reducing the complexity of the user's operation. For example, when using the technical solution of the embodiment of the present application, if the front-mounted door lock does not have a router, the user can choose to skip entering the Wi-Fi information when registering the door lock.
[0209] S106. The mobile phone displays a prompt message indicating that the network configuration is successful.
[0210] The mobile phone responds to the user's network configuration operation on the door lock (such as clicking Figure 8 The proxy door lock obtains the network connection information required by the door lock from the server and sends the network connection information to the door lock, and the network configuration is completed. In this way, after the network configuration is completed, the subsequent door lock can use the network connection information to access the server.
[0211] Optional, when network configuration is complete, such as Figure 8 (b), the mobile phone can display "Door lock has been successfully activated" on the interface 602 to prompt that the network configuration is completed. Alternatively, the mobile phone can also prompt that the network configuration is completed in other ways, such as voice prompts. The embodiment of the present application does not limit the prompt method for completing the network configuration. Figure 1C Compared with the network configuration interface in the related art presented, the embodiment of the present application can promptly prompt the user that the door lock has been successfully activated after the door lock obtains the network connection information.
[0212] Similarly, the mobile phone may also display a prompt message indicating successful registration after registration is completed.
[0213] According to the technical solution of the embodiment of the present application, the mobile phone can act as an agent for the door lock to obtain the network information required by the door lock from the server to complete the network configuration of the door lock. In this way, when the mobile phone registers / adds a device such as a door lock for the first time, it no longer relies heavily on the actual network environment of the device, and can also register and activate the device normally. In other words, during the process of registering / adding a door lock, the door lock can have a network or not, which does not affect the normal registration and activation of the door lock. For example, when installing a door lock at home, since a router has not been installed at home, the door lock cannot access the server through the router. In this case, it can also ensure that the door lock obtains the required network information from the mobile phone and completes the network configuration of the door lock, which does not affect the subsequent use of the door lock and significantly improves the user experience of multi-mode devices such as door locks. In addition, there is no need to wait for the door lock to connect to the router and the router to assign an IP to the door lock, which can shorten the time and improve the network configuration efficiency.
[0214] In some embodiments, such as Fig. 9 , the above S103 can also be implemented as the following steps S103a and S103b.
[0215] S103a, the mobile phone requests the server for registration information of the door lock.
[0216] As a possible implementation, the mobile phone sends a request message to the server, the request message being used to request the registration information of the door lock. After receiving the request message, the server completes the registration of the door lock and allocates a corresponding device identifier (an example of registration information) to the door lock.
[0217] S103b. The mobile phone requests activation information of the door lock from the server.
[0218] As a possible implementation method, the mobile phone sends a request message to the server by calling the proxy activation interface provided by the server. The request message is used to request activation information of the door lock. After receiving the request message, the server knows that the door lock needs to connect to the server now or in the future. Therefore, the server pre-assigns activation information such as activation key serect to the door lock for use when the door lock connects to the server.
[0219] It should be noted that the embodiment of the present application does not limit the execution order between S103a and S103b. For example, the mobile phone can use one request message to request the above registration information and activation information, or the mobile phone can request the above registration information and activation information respectively through different request messages.
[0220] In some embodiments, such as Fig. 9 The above S104 can also be implemented as: S104a, the server returns the registration information of the door lock to the mobile phone; S104b, the server returns the activation information of the door lock to the mobile phone.
[0221] Optionally, considering that the activation information is related to communication security, the server can set a validity period for the activation information. When the usage time of the activation information exceeds the validity period, the server updates the activation information to improve the communication security with the mobile phone.
[0222] It should be noted that the embodiment of the present application does not limit the execution order between S104a and S104b. For example, the server can use one message to return the above registration information and activation information to the mobile phone, or the server can return the above registration information and activation information respectively through different messages.
[0223] Through the above step S104, the mobile phone agent door lock registers the door lock to the server. After the door lock is successfully registered, it can be used as a BLE device without affecting the use of the door lock as a BLE device.
[0224] In some embodiments, such as Fig. 9 , the above S105 can also be implemented as: S105a, the mobile phone sends the door lock registration information to the door lock; S105b, the mobile phone sends the door lock activation information to the door lock.
[0225] Optionally, after receiving the registration information from the server, the mobile phone may return a response message for the registration information to the server.
[0226] Optionally, after receiving the activation information from the server, the mobile phone may return a response message to the server for the activation information.
[0227] It should be noted that the embodiment of the present application does not limit the execution order between S105a and S105b. For example, the mobile phone can use a message (such as the first networking information) to send the above registration information and activation information to the door lock, or the mobile phone can send the above registration information and activation information separately through different messages, such as carrying the registration information through the first networking information and carrying the activation information through the second networking information. Through the above step S105, the mobile phone agent door lock activates the door lock to the server, so that when the door lock has a network later, it can connect to the cloud by itself.
[0228] The embodiment of the present application also provides a device registration method. After the door lock is registered and activated for the first time, in some cases, if the door lock is not connected to the Internet, it can be used as a common BLE device. In some cases, if the network of the door lock meets the conditions, the door lock can use the activation information to automatically activate the network capability to the server to access the server, obtain the corresponding services provided by the server, and use it as a networked device. Fig.10 An example process of the method is shown, and the method includes:
[0229] S201. The door lock uses the activation information to execute a security authentication process.
[0230] As a possible implementation method, after the door lock obtains the activation information from the mobile phone, if it can connect to the Internet, it can use the activation key to perform security authentication through the handshake process with the server. Security authentication includes but is not limited to the exchange of random numbers (random) and activation keys between the door lock and the server.
[0231] S202: When the security authentication is passed, the server establishes a communication connection with the door lock.
[0232] As a possible implementation method, passing the security authentication means that the activation information used by the door lock is the legal activation information assigned to the door lock by the server. In this case, the server considers the door lock to be a legal device, and the server can establish a session with the door lock, and the network activation is successful. Subsequently, the door lock can communicate with the server through the session.
[0233] S203: The server sends a token to the door lock.
[0234] The server can send a token as a subsequent communication credential to the door lock through the communication connection with the door lock. Optionally, the token includes at least one of the following tokens: AT, RT.
[0235] S204. When the network activation is successful, the server sends a door lock notification message to the mobile phone, where the notification message is used to notify that the network has been successfully activated.
[0236] This step is optional. After the communication connection is established between the server and the door lock, the server can notify the mobile phone that the door lock has been connected to the server and the network activation of the door lock has been successful. The mobile phone can display the online status information of the door lock on the interface based on the notification.
[0237] S205: The door lock uses the token to interact with the server.
[0238] After the door lock receives the token from the server, it subsequently uses the token to interact with the server. For example, the door lock accesses the server, and the access request carries the token. The server parses the token carried in the access request and determines that the token is a legitimate token assigned to the door lock by the server. The server then considers the door lock to be a legitimate device, allows the door lock to access, and returns the access result to the door lock.
[0239] As another example, the door lock uses a token to synchronize the state of the door lock (such as the switch state) with the server. For example, the door lock sends a message to the server, and the message carries the state information of the door lock and the token. After the server parses the message, it determines that the door lock is a legitimate device according to the token in the message, and then stores the state information of the door lock.
[0240] According to the technical solution of the embodiment of the present application, the mobile phone can, through the communication connection between itself and the server, act as a proxy for the door lock to receive the network information from the server, and act as a proxy for the server to send the network information to the door lock. This process no longer depends on the network environment around the door lock. In other words, even if the door lock is not currently connected to the Internet or cannot connect to the Internet, as long as the door lock can obtain the network information from the mobile phone, the door lock can subsequently use the network information to connect to the server at any time when there is a network nearby or it can connect to the Internet, so as to obtain the services provided by the server, without affecting the normal network use of the door lock.
[0241] Moreover, in some cases, if the door lock can connect to the server, but the network quality is poor, the door lock needs to spend a long time to obtain the network information from the server using the relevant technology, resulting in low network configuration efficiency. Using the technical solution of the embodiment of the present application, the mobile phone agent door lock obtains the network information required by the door lock from the server, without the door lock being connected to the server. In other words, even if the network quality between the door lock and the server is poor, it will not affect the efficiency of the mobile phone in obtaining the network information from the server, and the efficiency of the network configuration process can be improved as much as possible.
[0242] In addition, compared with the related art, when the door lock is not connected to the Internet and is registered as a common BLE device, if the user wants to connect the door lock to the Internet later, the user needs to operate such as Figure 1B The many interfaces shown trigger the mobile phone to re-execute the entire network configuration process. The technical solution of the embodiment of the present application is that after the door lock has a network environment or the network is normal, the door lock can automatically use the network information obtained from the mobile phone to connect to Wi-Fi without the user's additional operation. In addition, after the door lock has a network environment, the door lock does not need to execute the entire network configuration process, such as no need to re-acquire the network information, which simplifies the network use process and shortens the time required for the door lock to connect to the network. Therefore, it can improve the network efficiency of the door lock.
[0243] The embodiment of the present application also provides a device registration method, when the network status of the door lock changes, the channel used for transmitting information can be automatically switched to meet the information transmission requirements. For example, switching from using the first connection mode to using the second connection mode to connect with the second terminal, or switching from using the second connection mode to using the first connection mode to connect with the second terminal. Fig.11 An example process of the method is shown, and the method may include the following steps:
[0244] S301. The mobile phone confirms that the door lock is online.
[0245] The door lock is online, which can be understood as the network status of the door lock meets the first condition, and the first condition includes at least one of the following conditions: the door lock can connect to the server, and the network quality between the door lock and the server is higher than a threshold.
[0246] After the mobile phone agent door lock registers and activates the door lock with the server, the default protocol type of the door lock is Bluetooth, which can be understood as registering the door lock as a Bluetooth device by default.
[0247] As a possible implementation method, after the server establishes a communication connection with the door lock, it can notify the mobile phone that the door lock is connected to the network. In this case, the mobile phone can update the protocol type of the door lock to Wi-Fi network (Network), which can be understood as updating the registration type of the door lock to a networked device. Optionally, the mobile phone can display the online (can be written as network&&online) status of the door lock on the interface.
[0248] like Fig.12 (a), the mobile phone displays a control card 1302 corresponding to the door lock on the interface 1301. The network status of the door lock presented in the card 1302 is online.
[0249] S302: The mobile phone sends a control message for the door lock to the server.
[0250] The door lock is online, which means that there is a communication connection between the door lock and the server, so the mobile phone can send a control message to the door lock through the server. As a possible implementation method, the mobile phone sends a control message for the door lock to the server, and the server forwards the control message to the door lock.
[0251] Optionally, the mobile phone uses the information of the access point (such as the SSID and password of the router) to send a control message to the router through a communication connection with the router, and the router then sends the control message to the server.
[0252] Exemplarily, the mobile phone sends a control message for controlling the opening of the door lock to the door lock through the server.
[0253] S303: The server sends a control message to the door lock.
[0254] Correspondingly, the door lock receives the control message and performs corresponding operations according to the control message, such as opening the door lock.
[0255] S304: The door lock sends a control response to the control message to the server.
[0256] Optionally, the control response includes activation information and registration information. After receiving the control response from the mobile phone, the server parses the control response and obtains the legal activation information assigned by the server to the door lock. The server then determines that the door lock is a legal device and the server can trust the control response from the door lock.
[0257] Exemplarily, the door lock returns a control response to the server to indicate that the door lock is opened.
[0258] S305: The server returns a control response to the mobile phone.
[0259] S306: The mobile phone determines that the door lock is not in an online state (offline state).
[0260] Optionally, the non-online state may also be referred to as an offline state.
[0261] The offline state can be understood as the network state of the door lock not satisfying the first condition. For example, it may mean that the door lock has been connected to the server, but the current communication connection with the server has failed. The failure of the communication connection between the door lock and the server may mean that the communication connection exists, but the communication connection is unavailable. Or, it may mean that the communication connection has been disconnected. For example, initially, the door lock is online, the router or operator has a problem, and the server detects that the door lock is offline. The server can notify the mobile phone that the door lock is offline. Optionally, the mobile phone can display the offline (which can be recorded as network&&offline) state of the door lock on the interface. Fig.12 (b), the mobile phone displays the network status of the door lock as offline in the control card 1302 corresponding to the door lock on the interface 1301.
[0262] Alternatively, the offline state may also mean that the door lock has never been connected to the server and is used as a normal BLE device. In this case, the mobile phone can display the network status of the door lock on the interface after establishing a Bluetooth connection with the door lock.
[0263] S307: The mobile phone sends a control message to the door lock.
[0264] The door lock is offline, which means that the communication connection between the door lock and the server is unavailable. In this case, the mobile phone can send control messages to the door lock through the communication connection with the door lock (such as a direct Bluetooth connection).
[0265] S308: The door lock returns a control response to the mobile phone.
[0266] Exemplarily, the door lock returns a control response to the control message to the mobile phone through the Bluetooth connection between the door lock and the mobile phone.
[0267] In an embodiment of the present application, if the door lock can connect to the network or is online, the mobile phone can send a control message to the door lock through a network channel (such as a Wi-Fi network). If the door lock cannot connect to the network or is offline, the mobile phone can send a control message through a channel between the door lock and the mobile phone (such as a directly connected Bluetooth channel). It can be seen that compared to the related art, if you want to switch the communication mode of the door lock, the mobile phone needs to re-register and add the door lock, and the process is cumbersome. In an embodiment of the present application, the mobile phone can automatically switch the channel between the door lock and the door lock according to the network status of the door lock, without the need to re-register and add the door lock. The process is simple and the switching efficiency is high. The mobile phone and the door lock can transmit information through the new communication channel in a timely manner to meet the communication needs.
[0268] The above mainly uses the example of a mobile phone sending a control message to a door lock for explanation. In other embodiments, the messages between the mobile phone and the door lock can also be of other types, such as status synchronization messages. The embodiments of the present application do not limit this. The mobile phone can intelligently switch the transmission channel between the mobile phone and the door lock according to the network status of the door lock. Similarly, the door lock can also intelligently switch the transmission channel between the mobile phone and the door lock according to its own network status. The implementation of this process does not require the door lock to re-execute the registration process.
[0269] The embodiment of the present application also provides a device registration method. When the access point information required by the door lock changes, the updated access point information can be obtained from the mobile phone, and the new access point information can be used to connect to the network. Fig.13 , shows an example process of the method, which may include:
[0270] S401: The door lock determines that the network of the door lock is invalid.
[0271] The network failure of the door lock can mean that the door lock's network is disconnected, or although the door lock is connected to the network, the network is unavailable. For example, when the location of the door lock changes, or the SSID and password of the router change, the door lock no longer has an Internet connection environment, and the door lock's network may fail.
[0272] S402: The door lock requests updated access point information from the mobile phone.
[0273] As a possible implementation, if the door lock cannot connect to a network (such as a Wi-Fi network) within a certain period of time, a request message (an example of a first message) may be initiated to request updated access point information.
[0274] Optionally, the request message may be a Bluetooth broadcast or a multicast. Taking the Bluetooth broadcast as an example, the Bluetooth broadcast carries the identification of the door lock.
[0275] S403: The mobile phone sends new access point information to the door lock.
[0276] Taking the access point information as the SSID and password of the router as an example, as a possible implementation method, after the mobile phone receives the request message for obtaining the access point information from the door lock, it automatically pulls up the corresponding setting interface, and the user can enter or select the updated access point information through the interface. After the mobile phone receives the access point information entered by the user, it can send the updated access point information to the door lock through the communication connection (such as Bluetooth connection) with the door lock, so that the door lock can connect to the network according to the latest access point information.
[0277] like Fig.14(a), the router password has changed, causing the door lock to be unable to connect to the Internet, and the phone shows that the door lock is offline. After the door lock is disconnected from the Internet, it can send a Bluetooth broadcast to request an updated router SSID and password. After the phone receives the Bluetooth broadcast, it pulls up the Fig.14 (b) shows an interface 1501 (an example of the first interface). The user can enter the latest network name (i.e., the SSID of the router) and password through the interface 1501. After receiving the network name and password entered by the user, the mobile phone sends the network name and password to the door lock.
[0278] In some cases, if the mobile phone is close to the door lock and can receive the Bluetooth broadcast from the door lock, the mobile phone can automatically pull up the above setting interface after receiving the Bluetooth broadcast, so that the user can enter the router SSID and password, and send the router SSID and password entered by the user to the door lock.
[0279] In other cases, if the mobile phone is far away from the door lock, the device that receives the Bluetooth broadcast from the door lock can forward the Bluetooth broadcast, so that the mobile phone can receive the Bluetooth broadcast forwarded by other devices. After receiving the Bluetooth broadcast, the mobile phone can automatically pull up the above setting interface for the user to enter the router SSID and password, and send the router SSID and password entered by the user to the door lock.
[0280] In other cases, when the door lock cannot connect to the Internet, a prompt message may be displayed, such as the LED light on the door lock flashing, to remind the user that the door lock's network has failed. The user can bring the phone close to the door lock, or touch the door lock, so that the phone can scan the Bluetooth broadcast of the door lock and automatically pull up the above setting interface for the user to enter the router's SSID and password.
[0281] As another possible implementation, the mobile phone obtains updated access point information from the smart home hub device (or other device), and sends the access point information to the door lock.
[0282] Optionally, the mobile phone sends updated access point information to the door lock through a communication connection (such as a Bluetooth connection) with the door lock.
[0283] S404: The door lock uses the new access point information to connect to the network.
[0284] Exemplarily, the door lock uses Fig.14 After the user enters the network name and password shown in (b) to connect to the network, the mobile phone can display the following Fig.14 In the interface 1301 shown in (c), the online status of the door lock is presented in the card 1302 corresponding to the door lock.
[0285] Compared with the related art, when the access point information changes, the door lock needs to be re-registered to update the access point information. In the embodiment of the present application, when the access point information changes, the door lock can automatically request the updated access point information from the mobile phone and receive the updated access point information from the mobile phone. In this way, there is no need to re-register the door lock to update the access point information, and the access point information required for the door lock to connect to the network can be quickly updated, thereby improving the networking efficiency of the door lock.
[0286] The embodiment of the present application also provides a device registration method, which can detect the network quality of the door lock. When it is confirmed that the network quality of the door lock is poor, the mobile phone agent performs registration and activation on the door lock to improve the registration efficiency. Fig.15 After receiving the network configuration operation in S102, the mobile phone can execute S501:
[0287] S501. The mobile phone determines that the network quality of the door lock meets the requirements.
[0288] The network quality of the door lock meets the condition, which may mean that the network quality of the door lock is lower than a threshold, or the network quality of the door lock is lower than the network quality of the mobile phone. In this case, the mobile phone can execute S103-S104 to obtain the network information required by the door lock from the server on behalf of the door lock.
[0289] In other cases, if the network quality of the door lock is higher than a threshold, or the network quality of the door lock is higher than the network quality of the mobile phone, the door lock can obtain the network connection information from the server by itself.
[0290] In this way, obtaining networking information from the server through a mobile phone or door lock with good network quality can improve the efficiency of obtaining networking information, thereby improving the efficiency of the entire network configuration process.
[0291] In some embodiments, the agent activation function can be enabled through the mobile phone settings. Fig.16 , the setting interface 180 of the mobile phone (an example of the second interface) may include a switch 1801 (an example of the first control). If the switch 1801 is turned on, the mobile phone can execute the method of the embodiment of the present application so that the agent such as the door lock can quickly obtain the network connection information and realize the network configuration of the door lock.
[0292] Fig.18 Taking the integration of the proxy registration and activation functions as an example, in other embodiments, different switches may be provided to respectively enable the proxy registration function and the proxy activation function.
[0293] The above mainly takes the multi-mode device as a door lock that supports BLE and Wi-Fi as an example. In other embodiments, the multi-mode device can also be a device that supports multiple other connection modes, such as a device that supports data network and near-field connection mode BLE, or a device that supports data network and NFC.
[0294] Fig.17 Another process example of the method of the embodiment of the present application is shown, and the method includes:
[0295] S601: A first terminal receives a first operation input by a user.
[0296] The first operation is used to register a second terminal, where the second terminal is a terminal that supports the first connection mode and the second connection mode.
[0297] For example, the first terminal is a mobile phone and the second terminal is a skateboard. The mobile phone displays a registration interface and displays the skateboard logo on the registration interface. The user clicks the skateboard logo to trigger the following process of registering the skateboard. Among them, the first connection mode supported by the skateboard is BLE, and the second connection mode is the data network connection mode.
[0298] S602: The first terminal obtains first networking information required to register the second terminal, where the first networking information is used to instruct the second terminal to connect to the network using the first connection mode.
[0299] For example, Fig.18 (a), the mobile phone agent skateboard obtains the network information required for registering the skateboard from the server, and the network information is used to instruct the skateboard to connect to the network using the data network connection mode.
[0300] S603: The first terminal sends the first networking information to the second terminal through the second connection mode.
[0301] For example, Fig.18 (a), the mobile phone acts as a proxy skateboard, obtains the networking information required to register the skateboard from the server, and then sends the networking information to the skateboard through the BLE connection mode.
[0302] In this example, the mobile phone agent obtains the network information required by the skateboard from the server. Therefore, even if the skateboard cannot connect to the network, it can still obtain the required network information from the mobile phone and complete the skateboard's network configuration. Fig.18 (b), the skateboard can use the network information to connect to the network by itself, without the need to re-register and activate the skateboard. It can be seen that for outdoor scenarios, such as when the skateboard does not initially have a SIM card, or when the data service is shut down due to tariff issues after the SIM card is activated, the registration process can be simplified through the technical solution of the embodiment of the present application.
[0303] It should be noted that the above-mentioned multiple embodiments can be combined and the combined scheme can be implemented. Optionally, some operations in the process of each method embodiment are optionally combined, and / or the order of some operations is optionally changed. In addition, the execution order between the steps of each process is only exemplary and does not constitute a limitation on the execution order between the steps. There can also be other execution orders between the steps. It is not intended to indicate that the execution order is the only order in which these operations can be performed. A person of ordinary skill in the art will think of a variety of ways to reorder the operations described herein. In addition, it should be noted that the process details involved in a certain embodiment of this article are also applicable to other embodiments in a similar manner, or different embodiments can be used in combination.
[0304] In addition, some steps in the method embodiment may be equivalently replaced by other possible steps. Alternatively, some steps in the method embodiment may be optional and may be deleted in certain usage scenarios. Alternatively, other possible steps may be added in the method embodiment. Alternatively, the execution subject (such as a functional module) of some steps in the method embodiment may be replaced by other execution subjects.
[0305] Furthermore, the above method embodiments may be implemented separately or in combination.
[0306] Some other embodiments of the present application provide a device, which may be the first terminal or the second terminal or the server mentioned above. The device may include: a display screen, a memory and one or more processors. The display screen, the memory and the processor are coupled. The memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the device may execute the various functions or steps executed by the corresponding device in the above method embodiment. The structure of the device may refer to Figure 5 The equipment (device) shown.
[0307] The core structure of the device can be expressed as Fig.19 As shown in the structure, the device includes: a processing module 1301, an input module 1302, a storage module 1303 and a display module 1304.
[0308] The processing module 1301 may include at least one of a central processing unit (CPU), an application processor (AP) or a communication processor (CP). The processing module 1301 may perform operations or data processing related to the control and / or communication of at least one of the other elements of the user device. Specifically, the processing module 1301 may be used to control the content displayed on the main screen according to certain trigger conditions. The processing module 1301 is also used to process the input instructions or data and determine the display style according to the processed data.
[0309] The input module 1302 is used to obtain the instructions or data input by the user and transmit the obtained instructions or data to other modules of the device. Specifically, the input mode of the input module 1302 may include touch, gesture, approaching the screen, etc., or voice input. For example, the input module may be the screen of the device, obtain the user's input operation and generate an input signal according to the obtained input operation, and transmit the input signal to the processing module 1301.
[0310] The storage module 1303 may include a volatile memory and / or a non-volatile memory. The storage module is used to store at least one instruction or data related to other modules of the user device. Specifically, the storage module may record the location of the interface where the device interface element UI is located.
[0311] The display module 1304 may include, for example, a liquid crystal display (LCD), a light emitting diode (LED) display, an organic light emitting diode (OLED) display, a micro-electromechanical system (MEMS) display, or an electronic paper display, and is used to display content (e.g., text, images, videos, icons, symbols, etc.) that can be viewed by a user.
[0312] Optionally, a communication module 1305 is also included to support personal devices (via a communication network) to communicate with other personal devices. For example, the communication module can be connected to a network via wireless communication or wired communication to communicate with other personal devices or network servers. Wireless communication can use at least one of cellular communication protocols, such as long-term evolution (LTE), advanced long-term evolution (LTE-A), code division multiple access (CDMA), wideband code division multiple access (WCDMA), universal mobile telecommunications system (UMTS), wireless broadband (WiBro) or global mobile communication system (GSM). Wireless communication may include, for example, short-range communication. Short-range communication may include at least one of wireless fidelity (Wi-Fi), Bluetooth, near field communication (NFC), magnetic stripe transmission (MST) or GNSS.
[0313] It should be noted that each functional module of the device can execute one or more steps in the above method embodiment.
[0314] The present application also provides a chip system, such as Fig. 20 As shown, the chip system includes at least one processor 1401 and at least one interface circuit 1402. The processor 1401 and the interface circuit 1402 can be interconnected via lines. For example, the interface circuit 1402 can be used to receive signals from other devices (such as the memory of the device). For another example, the interface circuit 1402 can be used to send signals to other devices (such as the processor 1401). Exemplarily, the interface circuit 1402 can read the instructions stored in the memory and send the instructions to the processor 1401. When the instructions are executed by the processor 1401, the device can execute the various steps in the above embodiments. Of course, the chip system can also include other discrete devices, which are not specifically limited in the embodiments of the present application.
[0315] An embodiment of the present application also provides a computer storage medium, which includes computer instructions. When the computer instructions are executed on the above-mentioned device, the device executes each function or step executed by the mobile phone in the above-mentioned method embodiment.
[0316] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute each function or step executed by the mobile phone in the above method embodiment.
[0317] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned 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.
[0318] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0319] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0320] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0321] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0322] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A method for device registration, characterized in that: Applied to a first terminal, the method includes: Receive a first operation input by a user; the first operation is used to register a second terminal, and the second terminal is a terminal that supports the first connection mode and the second connection mode; Acquire first networking information required for registering the second terminal, where the first networking information is used to instruct the second terminal to connect to the network using the first connection mode; The first networking information is sent to the second terminal through the second connection mode.
2. The method according to claim 1, characterized in that The first networking information includes activation information for activating the second terminal; Alternatively, after sending the first networking information to the second terminal through the second connection mode, the method further includes: Acquire from the server second networking information required for activating the second terminal; The second networking information is sent to the second terminal through the second connection mode.
3. The method according to claim 1 or 2, characterized in that: Also includes: Present prompt information, where the prompt information is used to prompt that the second terminal has been registered and / or activated.
4. The method according to claim 2, characterized in that: The first networking information further includes information of an access point, or the second networking information further includes information of the access point; The information of the access point is used to instruct the second terminal to connect to the access point for networking.
5. The method according to claim 4, characterized in that In a Wireless Fidelity Wi-Fi network, the information of the access point includes at least one of the following information: a service set identifier SSID of the access point and a password of the access point; in a data network, the information of the access point includes at least one of the following information: a key and a user identifier.
6. The method according to claim 4 or 5, characterized in that: After sending the first networking information to the second terminal through the second connection mode, the method further includes: receiving a first message from the second terminal, where the first message is used to request updated access point information; Send the updated access point information to the second terminal.
7. The method according to claim 6, characterized in that After receiving the first message from the second terminal, the method further includes: Presenting a first interface; Receiving access point information input by the user on the first interface; Sending updated access point information to the second terminal: sending the access point information input by the user to the second terminal.
8. The method according to any one of claims 1 to 7, characterized in that: After sending the first networking information to the second terminal through the second connection mode, the method further includes: determining a network status of the second terminal; According to the network status of the second terminal, the first connection mode is switched to the second connection mode for connecting with the second terminal, or the second connection mode is switched to the first connection mode for connecting with the second terminal.
9. The method according to any one of claims 1 to 8, characterized in that: Also includes: Using the first connection mode, sending a message for the second terminal to the server; Using the first connection mode, a message response for the second terminal is received from the server.
10. The method according to any one of claims 1 to 8, characterized in that: Also includes: Sending a message to the second terminal through the second connection mode; A response to the message is received from the second terminal.
11. The method according to any one of claims 8 to 10, characterized in that: According to a network state of the second terminal, switching from using the first connection mode to using the second connection mode to connect with the second terminal includes: When the network status of the second terminal satisfies the first condition, switching from using the second connection mode to using the first connection mode to connect with the second terminal; And / or, according to a network state of the second terminal, switching from using the first connection mode to using the second connection mode to connect with the second terminal includes: When the network status of the second terminal does not meet the first condition, switch from using the first connection mode to using the second connection mode to connect to the second terminal; the first condition includes at least one of the following conditions: the second terminal can connect to the server, and the network quality between the second terminal and the server is higher than a threshold.
12. The method according to any one of claims 1 to 11, characterized in that: The method further comprises: Display a second interface, wherein the second interface includes a first control; An operation of the user on the first control is detected, and a function of agent registration and / or agent activation is enabled.
13. The method according to claim 6 or 7, characterized in that: The first message includes a broadcast message or a multicast message based on the second connection mode.
14. The method according to claim 2, characterized in that The first networking information further includes registration information of the second terminal, or the second networking information further includes registration information of the second terminal; the registration information includes a device identifier allocated by the server to the second terminal.
15. The method according to claim 2, characterized in that The activation information includes an activation key.
16. The method according to any one of claims 1 to 15, characterized in that: The first connection mode includes any of the following connection modes: Wi-Fi network, data network; And / or, the second connection mode includes a near field connection mode, and the near field connection mode includes any of the following connection modes: Bluetooth, near field communication NFC.
17. A device registration method, characterized in that: Applied to a second terminal, where the second terminal is a terminal supporting a first connection mode and a second connection mode, the method includes: receiving, from the first terminal, first networking information required for registering the second terminal through the second connection mode; Using the first networking information, the network is connected through the first connection mode.
18. The method according to claim 17, characterized in that The first networking information includes activation information for activating the second terminal; Alternatively, after receiving the first networking information required for registering the second terminal from the first terminal through the second connection mode, the method further includes: Through the second connection mode, second networking information required for activating the second terminal is received from the first terminal.
19. The method according to claim 18, characterized in that The first networking information further includes information of an access point, or the second networking information further includes information of the access point; The information of the access point is used to instruct the second terminal to connect to the access point for networking.
20. The method according to claim 19, characterized in that In a Wi-Fi network, the information of the access point includes at least one of the following information: a service set identifier SSID of the access point and a password of the access point; in a data network, the information of the access point includes at least one of the following information: a key and a user identifier.
21. The method according to any one of claims 17 to 20, characterized in that: Also includes: When the first connection mode fails to connect to the network, sending a first message, where the first message is used to request updated access point information; Updated access point information is received from the first terminal.
22. The method according to any one of claims 17 to 21, characterized in that: Also includes: determining a network status of the second terminal; According to the network status of the second terminal, the first connection mode is switched to the second connection mode for connecting with the first terminal, or the second connection mode is switched to the first connection mode for connecting with the first terminal.
23. The method according to claim 21, characterized in that The first message includes a broadcast message or a multicast message based on the second connection mode.
24. The method according to claim 18 or 19, characterized in that The first networking information further includes registration information of the second terminal, or the second networking information further includes registration information of the second terminal; the registration information includes a device identifier allocated by the server to the second terminal.
25. The method according to claim 18 or 19, characterized in that The activation information includes an activation key.
26. The method according to any one of claims 17 to 25, characterized in that: The first connection mode includes any of the following connection modes: wireless fidelity Wi-Fi network, data network; And / or, the second connection mode includes a near field connection mode, and the near field connection mode includes any of the following connection modes: Bluetooth, near field communication NFC.
27. A computer-readable storage medium, characterized in that: The method comprises a program or an instruction. When the program or the instruction is executed, the method according to any one of claims 1 to 16 is implemented, or the method according to any one of claims 17 to 26 is implemented.
28. An electronic device, characterized in that: The electronic device comprises a processor and a memory; The memory is used to store computer-executable instructions. When the device is running, the processor executes the computer-executable instructions stored in the memory, so that the device executes the method according to any one of claims 1 to 16.
29. An electronic device, characterized in that: The electronic device comprises a processor and a memory; The memory is used to store computer-executable instructions. When the device is running, the processor executes the computer-executable instructions stored in the memory to enable the device to perform the method according to any one of claims 17 to 26.
30. A device registration system, characterized in that: The system comprises the apparatus of claim 28 and the apparatus of claim 29.
Citation Information
Cited By
Device registration method, device, and system
EP4727227A1
Device registration method, device, and system
WO2025035980A1