Bluetooth auxiliary network configuration method and device and storage medium
By using Bluetooth-assisted network configuration, the user terminal can connect to multiple IoT devices via Bluetooth, send network search commands, and filter target networks. This solves the problem of cumbersome network configuration operations for IoT devices in existing technologies, and enables simultaneous device connection and simplifies network configuration.
Patent Information
- Application Number
- CN202211734370.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-30
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2042-12-30
AI Technical Summary
In existing technologies, the network configuration process for multiple IoT devices requires connecting to user terminals one by one, which is cumbersome and repetitive, and lacks a simplified method.
Through Bluetooth connection, the user terminal can connect with multiple IoT devices, send network search commands, receive a list of wireless networks, filter target networks, and broadcast network information to instruct devices to connect, simplifying the network configuration process for multiple devices.
It enables multiple IoT devices to connect to and configure wireless networks simultaneously, avoiding individual operations and simplifying the configuration process.
Smart Images

Figure CN116233967B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication, in particular to a Bluetooth auxiliary network configuration method and device and storage medium. BACKGROUND
[0002] With the development of Internet of Things technology, Internet of Things devices can exchange information and communicate through information transmission media. The premise of communication between Internet of Things devices is to configure the network of the Internet of Things devices.
[0003] At present, for multiple Internet of Things devices that need to be configured, a user terminal needs to be connected to each of the multiple Internet of Things devices that need to be configured and configured, which is very cumbersome. SUMMARY
[0004] Therefore, it is necessary to provide a Bluetooth auxiliary network configuration method and device that can simplify the operation process.
[0005] In a first aspect, the present application provides a Bluetooth auxiliary network configuration method, which is executed by a user terminal. The method comprises:
[0006] After entering a Bluetooth network configuration mode, Bluetooth connection is established with multiple Internet of Things devices;
[0007] A network search instruction is sent to each Internet of Things device through the Bluetooth connection to instruct each Internet of Things device to perform wireless network search and obtain a corresponding wireless network list;
[0008] The wireless network list sent by each Internet of Things device is received through the Bluetooth connection;
[0009] The wireless network list fed back by the multiple Internet of Things devices is filtered to obtain a target wireless network;
[0010] The network information of the selected target wireless network is broadcast to the multiple Internet of Things devices through the Bluetooth connection to instruct each Internet of Things device to perform wireless network connection according to the broadcast network information.
[0011] In one embodiment, the filtering of the wireless network list fed back by the multiple Internet of Things devices to obtain the target wireless network comprises:
[0012] The wireless network list fed back by the multiple Internet of Things devices is filtered to retain overlapping wireless networks to obtain a target network list;
[0013] One wireless network is selected from the target network list as the target wireless network.
[0014] In one embodiment, the method further comprises:
[0015] receiving the connection status feedback from each of the IoT devices after the wireless network connection;
[0016] if it is determined that there is an IoT device with a normal network connection based on the connection status, sending network configuration data including a connection key required for the current network configuration to the IoT device with the normal network connection; the connection key is obtained from the IoT server after entering the network configuration mode and is used for device activation of the IoT device in the IoT server.
[0017] In one of the embodiments, the network configuration data further includes confirmation data, and the method further includes:
[0018] In the case where the IoT device does not receive the connection key but receives the confirmation data, receiving first feedback information representing network configuration abnormality feedback from the IoT device, the first feedback information being generated according to the confirmation data;
[0019] In the case where the IoT device only receives the connection key and successfully activates based on the received connection key, receiving second feedback information representing network configuration normality feedback from the IoT device;
[0020] In the case where the IoT device receives the connection key and the confirmation data and successfully activates based on the received connection key, receiving third feedback information representing network configuration normality feedback from the IoT device, the third feedback information being generated according to the confirmation data.
[0021] In one of the embodiments, the method further includes:
[0022] receiving a target query request, the target query request including a device identification code and a connection key;
[0023] querying and displaying the network configuration result of the IoT device specified by the device identification code according to the device identification code and the connection key.
[0024] In a second aspect, the application further provides a Bluetooth-assisted network configuration device. The device includes:
[0025] a first connection module for Bluetooth connection with a plurality of IoT devices after entering a Bluetooth network configuration mode;
[0026] a sending module for sending a network search instruction to each of the IoT devices through the Bluetooth connection to instruct each of the IoT devices to perform wireless network search and obtain a corresponding wireless network list;
[0027] a first receiving module for receiving the wireless network list sent by each of the IoT devices through the Bluetooth connection;
[0028] The screening module is configured to screen based on the wireless network lists fed back by the plurality of IoT devices to obtain a target wireless network.
[0029] The broadcasting module is configured to broadcast network information of the selected target wireless network to the plurality of IoT devices through the Bluetooth connection, so as to instruct each IoT device to perform wireless network connection according to the broadcasted network information.
[0030] The broadcasting module is configured to broadcast network information of the selected target wireless network to the plurality of IoT devices through the Bluetooth connection, so as to instruct each IoT device to perform wireless network connection according to the broadcasted network information.
[0031] In a third aspect, the present application further provides a user terminal. The user terminal comprises a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0032] After entering the Bluetooth network configuration mode, performing Bluetooth connection with a plurality of IoT devices;
[0033] 0Through the Bluetooth connection, respectively sending a network search instruction to each IoT device, so as to instruct each IoT device to perform wireless network search respectively, and obtain a corresponding wireless network list;
[0034] Through the Bluetooth connection, respectively sending a network search instruction to each IoT device, so as to instruct each IoT device to perform wireless network search respectively, and obtain a corresponding wireless network list;
[0035] Through the Bluetooth connection, respectively sending a network search instruction to each IoT device, so as to instruct each IoT device to perform wireless network search respectively, and obtain a corresponding wireless network list;
[0036] Through the Bluetooth connection, respectively sending a network search instruction to each IoT device, so as to instruct each IoT device to perform wireless network search respectively, and obtain a corresponding wireless network list;
[0037] Through the Bluetooth connection, respectively sending a network search instruction to each IoT device, so as to instruct each IoT device to perform wireless network search respectively, and obtain a corresponding wireless network list;
[0038] In a fourth aspect, the present application further provides a computer readable storage medium. The computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the following steps:
[0039] After entering the Bluetooth network configuration mode, performing Bluetooth connection with a plurality of IoT devices;
[0040] 0Through the Bluetooth connection, respectively sending a network search instruction to each IoT device, so as to instruct each IoT device to perform wireless network search respectively, and obtain a corresponding wireless network list;
[0041] Through the Bluetooth connection, respectively sending a network search instruction to each IoT device, so as to instruct each IoT device to perform wireless network search respectively, and obtain a corresponding wireless network list;
[0042] Through the Bluetooth connection, respectively sending a network search instruction to each IoT device, so as to instruct each IoT device to perform wireless network search respectively, and obtain a corresponding wireless network list;
[0043] filtering based on the wireless network lists fed back by the plurality of Internet of Things devices to obtain a target wireless network;
[0044] broadcasting network information of the selected target wireless network to the plurality of Internet of Things devices through the Bluetooth connection to instruct each Internet of Things device to perform wireless network connection according to the broadcasted network information.
[0045] In a fifth aspect, the present application further provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the following steps:
[0046] performing Bluetooth connection with the plurality of Internet of Things devices after entering the Bluetooth network configuration mode;
[0047] sending a network search instruction to each Internet of Things device through the Bluetooth connection to instruct each Internet of Things device to perform wireless network search to obtain a corresponding wireless network list;
[0048] receiving the wireless network list sent by each Internet of Things device through the Bluetooth connection;
[0049] filtering based on the wireless network lists fed back by the plurality of Internet of Things devices to obtain a target wireless network;
[0050] broadcasting network information of the selected target wireless network to the plurality of Internet of Things devices through the Bluetooth connection to instruct each Internet of Things device to perform wireless network connection according to the broadcasted network information.
[0051] The Bluetooth-assisted network configuration method, device, user terminal, storage medium and computer program product described above can perform Bluetooth connection with the plurality of Internet of Things devices after entering the Bluetooth network configuration mode, send a network search instruction to each Internet of Things device through the Bluetooth connection to instruct each Internet of Things device to perform wireless network search to obtain a corresponding wireless network list, receive the wireless network list sent by each Internet of Things device through the Bluetooth connection, filter based on the wireless network lists fed back by the plurality of Internet of Things devices to obtain a target wireless network, and finally broadcast network information of the selected target wireless network to the plurality of Internet of Things devices through the Bluetooth connection to instruct each Internet of Things device to perform wireless network connection according to the broadcasted network information. In this way, the plurality of Internet of Things devices can simultaneously perform wireless network connection and complete the network configuration process without the need to perform wireless network connection with the plurality of Internet of Things devices one by one, thereby avoiding repeated operations and simplifying the network configuration process of the plurality of Internet of Things devices.
[0052] In a sixth aspect, the present application provides a Bluetooth-assisted network configuration method, which is executed by an Internet of Things device. The method comprises:
[0053] Enter a Bluetooth network configuration mode, and make a Bluetooth connection with a user terminal;
[0054] Receive a network search instruction sent by the user terminal through the Bluetooth connection, and search for a wireless network in a connectable state according to the network search instruction to obtain a wireless network list;
[0055] Feed back the searched wireless network list to the user terminal through the Bluetooth connection, so as to instruct the user terminal to screen a target wireless network according to the received wireless network lists fed back by multiple Internet of Things devices;
[0056] Receive network information of the target wireless network broadcasted by the user terminal through the Bluetooth connection, and make a wireless network connection according to the network information.
[0057] In one of the embodiments, the method further comprises:
[0058] Feed back a connection state to the user terminal after successfully connecting the target wireless network;
[0059] Receive network configuration data sent by the user terminal, the network configuration data including a connection key required for this-time network configuration;
[0060] Send the connection key to an Internet of Things server, so as to instruct the Internet of Things server to activate the Internet of Things device according to the connection key and record device information of the Internet of Things device;
[0061] Receive an activation result fed back by the Internet of Things server, and feed back the activation result to the user terminal.
[0062] In a seventh aspect, the application further provides a Bluetooth-assisted network configuration device. The device comprises:
[0063] A second connection module, configured to enter a Bluetooth network configuration mode, and make a Bluetooth connection with a user terminal;
[0064] A second receiving module, configured to receive a network search instruction sent by the user terminal through the Bluetooth connection, and search for a wireless network in a connectable state according to the network search instruction to obtain a wireless network list;
[0065] A feedback module, configured to feed back the searched wireless network list to the user terminal through the Bluetooth connection, so as to instruct the user terminal to screen a target wireless network according to the received wireless network lists fed back by multiple Internet of Things devices;
[0066] A third connection module, configured to receive network information of the target wireless network broadcasted by the user terminal through the Bluetooth connection, and make a wireless network connection according to the network information.
[0067] In an eighth aspect, the present application provides an Internet of Things device. The Internet of Things device comprises a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:
[0068] entering a Bluetooth network configuration mode and connecting with a user terminal via Bluetooth;
[0069] receiving a network search instruction sent by the user terminal via the Bluetooth connection, and searching for wireless networks in a connectable state according to the network search instruction to obtain a wireless network list;
[0070] feeding back the searched wireless network list to the user terminal via the Bluetooth connection, so as to instruct the user terminal to screen a target wireless network according to the wireless network lists fed back by multiple Internet of Things devices;
[0071] receiving network information of the target wireless network broadcasted by the user terminal via the Bluetooth connection, and connecting with the target wireless network according to the network information.
[0072] In a ninth aspect, the present application provides a computer readable storage medium. The computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the following steps:
[0073] entering a Bluetooth network configuration mode and connecting with a user terminal via Bluetooth;
[0074] receiving a network search instruction sent by the user terminal via the Bluetooth connection, and searching for wireless networks in a connectable state according to the network search instruction to obtain a wireless network list;
[0075] feeding back the searched wireless network list to the user terminal via the Bluetooth connection, so as to instruct the user terminal to screen a target wireless network according to the wireless network lists fed back by multiple Internet of Things devices;
[0076] receiving network information of the target wireless network broadcasted by the user terminal via the Bluetooth connection, and connecting with the target wireless network according to the network information.
[0077] In a tenth aspect, the present application provides a computer program product. The computer program product comprises a computer program, and the computer program is executed by a processor to implement the following steps:
[0078] entering a Bluetooth network configuration mode and connecting with a user terminal via Bluetooth;
[0079] receive, through the Bluetooth connection, a network search instruction sent by the user terminal, search for a wireless network in a connectable state according to the network search instruction, and obtain a wireless network list;
[0080] feed back the searched wireless network list to the user terminal through the Bluetooth connection, so as to instruct the user terminal to screen a target wireless network according to the wireless network lists fed back by the plurality of Internet of Things devices;
[0081] receive, through the Bluetooth connection, network information of the target wireless network broadcasted by the user terminal, and perform wireless network connection according to the network information.
[0082] The Bluetooth-assisted network configuration method, device, Internet of Things device, storage medium and computer program product described above enter a Bluetooth network configuration mode, and are connected with a user terminal through Bluetooth, then receive a network search instruction sent by the user terminal through the Bluetooth connection, search for a wireless network in a connectable state according to the network search instruction, obtain a wireless network list, feed back the searched wireless network list to the user terminal through the Bluetooth connection, so as to instruct the user terminal to screen a target wireless network according to the wireless network lists fed back by the plurality of Internet of Things devices, and finally receive, through the Bluetooth connection, network information of the target wireless network broadcasted by the user terminal, and perform wireless network connection according to the network information. In this way, the plurality of Internet of Things devices can simultaneously perform wireless network connection and complete the network configuration process, without the need to perform wireless network connection and adaptation with the user terminal one by one, thereby avoiding repeated operations and simplifying the network configuration process of the plurality of Internet of Things devices. BRIEF DESCRIPTION OF DRAWINGS
[0083] Figure 1 An application environment diagram of the Bluetooth-assisted network configuration method in an embodiment;
[0084] Figure 2 A flowchart of the Bluetooth-assisted network configuration method applied to a user terminal in an embodiment;
[0085] Figure 3 A flowchart of the Bluetooth-assisted network configuration method applied to an Internet of Things device in an embodiment;
[0086] Figure 4 A flowchart of the Bluetooth-assisted network configuration method in another embodiment;
[0087] Figure 5 A schematic diagram of an Internet of Things device connecting a router in an embodiment;
[0088] Figure 6 A structural block diagram of the Bluetooth-assisted network configuration device in an embodiment;
[0089] Figure 7 Structure block diagram of the Bluetooth auxiliary network device in another embodiment;
[0090] Figure 8 Internal structure diagram of the computer device in one embodiment. DETAILED DESCRIPTION
[0091] For the purpose, technical solutions and advantages of the present application to be more clear, the present application is further described in detail below in combination with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.
[0092] It should be noted that the terms "comprising", "including", "having" and any variations thereof used herein are intended to cover non-exclusive inclusion. For example, a process, method, product or device that includes a list of steps or units is not necessarily limited to the steps that have been clearly listed, but can also include other steps or units that have not been clearly listed or are inherent to such processes, methods, products or devices. The term "and / or" used herein includes any and all combinations of one or more related listed items.
[0093] In addition, the terms "first", "second" and the like used herein are used to distinguish similar objects in naming, but the objects themselves are not limited by these terms. It should be understood that these terms can be interchanged as appropriate without departing from the scope of the present application. For example, "first connection module" can be described as "second connection module", and similarly, "second connection module" can be described as "first connection module".
[0094] The Bluetooth auxiliary network method provided by the embodiments of the present application can be applied to, for example, Figure 1The application environment shown. Among them, the user terminal 102 communicates with the Internet of Things server 104 through the network. The data storage system can store the data required by the Internet of Things server 104 to process. The data storage system can be integrated on the Internet of Things server 104, or placed on the cloud or other network servers. The user terminal 102 is connected with multiple Internet of Things devices 106 after entering the Bluetooth network configuration mode, and sends network search instructions to each Internet of Things device through Bluetooth connection, and each Internet of Things device performs wireless network search respectively, obtains the corresponding wireless network list, and sends the searched wireless network list to the user terminal 102 through Bluetooth connection. After the user terminal 102 receives the wireless network list sent by each Internet of Things device respectively, it filters based on the wireless network list fed back by multiple Internet of Things devices to obtain the target wireless network, and finally broadcasts the network information of the selected target wireless network to multiple Internet of Things devices 106 through Bluetooth connection. Each Internet of Things device respectively connects with the router 108 according to the received network information. Among them, the user terminal 102 can be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, Internet of Things devices and portable wearable devices, and the Internet of Things devices can be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, etc. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, etc. The Internet of Things server 104 can be realized by an independent server or a server cluster composed of multiple servers.
[0095] In one embodiment, as shown in Figure 2 , a Bluetooth-assisted network configuration method is provided, which is applied to Figure 1 The terminal is taken as an example for illustration, which includes the following steps:
[0096] Step 202, after entering the Bluetooth network configuration mode, Bluetooth connection is made with multiple Internet of Things devices.
[0097] Specifically, the user terminal is configured with an application program corresponding to the Internet of Things device, and the user can make the user terminal enter the network configuration mode through the application program. After the user terminal enters the network configuration mode, the Bluetooth of the user terminal is turned on. At this time, the Bluetooth network configuration mode of multiple Internet of Things devices needing network configuration is opened, and the Bluetooth network configuration mode of multiple Internet of Things devices is opened. Bluetooth connection is made with the user terminal respectively.
[0098] Step 204, send network search instructions to each Internet of Things device through Bluetooth connection to instruct each Internet of Things device to perform wireless network search respectively to obtain the corresponding wireless network list.
[0099] Specifically, after the user terminal is connected with the plurality of IoT devices through Bluetooth, the user terminal sends a network search instruction to each IoT device through the Bluetooth connection. After each IoT device receives the network search instruction sent by the user terminal, each IoT device starts searching for a wireless network in the vicinity. Each IoT device can search for a list of wireless networks.
[0100] In step 206, the user terminal receives the list of wireless networks sent by each IoT device through the Bluetooth connection.
[0101] Specifically, after each IoT device searches for a corresponding list of wireless networks, the IoT device sends the list of wireless networks to the user terminal through the Bluetooth connection. The user terminal receives the list of wireless networks sent by each IoT device through the Bluetooth connection.
[0102] In step 208, the user terminal selects a target wireless network from the list of wireless networks based on the lists of wireless networks fed back by the plurality of IoT devices.
[0103] The target wireless network is a wireless network selected by the user terminal.
[0104] Specifically, after the user terminal receives the list of wireless networks sent by each IoT device through the Bluetooth connection, the user terminal selects a target wireless network from the lists of wireless networks sent by the plurality of IoT devices.
[0105] In one embodiment, the method of selecting a target wireless network based on the lists of wireless networks fed back by the plurality of IoT devices includes: selecting a target network list from the lists of wireless networks fed back by the plurality of IoT devices; and selecting a target wireless network from the target network list.
[0106] The target network list is a list of wireless networks selected by the user terminal from the lists of wireless networks sent by the plurality of IoT devices.
[0107] Specifically, after the user terminal receives the list of wireless networks sent by each IoT device through the Bluetooth connection, the user terminal selects a target network list from the lists of wireless networks sent by the plurality of IoT devices. The target network list is a list of wireless networks selected by the user terminal from the lists of wireless networks sent by the plurality of IoT devices. The user terminal displays the target network list to the user, and the user selects a target wireless network from the target network list through the user terminal.
[0108] In one embodiment, when the target network list indicates that there are a plurality of connectable wireless networks, the user terminal can randomly select one of the wireless networks as the target wireless network, or the user terminal can select a wireless network with the best signal as the target wireless network. The present application does not limit the selection of the target wireless network.
[0109] In this embodiment, the target network list is obtained by screening based on the wireless network lists fed back by the plurality of Internet of Things devices, and the wireless network that overlaps is reserved; and one wireless network is selected from the target network list as the target wireless network. In this way, the target wireless network to which the plurality of Internet of Things devices can connect can be determined, and the mobile terminal can send the network information of the target wireless network to the plurality of Internet of Things devices at the same time, so that the plurality of Internet of Things devices can simultaneously perform wireless network connection and complete the network configuration process.
[0110] In step 210, the network information of the selected target wireless network is broadcast to the plurality of Internet of Things devices through the Bluetooth connection, so as to instruct each Internet of Things device to perform wireless network connection according to the broadcasted network information.
[0111] The network information of the target wireless network includes the service set identifier (SSID) and the password of the target wireless network.
[0112] Specifically, after the user terminal determines the target wireless network, the service set identifier and the password of the determined target wireless network are broadcast to the plurality of Internet of Things devices through the Bluetooth connection. After each Internet of Things device receives the service set identifier and the password of the target wireless network, it connects to the target wireless network through the router according to the received service set identifier and password of the target wireless network.
[0113] In the above Bluetooth-assisted network configuration method, after entering the Bluetooth network configuration mode, the Bluetooth connection with the plurality of Internet of Things devices is performed, and the network search instruction is sent to each Internet of Things device through the Bluetooth connection to instruct each Internet of Things device to perform wireless network search, so as to obtain the corresponding wireless network list. Then, the Bluetooth connection is used to receive the wireless network list sent by each Internet of Things device, and the target wireless network is obtained based on the wireless network lists fed back by the plurality of Internet of Things devices. Finally, the network information of the selected target wireless network is broadcast to the plurality of Internet of Things devices through the Bluetooth connection, so as to instruct each Internet of Things device to perform wireless network connection according to the broadcasted network information. In this way, the plurality of Internet of Things devices can simultaneously perform wireless network connection and complete the network configuration process, without the need to perform wireless network connection with the plurality of Internet of Things devices one by one, thereby avoiding repeated operations and simplifying the network configuration process of the plurality of Internet of Things devices.
[0114] In one of the embodiments, the Bluetooth-assisted network configuration method further includes receiving the connection status feedback from each of the IoT devices after the wireless network connection, and if it is determined that there is an IoT device with normal network connection based on the connection status, sending network configuration data including the connection key required for the current network configuration to the IoT device with normal network connection; the connection key is obtained from the IoT server after entering the network configuration mode and is used for device activation of the IoT device in the IoT server.
[0115] Specifically, after each of the IoT devices connects to the target wireless network according to the received service set identifier and password of the target wireless network, the connection status of each of the IoT devices with the target wireless network is fed back to the user terminal. After the user terminal receives the connection status of each of the IoT devices with the target wireless network, it determines the IoT device with normal network connection based on the network connection status feedback from each of the IoT devices, and sends network configuration data including the connection key required for the current network configuration to the IoT device with normal network connection. Furthermore, each of the IoT devices can activate the device in the IoT server according to the received connection key.
[0116] It should be noted that the connection key sent by the user terminal to the IoT device is the connection key used for the current network configuration allocated by the IoT server to the user terminal when the user terminal enters the network configuration mode.
[0117] In this embodiment, by receiving the connection status feedback from each of the IoT devices after the wireless network connection, if it is determined that there is an IoT device with normal network connection based on the connection status, network configuration data including the connection key required for the current network configuration is sent to the IoT device with normal network connection. The connection key is obtained from the IoT server after entering the network configuration mode and is used for device activation of the IoT device in the IoT server. In this way, after connecting to the wireless network, the multiple IoT devices can be activated in the IoT server through the connection key sent by the user terminal, thereby completing the network configuration process.
[0118] In one of the embodiments, the network configuration data further includes confirmation data, and the Bluetooth-assisted network configuration method further includes: in the case where the IoT device does not receive the connection key but receives the confirmation data, receiving the first feedback information representing abnormal network configuration feedback from the IoT device, the first feedback information being generated according to the confirmation data; in the case where the IoT device only receives the connection key and successfully activates based on the received connection key, receiving the second feedback information representing normal network configuration feedback from the IoT device; in the case where the IoT device receives the connection key and the confirmation data and successfully activates based on the received connection key, receiving the third feedback information representing normal network configuration feedback from the IoT device; the third feedback information is generated according to the confirmation data.
[0119] The confirmation data is used to confirm whether the IoT device is successfully configured, and the IoT device can feed back the configuration status of the device to the user terminal according to the confirmation data. In an embodiment, the confirmation data can be a data packet including a plurality of data, and each data can represent a configuration status of the device. For example, the data packet of the confirmation data includes 0, 1 and 2, wherein 0 represents an abnormal configuration, 1 represents a first normal configuration, and 2 represents a second normal configuration.
[0120] Specifically, the configuration data sent by the user terminal to the IoT device with a normal network connection includes the connection key required for the current configuration, and can also include the confirmation data. For each IoT device with a normal network connection, if the connection key is not received but the confirmation data is received, it indicates that the IoT device cannot be activated in the IoT server by using the connection key, and there is an abnormal configuration. At this time, the IoT device can feed back first feedback information (for example, 0 in the above confirmation data representing an abnormal configuration) to the user terminal. If only the connection data is received, the IoT device can be activated in the IoT server by using the received connection key, and at this time, the IoT device is normally configured, and the second feedback information (for example, 1 in the above confirmation data representing a first normal configuration) is fed back to the user terminal. If the connection key and the confirmation data are received, the IoT device can be activated in the IoT server by using the received connection key, and at this time, the IoT device is normally configured, and the third feedback information (for example, 2 in the above confirmation data representing a second normal configuration) is fed back to the user terminal. Further, the user terminal receives the feedback information sent by each IoT device.
[0121] It can be understood that a feedback model can be pre-configured in the Internet of Things device, and the feedback information sent by the Internet of Things device to the user terminal can be executed by the feedback model. The feedback information sent by the feedback model can be configured according to the setting of the confirmation data. When the Internet of Things device receives the network configuration data sent by the user terminal, the feedback model can send corresponding feedback information to the user terminal according to the connection key in the network configuration data and the reception of the confirmation data, and the network configuration situation. For example, the feedback model can send first feedback information to the user terminal in the case that the Internet of Things device does not receive the connection key, but receives the confirmation data, and the first feedback information is 0 which is set in advance according to the confirmation data to represent the network configuration exception. The feedback model can also send second feedback information to the user terminal in the case that the Internet of Things device only receives the connection data key and is successfully activated based on the received connection key, and the second feedback information is 1 which is set in advance according to the confirmation data to represent the first network configuration normal situation. The feedback model can also send third feedback information to the user terminal in the case that the Internet of Things device receives the connection key and the confirmation data, and is successfully activated based on the received connection key, and the third feedback information is 2 which is set in advance according to the confirmation data to represent the second network configuration normal situation.
[0122] In one embodiment, the user terminal marks the network configuration data with data when sending the network configuration data to each Internet of Things device, so as to be distinguished from other Internet of Things devices, for example, adding a device identification code to the network configuration data. Further, each Internet of Things device can also add the corresponding device identification code in the feedback information when feeding back the network configuration situation to the user terminal. The user terminal can determine the corresponding Internet of Things device according to the corresponding device identification code.
[0123] In another embodiment, each Internet of Things device can also add a device identification code to the connection key before activating the connection key in the Internet of Things server by using the received connection key. Further, each Internet of Things device can also add the corresponding device identification code in the feedback information when feeding back the network configuration situation to the user terminal. In this embodiment, the device identification code can be the device number corresponding to each Internet of Things device, and further the user terminal can determine the corresponding Internet of Things device according to the device number corresponding to each Internet of Things device.
[0124] In this embodiment, the commissioning data further includes confirmation data. In a case where the IoT device does not receive the connection key but receives the confirmation data, the user terminal receives first feedback information representing commissioning abnormality fed back by the IoT device, the first feedback information being generated according to the confirmation data; in a case where the IoT device only receives the connection key and is successfully activated based on the received connection key, the user terminal receives second feedback information representing normal commissioning fed back by the IoT device; in a case where the IoT device receives the connection key and the confirmation data and is successfully activated based on the received connection key, the user terminal receives third feedback information representing normal commissioning fed back by the IoT device, the third feedback information being generated according to the confirmation data. In this way, the user terminal can determine the commissioning status of each IoT device being commissioned through the information fed back by each IoT device being commissioned.
[0125] In one of the embodiments, the above-mentioned Bluetooth-assisted commissioning method further includes receiving a target query request, the target query request including a device identification code and a connection key; and querying and displaying the commissioning result of the IoT device specified by the device identification code according to the device identification code and the connection key.
[0126] The target query request is a request indicating that the user terminal queries the activation result of the target IoT device in the IoT server. The target IoT device can be any one of the plurality of IoT devices that need to be commissioned.
[0127] Specifically, when each IoT device feeds back its respective commissioning status to the user terminal, the user terminal can also receive a target query request corresponding to each IoT device. Each target query request includes a connection key and a device identification code corresponding to each IoT device, respectively. Then, the user terminal queries the activation result of the IoT device specified by the device identification code in the server through the connection key and the device identification code. If the IoT device specified by the device identification code is successfully activated in the IoT server, it indicates that the IoT device is successfully commissioned. The user terminal displays the commissioning result of each IoT device according to the queried activation result. In one of the embodiments, the user terminal can display a commissioning status bar of each IoT device that is connected through Bluetooth. The commissioning result of the corresponding IoT device can be displayed in the commissioning status bar of each IoT device.
[0128] In this embodiment, the target query request includes a device identification code and a connection key, and the commissioning result of the IoT device specified by the device identification code is queried and displayed according to the device identification code and the connection key. In this way, the commissioning result of each IoT device in the plurality of IoT devices being commissioned can be intuitively known through the displayed commissioning result.
[0129] In one of the embodiments, asFigure 3 As shown, the application also provides a Bluetooth-assisted network configuration method, which is applied to Figure 1 The application is described by taking the Internet of Things device in the Bluetooth-assisted network configuration method as an example, which includes the following steps.
[0130] Step 302, enter the Bluetooth network configuration mode and make Bluetooth connection with the user terminal.
[0131] Specifically, after the user terminal enters the Bluetooth network configuration mode and starts Bluetooth, the user also needs to make the multiple Internet of Things devices that need to be configured enter the Bluetooth network configuration mode. After the Bluetooth network configuration mode of the multiple Internet of Things devices is started, Bluetooth connection is made with the user terminal respectively.
[0132] It should be noted that the application does not limit the way of indicating whether the Internet of Things device enters the Bluetooth network configuration mode. In some embodiments, when the Internet of Things device enters the Bluetooth network configuration mode, the corresponding indicator light will be in a flashing state, and the user can determine whether the Internet of Things device enters the Bluetooth network configuration mode through the state of the indicator light. In other embodiments, the Internet of Things device can also indicate that it has entered the Bluetooth network configuration mode through voice prompts and the like.
[0133] Step 304, receive the network search instruction sent by the user terminal through the Bluetooth connection, and search for the wireless network in the connectable state according to the network search instruction to obtain a wireless network list.
[0134] Specifically, after the multiple Internet of Things devices that need to be configured make Bluetooth connection with the user terminal, the user terminal sends network search instructions to each Internet of Things device through the Bluetooth connection. After each Internet of Things device receives the network search instruction sent by the user terminal through the Bluetooth connection, it searches for the wireless network in the connectable state according to the received network search instruction to obtain a wireless network list.
[0135] Step 306, feed back the searched wireless network list to the user terminal through the Bluetooth connection, so that the terminal selects a target wireless network according to the wireless network lists fed back by the multiple Internet of Things devices.
[0136] Specifically, after each Internet of Things device searches for the corresponding wireless network list, it feeds back the searched wireless network list to the user terminal through the Bluetooth connection. The user terminal receives the wireless network list sent by each Internet of Things device through the Bluetooth connection, and then the user terminal selects a target wireless network by screening the wireless network lists sent by the multiple Internet of Things devices.
[0137] Step 308, receive the network information of the target wireless network broadcasted by the user terminal through the Bluetooth connection, and make wireless network connection according to the network information.
[0138] Specifically, after the user terminal determines the target wireless network, the service set identifier and the password of the determined target wireless network are broadcast to the plurality of Internet of Things devices through the Bluetooth connection. After each Internet of Things device receives the service set identifier and the password of the target wireless network, the corresponding router is connected according to the received service set identifier and the password of the target wireless network, respectively.
[0139] The Bluetooth-assisted network configuration method described above enters the Bluetooth network configuration mode and performs Bluetooth connection with the user terminal, then receives the network search instruction sent by the user terminal through the Bluetooth connection, searches for the wireless network in the connectable state according to the network search instruction, obtains the wireless network list, and feeds back the searched wireless network list to the user terminal through the Bluetooth connection, so as to instruct the user terminal to screen the target wireless network according to the wireless network list fed back by the plurality of Internet of Things devices. Finally, the network information of the target wireless network broadcast by the user terminal is received through the Bluetooth connection, and wireless network connection is performed according to the network information. In this way, the plurality of Internet of Things devices can simultaneously perform wireless network connection and complete the network configuration process, without the need to perform wireless network connection and adaptation with the user terminal one by one, thereby avoiding repeated operations and simplifying the network configuration process of the plurality of Internet of Things devices simultaneously performing network configuration.
[0140] In one of the embodiments, the Bluetooth-assisted network configuration method further includes: feeding back the connection state to the user terminal after successfully connecting the target wireless network; receiving the network configuration data sent by the user terminal, the network configuration data including the connection key required for the network configuration at this time; sending the connection key to the Internet of Things server, so as to instruct the Internet of Things server to activate the Internet of Things device according to the connection key and record the device information of the Internet of Things device; receiving the activation result fed back by the Internet of Things server, and feeding back the activation result to the user terminal.
[0141] The device information of the Internet of Things device is information that enables one Internet of Things device to be distinguished from other Internet of Things devices, and the specific Internet of Things device can be determined through the device information of the Internet of Things device. The device information of the Internet of Things device can be characteristic information possessed by the Internet of Things device itself, can be a device identification code added by a program configured in the Internet of Things device, or can be a device identification code added by the user terminal to the sent information and obtained by the Internet of Things device when the user terminal sends information to the Internet of Things device.
[0142] Specifically, after each Internet of Things device connects to the target wireless network according to the received service set identifier and password of the target wireless network, the connection state of each Internet of Things device to the target wireless network is fed back to the user terminal. After the user terminal receives the connection state of each Internet of Things device to the target wireless network, the user terminal sends the Internet of Things device that successfully connects to the target wireless network the network configuration data including the connection key required for the current network configuration. After the Internet of Things device that successfully connects to the target wireless network receives the network configuration data including the connection key required for the current network configuration sent by the user terminal, the Internet of Things device sends the connection key to the Internet of Things server, and the Internet of Things server activates each Internet of Things device according to the connection key and records the device information of each Internet of Things device. Then the Internet of Things server feeds back the activation result to each Internet of Things device, and each Internet of Things device feeds back the activation result to the user terminal.
[0143] In this embodiment, by feeding back the connection state to the user terminal after successfully connecting to the target wireless network, receiving the network configuration data including the connection key required for the current network configuration sent by the user terminal, and then sending the connection key to the Internet of Things server to instruct the Internet of Things server to activate the Internet of Things device according to the connection key and record the device information of the Internet of Things device, and finally receiving the activation result fed back by the Internet of Things server and feeding back the activation result to the user terminal. In this way, any one of the multiple Internet of Things devices that perform network configuration at the same time can be activated in the Internet of Things server according to the received connection key, thereby completing the network configuration.
[0144] Reference will now be made to Figure 4 In another specific embodiment, the Bluetooth-assisted network configuration method of the present application is described in detail as follows:
[0145] After the user terminal enters the network configuration mode by installing the APP (an application program) corresponding to the Internet of Things device on the user terminal, the user terminal obtains the token (connection key) for the current network configuration from the Internet of Things server. Then the user turns on the Bluetooth network configuration mode of the multiple Internet of Things devices that need to be configured. When the indicator light of the Internet of Things device is flashing, it means that the Internet of Things device has successfully entered the network configuration mode. After the multiple Internet of Things devices that need to be configured enter the Bluetooth network configuration mode, they automatically connect to the user terminal in Bluetooth.
[0146] After the user terminal successfully connects to the plurality of Internet of Things devices needing network configuration via Bluetooth, the user terminal sends a WiFi search instruction to the plurality of Internet of Things devices needing network configuration. Each Internet of Things device searches for WiFi according to the WiFi search instruction, and feeds back a list of searched WiFi to the user terminal after a certain time (for example, 2-5 seconds). The user terminal filters the WiFi lists fed back by the Internet of Things devices, retains the overlapped WiFi, and obtains a list of WiFi searched by the plurality of Internet of Things devices (target network list).
[0147] The user terminal selects a WiFi (target wireless network) from the list of WiFi searched by the plurality of Internet of Things devices, and then broadcasts the SSID / PSW (WiFi name and password) of the selected WiFi to the plurality of Internet of Things devices, as shown in FIG. 3. Figure 5 After receiving the SSID / PSW sent by the user terminal, each Internet of Things device connects to the router corresponding to the selected WiFi according to the received SSID / PSW, and feeds back the WiFi connection state to the user terminal. The user terminal sends network configuration data to the plurality of Internet of Things devices successfully connected to the WiFi, and the network configuration data includes token and confirmation data. The token is used to activate the devices in the Internet of Things server, and the confirmation data is used to confirm whether the network configuration is successful. The confirmation data can include 0, 1 and 2, wherein 0 represents abnormal network configuration, 1 represents the first normal network configuration, and 2 represents the second normal network configuration.
[0148] It should be noted that since the plurality of Internet of Things devices use the same token to activate in the Internet of Things server, the user terminal also marks the network configuration data according to the differences of the plurality of Internet of Things devices before sending the network configuration data to the plurality of Internet of Things devices successfully connected to the selected WiFi, for example, adding an identification code to the network configuration data, so as to distinguish the plurality of Internet of Things devices.
[0149] For each Internet of Things device, if only the confirmation data is received without the token, the first feedback information (for example, 0 in the above-mentioned confirmation data representing network configuration exception) is fed back to the user terminal according to the confirmation data; if only the token is received without the confirmation data, the Internet of Things device can connect to Amazon IoT Core (a kind of hosted cloud platform) through MQTT (Message Queuing Telemetry Transport) and report the received token to the Internet of Things server through the MQTT message, and the Internet of Things server activates the Internet of Things device according to the token and records the device information of the Internet of Things device. The Internet of Things server feeds back the activation result of the Internet of Things device to the Internet of Things device, at this time the Internet of Things device is normally configured, the second feedback information (for example, 1 in the above-mentioned confirmation data representing the first normal network configuration) is fed back to the user terminal by the Internet of Things device; if the token and the confirmation data are received, the Internet of Things device also activates in the Internet of Things server by using the received token, and the Internet of Things server feeds back the activation result of the Internet of Things device to the Internet of Things device, at this time the Internet of Things device is also normally configured, and the third feedback information (for example, 2 in the above-mentioned confirmation data representing the second normal network configuration) is fed back to the user terminal.
[0150] After the user terminal receives the feedback information of each Internet of Things device, the token marked by the model data is used to query whether each Internet of Things device has been successfully activated and connected to the Internet of Things in the background Internet of Things server. If it is found that the Internet of Things device has been successfully activated in the background Internet of Things server, the user terminal displays the network configuration success in the network configuration state bar of each Internet of Things device.
[0151] In the above-mentioned Bluetooth-assisted network configuration method, the user terminal connects to multiple Internet of Things devices through Bluetooth after entering the Bluetooth network configuration mode, and sends a network search instruction to each Internet of Things device through Bluetooth connection. Each Internet of Things device performs wireless network search to obtain a corresponding wireless network list, and sends the searched wireless network list to the user terminal through Bluetooth connection. After receiving the wireless network list sent by each Internet of Things device, the user terminal filters the wireless network list based on the feedback of multiple Internet of Things devices to obtain a target wireless network, and finally broadcasts the network information of the selected target wireless network to multiple Internet of Things devices through Bluetooth connection. Each Internet of Things device performs wireless network connection according to the broadcasted network information. In this way, multiple Internet of Things devices can simultaneously perform wireless network connection and complete the network configuration process, and the user terminal does not need to perform wireless network connection with multiple Internet of Things devices one by one, thereby avoiding repeated operations and simplifying the network configuration process of multiple Internet of Things devices.
[0152] It should be understood that although the steps in the flowcharts involved in the embodiments described above are shown in sequence according to the arrows, the steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, the execution of the steps is not strictly limited in sequence, and the steps can be executed in other orders. Moreover, at least some of the steps in the flowcharts involved in the embodiments described above can include multiple steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution order of the steps or stages is not necessarily sequential, but can be alternately or alternately executed with at least part of other steps or steps or stages in other steps.
[0153] Based on the same inventive concept, in one embodiment, as shown in the figure, the embodiments of the application also provide a Bluetooth auxiliary network configuration device 600, comprising: a first connection module 601, a sending module 602, a receiving module 603, a screening module 604 and a broadcasting module 605, wherein: Figure 6
[0154] The first connection module 601 is configured to perform Bluetooth connection with a plurality of Internet of Things devices after entering a Bluetooth network configuration mode.
[0155] The sending module 602 is configured to send a network search instruction to each Internet of Things device through the Bluetooth connection, so as to instruct each Internet of Things device to perform wireless network search respectively, and obtain a corresponding wireless network list.
[0156] The first receiving module 603 is configured to receive the wireless network list sent by each Internet of Things device through the Bluetooth connection.
[0157] The screening module 604 is configured to screen based on the wireless network lists fed back by the plurality of Internet of Things devices, and obtain a target wireless network.
[0158] The broadcasting module 605 is configured to broadcast the network information of the selected target wireless network to the plurality of Internet of Things devices through the Bluetooth connection, so as to instruct each Internet of Things device to perform wireless network connection according to the broadcasted network information.
[0159] In one embodiment, the screening module is further configured to screen based on the wireless network lists fed back by the plurality of Internet of Things devices, retain the overlapping wireless networks to obtain a target network list, and select one wireless network from the target network list as the target wireless network.
[0160] In one of the embodiments, the first receiving module is further configured to receive a connection state fed back by each of the IoT devices after the wireless network connection, and the sending module is further configured to send, if it is determined based on the connection state that there is an IoT device with a normal network connection, the network configuration data including the connection key required for the current network configuration to the IoT device with the normal network connection; the connection key is obtained from the IoT server after entering the network configuration mode and is used for device activation of the IoT device in the IoT server.
[0161] In one of the embodiments, the network configuration data further includes confirmation data, the first receiving module is further configured to receive, in a case where the IoT device does not receive the connection key but receives the confirmation data, first feedback information fed back by the IoT device and representing network configuration abnormality, the first feedback information being generated based on the confirmation data; receive, in a case where the IoT device only receives the connection key and is successfully activated based on the received connection key, second feedback information fed back by the IoT device and representing network configuration normality; receive, in a case where the IoT device receives both the connection key and the confirmation data and is successfully activated based on the received connection key, third feedback information fed back by the IoT device and representing network configuration normality; the third feedback information being generated based on the confirmation data.
[0162] In one of the embodiments, the Bluetooth-assisted network configuration device includes a query module, the first receiving module is further configured to receive a target query request, the target query request including a device identification code and a connection key; and the query module is configured to query and display a network configuration result of the IoT device specified by the device identification code based on the device identification code and the connection key.
[0163] Based on the same inventive concept, in one embodiment, as shown in Figure 7 the present application further provides another Bluetooth-assisted network configuration device 700, which includes a second connection module 701, a second receiving module 702, a feedback module 703 and a third connection module 704, wherein:
[0164] The second connection module 701 is configured to enter a Bluetooth network configuration mode and perform Bluetooth connection with a user terminal.
[0165] The second receiving module 702 is configured to receive a network search instruction sent by the user terminal through the Bluetooth connection and search for a wireless network in a connectable state based on the network search instruction to obtain a wireless network list.
[0166] The feedback module 703 is configured to feed back the searched wireless network list to the user terminal through the Bluetooth connection, so as to instruct the user terminal to filter a target wireless network based on the wireless network lists fed back by the plurality of IoT devices.
[0167] The third connection module 704 is used to receive network information of the target wireless network broadcast by the user terminal via Bluetooth connection, and to connect to the wireless network based on the network information.
[0168] In one embodiment, the feedback module is further configured to provide feedback on the connection status to the user terminal after successfully connecting to the target wireless network; the second receiving module is further configured to receive network configuration data sent by the user terminal, including the connection key required for the current network configuration; send the connection key to the IoT server to instruct the IoT server to activate the IoT device according to the connection key and record the device information of the IoT device; receive the activation result fed back by the IoT server, and the feedback module feeds back the activation result to the user terminal.
[0169] The modules in the aforementioned Bluetooth-assisted network configuration device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0170] In one embodiment, a computer device is provided, which may be a user terminal or an Internet of Things (IoT) device mentioned in the above embodiments, and its internal structure diagram may be as follows. Figure 8 As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a Bluetooth-assisted network pairing method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0171] Those skilled in the art will understand that Figure 8The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. A specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0172] In one embodiment, a user terminal is provided, comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program: after entering a Bluetooth network configuration mode, establishing Bluetooth connections with a plurality of Internet of Things devices; sending network search instructions to each of the Internet of Things devices through the Bluetooth connections, to instruct each of the Internet of Things devices to perform wireless network searches respectively, and obtain corresponding wireless network lists; receiving the wireless network lists sent by each of the Internet of Things devices through the Bluetooth connections; based on the wireless network lists fed back by the plurality of Internet of Things devices, performing screening to obtain a target wireless network; and broadcasting network information of the selected target wireless network to the plurality of Internet of Things devices through the Bluetooth connections, to instruct each of the Internet of Things devices to perform wireless network connections according to the broadcasted network information.
[0173] In one embodiment, the processor further implements the following steps when executing the computer program: based on the wireless network lists fed back by the plurality of Internet of Things devices, performing screening to retain overlapping wireless networks to obtain a target network list; and selecting one wireless network from the target network list as the target wireless network.
[0174] In one embodiment, the processor further implements the following steps when executing the computer program: receiving connection states fed back by each of the Internet of Things devices after performing the wireless network connections; and if it is determined based on the connection states that there is an Internet of Things device with a normal network connection, sending network configuration data including a connection key required for the current network configuration to the Internet of Things device with the normal network connection; the connection key is obtained from an Internet of Things server after entering the network configuration mode, and is used for device activation of the Internet of Things device in the Internet of Things server.
[0175] In one of the embodiments, the network configuration data further includes confirmation data, and in one embodiment, the processor further implements the following steps when executing the computer program: in the case where the Internet of Things device does not receive the connection key but receives the confirmation data, receiving first feedback information fed back by the Internet of Things device and representing network configuration abnormity, the first feedback information being generated according to the confirmation data; in the case where the Internet of Things device only receives the connection key and is successfully activated based on the received connection key, receiving second feedback information fed back by the Internet of Things device and representing network configuration normality; in the case where the Internet of Things device receives both the connection key and the confirmation data and is successfully activated based on the received connection key, receiving third feedback information fed back by the Internet of Things device and representing network configuration normality; the third feedback information is generated according to the confirmation data.
[0176] In one embodiment, the processor, when executing the computer program, also implements the following steps: receiving a target query request, the target query request including a device identifier and a connection key; querying the commissioning result of the Internet of Things device specified by the device identifier according to the device identifier and the connection key, and displaying the commissioning result.
[0177] In another embodiment, based on the same inventive concept, an Internet of Things device is also provided, including a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program: entering a Bluetooth commissioning mode and connecting with a user terminal via Bluetooth; receiving a network search instruction sent by the user terminal via the Bluetooth connection, searching for wireless networks in a connectable state according to the network search instruction, and obtaining a wireless network list; feeding back the wireless network list obtained by searching to the user terminal via the Bluetooth connection, so as to instruct the user terminal to screen a target wireless network according to the wireless network lists fed back by multiple Internet of Things devices; receiving network information of the target wireless network broadcast by the user terminal via the Bluetooth connection, and connecting with the target wireless network according to the network information.
[0178] In one embodiment, the processor, when executing the computer program, also implements the following steps: feeding back a connection state to the user terminal after successfully connecting with the target wireless network; receiving commissioning data sent by the user terminal, the commissioning data including a connection key required for this-time commissioning; sending the connection key to an Internet of Things server, so as to instruct the Internet of Things server to activate the Internet of Things device according to the connection key and record device information of the Internet of Things device; receiving an activation result fed back by the Internet of Things server, and feeding back the activation result to the user terminal.
[0179] In one embodiment, a computer readable storage medium is provided, the computer readable storage medium storing a computer program, the computer program being executed by a processor to implement the steps in the above method embodiments.
[0180] In one embodiment, a computer program product is provided, including a computer program, the computer program being executed by a processor to implement the steps in the above method embodiments.
[0181] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0182] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when the computer program is executed, the processes of the above-mentioned embodiments of the methods can be included. Any reference to memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetoresistive random access memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric memory (Ferroelectric Random Access Memory, FRAM), phase change memory (Phase Change Memory, PCM), graphene memory, etc. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, etc. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., without being limited thereto.
[0183] Any combination of the technical features of the above embodiments can be made. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described, however, as long as the combination of the technical features does not exist contradictory, it should be considered as the scope of the present application.
[0184] The above embodiments only express several implementation manners of the present application, and the description is more specific and detailed, but it should not be understood as a limitation on the scope of the patent of the present application. It should be pointed out that for ordinary skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which are within the scope of protection of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.
Claims
1. A Bluetooth assistant provisioning method, characterized in that, The method is executed by a user terminal, and comprises: After entering a Bluetooth network configuration mode, Bluetooth connection is established with a plurality of Internet of Things devices; A network search instruction is sent to each Internet of Things device through the Bluetooth connection, so as to instruct each Internet of Things device to perform wireless network search and obtain a corresponding wireless network list; The wireless network list sent by each Internet of Things device is received through the Bluetooth connection; Based on the wireless network lists fed back by the plurality of Internet of Things devices, screening is performed, and a target network list is obtained by retaining overlapping wireless networks; one wireless network is selected from the target network list as a target wireless network; Network information of the selected target wireless network is broadcast to the plurality of Internet of Things devices through the Bluetooth connection, so as to instruct each Internet of Things device to perform wireless network connection according to the broadcast network information; Network configuration data required for this network configuration is sent to the Internet of Things device with normal network connection, wherein the network configuration data comprises a connection secret key and confirmation data; Feedback information formed by a feedback model is received, wherein the feedback information is configured according to the setting of the confirmation data, and is used to represent the device network configuration situation; and the feedback model is pre-configured in each Internet of Things device.
2. The method of claim 1, wherein, The method further comprises: The connection state fed back by each Internet of Things device after performing wireless network connection is received; If it is determined based on the connection state that there is an Internet of Things device with normal network connection, network configuration data comprising a connection secret key required for this network configuration is sent to the Internet of Things device with normal network connection; the connection secret key is obtained from an Internet of Things server after entering the network configuration mode, and is used for device activation of the Internet of Things device in the Internet of Things server.
3. The method of claim 1, wherein, The network configuration data further comprises confirmation data, and the method further comprises: In a case where the Internet of Things device does not receive the connection secret key but receives the confirmation data, first feedback information representing abnormal network configuration fed back by the Internet of Things device is received, wherein the first feedback information is generated according to the confirmation data; In a case where the Internet of Things device only receives the connection secret key and is successfully activated based on the received connection secret key, second feedback information representing normal network configuration fed back by the Internet of Things device is received; In a case where the Internet of Things device receives the connection secret key and the confirmation data and is successfully activated based on the received connection secret key, third feedback information representing normal network configuration fed back by the Internet of Things device is received; the third feedback information is generated according to the confirmation data.
4. The method of claim 3, wherein, The method further comprises: Network configuration data required for this network configuration is sent to the Internet of Things device with normal network connection, wherein a device identification code is added in the network configuration data; Network configuration feedback information sent by each Internet of Things device is received, wherein a corresponding device identification code is added in the feedback information, so as to determine the corresponding Internet of Things device according to the corresponding device identification code.
5. The method of claim 3, wherein, The method further comprises: A target query request is received, wherein the target query request comprises a device identification code and a connection secret key; The network configuration result of the Internet of Things device specified by the device identification code is queried and displayed according to the device identification code and the connection secret key.
6. A Bluetooth assisted provisioning method, characterized in that, The method is executed by an Internet of Things device, and comprises: A Bluetooth network configuration mode is entered, and Bluetooth connection is established with a user terminal; receive the network search instruction sent by the user terminal through the Bluetooth connection, and search for wireless networks in a connectable state according to the network search instruction to obtain a wireless network list; feed back the wireless network list searched to the user terminal through the Bluetooth connection, so that the user terminal screens according to the wireless network lists fed back by the plurality of Internet of Things devices, retains overlapping wireless networks to obtain a target network list, and selects a wireless network from the target network list as a target wireless network; receive the network information of the target wireless network broadcast by the user terminal through the Bluetooth connection, and perform wireless network connection according to the network information; receive network configuration data required for this-time network configuration, the network configuration data including a connection secret key and confirmation data; send feedback information formed by a feedback model to the user terminal, the feedback information being configured according to a setting condition of the confirmation data and used to represent device network configuration; and the feedback model being pre-configured in each Internet of Things device.
7. The method of claim 6, wherein, The method further includes: feed back a connection state to the user terminal after successfully connecting the target wireless network; receive network configuration data including a connection secret key required for this-time network configuration sent by the user terminal; send the connection secret key to an Internet of Things server, so that the Internet of Things server activates the Internet of Things device according to the connection secret key and records device information of the Internet of Things device; receive an activation result fed back by the Internet of Things server, and feed back the activation result to the user terminal.
8. A Bluetooth assistant provisioning device, characterized in that, The apparatus includes: a first connection module configured to perform Bluetooth connection with a plurality of Internet of Things devices after entering a Bluetooth network configuration mode; a sending module configured to send a network search instruction to each Internet of Things device through the Bluetooth connection, so that each Internet of Things device performs wireless network search to obtain a corresponding wireless network list; a first receiving module configured to receive the wireless network list sent by each Internet of Things device through the Bluetooth connection; a screening module configured to screen based on the wireless network lists fed back by the plurality of Internet of Things devices, retain overlapping wireless networks to obtain a target network list, and select a wireless network from the target network list as a target wireless network; a broadcasting module configured to broadcast network information of the selected target wireless network to the plurality of Internet of Things devices through the Bluetooth connection, so that each Internet of Things device performs wireless network connection according to the broadcasted network information; send network configuration data required for this-time network configuration to an Internet of Things device with a normal network connection, the network configuration data including a connection secret key and confirmation data; receive feedback information formed by a feedback model, the feedback information being configured according to a setting condition of the confirmation data and used to represent device network configuration; and the feedback model being pre-configured in each Internet of Things device.
9. A Bluetooth assistant provisioning device, characterized in that, The apparatus includes: a second connection module configured to enter a Bluetooth network configuration mode and perform Bluetooth connection with a user terminal; a second receiving module configured to receive a network search instruction sent by the user terminal through the Bluetooth connection, and search for wireless networks in a connectable state according to the network search instruction to obtain a wireless network list; The feedback module is configured to feed back the list of wireless networks searched to the user terminal through the Bluetooth connection, so as to instruct the user terminal to filter the list of wireless networks fed back by the plurality of Internet of Things devices, retain the overlapping wireless networks, and obtain a target network list, and select one wireless network from the target network list as a target wireless network. The third connection module is configured to receive network information of the target wireless network broadcast by the user terminal through the Bluetooth connection, and perform wireless network connection according to the network information. The network configuration data required for the network configuration in the current time is received, and the network configuration data includes a connection secret key and confirmation data. The feedback information formed by the feedback model is sent to the user terminal, the feedback information is configured according to the setting condition of the confirmation data, and is used to represent the network configuration of the device; and the feedback model is pre-configured in each Internet of Things device.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to realize the steps of the method in any one of claims 1 to 7.
Citation Information
Patent Citations
Network distribution method and device for bluetooth-based intelligent device and storage medium
CN111918256A
Intelligent household electrical appliance network configuration control method and control device, and application
CN113079556A