Equipment distribution network processing methods, devices, storage media and electronic devices
By using parallel network configuration and serial binding methods, the problem of long network configuration time for multiple devices was solved, enabling rapid network configuration and efficient communication for devices.
Patent Information
- Application Number
- CN202310740164.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-20
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2043-06-20
AI Technical Summary
The existing serial network configuration method cannot configure multiple smart devices simultaneously, resulting in a long network configuration time.
By selecting at least some devices from multiple devices to be configured on the network, performing parallel network configuration operations, obtaining device node information, connecting, authenticating and allocating mesh network addresses in parallel, and finally serially binding the device node information with the application identifier.
It enables rapid network configuration of devices, shortens network configuration time, improves communication efficiency, and avoids information corruption and packet loss caused by parallel operations.
Smart Images

Figure CN116684868B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of wireless communication, and more specifically, to a device distribution network processing method, apparatus, storage medium, and electronic device. Background Technology
[0002] Intelligent devices can achieve intelligent management through network configuration. Currently, intelligent devices in related technologies generally use serial network configuration methods. However, these methods cannot configure multiple intelligent devices simultaneously. Therefore, using serial network configuration methods to configure a batch of intelligent devices is time-consuming.
[0003] There is currently no effective solution to the above problems. Summary of the Invention
[0004] This invention provides a method, apparatus, storage medium, and electronic device for equipment network distribution processing, in order to at least solve the technical problem of long processing time for equipment network distribution in related technologies.
[0005] According to one embodiment of the present invention, a device network distribution processing method is provided, comprising: selecting at least a portion of devices from a plurality of devices to be networked; performing parallel network distribution operations on the at least a portion of devices to obtain device node information of the at least a portion of devices; and serially binding the device node information with an application identifier.
[0006] Optionally, selecting at least some devices from multiple devices to be networked includes: scanning multiple devices to be networked via Bluetooth communication; adding the device identifiers of the multiple devices to be networked to a network distribution queue; and selecting at least some devices based on the device identifiers recorded in the network distribution queue.
[0007] Optionally, performing parallel network configuration operations on at least some devices to obtain device node information for at least some devices includes: creating parallel network configuration tasks for at least some devices; performing parallel connections on at least some devices based on the parallel network configuration tasks to obtain connection results; performing parallel authentication on at least some devices based on the connection results to obtain authentication results; performing parallel allocation of mesh network addresses on at least some devices based on the authentication results to obtain allocation results; and generating device node information for at least some devices in parallel based on the allocation results.
[0008] Optionally, the device network distribution processing method further includes: in response to at least some devices successfully being networked, removing the device identifier of the successfully networked device from the network distribution queue, and selecting a new device to be networked based on the device identifier recorded in the network distribution queue; and adding a new network distribution task for the new device to be networked.
[0009] Optionally, the device distribution network processing method further includes: switching the mesh network connection channel based on the successful distribution network sequence of at least some devices; and obtaining the device node information of the devices to be serially bound to the corresponding mesh network connection channel.
[0010] Optionally, serially binding device node information and application identifier includes: determining the device name of the device to be serially bound based on the device node information of the device to be serially bound; and serially binding the device name and application identifier.
[0011] Optionally, switching mesh network connection channels based on the network configuration success sequence of at least some devices includes: adding the device identifiers of at least some devices to the authentication queue based on the network configuration success sequence of at least some devices; sequentially switching mesh network connection channels based on the device identifiers recorded in the authentication queue, and creating a serial binding task for the devices to be serially bound.
[0012] Optionally, the device configuration processing method further includes: in response to the successful binding of the device to be serially bound, removing the device identifier of the successfully bound device from the authentication queue, and continuing to execute the serial binding task of the next device to be serially bound.
[0013] According to one embodiment of the present invention, a device distribution network processing apparatus is also provided, comprising: a selection module for selecting at least a portion of devices from a plurality of devices to be distributed; a distribution network module for performing parallel distribution network operations on at least a portion of the devices to obtain device node information of at least a portion of the devices; and a binding module for serially binding the device node information with an application identifier.
[0014] Optionally, the selection module is also used to scan for multiple devices to be configured on the network via Bluetooth communication; add the device identifiers of the multiple devices to be configured on the network to the network configuration queue; and select at least some of the devices based on the device identifiers recorded in the network configuration queue.
[0015] Optionally, the distribution network module is also used to create parallel distribution network tasks for at least some devices; perform parallel connections on at least some devices based on the parallel distribution network tasks to obtain connection results; perform parallel authentication on at least some devices based on the connection results to obtain authentication results; perform parallel allocation of mesh network addresses for at least some devices based on the authentication results to obtain allocation results; and generate device node information for at least some devices in parallel based on the allocation results.
[0016] Optionally, the device distribution network processing apparatus further includes: a processing module, configured to, in response to at least some devices successfully distributing to the network, remove the device identifier of the successfully distributed devices from the distribution network queue, and select new devices to be distributed to the network based on the device identifiers recorded in the distribution network queue; and add new distribution network tasks for the new devices to be distributed to the network.
[0017] Optionally, the device distribution network processing device further includes a switching module for switching mesh network connection channels based on the successful distribution sequence of at least some devices; and an acquisition module for acquiring device node information of the devices to be serially bound to the mesh network connection channel.
[0018] Optionally, the binding module is also used to determine the device name of the device to be serially bound based on the device node information of the device to be serially bound; and to serially bind the device name and the application identifier.
[0019] Optionally, the switching module is also used to add the device identifiers of at least some devices to the authentication queue based on the network configuration success order of at least some devices; and to serially switch the mesh network connection channels based on the device identifiers recorded in the authentication queue, and create serial binding tasks for the devices to be serially bound.
[0020] Optionally, the processing module is also configured to, in response to the successful binding of the device to be serially bound, remove the device identifier of the successfully bound device from the authentication queue and continue to execute the serial binding task of the next device to be serially bound.
[0021] According to one embodiment of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer-readable storage medium, and the computer program is configured to execute the device network configuration processing method described above when run by a processor.
[0022] According to one embodiment of the present invention, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the device network processing method described in any of the above embodiments.
[0023] In this embodiment of the invention, by selecting at least some devices from a plurality of devices to be configured on the network, and then performing parallel network configuration operations on at least some devices, the device node information of at least some devices is obtained. Finally, the device node information and the application identifier are serially bound, thereby achieving the goal of enabling devices to be configured on the network quickly. This achieves the technical effect of shortening the device configuration time and solves the technical problem of long device configuration time in related technologies. Attached Figure Description
[0024] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0025] Figure 1 This is a flowchart of a device distribution network processing method according to one embodiment of the present invention;
[0026] Figure 2This is a schematic diagram of a device distribution network processing method according to one embodiment of the present invention;
[0027] Figure 3 This is a schematic diagram of another device distribution network processing method according to one embodiment of the present invention;
[0028] Figure 4 This is a structural block diagram of a device for processing power distribution networks according to one embodiment of the present invention. Detailed Implementation
[0029] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0030] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0031] According to an embodiment of the present invention, a method embodiment for processing device distribution networks is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0032] This method embodiment can be executed in a device distribution network processing system. The device distribution network processing system includes: a mobile terminal and devices to be distributed.
[0033] Specifically, the aforementioned mobile terminals can be smartphones (e.g., Android phones, iOS phones, etc.), tablets, PCs, and mobile internet devices (MIDs). The devices to be configured on the network can be Bluetooth mesh network devices, such as Bluetooth mesh smart air conditioners, Bluetooth mesh smart sockets, and Bluetooth mesh smart lights.
[0034] The internal structure of the distribution network equipment will be described below.
[0035] The device to be distributed to the network may include one or more processors (processors may include, but are not limited to, central processing units (CPUs), graphics processing units (GPUs), digital signal processing (DSP) chips, micro controller units (MCUs), field programmable gate arrays (FPGAs), neural network processors (NPUs), tensor processing units (TPUs), artificial intelligence (AI) type processors, etc.) and memory for storing data.
[0036] Optionally, the aforementioned network-to-configure device may further include transmission equipment, input / output equipment, and display equipment for communication functions. Those skilled in the art will understand that the above structural description is merely illustrative and does not limit the structure of the network-to-configure device. For example, the network-to-configure device may include more or fewer components than described above, or have a different configuration.
[0037] The memory can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the device network configuration processing method in this embodiment of the invention. The processor executes various functional applications and data processing by running the computer program stored in the memory, thereby realizing the aforementioned device network configuration processing method. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include memory remotely located relative to the processor, and these remote memories can be connected to the mobile terminal via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0038] The transmission device is used to receive or send data via a network. Specific examples of the network mentioned above may include a wireless network provided by the mobile terminal's communication provider. In one example, the transmission device includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device may be a Radio Frequency (RF) module, used for wireless communication with the Internet.
[0039] Display devices can be, for example, touchscreen liquid crystal displays (LCDs) and touch displays (also referred to as "touchscreens" or "touch displays"). The LCD allows users to interact with the user interface of the mobile terminal. In some embodiments, the mobile terminal has a graphical user interface (GUI), which allows users to interact with the GUI through finger contact and / or gestures on a touch-sensitive surface. Optional human-computer interaction functions include: creating web pages, drawing, word processing, creating electronic documents, playing games, video conferencing, instant messaging, sending and receiving emails, call interfaces, playing digital video, playing digital music, and / or web browsing, etc. Executable instructions for performing the above-described device network processing methods are configured / stored in one or more processor-executable computer program products or readable storage media.
[0040] This embodiment provides a device distribution network processing method operating in the aforementioned device distribution network processing system. Figure 1 This is a flowchart of a device distribution network processing method according to one embodiment of the present invention, such as... Figure 1 As shown, the process includes the following steps:
[0041] Step S12: Select at least some of the devices from the multiple devices to be configured on the network;
[0042] Step S14: Perform parallel network distribution operation on at least some of the devices to obtain device node information for at least some of the devices;
[0043] Step S16: Serially bind the device node information and the application identifier.
[0044] In step S12 above, the device to be networked can be a Bluetooth Mesh device. Some devices can be selected from multiple Bluetooth Mesh devices with network configuration capabilities. The number of some devices can be adjusted as needed.
[0045] For example, you can select 3 Bluetooth Mesh devices from 5 Bluetooth Mesh devices to be networked, or you can select 4 Bluetooth Mesh devices from 5 Bluetooth Mesh devices to be networked.
[0046] In step S14 above, parallel network distribution operations can be performed on at least some of the devices to obtain device node information for at least some of the devices.
[0047] Specifically, the above-mentioned parallel network configuration operation is a device connection authentication. This operation is performed by the device to be configured via Bluetooth direct connection. The device connection authentication of multiple devices to be configured can be performed simultaneously, thereby shortening the device connection authentication time.
[0048] By performing parallel network configuration operations on at least some of the devices, device node information of at least some of the devices can be obtained. For example, by performing device connection authentication operations on three Bluetooth Mesh devices, device node information of the three devices can be obtained.
[0049] In step S16 above, device node information and application identifier can be serially bound.
[0050] Specifically, device node information and application identifiers can be bound serially, meaning that only one device is bound at a time, and the binding of the next device begins once the binding of the first device is complete.
[0051] Based on the above steps S12 to S16, by selecting at least some devices from multiple devices to be configured, and then performing parallel configuration operations on at least some devices, the device node information of at least some devices is obtained. Finally, the device node information and the application identifier are serially bound, thereby achieving the goal of enabling devices to quickly configure the network. This achieves the technical effect of shortening the device configuration time and solves the technical problem of long device configuration time in related technologies.
[0052] Optionally, in step S12, selecting at least a portion of the devices from the plurality of devices to be configured on the network includes:
[0053] Step S121: Scan for multiple devices to be networked via Bluetooth communication;
[0054] Step S122: Add the device identifiers of multiple devices to be distributed to the distribution queue;
[0055] Step S123: Select at least some devices based on the device identifiers recorded in the distribution network queue.
[0056] In steps S121 to S123 above, the mobile terminal scans via Bluetooth to obtain multiple devices to be networked, and then adds the device identifiers of the multiple devices to be networked to the network configuration queue. Finally, based on the device identifiers recorded in the network configuration queue, at least some devices can be selected.
[0057] For example, a mobile phone can scan for 5 Bluetooth Mesh devices to be paired with the network via Bluetooth. Then, it can add the device identifiers A, B, C, D, and E of the 5 Bluetooth Mesh devices to the pairing queue. Finally, based on the device identifiers A, B, C, D, and E recorded in the pairing queue, it can select 3 Bluetooth Mesh devices, namely device A, device B, and device C.
[0058] Based on the above steps S121 to S123, multiple devices to be networked are obtained by scanning via Bluetooth communication, and then the device identifiers of the multiple devices to be networked are added to the network configuration queue. Finally, based on the device identifiers recorded in the network configuration queue, at least some devices are selected so as to perform parallel network configuration operations on at least some devices.
[0059] Optionally, in step S14, performing parallel network distribution operations on at least some of the devices to obtain device node information for at least some of the devices includes:
[0060] Step S141: Create parallel network distribution tasks for at least some of the devices;
[0061] Step S142: Based on the parallel distribution network task, at least some devices are connected in parallel to obtain the connection results;
[0062] Step S143: Perform parallel authentication on at least some devices based on the connection results to obtain authentication results;
[0063] Step S144: Based on the authentication results, perform parallel allocation of mesh network addresses for at least some devices to obtain the allocation results;
[0064] Step S145: Based on the allocation result, generate device node information in parallel for at least some devices.
[0065] In steps S141 to S145 above, a parallel network configuration task is created for at least some devices, and a parallel connection is made to at least some devices based on the parallel network configuration task to obtain the connection result. Then, a parallel authentication is performed on at least some devices based on the connection result to obtain the authentication result. Subsequently, a mesh network address is allocated to at least some devices in parallel based on the authentication result to obtain the allocation result. Finally, device node information is generated in parallel for at least some devices based on the allocation result.
[0066] For example, a parallel network configuration task is created for Bluetooth Mesh devices A, B, and C, and Bluetooth Mesh devices A, B, and C are connected in parallel. Then, Bluetooth Mesh devices A, B, and C are authenticated in parallel. Subsequently, Mesh addresses are assigned to Bluetooth Mesh devices A, B, and C in parallel. Finally, device node information is generated in parallel for Bluetooth Mesh devices A, B, and C.
[0067] Based on the above steps S141 to S145, by creating parallel network configuration tasks for at least some devices, then connecting at least some devices in parallel based on the parallel network configuration tasks to obtain connection results, then authenticating at least some devices in parallel based on the connection results to obtain authentication results, then allocating mesh network addresses to at least some devices in parallel based on the authentication results to obtain allocation results, and finally generating device node information in parallel based on the allocation results, it is possible to perform device connection, authentication, address allocation and production of device node information in parallel, thereby shortening the device network configuration time.
[0068] Optionally, the equipment distribution network processing method also includes:
[0069] Step S151: In response to the successful network configuration of at least some devices, remove the device identifiers of the successfully configured devices from the network configuration queue, and select new devices to be configured based on the device identifiers recorded in the network configuration queue.
[0070] Step S152: Add a new network distribution task for the new device to be distributed.
[0071] In steps S151 to S152 above, when at least some devices are successfully configured to the network, the device identifiers of the successfully configured devices are removed from the network configuration queue, and new devices to be configured to the network are selected based on the device identifiers recorded in the network configuration queue, and then new network configuration tasks are added for the new devices to be configured to the network.
[0072] For example, suppose the network configuration queue records the device identifiers of Bluetooth Mesh devices A, B, C, D, and E to be configured. Mesh devices A, B, and C perform network configuration operations in parallel. When Mesh device A is successfully configured, its device identifier is removed from the network configuration queue, and a new Bluetooth Mesh device D is selected from the queue. A new network configuration task is added for Bluetooth Mesh device D. At this time, Mesh devices B, C, and D perform network configuration operations in parallel.
[0073] Based on the above steps S151 to S152, in response to the successful network configuration of at least some devices, the device identifier of the successfully configured device is removed from the network configuration queue, and a new device to be configured is selected based on the device identifier recorded in the network configuration queue. Then, a new network configuration task is added for the new device to be configured. This allows new devices to be added in a timely manner for parallel network configuration operations when the device completes the network configuration, thereby shortening the network configuration time of the device.
[0074] Optionally, the equipment distribution network processing method also includes:
[0075] Step S153: Based on the successful distribution of at least some devices, switch the mesh network connection channel sequentially;
[0076] Step S154: Obtain the device node information of the device to be serially bound corresponding to the mesh network connection channel.
[0077] In steps S153 to S154 above, the mesh network connection channel can be switched sequentially based on the successful distribution of at least some devices, thereby obtaining the device node information of the devices to be serially bound to the corresponding mesh network connection channel.
[0078] Specifically, when device A successfully connects to the network first, and device B successfully connects to the network later, device A is first switched to the proxy node of the Bluetooth Mesh connection as the sole channel for Mesh messages, and then the device node information of the device A to be serially bound to the Mesh channel is obtained.
[0079] Based on the above steps S153 to S154, the mesh network connection channel is switched sequentially based on the successful distribution of at least some devices, thereby obtaining the device node information of the device to be serially bound to the mesh network connection channel, so as to serially bind the device node information with the application identifier.
[0080] Optionally, in step S16, the serial binding of device node information and application identifier includes:
[0081] Step S161: Determine the device name of the device to be serially bound based on the device node information of the device to be serially bound;
[0082] Step S162: Serially bind the device name and the application identifier.
[0083] In steps S161 to S162 above, when serially binding device node information and application identifier, the device name of the device to be serially bound can be determined based on the device node information of the device to be serially bound, and then the device name and application identifier can be serially bound.
[0084] Based on the above steps S161 to S162, the device name of the device to be serially bound is determined based on the device node information of the device to be serially bound, and then the device name and application identifier are serially bound. Since the connection is directly via Bluetooth, there is no need to forward information through a proxy device, which can control the concurrency of information and avoid problems such as information confusion, congestion and packet loss caused by parallel operations, thereby improving communication efficiency.
[0085] Optionally, in step S153, the mesh network connection channel switching based on the successful distribution of at least some devices includes:
[0086] Step S1531: Based on the network configuration success order of at least some devices, add the device identifiers of at least some devices to the authentication queue;
[0087] Step S1532: Based on the device identifier recorded in the authentication queue, the mesh network connection channel is switched serially, and a serial binding task is created for the device to be serially bound.
[0088] In steps S1531 to S1532 above, when switching mesh network connection channels based on the network configuration success order of at least some devices, the device identifiers of at least some devices can be added to the authentication queue based on the network configuration success order of at least some devices. Then, based on the device identifiers recorded in the authentication queue, the mesh network connection channels are switched serially, and a serial binding task is created for the devices to be serially bound.
[0089] For example, if device A successfully connects to the network first, and device B successfully connects to the network later, device A's device identifier is first added to the authentication queue, and then device B's device identifier is added to the authentication queue. Device A is then switched to the proxy node of the Bluetooth Mesh connection as the only channel for Mesh messages. The device node information of the device A to be serially bound to the Mesh channel is then obtained, and a serial binding task is created for device A.
[0090] When device A completes the binding, the device identifier of device A is removed from the authentication queue, and device B is switched to the proxy node of the Bluetooth Mesh connection as the only channel for Mesh messages. Then, the device node information of the device B to be serially bound to the Mesh channel is obtained, and a serial binding task is created for device B.
[0091] Based on steps S1531 to S1532 above, by adding the device identifiers of at least some devices to the authentication queue based on the network configuration success order of at least some devices, and then serially switching the mesh network connection channel based on the device identifiers recorded in the authentication queue, and creating a serial binding task for the device to be serially bound, it is possible to avoid problems such as information confusion, congestion and packet loss caused by parallel binding operations, thereby improving communication efficiency.
[0092] Optionally, the equipment distribution network processing method also includes:
[0093] In step S1533, in response to the successful binding of the device to be serially bound, the device identifier of the successfully bound device is removed from the authentication queue, and the serial binding task of the next device to be serially bound is executed.
[0094] In step S1533 above, based on the network configuration success order of at least some devices, the device identifiers of at least some devices are added to the authentication queue.
[0095] For example, when device A completes the binding, the device identifier of device A is removed from the authentication queue, and device B is switched to the proxy node of the Bluetooth Mesh connection as the only channel for Mesh messages. Then, the device node information of the device B to be serially bound corresponding to the Mesh channel is obtained, and the serial binding task of device B is executed.
[0096] Based on the above step S1533, by responding to the successful binding of the device to be serially bound, removing the device identifier of the successfully bound device from the authentication queue, and continuing to execute the serial binding task of the next device to be serially bound, it is possible to avoid problems such as information confusion, congestion and packet loss caused by parallel binding operations, making communication more stable and thus improving communication efficiency.
[0097] Figure 2 This is a schematic diagram of a device distribution network processing method according to one embodiment of the present invention, as shown below. Figure 2 As shown, the workflow of the above-mentioned equipment distribution network processing method is as follows:
[0098] Step S201: Scan multiple devices to be networked via Bluetooth communication, add the device identifiers of the multiple devices to the network configuration queue, and select at least some devices based on the device identifiers recorded in the network configuration queue;
[0099] Step S202: Create parallel network distribution tasks for at least some devices, and perform parallel connections on at least some devices based on the parallel network distribution tasks to obtain connection results;
[0100] Step S203: Perform parallel authentication on at least some devices based on the connection results to obtain authentication results, and perform parallel mesh network address allocation on at least some devices based on the authentication results to obtain allocation results;
[0101] Step S204: Based on the allocation result, at least some devices generate device node information in parallel;
[0102] Step S205: In response to the successful network configuration of at least some devices, remove the device identifiers of the successfully configured devices from the network configuration queue, and select new devices to be configured based on the device identifiers recorded in the network configuration queue.
[0103] Step S206: Add a new network configuration task for the new device to be configured.
[0104] Step S207: Based on the network configuration success order of at least some devices, add the device identifiers of at least some devices to the authentication queue, and sequentially switch the mesh network connection channels based on the device identifiers recorded in the authentication queue.
[0105] Step S208: Create a serial bonding task for the device to be serially bonded, and obtain the device node information of the device to be serially bonded corresponding to the mesh network connection channel;
[0106] Step S209: Determine the device name of the device to be serially bound based on the device node information of the device to be serially bound, and serially bind the device name with the application identifier;
[0107] In step S210, in response to the successful binding of the device to be serially bound, the device identifier of the successfully bound device is removed from the authentication queue, and the serial binding task of the next device to be serially bound is executed.
[0108] In the above-mentioned device network configuration processing method, at least some devices are selected from multiple devices to be configured, and then parallel network configuration operations are performed on at least some devices to obtain device node information of at least some devices. Finally, the device node information and application identifier are serially bound, thereby achieving the goal of enabling devices to quickly configure the network and thus achieving the technical effect of shortening the device network configuration time. This solves the technical problem of long device network configuration time in related technologies.
[0109] Figure 3 This is a schematic diagram of another device distribution network processing method according to one embodiment of the present invention, as shown below. Figure 3 As shown, the workflow of the above-mentioned equipment distribution network processing method is as follows:
[0110] First, devices to be networked are scanned via Bluetooth, and their device identifiers are added to the network configuration queue. Devices A, B, and C are selected based on their identifiers in the queue. Parallel network configuration tasks are created for devices A, B, and C, performing parallel connection, authentication, mesh address allocation, and generating device node information for them. When a device successfully configures itself, its device identifier is added to the authentication queue based on the order of successful configuration. The successfully configured device is then removed from the queue, and a new device is selected from the pool of devices to be networked for parallel network configuration.
[0111] Then, based on the device identifier recorded in the authentication queue, the mesh network connection channel is switched serially, and a serial binding task is created for the device to be serially bound. The device name of the device to be serially bound is determined based on the device node information of the device to be serially bound.
[0112] Finally, the device name and application identifier are serially bound, and their uniqueness can be determined using the device name and product key, before being bound to the cloud. After a successful binding of the current device, the binding operation for the next device is executed.
[0113] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0114] This embodiment also provides a device distribution network processing apparatus for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0115] Figure 4 This is a structural block diagram of a device distribution network processing apparatus according to one embodiment of the present invention, such as... Figure 4As shown, the device includes: a selection module 401, used to select at least some devices from a plurality of devices to be distributed to the network; a distribution module 402, used to perform parallel distribution operations on at least some devices to obtain device node information of at least some devices; and a binding module 403, used to serially bind the device node information with the application identifier.
[0116] Optionally, the selection module 401 is further configured to scan and obtain multiple devices to be configured via Bluetooth communication; add the device identifiers of the multiple devices to be configured to the configuration queue; and select at least some of the devices based on the device identifiers recorded in the configuration queue.
[0117] Optionally, the distribution network module 402 is also used to create parallel distribution network tasks for at least some devices; perform parallel connections on at least some devices based on the parallel distribution network tasks to obtain connection results; perform parallel authentication on at least some devices based on the connection results to obtain authentication results; perform parallel allocation of mesh network addresses for at least some devices based on the authentication results to obtain allocation results; and generate device node information for at least some devices in parallel based on the allocation results.
[0118] Optionally, the device distribution network processing apparatus further includes: a processing module 404, configured to, in response to at least some devices successfully distributing to the network, remove the device identifier of the successfully distributed devices from the distribution network queue, and select new devices to be distributed to the network based on the device identifiers recorded in the distribution network queue; and add new distribution network tasks for the new devices to be distributed to the network.
[0119] Optionally, the device distribution network processing device further includes a switching module 405, used to switch the mesh network connection channel based on the successful distribution sequence of at least some devices; and an acquisition module 406, used to acquire the device node information of the device to be serially bound to the mesh network connection channel.
[0120] Optionally, the binding module 403 is also used to determine the device name of the device to be serially bound based on the device node information of the device to be serially bound; and to serially bind the device name and the application identifier.
[0121] Optionally, the switching module 405 is also used to add the device identifiers of at least some devices to the authentication queue based on the network configuration success order of at least some devices; and to serially switch the mesh network connection channels based on the device identifiers recorded in the authentication queue, and create a serial binding task for the devices to be serially bound.
[0122] Optionally, the processing module 404 is also configured to, in response to the successful binding of the device to be serially bound, remove the device identifier of the successfully bound device from the authentication queue and continue to execute the serial binding task of the next device to be serially bound.
[0123] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.
[0124] Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps of any of the above method embodiments when run by a processor.
[0125] Optionally, in this embodiment, the storage medium can be configured to perform the following steps via a computer program:
[0126] Step S1: Select at least some of the devices from the multiple devices to be configured on the network;
[0127] Step S2: Perform parallel network distribution operations on at least some of the devices to obtain device node information for at least some of the devices;
[0128] Step S3: Serially bind the device node information and the application identifier.
[0129] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing computer programs, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0130] Embodiments of the present invention also provide an electronic device including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0131] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0132] Step S1: Select at least some of the devices from the multiple devices to be configured on the network;
[0133] Step S2: Perform parallel network distribution operations on at least some of the devices to obtain device node information for at least some of the devices;
[0134] Step S3: Serially bind the device node information and the application identifier.
[0135] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0136] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0137] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.
[0138] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0139] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0140] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0141] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for processing equipment distribution networks, characterized in that, include: Multiple devices to be networked were obtained by scanning via Bluetooth communication. Add the device identifiers of the multiple devices to be distributed to the network to the distribution queue; Based on the device identifiers recorded in the distribution network queue, at least a subset of devices are selected; Perform parallel network distribution operations on at least some of the devices to generate device node information for at least some of the devices; Based on the network configuration success order of the at least some devices, the device identifiers of the at least some devices are added to the authentication queue; Based on the device identifier recorded in the authentication queue, the mesh network connection channel is switched serially, and a serial binding task is created for the device to be serially bound. Obtain the device node information of the device to be serially bound corresponding to the mesh network connection channel; The device name of the device to be serially bound is determined based on the device node information of the device to be serially bound. The device name and application identifier are serially bound, and the device name and product key are used to bind to the cloud; In response to the successful binding of the device to be serially bound, the device identifier of the successfully bound device is removed from the authentication queue, and the serial binding task of the next device to be serially bound is executed. The device network configuration processing method further includes: in response to the successful network configuration of at least some devices, removing the device identifier of the successfully configured device from the network configuration queue, and selecting a new device to be configured based on the device identifier recorded in the network configuration queue; and adding a new network configuration task for the new device to be configured.
2. The equipment distribution network processing method according to claim 1, characterized in that, Performing parallel network distribution operations on at least some of the devices to obtain the device node information of at least some of the devices includes: Create parallel network distribution tasks for at least some of the devices; Based on the parallel network distribution task, at least some of the devices are connected in parallel to obtain connection results; Based on the connection results, at least some of the devices are authenticated in parallel to obtain authentication results; Based on the authentication results, mesh network addresses are allocated in parallel to at least some of the devices to obtain allocation results; Based on the allocation result, device node information is generated in parallel for at least some of the devices.
3. A device for processing equipment distribution networks, characterized in that, include: The selection module is used to scan for multiple devices to be networked via Bluetooth communication. Add the device identifiers of the multiple devices to be distributed to the network to the distribution queue; Based on the device identifiers recorded in the distribution network queue, at least a subset of devices are selected; The distribution network module is used to perform parallel distribution network operations on at least some of the devices and generate device node information for at least some of the devices; The device is further configured to add the device identifiers of the at least some devices to the authentication queue based on the network configuration success order of the at least some devices; and to serially switch the mesh network connection channels based on the device identifiers recorded in the authentication queue, and create a serial binding task for the device to be serially bound. Obtain the device node information of the device to be serially bound corresponding to the mesh network connection channel; A binding module is used to determine the device name of the device to be serially bound based on the device node information of the device to be serially bound. The device is also used to serially bind the device name and the application identifier, and bind the device name and product key to the cloud. The device is further configured to, in response to the successful binding of the device to be serially bound, remove the device identifier of the successfully bound device from the authentication queue and continue to execute the serial binding task of the next device to be serially bound; The device is further configured to, in response to the successful network configuration of at least some devices, remove the device identifier of the successfully configured devices from the network configuration queue, and select new devices to be configured based on the device identifier recorded in the network configuration queue; and add new network configuration tasks for the new devices to be configured.
4. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the device network distribution processing method according to any one of claims 1 to 2 when run by a processor.
5. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to perform the device network distribution processing method according to any one of claims 1 to 2.
Citation Information
Patent Citations
Distribution network binding method and device of equipment, storage medium and electronic device
CN113596089A
Equipment network distribution method and device, storage medium, processor and electronic equipment
CN113810917A
