An Internet of Things device network configuration method, terminal and system

By pre-storing IoT device identifiers at the terminal and automatically sending network information, the problem that existing IoT device distribution network requires users to operate manually is solved, and efficient multi-device automatic distribution network is achieved.

CN116055233BActive Publication Date: 2025-08-01HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111267166.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-28
Publication Date
2025-08-01
Estimated Expiration
2041-10-28

AI Technical Summary

Technical Problem

The existing Internet of Things device distribution methods require user manual participation, especially in multiple devices, which leads to low distribution efficiency.

Method used

The terminal pre-stores the ID of the IoT device, automatically obtains the ID and sends network information through the reception device broadcast, so that the device automatically connects to the network, and multiple devices can distribute the network concurrently.

Benefits of technology

Without manual operation by users, the network distribution efficiency is improved, and multiple devices can automatically complete network connections at the same time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116055233B_ABST
    Figure CN116055233B_ABST
Patent Text Reader

Abstract

The present application discloses a method, a terminal, and a system for network configuration of Internet of Things (IoT) devices. The method includes: The terminal stores the identifiers of at least one IoT device. After the terminal stores the identifiers of at least one IoT device, the terminal receives a broadcast sent by a first IoT device, and the first identifier of the first IoT device is carried in the broadcast. The terminal scans the broadcast sent by the first IoT device and parses the first identifier carried in the broadcast. The terminal determines that the first identifier is the identifier of at least one IoT device, that is, the first IoT device is one of the at least one IoT devices. The terminal sends network information to the first IoT device according to the first identifier. The first IoT device receives the network information and connects to the network according to the network information. In this way, the first IoT device automatically completes network configuration without the user's perception of the network configuration operation, that is, the user does not need to manually participate in the IoT device network configuration process, improving the network configuration efficiency. Moreover, multiple IoT devices can concurrently achieve automatic network configuration, making the network configuration efficiency higher.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of communication technologies, and in particular, to a method, a terminal, and a system for configuring a network for Internet of Things (IoT) devices. Background Art

[0002] With the popularization of Internet of Things (IoT) devices, there are more and more IoT devices in users' homes, such as smart speakers, air conditioners, televisions, etc. These IoT devices need to be connected to the Internet. However, some IoT devices (such as smart speakers) do not have the information input function of a touch screen and a keyboard, so they need to be assisted by a terminal device to access the Internet due to hardware limitations. The existing methods for configuring the network of IoT devices usually require users to manually reset the IoT devices to enter the network configuration state and manually complete the network configuration registration of the IoT devices on the application of the terminal device, which requires the full participation of users. When there are a large number of IoT devices, it is necessary to configure the network for each IoT device one by one, and the operation is relatively cumbersome. Therefore, the existing methods for configuring the network of IoT devices have the problem of low network configuration efficiency. Summary of the Invention

[0003] The method, the terminal, and the system for configuring a network for IoT devices provided by the embodiments of the present application achieve concurrent network configuration of multiple IoT devices, and users do not need to participate in the network configuration, so the network configuration efficiency is relatively high.

[0004] To achieve the above object, the embodiments of the present application adopt the following technical solutions.

[0005] In a first aspect, the embodiments of the present application provide a method for configuring a network for IoT devices. The execution subject of this method can be a terminal or a component located in the terminal (such as a chip, a chip system, or a processor, etc.). Hereinafter, the description will be made by taking the execution subject as a terminal as an example. The method includes: The terminal stores the identifiers of at least one IoT device. After the terminal stores the identifiers of at least one IoT device, the terminal receives a broadcast sent by a first IoT device, and the broadcast carries a first identifier of the first IoT device. The terminal scans the broadcast sent by the first IoT device. The terminal obtains the first identifier according to the broadcast, and the first identifier is the identifier of at least one IoT device. The terminal sends network information to the first IoT device according to the first identifier, and the first IoT device is used to connect to the network according to the network information.

[0006] Among them, the terminal stores the identifiers of at least one IoT device, which can be understood as the terminal pre-storing the identifiers of at least one IoT device in advance. The timing for the terminal to store the identifiers of at least one IoT device can be after the user purchases the IoT device through the terminal, or when the user obtains the IoT device and stores the identifier of the IoT device on the terminal. Among them, the user can store the identifier of the IoT device on the terminal in the following ways: Way 1, the user manually stores the identifier of the IoT device on the terminal. Way 2, the user can obtain the identifier by scanning the QR code of the IoT device through the terminal. Of course, there can be other situations, which are not specifically limited in the embodiments of the present application.

[0007] In this way, the identifiers of at least one IoT device are pre-stored in the terminal. When the first IoT device needs to connect to the network, the terminal determines that the first IoT device is one of the at least one IoT devices pre-stored, and sends network information to the first IoT device to facilitate the first IoT device to connect to the network. During the entire network configuration process of the first IoT device, the first IoT device automatically completes the network configuration without the user perceiving the network configuration operation. That is to say, during the network configuration process of the IoT device, there is no need for the user to participate manually, which improves the network configuration efficiency.

[0008] In addition, during the network configuration process of the first IoT device, the second IoT device, the third IoT device, or the nth IoT device also needs to connect to the network. The terminal determines that the second IoT device, the third IoT device, and the nth IoT device are one of the at least one IoT devices pre-stored, and sends network information to the second IoT device, the third IoT device, and the nth IoT device to facilitate the second IoT device, the third IoT device, and the nth IoT device to connect to the network. It can be seen that multiple IoT devices can concurrently achieve automatic network configuration, making the network configuration efficiency higher.

[0009] In a specific implementable manner, the terminal stores the identifiers of at least one IoT device, specifically: the terminal receives a first operation of the user on the first IoT device displayed on the terminal, and the first IoT device is displayed on the first interface of the first application on the terminal. In response to the first operation, the terminal requests the first server corresponding to the first application to generate order completion information of the first IoT device. The first server is used to send the order completion information to the terminal and push a notification to the second server of the first IoT device. The notification is used to instruct the second server to push the first identifier of the first IoT device to the terminal. The terminal receives the order completion information of the first IoT device sent by the first server. The terminal receives the first identifier of the first IoT device pushed by the second server. The terminal stores the first identifier of the first IoT device.

[0010] That is to say, the user purchases the first IoT device through the terminal on the first application. After purchasing the first IoT device, the first server corresponding to the first application pushes the identifier of the first IoT device to the second server corresponding to the first IoT device. The second server sends and pushes the identifier of the first IoT device to the terminal.

[0011] It should be noted here that the user account used by the terminal to log in to the first application is the user account recognizable by the second server. The second server can push the identifier of the first IoT device to the terminal according to the user account.

[0012] In the embodiment of the present application, after the user purchases the first IoT device, the identifier of the first IoT device can be stored on the terminal. In this way, when the first IoT device is subsequently connected to the network, it is convenient for the terminal to push network information to the first IoT device according to the identifier of the first IoT device. In this process, there is no need for the user to operate the display interface of the terminal cumbersome, reducing user operations and improving the network configuration efficiency of the IoT device.

[0013] In some implementable ways, the first operation may include the user's operation on the first control on the first interface of the first application. The first control is used for the user to authorize that "the first server pushes the identifier of the first IoT device to the second server corresponding to the first IoT device, and the second server sends and pushes the identifier of the first IoT device to the terminal".

[0014] In some implementable ways, the second server is used to obtain the first identifier of the first IoT device from the third server corresponding to the first IoT device according to the notification, and the first identifier is generated by the third server according to the second identifier of the first IoT device.

[0015] Among them, the second identifier can be understood as an internal identifier. The second identifier may include at least one of a serial number, a physical address, and an identifier. The first identifier may also be an external identifier of the first IoT device. Among them, the external identifier can be understood as an identifier presented to the outside of the IoT device manufacturer, such as a string, an array, etc.

[0016] In the embodiment of the present application, by transforming the second identifier (such as a serial number, a physical address, etc.) of the first IoT device into the first identifier, the second identifier can be effectively protected, the leakage risk can be reduced, and the IoT device network configuration process can be made safer.

[0017] In some implementable ways, before the terminal receives a first operation on a first IoT device displayed on the terminal, it further includes: the terminal receives a second operation on a first application, and the second operation is used to instruct the terminal to start the first application. In response to the second operation, the terminal sends a first request to a first server, and the first request carries a first user account. The first server is used to start the first application according to the first request and return a login success message to the terminal. The terminal receives the login success message.

[0018] In a specific implementable way, the first application is a third-party application, the first user account is a login account of a fourth server corresponding to the terminal, and the first server is used to push a first identifier of the first IoT device and the first user account to the fourth server after generating an order completion message. The fourth server is used to push the first identifier of the first IoT device and the first user account to a second server.

[0019] In some implementable ways, after the terminal obtains a first identifier according to a broadcast, where the first identifier is an identifier of at least one IoT device, it further includes: the terminal sends a second request to the first IoT device according to the first identifier, and the second request is used to request to establish a communication channel with the first IoT device. The terminal receives a connection success message sent by the first IoT device, and the connection success message is generated by the first IoT device after establishing the communication channel according to the second request.

[0020] In a specific implementable way, the terminal also stores a first access credential of at least one IoT device. The terminal sends network information to the first IoT device, specifically: the terminal encrypts the network information using the first access credential of the first IoT device to obtain an access ciphertext. The terminal sends the access ciphertext to the first IoT device, and the first IoT device is used to decrypt the access ciphertext using the first access credential to obtain the network information.

[0021] In the embodiments of the present application, by encrypting the network information using the first access credential of the first IoT device by the terminal to obtain a credential ciphertext, the leakage of network information can be effectively avoided, and the security of the network configuration process can be improved.

[0022] In some possible implementations, before the terminal sends network information to the first IoT device according to the first identifier, it further includes: the terminal sends a third request to the second server, and the third request is used to request to obtain the second access credential of the second server. The terminal receives the second access credential returned by the second server according to the third request. The method further includes: the terminal sends the address information and the second access credential of the second server to the first IoT device. Wherein, the first IoT device is used to send a fourth request to the second server, and the fourth request is used to request to register the first IoT device, and the second access credential is carried in the fourth request. The second server registers the first IoT device according to the fourth request, generates a registration success message, and feeds back the registration success message to the terminal. The terminal receives the registration success message pushed by the second server. The successful addition of the first IoT device is displayed on the second interface of the terminal.

[0023] In the embodiment of the present application, the terminal obtains the address information and the second access credential from the second server on behalf of the first IoT device. The first IoT device sends a registration request to the second server according to the address information, and the second access credential is carried in the request. The second server completes the registration according to the second access credential and the registration request. During the entire registration process of the first IoT device, the first IoT device automatically completes the registration without the user perceiving the registration operation. That is to say, there is no need for the user to manually participate in the IoT device registration process, improving the efficiency. Moreover, multiple IoT devices can concurrently achieve automatic registration, making the efficiency higher.

[0024] In a second aspect, the embodiment of the present application provides an Internet of Things device network configuration system, and the system includes: the terminal is used to store the identifiers of at least one IoT device. After the terminal stores the identifiers of at least one IoT device, the first IoT device is used to send a broadcast, and the first identifier of the first IoT device is carried in the broadcast. The terminal is used to receive and scan the broadcast. The terminal is used to obtain the first identifier according to the broadcast, and the first identifier is the identifier of at least one IoT device. The terminal is used to send network information to the first IoT device according to the first identifier. The first IoT device is used to connect to the network according to the network information. In this way, the first IoT device automatically completes the network configuration without the user perceiving the network configuration operation. That is to say, there is no need for the user to manually participate in the IoT device network configuration process, improving the network configuration efficiency. Moreover, multiple IoT devices can concurrently achieve automatic network configuration, making the network configuration efficiency higher.

[0025] In this way, at least one identification of an IoT device is pre-stored in the terminal. When the first IoT device needs to connect to the network, the terminal determines that the first IoT device is one of the at least one IoT devices pre-stored, and sends network information to the first IoT device so that the first IoT device can connect to the network. During the entire network configuration process of the first IoT device, the first IoT device automatically completes the network configuration without the user perceiving the network configuration operation. That is to say, during the network configuration process of the IoT device, there is no need for the user to participate manually, which improves the network configuration efficiency.

[0026] In addition, during the network configuration process of the first IoT device, the second IoT device, the third IoT device, or the nth IoT device also needs to connect to the network. The terminal determines that the second IoT device, the third IoT device, and the nth IoT device are one of the at least one IoT devices pre-stored, and sends network information to the second IoT device, the third IoT device, and the nth IoT device so that the second IoT device, the third IoT device, and the nth IoT device can connect to the network. It can be seen that multiple IoT devices can concurrently achieve automatic network configuration, making the network configuration efficiency higher.

[0027] In some implementation manners, the terminal is further configured to receive a first operation of the user on the first IoT device displayed on the terminal. The first IoT device is displayed on the first interface of the first application on the terminal. The terminal is further configured to, in response to the first operation, request the first server corresponding to the first application to generate order completion information of the first IoT device. The first server is configured to send the order completion information to the terminal, and push a notification to the second server of the first IoT device. The notification is used to instruct the second server to push the first identification of the first IoT device to the terminal. The second server is configured to push the first identification of the first IoT device to the terminal according to the notification. The terminal is further configured to receive the order completion information of the first IoT device sent by the first server. The terminal is further configured to receive the first identification of the first IoT device pushed by the second server. The terminal is further configured to store the first identification of the first IoT device.

[0028] That is to say, the user purchases the first IoT device on the first application through the terminal. After purchasing the first IoT device, the first server corresponding to the first application pushes the identification of the first IoT device to the second server corresponding to the first IoT device. The second server sends and pushes the identification of the first IoT device to the terminal.

[0029] In the embodiment of the present application, after the user purchases the first IoT device, the identification of the first IoT device can be stored on the terminal. In this way, when the first IoT device is subsequently connected to the network, it is convenient for the terminal to push network information to the first IoT device according to the identification of the first IoT device. In this process, there is no need for the user to perform cumbersome operations on the display interface of the terminal, reducing user operations and improving the network configuration efficiency of the IoT device.

[0030] In some implementable ways, the second server is used to obtain the first identifier of the first IoT device from the third server corresponding to the first IoT device according to the notification, and the first identifier is generated by the third server based on the second identifier of the first IoT device.

[0031] Wherein, the second identifier can be understood as an internal identifier. The second identifier can include at least one of a serial number, a physical address, and an identifier. The first identifier can also be an external identifier of the first IoT device. Among them, the external identifier can be understood as an identifier presented to the outside of the IoT device manufacturer, such as a string, an array, etc.

[0032] In the embodiment of the present application, by transforming the second identifier (such as a serial number, a physical address, etc.) of the first IoT device into the first identifier, the second identifier can be effectively protected, the leakage risk can be reduced, and the IoT device network configuration process can be made safer.

[0033] In some implementable ways, the terminal is further used to receive a second operation of the user on the first application, and the second operation is used to instruct the terminal to start the first application. The terminal is further used to send a first request to the first server in response to the second operation, and the first request carries the first user account. The first server is used to start the first application according to the first request and return a login success message to the terminal. The terminal is further used to receive the login success message.

[0034] In some implementable ways, the first application is a third-party application, and the first user account is a login account of the fourth server corresponding to the terminal. The first server is used to push the first identifier of the first IoT device and the first user account to the fourth server after generating the order completion information. The fourth server is used to push the first identifier of the first IoT device and the first user account to the second server.

[0035] In some implementable ways, the terminal is further used to send a second request to the first IoT device according to the first identifier, and the second request is used to request to establish a communication channel with the first IoT device. The first IoT device establishes a communication channel with the terminal according to the second request, generates a connection success message, and sends the connection success message to the terminal. The terminal is further used to receive the connection success message sent by the first IoT device, and the connection success message is generated by the first IoT device after establishing the communication channel according to the second request.

[0036] In some implementable ways, the terminal also stores the first access credentials of at least one IoT device. The terminal is further used to encrypt the network information with the first access credentials of the first IoT device to obtain an access ciphertext. The terminal is further used to send the access ciphertext to the first IoT device. The first IoT device is used to decrypt the access ciphertext with the first access credentials to obtain the network information.

[0037] In the embodiment of the present application, the terminal encrypts network information using the first access credential of the first IoT device to obtain a credential ciphertext, which can effectively avoid the leakage of network information and improve the security of the network configuration process.

[0038] In some implementable ways, the terminal is further configured to send a third request to the second server, where the third request is used to request to obtain the second access credential of the second server. The second server obtains the second access credential of the second server according to the third request and sends the second access credential to the terminal. The terminal is further configured to receive the second access credential. The terminal is further configured to send the address information and the second access credential of the second server to the first IoT device. The first IoT device is configured to receive the address information and the second access credential and send a fourth request to the second server, where the fourth request is used to request to register the first IoT device, and the second access credential is carried in the fourth request. The second server registers the first IoT device according to the fourth request, generates a registration success message, and feeds back the registration success message to the terminal. The terminal receives the registration success message pushed by the second server. The successful addition of the first IoT device is displayed on the second interface of the terminal.

[0039] In the embodiment of the present application, the terminal replaces the first IoT device to obtain the address information and the second access credential from the second server. The first IoT device sends a registration request to the second server according to the address information, and the second access credential is carried in the request. The second server completes the registration according to the second access credential and the registration request. During the entire registration process of the first IoT device, the first IoT device automatically completes the registration without the user perceiving the registration operation. That is to say, there is no need for the user to participate manually during the IoT device registration process, which improves the efficiency. Moreover, multiple IoT devices can concurrently achieve automatic registration, making the efficiency higher.

[0040] In a third aspect, an embodiment of the present application provides a terminal, which includes: one or more processors; and a memory in which code is stored; when the code is executed by the terminal, the terminal is caused to execute the IoT device network configuration method as described in the first aspect.

[0041] In a fourth aspect, an embodiment of the present application provides a chip system, which is applied to an electronic device. The chip system includes one or more interface circuits and one or more processors; the interface circuits and the processors are interconnected by lines; the interface circuits are configured to receive signals from the memory of the electronic device and send signals to the processors, and the signals include computer instructions stored in the memory; when the processors execute the computer instructions, the electronic device is caused to execute the IoT device network configuration method as described in the first aspect.

[0042] Fifth aspect, an embodiment of the present application provides a computer storage medium, characterized in that it includes computer instructions, which, when running on an electronic device and a server, cause the electronic device to execute the Internet of Things device network configuration method as described in the first aspect.

[0043] Sixth aspect, an embodiment of the present application provides a computer program product, characterized in that when the computer program product runs on a computer, it causes the computer to execute the Internet of Things device network configuration method as described in the first aspect.

[0044] For the beneficial effects corresponding to the above other aspects, reference can be made to the description of the beneficial effects of the method aspect, which will not be elaborated here.

[0045] In an embodiment of the present application, the terminal stores the identifiers of at least one IoT device. After the terminal stores the identifiers of at least one IoT device, the terminal receives a broadcast sent by the first IoT device, and the first identifier of the first IoT device is carried in the broadcast. The terminal scans the broadcast sent by the first IoT device and parses the first identifier carried in the broadcast. The terminal determines that the first identifier is the identifier of at least one IoT device, that is, the first IoT device is one of the at least one IoT devices. The terminal sends network information to the first IoT device according to the first identifier. The first IoT device receives the network information and connects to the network according to the network information. In this way, the first IoT device automatically completes network configuration without the user perceiving the network configuration operation, that is to say, the user does not need to participate manually during the IoT device network configuration process, improving the network configuration efficiency. Moreover, multiple IoT devices can concurrently achieve automatic network configuration, making the network configuration efficiency higher. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0047] Figure 1 It is a schematic diagram of an interface of a terminal;

[0048] Figure 2 It is a schematic diagram of another interface of a terminal;

[0049] Figure 3 It is a schematic diagram of another interface of a terminal;

[0050] Figure 4 It is a schematic diagram of another interface of a terminal;

[0051] Figure 5 Schematic diagram of another interface of a terminal;

[0052] Figure 6 Schematic diagram of another interface of a terminal;

[0053] Figure 7 Schematic diagram of another interface of a terminal;

[0054] Figure 8 Schematic diagram of another interface of a terminal;

[0055] Figure 9 Schematic diagram of another interface of a terminal;

[0056] Figure 10 Schematic diagram of another interface of a terminal;

[0057] Figure 11 Schematic diagram of an interface of a terminal provided by an embodiment of the present application;

[0058] Figure 12 Schematic diagram of another interface of a terminal provided by an embodiment of the present application;

[0059] Figure 13 Schematic diagram of another interface of a terminal provided by an embodiment of the present application;

[0060] Figure 14 Schematic diagram of the structure of a system provided by an embodiment of the present application;

[0061] Figure 15 Schematic diagram of the structure of a terminal provided by an embodiment of the present application;

[0062] Figure 16 Schematic diagram of the structure of a server provided by an embodiment of the present application;

[0063] Figure 17 Schematic diagram of the process of a method for configuring a network for an Internet of Things device provided by an embodiment of the present application;

[0064] Figure 18 Schematic diagram of the process of a method for configuring a network for an Internet of Things device provided by an embodiment of the present application;

[0065] Figure 19 Schematic diagram of the process of a method for configuring a network for an Internet of Things device provided by an embodiment of the present application. Detailed implementation manners

[0066] Hereinafter, the terms "first" and "second" are only used for descriptive purposes and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of this embodiment, unless otherwise specified, the meaning of "a plurality" is two or more.

[0067] Currently, the method for configuring the network of IoT devices is usually as follows: The user manually resets the IoT device to enter the network configuration state and manually completes the network configuration registration of the IoT device on the application of the terminal device, which requires the user's full participation.

[0068] Exemplarily, as Figure 1 shown, it is a schematic diagram of the main interface of the terminal device. The user clicks on the application (such as the smart life application program, etc.) on the terminal device 110. The smart life application program starts. The terminal device 110 displays an interface as Figure 2 shown. The user enters the user account (such as a Huawei account) and password on this interface 111 and clicks the "Login" control. The interface of the terminal device 110 jumps from the Figure 2 interface 111 shown to Figure 3 interface 112 shown. An IoT device, such as a Huawei smart body fat scale, is displayed on this interface 112. A control 1121 is also displayed on this interface 112. When the user clicks on the control 1121, as Figure 4 shown, a control 113 is displayed on the interface 112 of the terminal device 110. After the user clicks on the "Add Device" option in the control 113, the interface 112 of the terminal device 110 becomes interface 114. This interface 114 indicates that the terminal device 110 is scanning IoT devices and displays the scanned IoT devices. If the user wants to add a certain type of IoT device (such as a sports IoT device, a health IoT device, etc.), the user can click on the "Manual Addition" control 1142 displayed on the interface 114. The terminal device 110 can search for and add IoT devices according to the user's needs. If the user does not know the specific model or name of a certain IoT device, the user can click on the "Scan and Add" control 1143 displayed on the interface 114 and add the IoT device by scanning the barcode on the IoT device. When the user clicks on the "Connect" control on the smart speaker card 1141 on the interface 114 of the terminal device 110, the interface of the terminal device 110 jumps from the Figure 5 interface 114 shown to Figure 6 interface 115 shown. An icon of the smart speaker, an input box for the network device name and password of the smart speaker are displayed on this interface 115. The user can manually enter the network name and password in this input box. After the user enters the network name and password, click on the "Next" control. The interface of the terminal device 110 jumps toFigure 7 The interface 116 shown. The connection progress between the terminal device 110 and the IoT device is displayed on this interface 116. When the connection between the terminal device 110 and the IoT device is successful, the terminal device 110 displays Figure 8 The interface 117 shown. After the connection between the terminal device 110 and the IoT device is completed, the interface of the terminal device 110 is displayed as Figure 9 The interface 118 shown. The networking progress of the IoT device is displayed on this interface 118. After the IoT device is successfully configured with the network, the above Figure 3 In the interface 112 shown, the card of the above IOT device will be added to obtain the interface 119 as Figure 10 shown.

[0069] During the above process of configuring the IoT device with the network, the user needs to click on Figure 3 the control 1121 shown in, the user needs to click on Figure 4 the control 113 shown in, the user needs to click on Figure 5 the "Connect" control on the smart speaker card 1141 shown, and the user needs to input a password and other operations on the Figure 6 interface 115 shown. It can be seen that the user needs to participate throughout the process of configuring the IoT device with the network. When there are a large number of IoT devices, each IoT device needs to be configured with the network one by one, and the operation is rather cumbersome. Therefore, the existing method for configuring the IoT device with the network has the problem of low configuration efficiency.

[0070] To solve the above technical problems, in the embodiment of the present application, the terminal stores the identifiers of at least one IoT device. After the terminal stores the identifiers of at least one IoT device, the terminal receives a broadcast sent by the first IoT device, and the first identifier of the first IoT device is carried in the broadcast. The terminal scans the broadcast sent by the first IoT device and parses the first identifier carried in the broadcast. The terminal determines that the first identifier is the identifier of at least one IoT device, that is, the first IoT device is one of the at least one IoT devices. The terminal sends network information to the first IoT device according to the first identifier. The first IoT device receives the network information and connects to the network according to the network information. In this way, the identifiers of at least one IoT device are pre-stored in the terminal. When the first IoT device needs to connect to the network, the terminal determines that the first IoT device is one of the at least one IoT devices pre-stored, and sends the network information to the first IoT device, so that the first IoT device can connect to the network. During the entire process of configuring the first IoT device with the network, the first IoT device automatically completes the configuration without the user perceiving the configuration operation. That is to say, the user does not need to participate manually during the process of configuring the IoT device with the network, improving the configuration efficiency. Moreover, multiple IoT devices can concurrently achieve automatic configuration, making the configuration efficiency higher.

[0071] In a specific implementation example, after purchasing an IoT device, the terminal stores the identifier of the IoT device. The terminal receives a broadcast sent by the IoT device. The terminal determines that the identifier carried in the broadcast is consistent with the stored identifier. The terminal sends a channel establishment request to the IoT device. The IoT device establishes a communication channel with the terminal according to the request and sends a successful establishment message to the terminal. The terminal receives the successful establishment message. The terminal sends network information to the IoT through the communication channel so that the IoT device can connect to the network according to the network information.

[0072] In some embodiments, a user can purchase a first IoT device through a first application on the terminal. Among them, the first application can be a system application or a third-party application. When the first application is a system application, it can be understood that: the terminal, the first application, the server corresponding to the first application, the first IoT device, the server corresponding to the first IoT device, etc. are all from the same manufacturer. When the first application is a third-party application, it can be understood that: the first application and the server corresponding to the first application are from different manufacturers from the terminal, the first IoT device, and the server corresponding to the first IoT device.

[0073] In some embodiments, after a user purchases a first IoT device through the first application on the terminal, the server corresponding to the first application pushes the first identifier of the first IoT device to the server of the first IoT device. The server of the first IoT device pushes the first identifier of the first IoT device to the terminal. The terminal pre-stores the first identifier of the first IoT device. Specifically, assuming that the first application is a third-party application, the server corresponding to the first application pushes the first identifier of the first IoT device to the server corresponding to the terminal. The server corresponding to the terminal pushes the first identifier of the first IoT device to the server of the first IoT device.

[0074] Exemplarily, adopting the IoT device network configuration method provided by the embodiments of the present application, compared with the above, during the network configuration process of the first IoT device (such as a smart speaker), the terminal does not need to display Figures 2 - 8 the interface shown, that is, the user does not need to operate on the Figures 2 - 8 interface shown on the terminal display. Specifically: The user purchases a smart speaker through the terminal. Exemplarily, the user clicks on the Figure 1 application shown (such as a smart life application program, etc.) on the terminal device 110. The smart life application program starts. The terminal device 110 displays an interface 111 as shown in Figure 2 . The user enters a user account (such as a Huawei account) and password on this interface 111 and clicks the "Login" control. The interface of the terminal device 110 jumps from the Figure 2 interface 111 shown to Figure 3The interface 112 shown. When the user clicks on the "Mall" control on this interface 112, the interface of the terminal 110 displays product information. After the user finds the product information of the smart speaker and clicks to view it, the interface of the terminal 110 jumps to Figure 11 The interface 1101 shown. The information of the smart speaker is displayed on this interface 1101. When the user selects the color and quantity of the smart speaker, and the user clicks on the "Associate the purchased device with the Huawei account" control displayed on the interface 1101 and then clicks on the "Buy Now" control, the interface of the terminal changes from Figure 11 The interface 1101 shown to Figure 12 The interface 1103 shown. When the user clicks on the "Submit Order" control on this interface 1103, the interface of the terminal jumps to Figure 13 The interface 1104 shown. In this way, the user has completed the purchase of the smart speaker. At this time, the server corresponding to the Smart Life application sends the identifier of the smart speaker to the server corresponding to the smart speaker. The server of the smart speaker pushes the identifier of the smart speaker to the terminal, and the terminal stores it in advance. After the purchase of the smart speaker is completed, the user powers on the smart speaker. The smart speaker can send the identifier to the terminal by broadcasting, and the terminal compares the identifier of the smart speaker with the pre-stored identifier and establishes a communication channel with the smart speaker. The terminal sends network information to the smart speaker through this communication channel. The smart speaker receives the network information and makes a network connection according to the network information. At this time, the user enters the Figure 3 The interface shown, and this Figure 3 The interface shown becomes Figure 10 The interface 119 shown. A card of the smart speaker is displayed on this interface 119, that is, the smart speaker has completed the network configuration. It can be seen that during the network configuration process of the smart speaker, the user does not operate the interface frequently, realizing the automatic network configuration of the smart speaker, and the network configuration efficiency is relatively high.

[0075] The method for configuring the network of the Internet of Things device provided by the embodiment of the present application can be applied to Figure 14 The system shown. As Figure 14 shown, this system 100 may include a terminal 110, multiple IoT devices (such as a first IoT device 120, a second IoT device 130) and multiple servers (such as a first server 140, a second server 150, a third server 160).

[0076] Among them, the above IoT devices may include: smart home devices, smart wearable devices, smart transportation devices, smart medical devices, smart vehicle-mounted devices, etc. Among them, smart home devices may include smart speakers, televisions, air conditioners, refrigerators, etc. Smart wearable devices may include smart watches, smart glasses, smart bracelets, etc. Smart transportation devices may include: solar devices, speedometers, cameras, etc. Smart medical devices may include: smart thermometers, smart blood pressure monitors, smart electronic scales, etc. Smart vehicle-mounted devices may include: dash cams, in-vehicle cameras, in-vehicle audio systems, etc. Of course, the IoT devices in the embodiments of the present application are not limited to the devices listed above.

[0077] Among them, the above terminal may be a device with a display function such as a mobile phone, a tablet computer, a desktop computer, a laptop computer, a notebook computer, an Ultra-mobile Personal Computer (UMPC), a handheld computer, a netbook, a Personal Digital Assistant (PDA), a wearable terminal, a television, a virtual reality device, etc. In the embodiments of the present application, no special restrictions are imposed on the specific form of the terminal.

[0078] Exemplarily, as Figure 14 shown, the terminal 110 may be a mobile phone, and the first IoT device 120 and the second IoT device 130 may both be smart speakers. The first server 140 may be a production line server, the second server 150 may be a Huawei Mall server, and the third server 160 may be an IoT server.

[0079] Exemplarily, in the embodiments of the present application, taking the first IoT device (such as a smart speaker) 120 as an example, as described above, the user logs in to the Huawei Mall on the mobile phone using a Huawei account. The Huawei Mall server and the IoT server store the corresponding relationship between the identifier of the mobile phone and the Huawei account. When the user purchases a smart speaker in the Huawei Mall on the mobile phone, the Huawei Mall server sends a purchase success notification to the IoT server, and the notification carries the identifier of the smart speaker and the Huawei account. After receiving the purchase success notification, the IoT server pushes the identifier of the smart speaker to the mobile phone that logs in to the Huawei account according to the Huawei account, and the mobile phone stores it in advance. After the smart speaker is powered on, the smart speaker sends a broadcast, and the broadcast carries the identifier of the smart speaker. The mobile phone scans the broadcast sent by the smart speaker and parses the identifier of the smart speaker carried in the broadcast. The mobile phone compares the identifier of the smart speaker with the information stored in advance. After the comparison is successful, the mobile phone establishes a communication connection with the smart speaker. The mobile phone sends information such as network information to the smart speaker. The smart speaker receives the network information and performs a network connection according to the network information.

[0080] Figure 15It is a block diagram of the above terminal.

[0081] As Figure 15 shown, the terminal 110 may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, a headphone interface 270D, a sensor module 280, a key 290, a motor 291, an indicator 292, a camera 293, a display screen 294, and a subscriber identification module (SIM) card interface 295, etc. The sensor module 280 may include a pressure sensor 280A, a gyroscope sensor 280B, a barometric pressure sensor 280C, a magnetic sensor 280D, an acceleration sensor 280E, a distance sensor 280F, a proximity light sensor 280G, a fingerprint sensor 280H, a temperature sensor 280J, a touch sensor 280K, an ambient light sensor 280L, a bone conduction sensor 280M, etc.

[0082] It can be understood that the structure schematically shown in the embodiments of the present invention does not constitute a specific limitation on the terminal 110. In other embodiments of the present application, the terminal 110 may include more or fewer components than shown, or combine certain components, or split certain components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0083] The processor 210 may include one or more processing units. For example, the processor 210 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.

[0084] The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0085] A memory may also be provided in the processor 210 for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. This memory may hold the instructions or data that the processor 210 has just used or recycled. If the processor 210 needs to use the instruction or data again, it can directly call it from the said memory. This avoids repeated accesses, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.

[0086] In some embodiments, the processor 210 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0087] It can be understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are only illustrative descriptions and do not constitute a structural limitation on the terminal 110. In other embodiments of the present application, the terminal 110 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0088] The charging management module 240 is configured to receive a charging input from a charger. The charger may be a wireless charger or a wired charger. In some embodiments of wired charging, the charging management module 240 may receive the charging input from the wired charger through the USB interface 230. In some embodiments of wireless charging, the charging management module 240 may receive the wireless charging input through the wireless charging coil of the terminal 110. While charging the battery 242, the charging management module 240 may also supply power to the electronic device through the power management module 241.

[0089] The power management module 241 is used to connect the battery 242, the charging management module 240, and the processor 210. The power management module 241 receives the inputs from the battery 242 and / or the charging management module 240, and supplies power to the processor 210, the internal memory 221, the display screen 294, the camera 293, the wireless communication module 260, etc. The power management module 241 can also be used to monitor parameters such as the battery capacity, the number of battery cycles, and the battery health status (leakage, impedance). In some other embodiments, the power management module 241 can also be disposed in the processor 210. In some other embodiments, the power management module 241 and the charging management module 240 can also be disposed in the same device.

[0090] The wireless communication function of the terminal 110 can be implemented by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modulation and demodulation processor, and the baseband processor, etc.

[0091] The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the terminal 110 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example, the antenna 1 can be multiplexed as the diversity antenna of the wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0092] The mobile communication module 250 can provide solutions for wireless communications such as 2G / 3G / 4G / 5G applied to the terminal 110. The mobile communication module 250 can include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 250 can receive electromagnetic waves by the antenna 1, filter and amplify the received electromagnetic waves, and then transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 250 can also amplify the signal modulated by the modulation and demodulation processor and convert it into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least some functional modules of the mobile communication module 250 can be disposed in the processor 210. In some embodiments, at least some functional modules of the mobile communication module 250 and at least some modules of the processor 210 can be disposed in the same device.

[0093] The modulation and demodulation processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Subsequently, the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 270A, the receiver 270B, etc.), or displays an image or video through the display screen 294. In some embodiments, the modulation and demodulation processor may be an independent device. In other embodiments, the modulation and demodulation processor may be independent of the processor 210 and be provided in the same device as the mobile communication module 250 or other functional modules.

[0094] The wireless communication module 260 may provide solutions for wireless communications applied to the terminal 110, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite systems (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. The wireless communication module 260 may be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signals, and transmits the processed signals to the processor 210. The wireless communication module 260 may also receive the signals to be transmitted from the processor 210, perform frequency modulation and amplification on them, and convert them into electromagnetic waves through the antenna 2 for radiation.

[0095] In some embodiments, antenna 1 of the terminal 110 is coupled to the mobile communication module 250, and antenna 2 is coupled to the wireless communication module 260, enabling the terminal 110 to communicate with the network and other devices through wireless communication technologies. The wireless communication technologies may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include Global Positioning System (GPS), Global Navigation Satellite System (GLONASS), Beidou Navigation Satellite System (BDS), Quasi-Zenith Satellite System (QZSS), and / or Satellite Based Augmentation Systems (SBAS).

[0096] In some embodiments, the wireless communication module 260 receives a broadcast sent by an IoT device and scans the broadcast sent by the first IoT device to parse the first identifier carried in the broadcast. The wireless communication module 260 sends network information to the first IoT device according to the first identifier. In some embodiments, the processor determines that the first identifier is the identifier of at least one IoT device, that is, the first IoT device is one of the at least one IoT devices.

[0097] The terminal 110 implements the display function through the GPU, the display screen 294, and the application processor, etc. The GPU is a microprocessor for image processing, connected to the display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 210 may include one or more GPUs, which execute program instructions to generate or change display information.

[0098] The display screen 294 is used to display images, videos, etc. The display screen 294 includes a display panel. The display panel can adopt a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the terminal 110 may include one or N display screens 294, where N is a positive integer greater than 1. In some embodiments, the display screen 294 displays such as Figures 1 - 13 the interface shown.

[0099] The terminal 110 can implement the shooting function through an ISP, a camera 293, a video codec, a GPU, a display screen 294, an application processor, etc.

[0100] The ISP is used to process the data fed back by the camera 293. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera photosensitive element, where the optical signal is converted into an electrical signal. The camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. The ISP can also optimize parameters such as the exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 293.

[0101] The camera 293 is used to capture still images or videos. An object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in standard RGB, YUV, etc. formats. In some embodiments, the terminal 110 may include one or N cameras 293, where N is a positive integer greater than 1.

[0102] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the terminal 110 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, etc.

[0103] The video codec is used to compress or decompress digital videos. The terminal 110 can support one or more video codecs. In this way, the terminal 110 can play or record videos in multiple coding formats, such as: Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0104] The NPU is a neural-network (NN) computing processor. By drawing on the structure of the biological neural network, such as the transmission mode between human brain neurons, it can quickly process the input information and can also continuously self-learn. Through the NPU, applications such as intelligent cognition of the terminal 110 can be realized, such as: image recognition, face recognition, speech recognition, text understanding, etc.

[0105] The external memory interface 220 can be used to connect to an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal 110. The external memory card communicates with the processor 210 through the external memory interface 220 to implement the data storage function. For example, files such as music and videos are saved in the external memory card.

[0106] The internal memory 221 can be used to store computer-executable program codes, and the executable program codes include instructions. The internal memory 221 can include a program storage area and a data storage area. Among them, the program storage area can store the operating system, application programs required for at least one function (such as the sound playback function, the image playback function, etc.). The data storage area can store the data created during the use of the terminal 110 (such as audio data, phone book, etc.). In addition, the internal memory 221 can include high-speed random access memory and can also include non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 210 executes various functional applications and data processing of the terminal 110 by running the instructions stored in the internal memory 221 and / or the instructions stored in the memory provided in the processor.

[0107] In some embodiments, the internal memory 221 may store the identifier of at least one IoT device. Alternatively, the internal memory 221 may store the identifier of at least one IoT device and the access credentials of at least one IoT device. Or, the internal memory 221 may also store the identifier of at least one IoT device in an associated manner with a user account. Or, the internal memory 221 may also store the identifier of at least one IoT device, access credentials, and user account in an associated manner.

[0108] The terminal 110 may implement audio functions through the audio module 270, the speaker 270A, the receiver 270B, the microphone 270C, the headphone jack 270D, and the application processor, etc. For example, music playback, recording, etc.

[0109] The audio module 270 is used to convert digital audio information into an analog audio signal for output, and is also used to convert analog audio input into digital audio signals. The audio module 270 may also be used for encoding and decoding audio signals. In some embodiments, the audio module 270 may be disposed in the processor 210, or some functional modules of the audio module 270 may be disposed in the processor 210.

[0110] The speaker 270A, also known as the "loudspeaker", is used to convert an audio electrical signal into a sound signal. The terminal 110 may listen to music or hands-free calls through the speaker 270A.

[0111] The receiver 270B, also known as the "earpiece", is used to convert an audio electrical signal into a sound signal. When the terminal 110 answers a call or a voice message, the voice can be listened to by bringing the receiver 270B close to the ear.

[0112] The microphone 270C, also known as the "microphone" or "transmitter", is used to convert a sound signal into an electrical signal. When making a call or sending a voice message, the user can speak by bringing the mouth close to the microphone 270C to input the sound signal into the microphone 270C. The terminal 110 may be provided with at least one microphone 270C. In some other embodiments, the terminal 110 may be provided with two microphones 270C, which can not only collect sound signals but also implement a noise reduction function. In some other embodiments, the terminal 110 may also be provided with three, four or more microphones 270C, which can collect sound signals, reduce noise, identify the sound source, and implement a directional recording function, etc.

[0113] The headphone jack 270D is used to connect a wired headphone. The headphone jack 270D can be a USB interface 230, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0114] The pressure sensor 280A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, the pressure sensor 280A can be disposed on the display screen 294. There are many types of pressure sensors 280A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can include at least two parallel plates with conductive materials. When a force acts on the pressure sensor 280A, the capacitance between the electrodes changes. The terminal 110 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 294, the terminal 110 detects the intensity of the touch operation according to the pressure sensor 280A. The terminal 110 can also calculate the position of the touch according to the detection signal of the pressure sensor 280A. In some embodiments, touch operations with the same touch position but different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, the instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.

[0115] The gyroscope sensor 280B can be used to determine the motion posture of the terminal 110. In some embodiments, the angular velocity of the terminal 110 around three axes (i.e., the x, y, and z axes) can be determined by the gyroscope sensor 280B. The gyroscope sensor 280B can be used for anti-shake shooting. Exemplarily, when the shutter is pressed, the gyroscope sensor 280B detects the shaking angle of the terminal 110, calculates the distance that the lens module needs to compensate according to the angle, and makes the lens offset the shaking of the terminal 110 through reverse movement to achieve anti-shake. The gyroscope sensor 280B can also be used for navigation and somatosensory game scenarios.

[0116] The barometric pressure sensor 280C is used to measure the barometric pressure. In some embodiments, the terminal 110 calculates the altitude according to the barometric pressure value measured by the barometric pressure sensor 280C to assist in positioning and navigation.

[0117] The magnetic sensor 280D includes a Hall sensor. The terminal 110 can use the magnetic sensor 280D to detect the opening and closing of the flip leather case. In some embodiments, when the terminal 110 is a flip phone, the terminal 110 can detect the opening and closing of the flip according to the magnetic sensor 280D. Furthermore, according to the detected opening and closing state of the leather case or the flip, features such as automatic unlocking of the flip can be set.

[0118] The acceleration sensor 280E can detect the magnitude of the acceleration of the terminal 110 in various directions (generally three axes). When the terminal 110 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.

[0119] The distance sensor 280F is used to measure distance. The terminal 110 can measure distance through infrared or laser. In some embodiments, for the shooting scene, the terminal 110 can use the distance sensor 280F to measure distance to achieve fast focusing.

[0120] The proximity light sensor 280G can include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The light-emitting diode can be an infrared light-emitting diode. The terminal 110 emits infrared light outward through the light-emitting diode. The terminal 110 uses the photodiode to detect the infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the terminal 110. When insufficient reflected light is detected, the terminal 110 can determine that there is no object near the terminal 110. The terminal 11,0 can use the proximity light sensor 280G to detect when the user holds the terminal 110 close to the ear for a call, so as to automatically turn off the screen to achieve the purpose of power saving. The proximity light sensor 280G can also be used for automatic unlocking and locking of the leather case mode and pocket mode.

[0121] The ambient light sensor 280L is used to sense the ambient light brightness. The terminal 110 can adaptively adjust the brightness of the display screen 294 according to the sensed ambient light brightness. The ambient light sensor 280L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 280L can also cooperate with the proximity light sensor 280G to detect whether the terminal 110 is in the pocket to prevent accidental touch.

[0122] The fingerprint sensor 280H is used to collect fingerprints. The terminal 110 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access to application locks, fingerprint photography, fingerprint answering of incoming calls, etc.

[0123] The temperature sensor 280J is used to detect temperature. In some embodiments, the terminal 110 executes a temperature processing strategy using the temperature detected by the temperature sensor 280J. For example, when the temperature reported by the temperature sensor 280J exceeds a threshold, the terminal 110 reduces the performance of the processor near the temperature sensor 280J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the terminal 110 heats the battery 242 to prevent abnormal shutdown of the terminal 110 caused by low temperature. In still other embodiments, when the temperature is lower than yet another threshold, the terminal 110 boosts the output voltage of the battery 242 to prevent abnormal shutdown caused by low temperature.

[0124] The touch sensor 280K, also referred to as a "touch control device". The touch sensor 280K can be disposed on the display screen 294. The touch sensor 280K and the display screen 294 form a touch screen, also referred to as a "touch control screen". The touch sensor 280K is used to detect a touch operation acting thereon or nearby. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 294. In other embodiments, the touch sensor 280K can also be disposed on the surface of the terminal 11, at a different position from the display screen 294.

[0125] The bone conduction sensor 280M can acquire vibration signals. In some embodiments, the bone conduction sensor 280M can acquire vibration signals of the vibrating bone mass of the human vocal part. The bone conduction sensor 280M can also contact the human pulse to receive blood pressure pulsation signals. In some embodiments, the bone conduction sensor 280M can also be disposed in an earphone to form a bone conduction earphone. The audio module 270 can parse out a voice signal based on the vibration signals of the vibrating bone mass of the vocal part acquired by the bone conduction sensor 280M to implement a voice function. The application processor can parse out heart rate information based on the blood pressure pulsation signals acquired by the bone conduction sensor 280M to implement a heart rate detection function.

[0126] The keys 290 include a power-on key, volume keys, etc. The keys 290 can be mechanical keys or touch keys. The terminal 110 can receive key inputs to generate key signal inputs related to the user settings and function control of the terminal 110.

[0127] The motor 291 can generate vibration alerts. The motor 291 can be used for vibration alerts for incoming calls and also for touch vibration feedback. For example, touch operations for different applications (such as taking photos, playing audio, etc.) can correspond to different vibration feedback effects. For touch operations on different areas of the display screen 294, the motor 291 can also correspond to different vibration feedback effects. Different application scenarios (such as time reminders, receiving messages, alarms, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0128] The indicator 292 can be an indicator light and can be used to indicate the charging status, power change, and can also be used to indicate messages, missed calls, notifications, etc.

[0129] Of course, the terminal 110 may further include other functional units, which are not limited in the embodiments of this application.

[0130] Figure 16 is the structural block diagram of the above server.

[0131] Exemplarily, Figure 16 shows the schematic structural diagram of the servers (such as the first server 140, the second server 150, and the third server 160). In specific implementation, as Figure 16 shown, each of the servers (such as: the first server 140, the second server 150, and the third server 160, etc.) can adopt Figure 14 the composition structure shown, or include Figure 15 the components shown. Figure 16 This is the schematic composition diagram of a server provided by the embodiments of this application. The server can include a processor 301 and a memory 304. Further, the server can also include a communication line 302 and a communication interface 303. Among them, the processor 301, the memory 304, and the communication interface 303 can be connected through the communication line 302.

[0132] The processor 301 can be a central processing unit (CPU), a general-purpose processor, a network processor (NP), a digital signal processor (DSP), a microprocessor, a microcontroller, a programmable logic device (PLD), or any combination thereof. The processor 301 can also be other devices with processing functions, such as circuits, devices, or software modules, without limitation.

[0133] The communication line 302 is used to transmit information between the components included in the server.

[0134] A communication interface 303 is used to communicate with other devices or other communication networks. The other communication network can be an Ethernet, a radio access network (RAN), a wireless local area network (WLAN), etc. The communication interface 303 can be a module, a circuit, a transceiver, or any device capable of implementing communication.

[0135] A memory 304 is used to store instructions. Among them, the instructions can be computer programs.

[0136] Among them, the memory 304 can be a read-only memory (ROM) or other types of static storage devices that can store static information and / or instructions, can also be a random access memory (RAM) or other types of dynamic storage devices that can store information and / or instructions, and can also be 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 compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs), magnetic disk storage media, other magnetic storage devices, without limitation.

[0137] It should be noted that the memory 304 can exist independently of the processor 301 or can be integrated with the processor 301. The memory 304 can be used to store instructions, program codes, or some data, etc. The memory 304 can be located inside the server or outside the server, without limitation.

[0138] A processor 301 is used to execute the instructions stored in the memory 304 to implement the service switching method provided in the following embodiments of the present application. For example, when the server is a chip or a system-on-chip in a network device, the processor 301 executes the instructions stored in the memory 304 to implement the steps performed by the network device in the following embodiments of the present application.

[0139] In one example, the processor 301 can include one or more CPUs, such as Figure 16 CPU0 and CPU1 in

[0140] As an alternative implementation, the server includes multiple processors. For example, in addition to Figure 16 the processor 301 in

[0141] As an alternative implementation, the server further includes an output device 305 and an input device 306. Exemplarily, the input device 306 is a device such as a keyboard, a mouse, a microphone, or a joystick, and the output device 305 is a device such as a display screen or a speaker.

[0142] It should be noted that the server can be a desktop computer, a laptop computer, a web server, a mobile phone, a tablet computer, a wireless terminal, an embedded device, a chip system, or a device with a Figure 16 similar structure therein. In addition, Figure 16 the component structures shown in Figure 16 do not constitute a limitation on the server. Except for the

[0143] components shown, the server may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0144] In the embodiments of the present application, the chip system may be composed of chips or may include chips and other discrete devices.

[0144] In addition, actions, terms, etc. involved between the embodiments of the present application may be referred to each other without limitation. The message names or parameter names in the messages exchanged between devices in the embodiments of the present application are only examples, and other names may also be used in specific implementations without limitation.

[0145] Figure 17 FIG. is a schematic flow chart of a method for configuring an Internet of Things device provided by an embodiment of the present application. As Figure 17 shown, this method can be described in the following stages, specifically:

[0146] The first stage is the preparation stage

[0147] S400. When manufacturing the first IoT device, the first server writes the first identifier of the first IoT device, or the first identifier and a preset first access credential, into the first IoT device.

[0148] Among them, the first server can be used to store information generated during the device manufacturing process, such as the serial number and physical address of the device. Exemplarily, the first server can be a server used for a production line.

[0149] Among them, the first identifier can be used to uniquely identify the first IoT device.

[0150] The first identifier can be an internal identifier of the first IoT device, and this internal identifier can be understood as the identifier presented within the manufacturer of the IoT device, such as a serial number, a physical address, a unique device identifier (UDID), etc.

[0151] The first identifier may also be the external identifier of the first IoT device. Herein, the external identifier may be understood as the identifier presented to the outside of the manufacturer of the IoT device, such as a string, an array, etc.

[0152] In one implementable manner, taking the first identifier as the external identifier as an example, the generation method of the first identifier may be: generated by the first server according to the second identifier of the first IoT device, where the second identifier may be understood as the internal identifier. The second identifier may include at least one of a serial number, a physical address, and an identifier.

[0153] Exemplarily, the first server may perform a hash process on the serial number of the first IoT device to obtain the first identifier. Or, the first server may perform a hash process on the serial number and the physical address of the first IoT device to obtain the first identifier. Or, the first server may perform a hash process on the UDID of the first IoT device to obtain the first identifier. Of course, the embodiments of the present application are not limited to the above-listed implementation manners. In addition, the embodiments of the present application are not limited to the hash process, and other algorithms may also be used, such as an identification algorithm. The embodiments of the present application do not make specific limitations.

[0154] In the embodiments of the present application, by transforming the second identifier (such as a serial number, a physical address, etc.) of the first IoT device into the first identifier, the second identifier can be effectively protected, the leakage risk can be reduced, and the IoT device network configuration process can be made safer.

[0155] Among them, the preset first access credential can be used to encrypt or decrypt network information. The network information may include a network name (such as a wifi name) and a password. The above-mentioned first server may associate and store the preset first access credential with the first identifier of the first IoT device.

[0156] S401. The first IoT device is put on the shelf to the second server, and the first identifier is registered on the second server.

[0157] Among them, the second server may be the server of the same manufacturer as the first IoT device, or the second server may also be a third-party server. The application or client corresponding to the second server is installed on the terminal.

[0158] The second server may be used to push device information to the application or client on the terminal, so as to display the device information on the terminal for the user to browse or operate.

[0159] Among them, as described above, if the first identifier is the internal identifier of the first IoT device, the first identifier is registered on the second server. If the first identifier is the external identifier of the first IoT device, and the first identifier is generated based on the second identifier of the first IoT device, where the second identifier is the internal identifier of the first IoT device, the second identifier is registered on the second server.

[0160] In some embodiments, the IoT device network configuration method provided by the embodiments of the present application further includes: S402. The second server sends the first identifier of the first IoT device and the pre-set first access credential to the third server. Correspondingly, the third server receives the first identifier and the pre-set first access credential.

[0161] Among them, the third server can be understood as the server corresponding to the first IoT device. This third server can become an IoT server.

[0162] This third server is used to push the first identifier of the device purchased by the user and the pre-set first access credential to the terminal after the user purchases the device.

[0163] In a specific implementable manner, S402 can specifically be that, before the user purchases the first IoT device, the second server sends the first identifier of the first IoT device and the pre-set first access credential to the third server.

[0164] In another specific implementable manner, S402 can specifically be that, after the user purchases the first IoT device, the second server sends a notification to the third server, and the notification includes the first user account. This notification is used to instruct the third server to obtain the first identifier of the first IoT device and the pre-set first access credential from the second server. The third server sends a fetch request to the second server, and the first user account is carried in the request. The second server receives the fetch request and pushes the first identifier of the first IoT device and the pre-set first access credential to the third server according to the request.

[0165] In another specific implementable manner, S402 can specifically be that, after the user purchases the first IoT device, the second server sends a notification to the third server, and the second identifier and the first user account are carried in the notification. The third server sends a fetch request to the second server according to the notification, and the second identifier and the first user account are carried in the request. The second server receives the fetch request and pushes the first identifier of the first IoT device and the pre-set first access credential to the third server according to the request.

[0166] Exemplarily, taking the second server as the server of the same manufacturer as the first IoT device as an example:

[0167] After the application on the user operation terminal purchases the first IoT device, the second server sends a notification message to the third server, and the first identifier of the first IoT device and the first user account are carried in the notification message. The third server sends a fetch request to the first server according to the notification message, and the first identifier of the first IoT device and the first user account are carried in the fetch request. The first server finds the preset first access credential corresponding to the first identifier according to the fetch request, and sends the first identifier and the preset first access credential to the third server.

[0168] Exemplarily, taking the second server as a third-party server as an example:

[0169] After the application on the user operation terminal purchases the first IoT device, the second server sends a notification message to the server of the terminal, and the first identifier of the first IoT device and the first user account are carried in the notification message. The server of the terminal sends the notification message to the third server, and the third server sends a fetch request to the first server according to the notification message, and the first identifier of the first IoT device and the first user account are carried in the fetch request. The first server finds the preset first access credential corresponding to the first identifier according to the fetch request, and sends the first identifier and the preset first access credential to the third server.

[0170] The second stage is the purchase stage

[0171] S410. The terminal receives a first operation on the first application by the user, and the first operation is used to instruct the terminal to start the first application using the first user account.

[0172] Among them, the first application may be a system application. Among them, the system application can be understood as an application of the same manufacturer as the terminal. For example, if the terminal is a Huawei mobile phone, the first application is the Huawei Mall application. Or, the first application may also be a third-party application.

[0173] Among them, the first user account can be understood as the login account of the first application. Exemplarily, in the embodiments of the present application, the first user account may be a Huawei account.

[0174] Among them, the first operation may refer to a gesture operation, and the gesture operation may include a click operation, a press operation, a slide operation, etc. The click operation may further include a single click operation and a double click operation, etc.

[0175] The first operation is used to instruct the terminal to start the first application using the first user account. The first operation may be to operate a control on the interface of the first application.

[0176] First, the first operation is to operate the user icon.

[0177] For example, S410 may be implemented as follows: a user clicks a first application on the desktop of a first mobile phone, the first mobile phone receives the user's click operation on the first application, and the first mobile phone displays the interface of the first application. When the user clicks the user icon on the interface of the first application, the first mobile phone launches the first application using the first user account.

[0178] Second, the first operation is to operate an input box on the first application.

[0179] For example, S410 may be implemented as follows: a user clicks a first application on the desktop of a first mobile phone, the first mobile phone receives the user's click on the first application, and displays the first application's interface. The user enters the first user account in an input box on the first application's interface. When the user submits the first user account entered on the first application's interface, the first mobile phone launches the first application using the first user account.

[0180] S411: In response to the first operation, the terminal sends a first request to the second server, wherein the first request carries the first user account. Correspondingly, the second server receives the first request.

[0181] S412: The second server starts the first application according to the first request and returns a login success message to the terminal.

[0182] As described above, the first application can be a system application or a third-party application. Correspondingly, the second server can be a server of the system application or a third-party server.

[0183] In a specific implementation, Figure 18 As shown, the first application is a system application, and the second server is a server of the system application. S412 may specifically be: S412a, the second server starts the first application according to the first request, and returns a login success message to the terminal.

[0184] In another specific implementation, as Figure 18As shown, the first application is a three - party application, and the second server is a three - party server. Specifically, S412 can be as follows: S412b1. The second server sends a second request to the fourth server according to the first request. This second request is used to request the fourth server to authorize the second server to log in to the first application using the first user account. Correspondingly, the fourth server receives the second request. Here, the first user account is an account of the application corresponding to the fourth server, and the manufacturers of the fourth server and the second server have reached an agreement to log in to the first application corresponding to the second server using the first user account. S412b2. The fourth server feeds back authorization information to the second server according to the second request. Correspondingly, the second server receives the authorization information returned by the fourth server. S412b3. The second server starts the first application according to the authorization information and returns a login success message to the terminal.

[0185] S413. The terminal receives a second operation of the user on the first IoT device displayed on the interface of the first application.

[0186] The second operation can include one or more of a click operation, a press operation, a slide operation, and a selection operation. The click operation can include a single - click operation and a double - click operation, etc.

[0187] The second operation can be used to indicate the completion of an order for the first IoT device.

[0188] Exemplarily, the user clicks on the "Mall" control on the interface 112, and the interface of the terminal 110 displays product information. After the user finds the product information of the smart speaker and clicks to view it, the interface of the terminal 110 jumps to Figure 11 the interface 1101 shown. The information of the smart speaker is displayed on this interface 1101. When the user selects the color and quantity of the smart speaker and clicks on the "Buy Now" control, the interface of the terminal jumps from Figure 11 the interface 1101 shown to Figure 12 the interface 1103 shown. The user clicks on the "Submit Order" control on this interface 1103, and the interface of the terminal jumps to Figure 13 the interface 1104 shown. The terminal receiving the above operations of the user is the second operation.

[0189] The second operation can also be used to establish an association relationship between the information of the first IoT device and the first user account. Wherein, establishing an association relationship between the information of the first IoT device and the first user account means that: the second server can push the information of the first IoT device to the devices associated with the first user account, such as the third server. Exemplarily, compared with the above differences, the second operation can also include: before the user clicks on the "Buy Now" control, the user also clicks on the "Associate the purchased device with the Huawei account" control displayed on the interface 1101.

[0190] Of course, in a specific implementable manner, before the user clicks the "Buy Now" control, if the user does not click the "Associate the Purchased Device with the Huawei Account" control displayed on the interface 1101, that is, the information of the first IoT device is not associated with the first user account, it means that: the second server cannot push the information of the first IoT device to the devices associated with the first user account. Then, this application does not execute step S417 and subsequent steps.

[0191] S414. In response to the second operation, the terminal requests the second server to generate the order details of the first IoT device.

[0192] Continuing with the above example, when the terminal receives the user operation (i.e., the second operation), the terminal sends a request to the second server. This request is used to request the second server to generate the order details of the first IoT device and send the order details to the terminal.

[0193] S415. The second server generates the order details.

[0194] S416. The second server sends the order details to the terminal. Correspondingly, the terminal receives the order details.

[0195] S417. The second server sends a notification message to the third server. Correspondingly, the second server receives the notification message.

[0196] The notification message carries the information of the first IoT device and the first user account. The information of the first IoT device may include the first identifier of the first IoT device and the pre-set first access credential. Of course, the information of the first IoT device may also include the second identifier of the first IoT device.

[0197] Of course, as described above, if the second server is a third-party server, then as Figure 18 shown, S417 may specifically be: the second server sends a notification message to the fourth server, and the fourth server is the server corresponding to the terminal. The fourth server sends the notification message to the third server.

[0198] S418. The third server locates the information of the first IoT device according to the notification message and sends the information of the first IoT device to the terminal. Correspondingly, the terminal receives the information of the first IoT device.

[0199] S418 may be specifically implemented in the following manner:

[0200] Method 1: The third server pushes the information of the first IoT device to the terminal according to the first user account. It should be noted here that after the terminal logs in to the application using the first user account, the third server can know the terminal that logs in with the first user account. The third server pushes the information of the first IoT device to the above-mentioned terminal according to the first user account. This terminal can be understood as all terminals that log in to the application using the first user account.

[0201] Method 2: The terminal can actively obtain the information of the first IoT device from the third server according to the first user account. Specifically, the terminal sends a first request to the third server, and the first user account is carried in the first request. The third server receives the first request sent by the terminal. The third server searches for the terminal identifier corresponding to the first user account and the information of the first IoT device according to the first request. The third server sends the information of the first IoT device to the terminal according to the terminal identifier. The terminal receives the information of the first IoT device sent by the third server.

[0202] S419: The terminal stores the information of at least one IoT device.

[0203] That is to say, when the user purchases multiple IoT devices, the information of these IoT devices can all be stored on the terminal.

[0204] Of course, the terminal associates the information of the first IoT device with the first user account and stores it on the terminal.

[0205] The third stage: The network configuration stage

[0206] Figure 19 This is a schematic flowchart of a method for configuring an Internet of Things device provided by an embodiment of the present application. As Figure 19 shown:

[0207] S420: The first IoT device is powered on and started.

[0208] S421: When the first IoT device determines that the first IoT device has not been registered, the first IoT device sends a broadcast. Correspondingly, the terminal receives the broadcast sent by the first IoT device.

[0209] This broadcast can refer to a Bluetooth broadcast. The first IoT device's information, such as the first identifier of the first IoT device, is carried in the broadcast.

[0210] In some embodiments, the Bluetooth broadcast carries the first identifier of the first IoT device, and the first identifier is used for the server or the terminal to identify the identity of the first IoT device. Specifically, when the first IoT device is not logged in to the third server, the first identifier of the first IoT device is sent to the terminal. Subsequently, the terminal matches the identifier of the IoT device stored in advance with the first identifier.

[0211] In some embodiments, the Bluetooth module of the first IoT device performs Bluetooth broadcasting at a preset transmission frequency when sending Bluetooth broadcasts. For example, it sends a Bluetooth broadcast every preset time T, and the duration of sending the Bluetooth broadcast is X seconds. During these X seconds, the Bluetooth broadcast information is continuously sent without interruption. Correspondingly, when the Bluetooth module of the terminal performs signal scanning, it scans at a preset scanning frequency. The preset terminal scans every y seconds, and the duration of each scan is z seconds. Among them, as long as the first IoT device initiates a broadcast, the terminal can receive the broadcast. Exemplarily, the terminal can scan once every 600 ms, and the duration of each scan is 100 ms.

[0212] S422. The terminal scans the broadcast sent by the first IoT device and parses the information of the first IoT device in the broadcast.

[0213] The information of the first IoT device may include the first identifier of the first IoT device. The information of the first IoT device may also include the first access credential of the first IoT device.

[0214] S423. The terminal compares the information of the first IoT device with the pre-stored information.

[0215] Among them, the pre-stored information may refer to the information of at least one IoT device stored by the terminal in the above second stage.

[0216] S424. After the comparison is successful, the terminal sends network information to the first IoT device according to the first identifier.

[0217] In a specific implementable manner, S424 can be specifically implemented as: S425. After the comparison is successful, the terminal sends a communication request to the first IoT device. Correspondingly, the first IoT device receives the communication request. Among them, a successful comparison can be understood as that the information of the first IoT device exists in the pre-stored information. S426. The first IoT device establishes a communication connection according to the communication request and sends a connection success message to the terminal.

[0218] In a specific implementable manner, in order to ensure the security of the transmitted network information, S424 can be specifically implemented as: S427. The terminal encrypts the network information using the first access credential of the first IoT device to obtain a credential ciphertext. Among them, the network information may include a network name, a password, a verification code, etc. For example, the network name is the WiFi name. The terminal sends the credential ciphertext to the first IoT device. Correspondingly, the first IoT device receives the credential ciphertext. S428. The first IoT device decrypts the credential ciphertext using the first access credential to obtain the network information.

[0219] In the embodiments of the present application, the terminal encrypts network information using the first access credential of the first IoT device to obtain a credential ciphertext, which can effectively prevent the leakage of network information and improve the security of the network configuration process.

[0220] S429. The first IoT device performs a network connection based on the network information.

[0221] In some embodiments, as Figure 19 shown, a method for configuring a network for an Internet of Things device provided by an embodiment of the present application may further include:

[0222] S430. The terminal sends a second request to the third server, and this request is used to request information about the third server. Correspondingly, the third server receives the second request sent by the terminal.

[0223] The information of the third server may include information such as the address information of the third server and the second access credential.

[0224] In another implementation, S430 is executed before S426.

[0225] S431. The third server sends the information of the third server to the terminal according to the third request. Correspondingly, the terminal receives the information of the third server.

[0226] S432. The terminal sends the information of the third server to the first IoT device. Correspondingly, the first IoT device receives the information of the third server.

[0227] In one implementable manner, S426 is specifically: the terminal encrypts the network information and the information of the third server using the first access credential of the first IoT device to obtain a credential ciphertext. S427 is specifically: the terminal sends the credential ciphertext to the first IoT device, and the third server's information is carried in the credential ciphertext. Correspondingly, the first IoT device receives the credential ciphertext.

[0228] S433. The first IoT device sends a third request to the third server, and this request is used to request binding the first user account. Correspondingly, the third server receives the third request.

[0229] The third request carries information such as the second access credential and the address information of the third server.

[0230] ]>S434. The third server registers the first IoT device using the first user account according to the third request.

[0231] S435. The third server sends the registration success information to the first IoT device. Correspondingly, the first IoT device receives the registration success information.

[0232] S436. The third server pushes the registration success information to the terminal. Correspondingly, the terminal receives the registration success information.

[0233] S437. The terminal displays the registration success information.

[0234] Exemplarily, the information card of the smart speaker as shown Figure 10 is displayed on the interface of the terminal, that is, the smart speaker is successfully added.

[0235] In the embodiments of the present application, the terminal obtains the address information and the second access credential from the second server on behalf of the first IoT. The first IoT device sends a registration request to the second server according to the address information, and the second access credential is carried in the request. The second server completes the registration according to the second access credential and the registration request. During the entire registration process of the first IoT device, the first IoT device automatically completes the registration without the user perceiving the registration operation. That is to say, the user does not need to participate manually during the IoT device registration process, improving the efficiency. Moreover, multiple IoT devices can concurrently achieve automatic registration, making the efficiency higher.

[0236] For the specific implementation manners of the embodiments of the present application, please refer to the above relevant content, and the embodiments of the present application will not be elaborated herein.

[0237] Under the premise of no contradiction, the various solutions in the above embodiments of the present application can be combined.

[0238] Another terminal provided by the embodiments of the present application. The terminal executes any of the above methods.

[0239] A system provided by the embodiments of the present application. The system executes any of the above methods.

[0240] The embodiments of the present application also provide a computer-readable storage medium, including instructions, which when running on a computer, cause the computer to execute any of the above methods.

[0241] The embodiments of the present application also provide a computer program product containing instructions, which when running on a computer, cause the computer to execute any of the above methods.

[0242] The embodiments of the present application also provide a chip, which includes a processor and an interface circuit. The interface circuit is coupled to the processor. The processor is used to run a computer program or instructions to implement the above method, and the interface circuit is used to communicate with other modules outside the chip.

[0243] In the description of the present application, unless otherwise specified, " / " means "or". For example, A / B may mean A or B. The "and / or" herein is merely a description of the relationship between associated objects, indicating that there can be three relationships. For example, A and / or B may mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, "at least one" means one or more, and "a plurality of" means two or more. The terms such as "first" and "second" do not limit the quantity and execution order, and the terms such as "first" and "second" do not necessarily limit being different from each other.

[0244] In the description of the present application, words such as "exemplary" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Exactly speaking, the use of words such as "exemplary" or "for example" is intended to present relevant concepts in a specific manner.

[0245] Through the description of the above embodiments, those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.

[0246] In several embodiments provided by the present application, it should be understood that the disclosed device and method can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there can be other division methods. For example, 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 displayed or discussed coupling or direct coupling or communication connection to each other can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in electrical, mechanical or other forms.

[0247] The unit described as a separated component may or may not be physically separated. The component displayed as a unit may be a physical unit or multiple physical units, that is, it can be located in one place, or it can be distributed to multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0248] In addition, in each embodiment of the present application, the functional units may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of a software functional unit.

[0249] If the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiments of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product. The software product is stored in a storage medium and includes several instructions for causing a device (which may be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods described in the embodiments of the present application. The foregoing storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc.

[0250] The above content is only the specific implementation manner 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 should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. An Internet of Things device network configuration method, characterized in that the terminal receives a first operation of the user on a first IoT device displayed on the terminal, and the first IoT device is displayed on a first interface of a first application on the terminal; in response to the first operation, the terminal requests the first server corresponding to the first application to generate order completion information of the first IoT device, and the first server pushes a notification to a second server of the first IoT device, and the notification is used to instruct the second server to push the first identifier of the first IoT device obtained from a third server corresponding to the first IoT device to the terminal, and the first identifier is generated by the third server according to a second identifier of the first IoT device; the terminal receives the order completion information of the first IoT device sent by the first server; the terminal receives the first identifier of the first IoT device pushed by the second server; the terminal stores the first identifier of the first IoT device; after the terminal stores the first identifier of the first IoT device, the terminal receives a broadcast sent by the first IoT device, and the first identifier of the first IoT device is carried in the broadcast; the terminal scans the broadcast sent by the first IoT device; the terminal obtains the first identifier according to the broadcast; the terminal sends network information to the first IoT device according to the first identifier, and the first IoT device connects to the network according to the network information.

2. The method according to claim 1, wherein The first interface includes a first control, and the first operation includes an operation of the user on the first control, and the first operation is used to authorize the first server to push a notification to the second server.

3. The method according to claim 1 or 2, characterized in that, Before the terminal receives the first operation of the user on the first IoT device displayed on the terminal, it further includes: the terminal receives a second operation of the user on the first application, and the second operation is used to instruct the terminal to start the first application; in response to the second operation, the terminal sends a first request to the first server, and a first user account is carried in the first request, and the first server starts the first application according to the first request and returns a login success message to the terminal; the terminal receives the login success message.

4. The method according to claim 3, wherein The first application is a third-party application, and the first user account is a login account of a fourth server corresponding to the terminal. After generating the order completion information, the first server pushes the first identifier of the first IoT device and the first user account to the fourth server; the fourth server pushes the first identifier of the first IoT device and the first user account to the second server.

5. The method according to claim 1 or 2, characterized in that, After the terminal obtains the first identifier according to the broadcast, it further includes: the terminal sends a second request to the first IoT device according to the first identifier, and the second request is used to request to establish a communication channel with the first IoT device; The terminal receives the establishment success information sent by the first IoT device, where the establishment success information is generated by the first IoT device after establishing the communication channel according to the second request.

6. The method according to claim 1 or 2, characterized in that, The terminal also stores the first access credential of the first IoT device; The terminal sends network information to the first IoT device, including: The terminal encrypts the network information using the first access credential to obtain an access ciphertext; The terminal sends the access ciphertext to the first IoT device, and the first IoT device is used to decrypt the access ciphertext using the first access credential to obtain the network information.

7. The method according to claim 1 or 2, characterized in that, Before the terminal sends network information to the first IoT device according to the first identifier, it further includes: The terminal sends a third request to the second server, where the third request is used to request to obtain the second access credential of the second server; The terminal receives the second access credential returned by the second server according to the third request; The method further includes: The terminal sends the address information of the second server and the second access credential to the first IoT device; wherein, the first IoT device sends a fourth request to the second server, where the fourth request is used to request to register the first IoT device, and the second access credential is carried in the fourth request; the second server registers the first IoT device according to the fourth request and generates a registration success information, and feeds back the registration success information to the terminal; The terminal receives the registration success information pushed by the second server; The terminal displays that the first IoT device is successfully added on the second interface of the terminal.

8. An IoT device network configuration system, characterized in that The terminal is used to receive a first operation of the user on the first IoT device displayed on the terminal, and the first IoT device is displayed on the first interface of the first application of the terminal; The terminal is further used to respond to the first operation and request the first server corresponding to the first application to generate the order completion information of the first IoT device; The first server is used to send the order completion information to the terminal and push a notification to the second server of the first IoT device, where the notification is used to instruct the second server to push the first identifier of the first IoT device to the terminal; The second server is used to obtain the first identifier of the first IoT device from the third server corresponding to the first IoT device according to the notification, where the first identifier is generated by the third server according to the second identifier of the first IoT device; The second server is used to push the first identifier of the first IoT device to the terminal according to the notification; The terminal is further used to receive the order completion information of the first IoT device sent by the first server; The terminal is further used to receive the first identifier of the first IoT device pushed by the second server; The terminal is further used to store the first identifier of the first IoT device; After storing the first identifier of the first IoT device in the terminal, the terminal is further configured to receive a broadcast sent by the first IoT device, where the first identifier of the first IoT device is carried in the broadcast; The terminal is further configured to receive and scan the broadcast; The terminal is further configured to obtain the first identifier according to the broadcast; The terminal is further configured to send network information to the first IoT device according to the first identifier; The first IoT device is configured to connect to the network according to the network information.

9. The system according to claim 8, wherein The first interface includes a first control, and the first operation includes an operation by a user on the first control, and the first operation is used to authorize the first server to push a notification to the second server.

10. The system according to claim 8 or 9, wherein The terminal is further configured to receive a second operation by the user on the first application, and the second operation is used to instruct the terminal to start the first application; The terminal is further configured to, in response to the second operation, send a first request to the first server, where a first user account is carried in the first request; The first server is configured to, according to the first request, start the first application and return a login success message to the terminal; The terminal is further configured to receive the login success message.

11. The system according to claim 10, wherein The first application is a third-party application, and the first user account is a login account of a fourth server corresponding to the terminal; The first server is further configured to, after generating the order completion information, push the first identifier of the first IoT device and the first user account to the fourth server; The fourth server is configured to push the first identifier of the first IoT device and the first user account to the second server.

12. The system according to claim 8 or 9, wherein The terminal is further configured to send a second request to the first IoT device according to the first identifier, and the second request is used to request to establish a communication channel with the first IoT device; The first IoT device establishes a communication channel with the terminal according to the second request, generates a connection success message, and sends the connection success message to the terminal; The terminal is further configured to receive the connection success message sent by the first IoT device, and the connection success message is generated by the first IoT device after establishing the communication channel according to the second request.

13. The system according to claim 8 or 9, characterized in that, The terminal further stores a first access credential of the first IoT device; The terminal is further configured to encrypt the network information using the first access credential to obtain an access ciphertext; The terminal is further configured to send the access ciphertext to the first IoT device; The first IoT device is further configured to decrypt the access ciphertext using the first access credential to obtain the network information.

14. The system according to claim 8 or 9, wherein The terminal is further configured to send a third request to the second server, and the third request is used to request to obtain a second access credential of the second server; The second server is further configured to obtain the second access credential of the second server according to the third request, and send the second access credential to the terminal; The terminal is further configured to receive the second access credential; The terminal is further configured to send the address information of the second server and the second access credential to the first IoT device; The first IoT device is further configured to receive the address information and the second access credential, and send a fourth request to the second server, where the fourth request is used to request to register the first IoT device, and the second access credential is carried in the fourth request; The second server is further configured to register the first IoT device according to the fourth request, generate registration success information, and feedback the registration success information to the terminal; The terminal is further configured to receive the registration success information pushed by the second server; The successful addition of the first IoT device is displayed on the second interface of the terminal.

15. A terminal, characterized in that, Comprising: One or more processors; And a memory, where code is stored in the memory; when the code is executed by the terminal, the terminal is caused to execute the Internet of Things device networking method according to any one of claims 1-7.

16. A chip system, characterized in that, The chip system is applied to an electronic device, and the chip system includes one or more interface circuits and one or more processors; when the one or more processors execute computer instructions, the electronic device is caused to execute the Internet of Things device networking method according to any one of claims 1-7.

17. A computer storage medium, characterized in that, Comprising computer instructions, when the computer instructions run on an electronic device, the electronic device is caused to execute the Internet of Things device networking method according to any one of claims 1-7.

18. A computer program product, characterized in that, When the computer program product runs on a computer, the computer is caused to execute the Internet of Things device networking method according to any one of claims 1-7.

Citation Information

Patent Citations

  • Intelligent equipment network access method and device, , network access method and device, equipment, system, and medium

    CN110868748A

  • Precursory client configuration for network access

    US20180048632A1