Bluetooth multi-device network access method, device, electronic device and storage medium
Through the network access configuration center, establish connections with multiple Bluetooth devices, obtain device information and perform network access configuration, the problem of cumbersome operations when entering the network of smart home devices is solved, and the efficiency and speed of network access are improved.
Patent Information
- Application Number
- CN202210991274.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-18
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2042-08-18
AI Technical Summary
In the prior art, multiple smart home Bluetooth devices need to be connected to the network separately one by one, resulting in cumbersome and inefficient operations.
Through the network access configuration center, we can establish a connection with multiple Bluetooth slave devices in response to the command of the Bluetooth master device, obtain device information, issue network access binding information, and configure the network access according to the order to simplify the multi-device network access process.
It improves the network access efficiency of Bluetooth slave devices, avoids repeated operations, and realizes rapid network access for multiple devices, adapts to the needs of multiple devices to enter the network.
Smart Images

Figure CN115348644B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a Bluetooth multi-device network access method, device, electronic device and storage medium. Background Art
[0002] In our daily life, more and more smart devices have built-in Bluetooth modules. When users use multiple smart devices, they need to connect multiple smart devices to the network through Bluetooth and then interact with multiple smart devices. For example, in a smart home system, many families have multiple smart home devices. The most important thing before using a smart home is to connect to the network first, so that smart home data can be obtained through the network and smart control can be performed.
[0003] Based on the built-in Bluetooth modules in most smart homes, accessing the network via Bluetooth is the mainstream method for smart homes. When multiple smart home Bluetooth devices (i.e., Bluetooth slave devices) are required to access the network at one time, the existing method requires separate access for each Bluetooth slave device. This process requires a large number of operations to be repeated one by one to complete the access of multiple Bluetooth slave devices to the network, and the operation is complicated. Summary of the invention
[0004] In view of this, an object of the present invention is to provide a Bluetooth multi-device network access method, apparatus, electronic device and storage medium.
[0005] In order to achieve the above purpose, the technical solution adopted by the embodiment of the present invention is as follows:
[0006] In a first aspect, an embodiment provides a Bluetooth multi-device network access method, which is applied to a network access configuration center, and the method includes:
[0007] In response to a command sent by a Bluetooth master device to add multiple Bluetooth slave devices to a network access configuration center, establishing connections with the multiple Bluetooth slave devices through a Bluetooth protocol;
[0008] Obtain device information of each of the Bluetooth slave devices;
[0009] Perform corresponding network access operations on each of the Bluetooth slave devices according to the device information of each of the Bluetooth slave devices.
[0010] In an optional implementation manner, the acquiring device information of each of the Bluetooth slave devices includes:
[0011] Acquire broadcast data sent by each of the Bluetooth slave devices through the Bluetooth protocol;
[0012] Identify each of the Bluetooth slave devices according to the broadcast data;
[0013] Based on the identification of each of the Bluetooth slave devices, the corresponding network binding information is read from the cloud.
[0014] In an optional implementation manner, performing a corresponding network access operation on each of the Bluetooth slave devices according to the device information of each of the Bluetooth slave devices includes:
[0015] Send network binding information to each of the Bluetooth slave devices, and perform network configuration and corresponding user unique ID setting for each of the Bluetooth slave devices.
[0016] In an optional implementation manner, the performing network access configuration and setting of a corresponding user unique ID for each of the Bluetooth slave devices includes:
[0017] Sending the corresponding user unique ID to each of the Bluetooth slave devices;
[0018] The public shared information is read and sent to each of the Bluetooth slave devices, wherein the public shared information is the network access configuration information of the first Bluetooth slave device that establishes a connection and is acquired by the network access configuration center.
[0019] In an optional implementation manner, the network access configuration information includes a network access name and a corresponding WIFI password required for each of the Bluetooth slave devices to access the network.
[0020] In an optional implementation manner, after sending the network binding information to each of the Bluetooth slave devices and performing network access configuration and setting of a corresponding user unique ID for each of the Bluetooth slave devices, the method further includes:
[0021] After the network access configuration of each Bluetooth slave device and the setting of the corresponding user unique ID are completed, the connection with each Bluetooth slave device is disconnected.
[0022] In an optional implementation manner, performing a corresponding network access operation on each of the Bluetooth slave devices according to the device information of each of the Bluetooth slave devices includes:
[0023] Determining the order in which each of the Bluetooth slave devices establishes a connection with the network access configuration center;
[0024] According to the sequence, corresponding network access operations are performed on each of the Bluetooth slave devices in turn according to the device information of each of the Bluetooth slave devices.
[0025] In a second aspect, an embodiment provides a Bluetooth multi-device network access device, the device comprising:
[0026] A Bluetooth connection module, configured to establish connections with the plurality of Bluetooth slave devices through a Bluetooth protocol in response to a command sent by a Bluetooth master device to add a plurality of Bluetooth slave devices to a network access configuration center;
[0027] An information acquisition module, used to acquire device information of each of the Bluetooth slave devices;
[0028] The network access configuration module is used to perform corresponding network access operations on each of the Bluetooth slave devices according to the device information of each of the Bluetooth slave devices.
[0029] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory, wherein the processor and the memory are connected; the memory is used to store programs; the processor is used to call the programs stored in the memory to execute the Bluetooth multi-device network access method provided in the above-mentioned first aspect embodiment and / or in combination with some possible implementation methods of the above-mentioned first aspect embodiment.
[0030] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the Bluetooth multi-device network access method provided in the embodiment of the first aspect above and / or in combination with some possible implementation methods of the embodiment of the first aspect above is executed.
[0031] The Bluetooth multi-device network access method, apparatus, electronic device and storage medium provided by the embodiments of the present invention extract the network access method of a single Bluetooth slave device to the network access configuration center. When multiple Bluetooth slave devices are connected to the network, it is only necessary to add the Bluetooth slave devices discovered by the Bluetooth master device scan to the network access configuration center, and the network access operation can be performed on each Bluetooth slave device. This avoids the situation where each Bluetooth slave device can only be connected to the network one by one when multiple Bluetooth slave devices need to be connected to the network, improves the network access efficiency of the Bluetooth slave devices, enables multiple Bluetooth slave devices to access the network faster, avoids multiple repetitive operations, and adapts to the current demand for multiple Bluetooth slave devices to access the network.
[0032] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0034] Figure 1 A schematic diagram showing a flow chart of a Bluetooth multi-device network access method provided by an embodiment of the present invention;
[0035] Figure 2A second flowchart of a method for accessing a Bluetooth multi-device network provided by an embodiment of the present invention is shown;
[0036] Figure 3 A third flowchart of a method for accessing a Bluetooth multi-device network provided by an embodiment of the present invention is shown;
[0037] Figure 4 A fourth flowchart of a method for accessing a Bluetooth multi-device network provided by an embodiment of the present invention is shown;
[0038] Figure 5 A schematic structural block diagram of a Bluetooth multi-device network access device provided by an embodiment of the present invention is shown;
[0039] Figure 6 A schematic structural block diagram of an electronic device provided by an embodiment of the present invention is shown.
[0040] Icons: 200 - Bluetooth multi-device network access device; 201 - Bluetooth connection module; 202 - information acquisition module; 203 - network access configuration module; 300 - electronic device; 301 - processor; 302 - memory. DETAILED DESCRIPTION
[0041] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0042] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present invention.
[0043] It should be noted that relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0044] It should be noted that, in the absence of conflict, the features in the embodiments of the present invention may be combined with each other.
[0045] Please refer to Figure 1 , which is a flow chart of a Bluetooth multi-device network access method provided in an embodiment of the present invention. The Bluetooth multi-device network access method is applied to a network access configuration center, and the Bluetooth multi-device network access method includes S110, S120 and S130.
[0046] S110, in response to a command sent by the Bluetooth master device to add multiple Bluetooth slave devices to the network access configuration center, establishing connections with the multiple Bluetooth slave devices through the Bluetooth protocol.
[0047] S120: Obtain device information of each Bluetooth slave device.
[0048] S130: Perform corresponding network access operations on each Bluetooth slave device according to the device information of each Bluetooth slave device.
[0049] Based on the above steps, the network access configuration center implements the operations for each Bluetooth slave device to access the network. Through the above steps, the user can set the corresponding Bluetooth slave device added to the network access configuration center through the cloud and the local area network.
[0050] Among them, step S110 is used to add multiple Bluetooth slave devices to be added to the network to the network configuration center. Taking the smart furniture scenario as an example, the Bluetooth slave device can refer to the smart home device to be added to the smart home system, for example, it can be any smart home device such as a smart TV, a smart light, a smart rice cooker, a sweeping robot, etc. The Bluetooth master device can be a mobile terminal such as a mobile phone, an IPAD, a laptop computer, a smart watch, etc. The Bluetooth master device can include a human-machine interface that can realize user interaction, and display the status information of the new device to the user or receive the user's operation based on the human-machine interface. When a command to add multiple Bluetooth slave devices that need to be added to the network to the network configuration center is received (that is, when there are multiple smart home devices to be added to the network to be added to the network configuration center), the network configuration center establishes a connection with the multiple Bluetooth slave devices through the Bluetooth protocol to facilitate subsequent interaction with them.
[0051] The command sent by the Bluetooth master device to add multiple Bluetooth slave devices to the network access configuration center can be generated in multiple ways.
[0052] For example, the command may be generated after a Bluetooth master device discovers multiple Bluetooth slave devices through Bluetooth protocol scanning. Specifically, the Bluetooth master device may discover Bluetooth slave devices through broadcast data sent by Bluetooth slave devices. The Bluetooth master device (i.e., mobile terminal) turns on Bluetooth and scans to find and determine the Bluetooth slave devices that need to be connected to the network (i.e., smart home devices), and generates commands to add multiple Bluetooth slave devices to the network configuration center.
[0053] For another example, the command may be generated by a Bluetooth master device after discovering multiple Bluetooth slave devices through Bluetooth protocol scanning in response to a user selecting several Bluetooth slave devices from the multiple Bluetooth slave devices.
[0054] For example, taking the Bluetooth master device as a smartphone, the user opens the mobile phone APP to enter the new device adding mode, that is, enters the Bluetooth master device scanning state. When the broadcast data sent by the Bluetooth slave device is scanned, the mobile phone APP sends a command to add this device to the network configuration center. When the network configuration center receives the command to add this device, it establishes a connection with the device scanned by the mobile phone APP through the Bluetooth protocol.
[0055] In response to the command sent by the Bluetooth master device to add multiple Bluetooth slave devices to the network access configuration center, after establishing connections with the multiple Bluetooth slave devices through the Bluetooth protocol, the network access configuration center may continue to execute step S120.
[0056] In step S120, after multiple Bluetooth slave devices establish connections with the network access configuration center, the network access configuration center can exchange information with the multiple Bluetooth slave devices, thereby obtaining relevant device information of each Bluetooth slave device, and preparing for subsequent information display and network access operations on the devices. The device information may include information carried in the broadcast data sent by the Bluetooth slave device through the Bluetooth protocol, as well as information such as the product model and firmware version of the Bluetooth slave device.
[0057] After obtaining the device information of each Bluetooth slave device, the network access configuration center may continue to perform step S130. Through the network access operation of step S130, the user can set each Bluetooth slave device through the cloud and the local area network.
[0058] The embodiment of the present invention extracts the network access method of a single Bluetooth slave device to the network access configuration center. When multiple Bluetooth slave devices are connected to the network, it is only necessary to add the Bluetooth slave devices discovered by the Bluetooth master device scan to the network access configuration center, and then the network access operation can be performed for each Bluetooth slave device. This avoids the situation where each Bluetooth slave device has to be connected to the network one by one when multiple Bluetooth slave devices need to be connected to the network, thereby improving the network access efficiency of the Bluetooth slave devices, enabling multiple Bluetooth slave devices to be connected to the network faster, avoiding multiple repetitive operations, and adapting to the current demand for multiple Bluetooth slave devices to connect to the network.
[0059] Optionally, see Figure 2 The device information of each Bluetooth slave device in S120 can be obtained through S121, S122 and S123, and the device information of each Bluetooth slave device is obtained, including:
[0060] S121, obtaining broadcast data sent by each Bluetooth slave device through the Bluetooth protocol.
[0061] S122: Identify each Bluetooth slave device according to the broadcast data.
[0062] S123, reading corresponding network binding information from the cloud based on the identifier of each Bluetooth slave device.
[0063] The broadcast data is data containing product information related to the Bluetooth slave device, and is used to report the related product information.
[0064] For example, the product information carried by the broadcast data may include, but is not limited to: the unique device number of the smart home device, the key and other necessary information entered by the manufacturer when leaving the factory. Each Bluetooth slave device is identified according to the product information corresponding to each Bluetooth slave device, so that the corresponding network binding information can be read from the cloud through this identification. For example, each Bluetooth slave device is identified by a unique identification code (Universally Unique Identifier, UUID). The network binding information may include information such as the product model and firmware version. After reading the product model and firmware version of each Bluetooth slave device, this information can be sent to each corresponding Bluetooth slave device, so that this information can be subsequently displayed on the Bluetooth master device through the Bluetooth protocol for users using the Bluetooth master device to view.
[0065] Optionally, see Figure 3 In S130, performing a corresponding network access operation on each Bluetooth slave device according to the device information of each Bluetooth slave device can be implemented by S131, and performing a corresponding network access operation on each Bluetooth slave device according to the device information of each Bluetooth slave device includes:
[0066] S131, sending network binding information to each Bluetooth slave device, and performing network configuration and setting of a corresponding user unique ID for each Bluetooth slave device.
[0067] The network binding information of each Bluetooth slave device previously obtained from the cloud is sent to each corresponding Bluetooth slave device, so that this information can be displayed on the Bluetooth master device through the Bluetooth protocol later for the user who uses the Bluetooth master device to view. After sending these network binding information, each Bluetooth slave device is configured to access the network, and each Bluetooth slave device is set to a unique user ID so that different Bluetooth slave devices correspond to the users who use the corresponding Bluetooth slave devices. Users can use this unique ID to set the corresponding Bluetooth slave devices they use through the cloud and the local area network.
[0068] Optionally, see Figure 4 The network access configuration for each Bluetooth slave device and the setting of the corresponding user unique ID in S131 can be implemented through S1311 and S1312, and the network access configuration for each Bluetooth slave device and the setting of the corresponding user unique ID include:
[0069] S1311, send the corresponding user unique ID to each Bluetooth slave device.
[0070] S1312, read the public sharing information, and send the public sharing information to each Bluetooth slave device, where the public sharing information is the network access configuration information of the first Bluetooth slave device that establishes a connection and is obtained by the network access configuration center.
[0071] Optionally, the network access configuration information includes a network access name and a corresponding WIFI password required for each Bluetooth slave device to access the network.
[0072] The set public shared information can simplify the network access configuration operation process. Since the public shared information is the network access configuration information of the first Bluetooth slave device that establishes a connection obtained by the network access configuration center, and the network access configuration information includes the network access name and WIFI password required for each Bluetooth slave device to access the network, when the network access configuration center establishes a connection with the first Bluetooth slave device, it will trigger the user using the Bluetooth master device (for example, a mobile phone App user) to enter or select the name of the target WIFI and the corresponding WIFI password. At this time, the above WIFI information will be stored in the network access configuration center as public shared information. After subsequent Bluetooth slave devices establish connections with the network access configuration center in sequence, the network access operation will not pop up again to ask the user to select the name of the target WIFI and the corresponding WIFI password, but will be directly obtained from the public shared information.
[0073] Optionally, see Figure 3 After sending the network binding information to each Bluetooth slave device in S131 and performing network configuration and setting the corresponding user unique ID for each Bluetooth slave device, the network configuration center can continue to execute step S132:
[0074] S132, after the network access configuration of each Bluetooth slave device and the setting of the corresponding user unique ID are completed, disconnecting from each Bluetooth slave device.
[0075] This step is used to prevent the situation where the Bluetooth slave device continues to use the Bluetooth protocol and occupy Bluetooth resources after the network configuration and the corresponding user unique ID are set.
[0076] Optionally, performing a corresponding network access operation on each of the Bluetooth slave devices according to the device information of each of the Bluetooth slave devices may include:
[0077] Determine the order in which each Bluetooth slave device establishes a connection with the network configuration center;
[0078] According to the sequence, the corresponding network access operation is performed on each Bluetooth slave device according to the device information of each Bluetooth slave device.
[0079] When performing network access operations on multiple Bluetooth slave devices, the network access configuration center performs network access operations on each Bluetooth slave device according to the order of the Bluetooth slave devices that establish connections therewith. This step makes the process of performing network access operations on multiple Bluetooth slave devices more organized.
[0080] For example, the first device to establish a connection with the network access configuration center is Bluetooth slave device one, and the next device to establish a connection with the network access configuration center is Bluetooth slave device two. The network access configuration center then performs a network access operation on Bluetooth slave device one, and after completing the network access operation on Bluetooth slave device one, it performs a network access operation on Bluetooth slave device two.
[0081] In order to more clearly explain the implementation principle of the embodiment of the present invention, an example is now taken in which the Bluetooth master device is a mobile phone.
[0082] The process of Bluetooth multi-device access to the network is illustrated as follows:
[0083] Turn on the Bluetooth of multiple Bluetooth slave devices, multiple Bluetooth slave devices enter configuration mode, multiple Bluetooth slave devices send broadcast data, the user uses the mobile phone APP to enter the new device adding mode, turn on the Bluetooth of the Bluetooth master device, and scan to find out whether there is any broadcast data. When the broadcast data sent by multiple Bluetooth slave devices is scanned, the mobile phone APP sends a command to add these multiple Bluetooth slave devices to the network access configuration center. The network access configuration center responds to the command sent by the Bluetooth master device to add multiple Bluetooth slave devices to the network access configuration center, establishes a connection with each Bluetooth slave device scanned by the mobile phone APP through the Bluetooth protocol, and then obtains the device information of each Bluetooth slave device.
[0084] Furthermore, the network access configuration center identifies each Bluetooth slave device according to the broadcast data of each Bluetooth slave device, so as to read the corresponding network access binding information from the cloud through this identification. The network access binding information may include the product model, firmware version and other information of each Bluetooth slave device. After reading the product model and firmware version and other information of each Bluetooth slave device, this information is sent to each corresponding Bluetooth slave device, so that this information can be subsequently displayed on the Bluetooth master device through the Bluetooth protocol for users using the Bluetooth master device to view.
[0085] At the same time, the network access configuration center will perform network access configuration and corresponding user unique ID settings for each Bluetooth slave device, so that each Bluetooth slave device can access the network in the order in which it establishes connection with the network access configuration center. When performing network access configuration, the network access configuration center reads the network access configuration information (i.e., public shared information) of the first Bluetooth slave device that establishes a connection and sends it to each Bluetooth slave device. This network access configuration information includes the network access name and WIFI password required for each Bluetooth slave device to access the network. This step enables each Bluetooth slave device to connect to the cloud and local area network through the network access name and WIFI password. The user unique ID is set so that different Bluetooth slave devices correspond to users who use the corresponding Bluetooth slave devices. Users can set the corresponding Bluetooth slave devices they use through the cloud and local area network according to this unique ID. At this point, the network access operation is completed. Finally, the connection between the network access configuration center and each Bluetooth slave device is disconnected to avoid continuing to use the Bluetooth protocol and occupying Bluetooth resources.
[0086] See also Figure 5 On the basis of the above, an embodiment of the present invention further provides a Bluetooth multi-device network access device 200, which is applied to a network access configuration center. The Bluetooth multi-device network access device 200 includes: a Bluetooth connection module 201, an information acquisition module 202 and a network access configuration module 203.
[0087] Among them, the Bluetooth connection module 201 is used to respond to the command sent by the Bluetooth master device to add multiple Bluetooth slave devices to the network access configuration center, and establish connections with multiple Bluetooth slave devices through the Bluetooth protocol. The information acquisition module 202 is used to obtain the device information of each of the Bluetooth slave devices, and the network access configuration module 203 is used to perform corresponding network access operations on each of the Bluetooth slave devices according to the device information of each of the Bluetooth slave devices.
[0088] It should be noted that the network access configuration center in the embodiment of the present invention can be independently set outside the Bluetooth master device and the Bluetooth slave device, or it can be integrated into the Bluetooth master device. The Bluetooth multi-device network access method used in the two methods is the same and will not be repeated here.
[0089] See also Figure 6Based on the same inventive concept, the embodiment of the present application provides a schematic structural block diagram of an electronic device 300, which can be a network configuration center. In the embodiment of the present application, the electronic device 300 can be, but not limited to, a personal computer (PC), a smart phone, a tablet computer, a personal digital assistant (PDA), a mobile Internet device (MID), etc. Structurally, the electronic device 300 can include a processor 301 and a memory 302.
[0090] The processor 301 is electrically connected to the memory 302 directly or indirectly to realize data transmission or interaction. For example, these elements can be electrically connected to each other through one or more communication buses or signal lines. Among them, the processor 301 can be an integrated circuit chip with signal processing capabilities. The processor 301 can also be a general-purpose processor, for example, it can be a central processing unit (CPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the disclosed methods, steps and logic block diagrams in the embodiments of the present application. In addition, the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0091] The memory 302 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), and an electric erasable programmable read-only memory (EEPROM). The memory 302 is used to store a program, and the processor 301 executes the program after receiving an execution instruction.
[0092] It should be understood that Figure 6 The structure shown is for illustration only. The electronic device 300 provided in the embodiment of the present application may also have Figure 6 Fewer or more components, or with Figure 6In addition, Figure 6 The components shown may be implemented by software, hardware or a combination thereof.
[0093] It should be noted that, since technicians in the relevant field can clearly understand that for the convenience and simplicity of description, the specific working process of the Bluetooth multi-device network access device 200 and the electronic device 300 described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0094] Based on the same inventive concept, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed, the method provided in the above embodiment is executed.
[0095] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0096] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0097] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0098] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for connecting multiple Bluetooth devices to a network, characterized in that: Applied to a network access configuration center, the method includes: In response to a command sent by a Bluetooth master device to add multiple Bluetooth slave devices to a network access configuration center, establishing connections with the multiple Bluetooth slave devices through a Bluetooth protocol; Obtaining device information of each of the Bluetooth slave devices, including: obtaining broadcast data sent by each of the Bluetooth slave devices through the Bluetooth protocol; identifying each of the Bluetooth slave devices according to the broadcast data; and reading corresponding network binding information from the cloud based on the identification of each of the Bluetooth slave devices; According to the device information of each Bluetooth slave device, corresponding network access operations are performed on each Bluetooth slave device, including: sending network access binding information to each Bluetooth slave device; sending the corresponding user unique ID to each Bluetooth slave device; reading public shared information, and sending the public shared information to each Bluetooth slave device, wherein the public shared information is the network access configuration information of the first Bluetooth slave device to establish a connection obtained by the network access configuration center.
2. The Bluetooth multi-device network access method according to claim 1, characterized in that: The network access configuration information includes the network access name and corresponding WIFI password required for each Bluetooth slave device to access the network.
3. The Bluetooth multi-device network access method according to claim 1, characterized in that: After sending the network binding information to each of the Bluetooth slave devices and performing network configuration and setting of a corresponding user unique ID for each of the Bluetooth slave devices, the method further includes: After the network access configuration of each Bluetooth slave device and the setting of the corresponding user unique ID are completed, the connection with each Bluetooth slave device is disconnected.
4. The Bluetooth multi-device network access method according to claim 1, characterized in that: The performing a corresponding network access operation on each of the Bluetooth slave devices according to the device information of each of the Bluetooth slave devices includes: Determining the order in which each of the Bluetooth slave devices establishes a connection with the network access configuration center; According to the sequence, corresponding network access operations are performed on each of the Bluetooth slave devices in turn according to the device information of each of the Bluetooth slave devices.
5. A Bluetooth multi-device network access device, characterized in that: Applied to a network access configuration center, the device comprises: A Bluetooth connection module, configured to establish connections with the plurality of Bluetooth slave devices through a Bluetooth protocol in response to a command sent by a Bluetooth master device to add a plurality of Bluetooth slave devices to a network access configuration center; The information acquisition module is used to obtain the device information of each Bluetooth slave device, including: obtaining the broadcast data sent by each Bluetooth slave device through the Bluetooth protocol; identifying each Bluetooth slave device according to the broadcast data; and reading the corresponding network binding information from the cloud based on the identification of each Bluetooth slave device; The network access configuration module is used to perform corresponding network access operations on each Bluetooth slave device according to the device information of each Bluetooth slave device, including: sending network access binding information to each Bluetooth slave device; sending the corresponding user unique ID to each Bluetooth slave device; reading public sharing information, and sending the public sharing information to each Bluetooth slave device, wherein the public sharing information is the network access configuration information of the first Bluetooth slave device to establish a connection obtained by the network access configuration center.
6. An electronic device, characterized in that: The electronic device comprises: a processor and a memory, wherein the processor is connected to the memory; The memory is used to store programs; The processor is used to run the program stored in the memory to execute the Bluetooth multi-device network access method according to any one of claims 1 to 4.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a computer, the Bluetooth multi-device network access method according to any one of claims 1 to 4 is executed.
