Network distribution method and device and storage medium
By establishing wireless connections to obtain device status in real time during the distribution process of IoT devices, the problem of inefficiency in the distribution process in the existing technology is solved, and faster distribution network completion and higher user experience is achieved.
Patent Information
- Application Number
- CN202311322462.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-12
- Publication Date
- 2025-04-15
AI Technical Summary
In the Internet of Things, when users use mobile terminals to bind the distribution network for smart devices, the application cannot obtain the successful status of the device binding in time, resulting in inefficient distribution process and long waiting time for users.
During the process of connecting the router of the network device to be distributed, a wireless connection between the electronic device and the network device to be distributed is established, and a wireless communication connection is established using a network different from the network connection protocol used by the network device to be distributed, so as to obtain the login registration information and distribution status of the network device to be distributed in real time.
It realizes instant acquisition of the login and distribution status of the devices to be distributed, and synchronizes the distribution process and status in real time, shortens the time for the equipment distribution network binding, reduces the waiting time for users, and improves the user experience.
Smart Images

Figure CN119835728A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a network distribution method, device and storage medium. Background Art
[0002] Network configuration is an important concept in the Internet of Things, which refers to connecting and configuring smart devices to the network so that they can communicate and access the Internet.
[0003] When users use applications on mobile terminals and other devices to configure network binding for smart devices, after the device completes login and binding registration on the cloud server, the application cannot obtain the successful binding status of the device in time, thereby completing the network configuration process and jumping to the device list. In related technologies, the application needs to obtain the device status from the cloud server through polling, which is inefficient and requires users to wait for a long time. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present disclosure provides a network distribution method, device and storage medium.
[0005] According to a first aspect of an embodiment of the present disclosure, a network configuration method is provided, the network configuration method comprising: in response to an electronic device receiving a network configuration request from a device to be configured, determining a wireless hotspot network used to configure the device to be configured according to the network configuration request; establishing a wireless communication connection with the device to be configured, and sending network configuration information of the wireless hotspot network to the device to be configured through the wireless communication connection, the network configuration information being used for the device to be configured to perform network configuration; receiving device network configuration status information sent by the device to be configured through the wireless communication connection; and determining that the device to be configured has successfully completed network configuration according to the device network configuration status information.
[0006] In one implementation, the wireless communication connection is a wireless communication connection with a network connection protocol different from that used by the device to be networked.
[0007] In one embodiment, the network configuration request includes the product model of the device to be configured; determining the wireless hotspot network used to configure the device to be configured based on the network configuration request includes: obtaining device capability information corresponding to the product model of the device to be configured from a cloud server, the device capability information including a networking mode and / or supported network frequency band; determining the wireless hotspot network used to configure the device to be configured based on the networking mode and / or supported network frequency band.
[0008] In one embodiment, the device network configuration status information includes at least one of the network status information of the device to be configured, the cloud server connection information, and the registration and binding information; determining that the device to be configured is successful and the network configuration is completed based on the device network configuration status information includes: in response to receiving the network configuration status information including the registration and binding information, and the registration and binding information indicates that the device to be configured is successfully registered and bound in the cloud server, obtaining the registration and binding status of the device to be configured in the cloud server, and determining that the device to be configured has successfully completed the network configuration and has been successfully registered and bound in the cloud server.
[0009] In one embodiment, the method further includes: in response to completing the network configuration of the device to be configured, displaying the device to be configured that has successfully completed the network configuration through a user interface; disconnecting the network connection with the device to be configured, wherein the network connection is a network connection with a network connection protocol different from that used for the network configuration of the device to be configured.
[0010] According to a second aspect of an embodiment of the present disclosure, a network configuration method is provided, the network configuration method comprising: sending a network configuration request to an electronic device, the network configuration request is used by the electronic device to determine a wireless hotspot network for configuring a device to be configured; establishing a wireless communication connection with the electronic device, and receiving network configuration information sent by the electronic device through the wireless communication connection, the network configuration information is used for configuring a network with the wireless hotspot network; configuring a network with the wireless hotspot network according to the network configuration information, and sending device network configuration status information to the electronic device in real time through the wireless communication connection.
[0011] In one implementation, the wireless communication connection is a wireless communication connection with a network connection protocol different from that used by the device to be networked.
[0012] In one embodiment, the device network configuration status information includes at least one of the network status information of the device to be configured, the cloud server connection information, and the registration and binding information. The network configuration with the wireless hotspot network is performed according to the network configuration information, and the device network configuration status information is sent to the electronic device in real time through the wireless communication connection, including: scanning the wireless hotspot network to be connected according to the network configuration information, and sending the network status information to the electronic device through the wireless communication connection; connecting to the cloud server, and sending the cloud server connection information to the electronic device through the wireless communication connection; registering and binding the device to be configured on the cloud server, and sending the registration and binding information to the electronic device through the wireless communication connection.
[0013] According to a third aspect of an embodiment of the present disclosure, a network configuration device is provided, including: a processing unit, for determining, in response to an electronic device receiving a network configuration request from a device to be configured, a wireless hotspot network for configuring the device to be configured according to the network configuration request; a sending unit, for establishing a wireless communication connection with the device to be configured, and sending network configuration information of the wireless hotspot network to the device to be configured through the wireless communication connection, wherein the network configuration information is used for configuring the device to be configured; a receiving unit, for receiving device network configuration status information sent by the device to be configured through the wireless communication connection; and a determining unit, for determining, based on the device status information, that the device to be configured has successfully completed network configuration.
[0014] In one implementation, the wireless communication connection is a wireless communication connection with a network connection protocol different from that used by the device to be networked.
[0015] In one embodiment, the network configuration request includes the product model of the device to be configured; the processing unit adopts the following method to determine the wireless hotspot network used to configure the device to be configured according to the network configuration request: obtain device capability information corresponding to the product model of the device to be configured from a cloud server, the device capability information including the networking mode and / or the supported network frequency band; determine the wireless hotspot network used to configure the device to be configured according to the networking mode and / or the supported network frequency band.
[0016] In one embodiment, the device network configuration status information includes at least one of the network status information of the device to be configured, the cloud server connection information, and the registration and binding information; the determination unit determines that the device to be configured is successful and the network configuration is completed based on the device network configuration status information in the following manner: in response to receiving the network configuration status information including the registration and binding information, and the registration and binding information indicates that the device to be configured is successfully registered and bound in the cloud server, the registration and binding status of the device to be configured in the cloud server is obtained, and it is determined that the device to be configured has successfully completed the network configuration and has been successfully registered and bound in the cloud server.
[0017] In one embodiment, the processing unit is also used to: in response to completing the network configuration of the device to be configured, display the device to be configured that has successfully completed the network configuration through a user interface; disconnect the network connection with the device to be configured, wherein the network connection is a network connection with a network connection protocol different from that used for the network configuration of the device to be configured.
[0018] According to a fourth aspect of an embodiment of the present disclosure, a network configuration device is provided, including: a sending unit, used to send a network configuration request to an electronic device, the network configuration request is used by the electronic device to determine a wireless hotspot network for configuring a device to be configured; a receiving unit, used to establish a wireless communication connection with the electronic device, and receive network configuration information sent by the electronic device through the wireless communication connection, the network configuration information is used for configuring a network with the wireless hotspot network; a processing unit, used to configure a network with the wireless hotspot network according to the network configuration information, and send device network configuration status information to the electronic device in real time through the wireless communication connection.
[0019] In one implementation, the wireless communication connection is a wireless communication connection with a network connection protocol different from that used by the device to be networked.
[0020] In one embodiment, the device network configuration status information includes at least one of the network status information of the device to be configured, the cloud server connection information, and the registration and binding information. The processing unit performs network configuration with the wireless hotspot network according to the network configuration information, and sends the device network configuration status information to the electronic device in real time through the wireless communication connection: scans the wireless hotspot network to be connected according to the network configuration information, and sends the network configuration status information to the electronic device through the wireless communication connection; connects to the cloud server, and sends the cloud server connection information to the electronic device through the wireless communication connection; registers and binds the device to be configured on the cloud server, and sends the registration and binding information to the electronic device through the wireless communication connection.
[0021] According to a fifth aspect of an embodiment of the present disclosure, a network distribution device is provided, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to: execute the network distribution method described in the first aspect or any one of the implementations of the first aspect.
[0022] According to a sixth aspect of an embodiment of the present disclosure, a network distribution device is provided, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to: execute the network distribution method described in the second aspect or any one of the implementations of the second aspect.
[0023] According to a seventh aspect of an embodiment of the present disclosure, a storage medium is provided, in which instructions are stored. When the instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to execute the network configuration method described in the first aspect or any one of the embodiments of the first aspect.
[0024] According to an eighth aspect of an embodiment of the present disclosure, a storage medium is provided, in which instructions are stored. When the instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to execute the network configuration method described in the second aspect or any one of the embodiments of the second aspect.
[0025] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: by establishing a wireless connection using a network with a network connection protocol different from that used by the device to be configured to connect to the wireless hotspot network, the login and registration information of the device to be configured can be instantly obtained, and the configuration process and status of the device to be configured can be synchronized in real time, thereby shortening the configuration and binding time of the device to be configured, reducing the waiting time of the user, and improving the user experience.
[0026] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0028] Figure 1 The present invention is a flow chart of a network distribution method according to an exemplary embodiment.
[0029] Figure 2 The present invention is a flowchart of a method for determining a wireless hotspot network according to an exemplary embodiment.
[0030] Figure 3 The present invention is a flowchart of a method for determining a network configuration state of a device to be configured according to an exemplary embodiment.
[0031] Figure 4 The present invention is a flowchart of a method for completing network distribution according to an exemplary embodiment.
[0032] Figure 5 The figure is a flow chart of another network distribution method according to an exemplary embodiment.
[0033] Figure 6 The present invention is a flowchart of a method for sending device network configuration status information according to an exemplary embodiment.
[0034] Figure 7 The diagram is a schematic diagram of a scenario of a network configuration method according to an exemplary embodiment.
[0035] Figure 8 The diagram is a schematic diagram of a network distribution method according to an exemplary embodiment.
[0036] Fig. 9The figure is a block diagram of a network distribution device according to an exemplary embodiment.
[0037] Fig.10 The figure is a block diagram of a network distribution device according to an exemplary embodiment.
[0038] Fig.11 It is a block diagram of a device 300 for network distribution according to an exemplary embodiment. DETAILED DESCRIPTION
[0039] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.
[0040] The network configuration method provided in the embodiments of the present disclosure can be applied to the field of Internet of Things (IoT) to configure the network devices to be configured and log the network devices to be configured into a specified account. The network devices to be configured refer to smart devices that have not yet been connected to the wireless network. These devices are usually newly purchased or configured for the first time. They need to go through the initial setup and network configuration process so that they can connect to the user's Wireless Fidelity (WiFi) network or other communication network to achieve functions such as remote control, data transmission and cloud services.
[0041] Among them, the devices to be networked can be smart home devices (for example, smart TVs, smart refrigerators, smart washing machines, smart speakers, smart rice cookers, smart chandeliers, etc.), portable computers (such as mobile phones, etc.), laptops, personal computers (personal computers, PCs), wearable electronic devices (such as smart watches, smart glasses or smart helmets, etc.), tablets, augmented reality (AR) and virtual reality (VR) devices, car computers, etc.
[0042] In some embodiments, the network configuration method provided by the embodiments of the present disclosure may be applicable to Wi-Fi and Bluetooth Low Energy (BLE) dual-mode smart devices.
[0043] When users use applications on mobile terminals and other devices to configure network binding for smart devices, after the device completes login and binding registration on the cloud server, the application cannot obtain the successful binding status of the device in time, thereby completing the network configuration process and jumping to the device list. In related technologies, the application needs to obtain the device status from the cloud server through polling, which is inefficient and requires users to wait for a long time.
[0044] In view of this, a network configuration method is proposed in an embodiment of the present disclosure. In the network configuration method provided by the present disclosure, by establishing a wireless connection between the electronic device and the device to be configured during the process of the device to be configured connecting to the router, the login registration information of the device to be configured can be obtained instantly, and the network configuration process and status of the device to be configured can be synchronized in real time.
[0045] Figure 1 is a flow chart of a network distribution method according to an exemplary embodiment. Figure 1 As shown, the network configuration method is used in an electronic device, and includes steps S11 to S13.
[0046] In step S11, in response to the electronic device receiving a network configuration request from the device to be configured, a wireless hotspot network for configuring the device to be configured is determined according to the network configuration request.
[0047] The network configuration request of the device to be configured may include a broadcast information packet, such as a Wi-Fi beacon wireless beacon and a BLE beacon wireless beacon.
[0048] WiFi Beacon is a broadcast wireless transmission technology that can transmit data between devices without connecting to the Internet. It uses WiFi technology and can broadcast WiFi signals within the range so that other devices can detect it and communicate with it. BLE Beacon is a broadcast wireless transmission technology based on Bluetooth low energy technology that can transmit data between devices. BLE Beacon uses Bluetooth technology and can broadcast Bluetooth signals within the range so that other devices can detect it and communicate with it. In the absence of network configuration, these two types of beacons can help electronic devices identify nearby devices to be configured and obtain basic information about these devices. Based on the received network configuration request, the electronic device can determine the wireless hotspot network used to configure the device to be configured.
[0049] For example, the electronic device determines the device identifier (Service Set Identifier, SSID) of the wireless hotspot network. The SSID is the name of the Wi-Fi network, which allows the electronic device to identify and select a network to connect to.
[0050] In step S12, a wireless communication connection is established with the device to be networked, and network configuration information of the wireless hotspot network is sent to the device to be networked through the wireless communication connection.
[0051] Among them, the network configuration information is used for the network configuration of the network device to be configured. The electronic device establishes a wireless communication connection with the network device to be configured, and sends the network configuration information to the network device to be configured through the wireless communication connection. The network device to be configured receives the network configuration information and performs network configuration. For example, the electronic device sends the binding information user ID, wireless hotspot network account SSID and password to the network device to be configured.
[0052] In step S13, the device network configuration status information sent by the device to be configured is received through a wireless communication connection.
[0053] The electronic device receives the device network configuration status information sent by the device to be configured, which means that during the network configuration process of the device to be configured, the electronic device establishes a wireless connection with the device to be configured and transmits relevant information in the network configuration process in real time. Such information may include the device's network configuration progress, status, and possible errors or abnormalities.
[0054] In step S14, it is determined that the network configuration of the device to be configured is successfully completed according to the device status information.
[0055] During the network configuration process, the network configuration device can send the device network configuration status information of the corresponding step to the electronic device when each step is completed. The electronic device can determine whether the network configuration of the network configuration device has been successfully completed based on the device status information.
[0056] In the disclosed embodiment, the electronic device receives a network configuration request from a device to be configured, and performs network configuration for the device to be configured. During the network configuration process of the device to be configured, a wireless connection is established between the electronic device and the device to be configured, and relevant information in the network configuration process is transmitted in real time. The electronic device can instantly obtain the login registration information of the device to be configured, and synchronize the network configuration process and status of the device to be configured in real time.
[0057] In one embodiment, the wireless communication connection is a wireless communication connection with a network connection protocol different from that used by the to-be-networked device for networking.
[0058] When the device to be networked is connected to a wireless hotspot network, its network connection is usually switched to the wireless hotspot and it can no longer communicate with electronic devices via WiFi because it has already joined another network and cannot connect to multiple WiFi networks at the same time.
[0059] In order to continue to communicate with the electronic device after the device to be configured is connected to the wireless hotspot network, a wireless connection can be established between the device to be configured and the electronic device using a network connection protocol different from that used by the device to be configured.
[0060] For example, Bluetooth communication can usually be used as an alternative communication channel. Bluetooth communication does not depend on the network connection status of the device, so even if the device to be configured is connected to a wireless hotspot, the electronic device can still receive the device configuration status information sent by the device to be configured in real time via Bluetooth.
[0061] Figure 2 is a flow chart of a method for determining a wireless hotspot network according to an exemplary embodiment. Figure 2 As shown, the network configuration method is used in an electronic device, and includes steps S31 to S32.
[0062] In one embodiment, the network configuration request includes the product model of the device to be configured. For example, the device to be configured broadcasts Wi-Fi beacon and BLE beacon to the surrounding area. The electronic device can parse the device product model and physical address identifier of the device to be configured from the Wi-Fi beacon and BLE beacon.
[0063] In step S31, device capability information corresponding to the product model of the device to be networked is obtained from the cloud server.
[0064] Among them, device capability information includes network connection mode and / or supported network frequency band
[0065] In step S32, a wireless hotspot network for configuring the device to be configured is determined according to the networking mode and / or the supported network frequency band.
[0066] Based on the product model, the electronic device obtains the device capability information of the corresponding model of the device to be configured from the cloud server. The device capability information includes the device's networking method (such as Wi-Fi, BLE, etc.) and detailed information on whether it supports network bands such as 2.4G / 5G. The product model is the unique identifier of the device. The cloud server can identify the type and specifications of the device through the product model and return the device capability information related to the model. The device capability information can be created by the developer on the cloud server during product development.
[0067] For example, the mobile phone APP sends a request to the cloud server based on the product model of the device to be networked to obtain the device's networking method and / or supported network frequency band. Based on this information, the mobile phone APP can determine the wireless hotspot network that the device may need to connect to when networking.
[0068] In the disclosed embodiment, the electronic device sends a request to the cloud service to obtain information based on the product model of the device to be networked included in the network configuration request, and determines the wireless hotspot network used to configure the device to be networked based on the networking method and / or the supported network frequency band. The method in the disclosed embodiment can prevent users from trying the wrong connection method. If a device does not support a certain connection method, this can be clearly informed to the user, thereby reducing the possibility of configuration errors and providing the user with the best network selection suggestions to ensure that the device can connect to the network in the best way, thereby improving the connection quality.
[0069] Figure 3 is a flow chart showing a method for determining the network configuration status of a device to be configured according to an exemplary embodiment. Figure 2 As shown, the network configuration method is used in an electronic device, and includes steps S41 to S42.
[0070] In step S41, in response to receiving the network configuration status information including the registration and binding information, and the registration and binding information indicates that the to-be-configured network device is successfully registered and bound in the cloud server, the registration and binding status of the to-be-configured network device in the cloud server is obtained.
[0071] In one embodiment, the device network configuration status information includes at least one of the network connection status information of the device to be configured, the cloud server connection information, and the registration binding information.
[0072] The device to be configured will transmit the current configuration process information to the electronic device in real time. For example, it can scan the WiFi network, connect to the router, log in to the cloud server, and whether the binding and registration process is successfully completed. This information can usually be transmitted in the form of text or instructions to understand the operation of the device to be configured.
[0073] In one embodiment, if an error or abnormality occurs during the network configuration process, the electronic device may also receive reports of these problems from the network configuration device, such as failure to connect to WiFi, failure to log into the server, wrong password, etc. The electronic device may take appropriate measures based on these reports, such as prompting the user to re-enter the password or retry the network configuration process.
[0074] In step S42, it is determined that the network configuration of the device to be configured is successfully completed and the registration and binding with the cloud server is successful.
[0075] After receiving the registration and binding information sent by the device to be configured, indicating that the device to be configured has successfully registered and bound with the cloud server, the electronic device will immediately send a request to the cloud server to obtain the device's binding registration information to determine that the device to be configured has successfully completed the network configuration and successfully registered and bound with the cloud server. The information obtained from the cloud server may include the device's unique identifier, product information, service access credentials, etc.
[0076] In the disclosed embodiment, the electronic device can timely obtain the device status information such as the network status information of the device to be configured, the cloud server connection information, the registration binding information, etc. by establishing a wireless connection different from the wireless hotspot network connection with the device to be configured. The user can immediately understand the status of the device without waiting or manually refreshing, which improves the user's network configuration experience.
[0077] Figure 4 is a flow chart showing a method for completing network distribution according to an exemplary embodiment. Figure 3 As shown, the network configuration method is used in an electronic device, and includes steps S51 to S52.
[0078] In step S51, in response to the completion of the network configuration of the to-be-configured device, the to-be-configured device that has successfully completed the network configuration is displayed through a user interface.
[0079] When the network configuration process of the network configuration device is successfully completed, the electronic device can display the successful status on the user interface of the application and add the successfully configured device to the device list.
[0080] For example, a device that has successfully completed network provisioning may display a special icon, image, or logo to indicate its status. Text may also be displayed next to the device's name or label to indicate that the device has successfully completed network provisioning.
[0081] In step S52, the network connection with the device to be networked is disconnected, where the network connection is a network connection with a network connection protocol different from that used by the device to be networked.
[0082] After the device binding is completed, the network configuration process is complete, and the wireless connection between the electronic device and the network configuration device is no longer required to transmit status information. The electronic device will usually disconnect the wireless connection with the device that has completed the network configuration.
[0083] In the embodiment of the present disclosure, the electronic device receives status information and automatically completes binding through a network connection using a network connection protocol different from that used by the device to be networked, thereby shortening the time for the entire device configuration and enabling users to use the network-configured smart device more quickly.
[0084] Figure 5 is a flow chart of another network distribution method according to an exemplary embodiment. Figure 4 As shown, the network configuration method is used in the device to be configured, and includes steps S61 to S63.
[0085] In step S61, a network configuration request is sent to the electronic device, where the network configuration request is used by the electronic device to determine a wireless hotspot network for configuring the device to be configured.
[0086] The network configuration request of the device to be configured may include a broadcast information packet, such as a Wi-Fi beacon wireless beacon and a BLE beacon wireless beacon.
[0087] WiFi Beacon is a broadcast wireless transmission technology that can transmit data between devices without connecting to the Internet. It uses WiFi technology and can broadcast WiFi signals within the range so that other devices can detect it and communicate with it. BLE Beacon is a broadcast wireless transmission technology based on Bluetooth low energy technology that can transmit data between devices. BLE Beacon uses Bluetooth technology and can broadcast Bluetooth signals within the range so that other devices can detect it and communicate with it. In the case of unconfigured network, these two types of beacons can help electronic devices identify nearby devices to be configured and obtain basic information about these devices.
[0088] According to the received network configuration request, the electronic device can determine a wireless hotspot network for configuring the device to be configured.
[0089] For example, the electronic device determines the device identifier (Service Set Identifier, SSID) of the wireless hotspot network. The SSID is the name of the Wi-Fi network, which allows the electronic device to identify and select a network to connect to.
[0090] In step S62, a wireless communication connection is established with the electronic device, and network configuration information sent by the electronic device is received through the wireless communication connection, where the network configuration information is used for network configuration with the wireless hotspot network.
[0091] The device to be networked establishes a wireless communication connection with the electronic device, receives the network configuration information sent by the electronic device through the wireless communication connection, and connects to the wireless hotspot network according to the network configuration information. For example, the device to be networked establishes a Bluetooth connection with the electronic device, receives the SSID and password sent by the electronic device, and starts scanning the surrounding wireless hotspot networks, selects a target wireless hotspot network, and attempts to establish a connection with the network.
[0092] In step S63, network configuration is performed with the wireless hotspot network according to the network configuration information, and device network configuration status information is sent to the electronic device in real time through wireless communication connection.
[0093] During the network configuration process, the network configuration device can send the device network configuration status information to the electronic device. Through the wireless communication connection established with the electronic device, the network configuration device can send the device network configuration status information to the electronic device in real time. For example, the network configuration device can send the network status information, cloud server connection information, login registration binding information, etc. to the electronic device in real time.
[0094] In the disclosed embodiment, through real-time wireless communication, device configuration status information such as device status, cloud connection and binding information can be promptly transmitted to the electronic device. The user can immediately understand the status of the device to be configured without waiting or manually refreshing, which shortens the configuration time of the entire device to be configured and enables the user to complete the device configuration faster.
[0095] In one embodiment, the wireless communication connection is a wireless communication connection with a network connection protocol different from that used by the device to be networked.
[0096] When the device to be networked is connected to a wireless hotspot network, its network connection is usually switched to the wireless hotspot and it can no longer communicate with electronic devices via WiFi because it has already joined another network and cannot connect to multiple WiFi networks at the same time.
[0097] In order to continue to communicate with the electronic device after the device to be configured is connected to the wireless hotspot network, a wireless connection can be established between the device to be configured and the electronic device using a network connection protocol different from that used by the device to be configured.
[0098] For example, Bluetooth communication can usually be used as an alternative communication channel. Bluetooth communication does not depend on the network connection status of the device, so even if the device to be configured is connected to a wireless hotspot, the electronic device can still receive the device configuration status information sent by the device to be configured in real time via Bluetooth.
[0099] Figure 6 is a flow chart of a method for sending device network configuration status information according to an exemplary embodiment. Figure 6 As shown, the network configuration method is used in the device to be configured, including steps S81 to S83.
[0100] In step S81, the wireless hotspot network to be connected is scanned according to the network configuration information, and the network status information is sent to the electronic device through the wireless communication connection.
[0101] The network status information can inform the electronic device of the current network status of the device to be configured, such as whether the device to be configured has been successfully connected to the wireless hotspot network.
[0102] In step S82, connect to the cloud server and send cloud server connection information to the electronic device via wireless communication connection.
[0103] The cloud server connection information can report to the electronic device the status of the device to be configured connecting to the cloud server, and confirm whether the cloud service is successfully logged in. This is a step that smart devices usually require in order to synchronize data and remotely control with the cloud service.
[0104] In step S83, the device to be networked is registered and bound in the cloud server, and the registration and binding information is sent to the electronic device via a wireless communication connection.
[0105] The registration and binding information may report to the electronic device information related to the registration and binding process of the to-be-provisioned device, such as a success or failure status of the binding, and possible error information.
[0106] In the disclosed embodiment, by sending status information to the electronic device in real time, the device to be networked can quickly notify the electronic device of its connection status, the connection status of the cloud server, and the registration and binding status. This provides a real-time feedback mechanism to ensure that the electronic device and the user can understand the progress of the network configuration process.
[0107] The embodiments of the present disclosure are described below with reference to examples to explain the above-mentioned network configuration method. A mobile terminal such as a mobile phone is used as an electronic device, and a Bluetooth connection is used as a network connection with a network connection protocol different from that used by the network configuration device to be configured.
[0108] In the related art, when a mobile terminal application APP is used to configure the network for a device to be configured, after the device is successfully logged in and bound, the APP cannot obtain the successful binding status of the device in time, so as to quickly jump to the device list. The application needs to obtain the device status from the cloud server through polling, which is inefficient and requires users to wait for a long time.
[0109] In view of this, a network configuration method is proposed in an embodiment of the present disclosure. In the network configuration method provided by the present disclosure, by establishing a wireless connection between the electronic device and the device to be configured during the process of the device to be configured connecting to the router, the login registration information of the device to be configured can be obtained instantly, and the network configuration process and status of the device to be configured can be synchronized in real time.
[0110] Figure 7 is a schematic diagram of a scenario of a network distribution method according to an exemplary embodiment. Figure 7 As shown in the figure, the user uses the mobile phone APP to bind the network device to be configured. The mobile phone APP establishes a Bluetooth wireless connection with the device and sends the router account SSID and password to the device. The device performs WiFi scanning and connects to the router based on the received router information. After successfully connecting to the router, it connects to the cloud server. The cloud server returns the login success result and the binding registration success result to the device.
[0111] After the network configuration device and the mobile phone Bluetooth connection are successful, the device periodically sends the device connection result, cloud server connection result and binding registration result to the mobile phone APP. After the mobile phone APP receives the successful binding registration status uploaded by the device, it immediately obtains the device information from the cloud server and displays it on the user interface (UI), finally completing the device network configuration binding and disconnecting the Bluetooth connection with the device.
[0112] Figure 8 is a schematic diagram of a network distribution method according to an exemplary embodiment. Figure 8 As shown, the network configuration method in the embodiment of the present disclosure involves a mobile terminal, a device to be configured and a cloud server.
[0113] In one embodiment, the method executed on the mobile terminal side using a mobile phone as a mobile terminal is: receiving the Bluetooth wireless beacon BLE beacon of the device to be networked, parsing the device product model and Media Access Control Address (MAC) address identifier in the beacon frame. According to the product model, obtain the device capability information from the cloud server, including the network connection mode, whether it supports 2.4G / 5G, etc.
[0114] Establish a Bluetooth wireless connection with the device to be configured and perform key negotiation. Key negotiation is used to encrypt the configuration information sent to the device. Send the device the configuration binding information user ID, router account SSID and password, etc., which are used for the device to be configured.
[0115] Receive the device configuration process and status information transmitted by the device to be configured. After receiving the successful device configuration binding status from the local Bluetooth, immediately obtain the device binding registration information from the cloud server and display the device in the UI, finally complete the configuration binding, and disconnect the Bluetooth connection with the device.
[0116] In one embodiment, the method executed on the side of the device to be networked is: after receiving the network configuration information sent by the mobile phone APP, scan and connect to the router, connect to the cloud server, and log in, bind, and register the device.
[0117] After the Bluetooth connection between the network device and the mobile phone APP is successful, the WiFi scanning results, WiFi connection results, cloud server login results and binding registration results, etc. are uploaded to the mobile phone APP in real time.
[0118] In one embodiment, the method executed on the cloud server side is: when the developer is developing the product, he creates a product model on the cloud server and configures the product capabilities: such as the network connection mode, whether it supports 2.4G / 5G, etc. When receiving the mobile phone APP request for the capability information of the device to be configured, the corresponding result is returned; when receiving the mobile phone APP query request for the device login and binding status information, the device login, binding, registration information and device list are returned to the mobile phone APP.
[0119] Based on the same concept, the embodiment of the present disclosure also provides a network distribution device.
[0120] It is understandable that the distribution network device provided in the embodiment of the present disclosure includes hardware structures and / or software modules corresponding to the execution of each function in order to realize the above functions. In combination with the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.
[0121] Fig. 9 is a block diagram of a network distribution device according to an exemplary embodiment. Fig. 9 , the device comprises:
[0122] The processing unit 101 is used for determining, in response to the electronic device receiving a network configuration request from the device to be configured, a wireless hotspot network for configuring the device to be configured according to the network configuration request;
[0123] The sending unit 102 is used to establish a wireless communication connection with the device to be networked, and send the network configuration information of the wireless hotspot network to the device to be networked through the wireless communication connection. The network configuration information is used for the device to be networked to perform network configuration.
[0124] A receiving unit 103 is used to receive device network configuration status information sent by a device to be configured via a wireless communication connection;
[0125] The determining unit 104 is used to determine whether the network configuration of the device to be configured is successfully completed according to the device status information.
[0126] In one embodiment, the wireless communication connection is a wireless communication connection with a network connection protocol different from that used by the to-be-networked device for networking.
[0127] In one embodiment, the network configuration request includes the product model of the device to be configured; the processing unit 101 adopts the following method to determine the wireless hotspot network used to configure the device to be configured according to the network configuration request: obtain device capability information corresponding to the product model of the device to be configured from the cloud server, the device capability information including the networking mode and / or the supported network frequency band; determine the wireless hotspot network used to configure the device to be configured according to the networking mode and / or the supported network frequency band.
[0128] In one embodiment, the device network configuration status information includes at least one of the network connection status information of the device to be configured, the cloud server connection information, and the registration and binding information. The determination unit 104 determines that the device to be configured is successful and the network configuration is completed according to the device network configuration status information in the following manner: in response to receiving the network configuration status information including the registration and binding information, and the registration and binding information indicates that the device to be configured is successfully registered and bound in the cloud server, the registration and binding status of the device to be configured in the cloud server is obtained, and it is determined that the device to be configured has successfully completed the network configuration and successfully registered and bound in the cloud server.
[0129] In one embodiment, the processing unit 101 is further configured to: in response to completing the network configuration of the device to be configured, display the device to be configured that has successfully completed the network configuration through a user interface. Disconnect the network connection with the device to be configured, where the network connection is a network connection with a network connection protocol different from that used by the device to be configured.
[0130] Fig.10 is a block diagram of a network distribution device according to an exemplary embodiment. Fig.10 , the device comprises:
[0131] A sending unit 201 is used to send a network configuration request to an electronic device, where the network configuration request is used by the electronic device to determine a wireless hotspot network for configuring a network for the device to be configured;
[0132] The receiving unit 202 is used to establish a wireless communication connection with the electronic device, and receive the network configuration information sent by the electronic device through the wireless communication connection, where the network configuration information is used to configure the network with the wireless hotspot network;
[0133] The processing unit 203 is used to perform network configuration with the wireless hotspot network according to the network configuration information, and send device network configuration status information to the electronic device in real time through a wireless communication connection.
[0134] In one embodiment, the wireless communication connection is a wireless communication connection with a network connection protocol different from that used by the to-be-networked device for networking.
[0135] In one embodiment, the device network configuration status information includes at least one of the network status information of the device to be configured, the cloud server connection information, and the registration and binding information. The processing unit 203 configures the network with the wireless hotspot network according to the network configuration information, and sends the device network configuration status information to the electronic device in real time through the wireless communication connection: scan the wireless hotspot network to be connected according to the network configuration information, and send the network status information to the electronic device through the wireless communication connection; connect to the cloud server, and send the cloud server connection information to the electronic device through the wireless communication connection; register and bind the device to be configured on the cloud server, and send the registration and binding information to the electronic device through the wireless communication connection.
[0136] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0137] Fig.11 1 is a block diagram of an apparatus 300 for network distribution according to an exemplary embodiment. For example, the apparatus 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0138] Reference Fig.11 , the device 300 may include one or more of the following components: a processing component 302 , a memory 304 , a power component 306 , a multimedia component 308 , an audio component 310 , an input / output (I / O) interface 312 , a sensor component 314 , and a communication component 316 .
[0139] The processing component 302 generally controls the overall operation of the device 300, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 302 may include one or more processors 320 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 302 may include one or more modules to facilitate the interaction between the processing component 302 and other components. For example, the processing component 302 may include a multimedia module to facilitate the interaction between the multimedia component 308 and the processing component 302.
[0140] The memory 304 is configured to store various types of data to support operations on the device 300. Examples of such data include instructions for any application or method operating on the device 300, contact data, phone book data, messages, pictures, videos, etc. The memory 304 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0141] The power component 306 provides power to the various components of the device 300. The power component 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 300.
[0142] The multimedia component 308 includes a screen that provides an output interface between the device 300 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 308 includes a front camera and / or a rear camera. When the device 300 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0143] The audio component 310 is configured to output and / or input audio signals. For example, the audio component 310 includes a microphone (MIC), and when the device 300 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 304 or sent via the communication component 316. In some embodiments, the audio component 310 also includes a speaker for outputting audio signals.
[0144] I / O interface 312 provides an interface between processing component 302 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0145] The sensor assembly 314 includes one or more sensors for providing various aspects of the status assessment of the device 300. For example, the sensor assembly 314 can detect the open / closed state of the device 300, the relative positioning of components, such as the display and keypad of the device 300, the sensor assembly 314 can also detect the position change of the device 300 or a component of the device 300, the presence or absence of user contact with the device 300, the orientation or acceleration / deceleration of the device 300, and the temperature change of the device 300. The sensor assembly 314 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 314 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 314 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0146] The communication component 316 is configured to facilitate wired or wireless communication between the device 300 and other devices. The device 300 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 316 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0147] In an exemplary embodiment, the apparatus 300 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0148] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 304 including instructions, and the instructions can be executed by the processor 320 of the device 300 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0149] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.
[0150] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.
[0151] It can be further understood that, unless otherwise specified, “connection” includes a direct connection without other components between the two, and also includes an indirect connection with other components between the two.
[0152] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.
[0153] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modifications, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure.
[0154] It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.
Claims
1. A network distribution method, characterized in that: include: In response to the electronic device receiving a network configuration request from the device to be configured, determining a wireless hotspot network for configuring the device to be configured according to the network configuration request; Establishing a wireless communication connection with the device to be networked, and sending network configuration information of the wireless hotspot network to the device to be networked through the wireless communication connection, wherein the network configuration information is used for the device to be networked to perform network configuration; Receiving, via the wireless communication connection, device network configuration status information sent by the device to be network configured; According to the device network configuration status information, it is determined that the network configuration of the device to be configured is successfully completed.
2. The network distribution method according to claim 1, characterized in that: The wireless communication connection is a wireless communication connection with a network connection protocol different from that used by the device to be networked.
3. The network distribution method according to claim 1, characterized in that: The network configuration request includes the product model of the device to be configured; The step of determining a wireless hotspot network for configuring a network for the device to be configured according to the network configuration request includes: Acquire device capability information corresponding to the product model of the device to be networked from a cloud server, wherein the device capability information includes a network connection mode and / or a supported network frequency band; The wireless hotspot network used to configure the network for the device to be configured is determined according to the networking mode and / or the supported network frequency band.
4. The method according to claim 1 or 2, characterized in that: The device network configuration status information includes at least one of the network connection status information of the device to be configured, the cloud server connection information, and the registration binding information; The determining, based on the device network configuration status information, that the network configuration of the device to be configured is successful and the network configuration is completed includes: In response to receiving network configuration status information including registration and binding information, and the registration and binding information indicates that the device to be configured has been successfully registered and bound in the cloud server, the registration and binding status of the device to be configured in the cloud server is obtained, and it is determined that the device to be configured has successfully completed network configuration and has been successfully registered and bound in the cloud server.
5. The method according to claim 3, characterized in that: The method further comprises: In response to completing the network configuration of the device to be configured, displaying the successfully configured device to be configured through a user interface; Disconnect the network connection with the device to be networked, where the network connection is a network connection with a different network connection protocol from that used by the device to be networked.
6. A network distribution method, characterized in that: include Sending a network configuration request to the electronic device, wherein the network configuration request is used by the electronic device to determine a wireless hotspot network for configuring a network for the device to be configured; Establishing a wireless communication connection with the electronic device, and receiving network configuration information sent by the electronic device through the wireless communication connection, wherein the network configuration information is used to configure the network with the wireless hotspot network; The network is configured with a wireless hotspot network according to the network configuration information, and the device network configuration status information is sent to the electronic device in real time through the wireless communication connection.
7. The network distribution method according to claim 6, characterized in that: The wireless communication connection is a wireless communication connection with a network connection protocol different from that used by the device to be networked.
8. The network distribution method according to claim 6, characterized in that: The device network configuration status information includes at least one of the network connection status information of the device to be configured, the cloud server connection information, and the registration binding information. The network configuration is performed with the wireless hotspot network according to the network configuration information, and the device network configuration status information is sent to the electronic device in real time through the wireless communication connection, including: Scanning a wireless hotspot network to be connected according to the network configuration information, and sending the network connection status information to the electronic device through the wireless communication connection; connecting to a cloud server, and sending the cloud server connection information to the electronic device via the wireless communication connection; The device to be networked is registered and bound on the cloud server, and the registration and binding information is sent to the electronic device via the wireless communication connection.
9. A network distribution device, characterized in that: include: A processing unit, configured to determine, in response to the electronic device receiving a network configuration request from the device to be configured, a wireless hotspot network for configuring the device to be configured according to the network configuration request; A sending unit, used to establish a wireless communication connection with the device to be networked, and send the network configuration information of the wireless hotspot network to the device to be networked through the wireless communication connection, wherein the network configuration information is used for the device to be networked to perform network configuration; A receiving unit, configured to receive the device network configuration status information sent by the device to be network configured through the wireless communication connection; The determining unit is used to determine whether the network configuration of the device to be configured has been successfully completed according to the device status information.
10. The network distribution device according to claim 9, characterized in that: The wireless communication connection is a wireless communication connection with a network connection protocol different from that used by the device to be networked.
11. The network distribution device according to claim 9, characterized in that: The network configuration request includes the product model of the device to be configured; The processing unit determines the wireless hotspot network used for configuring the network for the device to be configured according to the network configuration request in the following manner: Acquire device capability information corresponding to the product model of the device to be networked from a cloud server, wherein the device capability information includes a network connection mode and / or a supported network frequency band; The wireless hotspot network used to configure the network for the device to be configured is determined according to the networking mode and / or the supported network frequency band.
12. The device according to claim 9 or 10, characterized in that The device network configuration status information includes at least one of the network connection status information of the device to be configured, the cloud server connection information, and the registration binding information; The determining unit determines that the network configuration of the device to be configured is successful and the network configuration is completed according to the device network configuration status information in the following manner: In response to receiving network configuration status information including registration and binding information, and the registration and binding information indicates that the device to be configured has been successfully registered and bound in the cloud server, the registration and binding status of the device to be configured in the cloud server is obtained, and it is determined that the device to be configured has successfully completed network configuration and has been successfully registered and bound in the cloud server.
13. The device according to claim 12, characterized in that The processing unit is also used for: In response to completing the network configuration of the device to be configured, displaying the successfully configured device to be configured through a user interface; Disconnect the network connection with the device to be networked, where the network connection is a network connection with a different network connection protocol from that used by the device to be networked.
14. A network distribution device, characterized in that: include A sending unit, used to send a network configuration request to an electronic device, wherein the network configuration request is used by the electronic device to determine a wireless hotspot network for configuring a network for the device to be configured; A receiving unit, used to establish a wireless communication connection with the electronic device, and receive network configuration information sent by the electronic device through the wireless communication connection, wherein the network configuration information is used to perform network configuration with the wireless hotspot network; The processing unit is used to perform network configuration with a wireless hotspot network according to the network configuration information, and to send device network configuration status information to the electronic device in real time through the wireless communication connection.
15. The network distribution device according to claim 14, characterized in that: The wireless communication connection is a wireless communication connection with a network connection protocol different from that used by the device to be networked.
16. The network distribution device according to claim 14, characterized in that: The device network configuration status information includes at least one of the network connection status information of the device to be configured, the cloud server connection information, and the registration binding information. The processing unit performs network configuration with the wireless hotspot network according to the network configuration information, and sends the device network configuration status information to the electronic device in real time through the wireless communication connection in the following manner: Scanning a wireless hotspot network to be connected according to the network configuration information, and sending the network connection status information to the electronic device through the wireless communication connection; connecting to a cloud server, and sending the cloud server connection information to the electronic device via the wireless communication connection; The device to be networked is registered and bound on the cloud server, and the registration and binding information is sent to the electronic device via the wireless communication connection.
17. A network distribution device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to: execute the method described in any one of claims 1 to 5 or claims 6 to 8.
18. A storage medium, characterized in that: The storage medium stores instructions, and when the instructions in the storage medium are executed by a processor of the terminal, the terminal is enabled to execute the method of any one of claims 1 to 5 or claims 6 to 8.