Code scanning-based networking method
By scanning a code to obtain the identifier and parameters of the BLE Mesh smart device, and using an agent device to generate a network command signal, centralized batch setting and automatic network access are achieved, solving the problems of cumbersome operation and high maintenance costs in existing technologies, and improving deployment and maintenance efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- XIAMEN PVTECH CO LTD
- Filing Date
- 2026-04-23
- Publication Date
- 2026-07-10
AI Technical Summary
Existing BLE Mesh smart devices are cumbersome to operate during network access and configuration, resulting in long deployment times and high labor costs, making it difficult to meet the needs of large-scale rapid deployment, and the maintenance costs are high when the equipment fails.
By scanning a code to obtain the identifier of the network device, setting the lifespan parameter and the network group code, and using the agent device to generate and broadcast the network formation command signal, the network device can automatically complete the network access and parameter configuration, realizing centralized batch setting and broadcast distribution.
It simplifies the networking process, reduces deployment manpower costs, improves the efficiency of rapid deployment of large-scale devices, and enables rapid replacement and maintenance in case of equipment failure, thereby improving system operation and maintenance efficiency.
Smart Images

Figure CN122373183A_ABST
Abstract
Description
Technical Field
[0001] This application relates to a networking method, and more particularly to a networking method based on QR code scanning. Background Technology
[0002] Existing BLE Mesh smart devices suffer from cumbersome operation during network access and configuration. Taking the international standard BLE Sig Mesh architecture as an example, its network identification parameters (such as network identifiers and network keys) typically need to be dynamically established and allocated collaboratively by the gateway, application, and each device joining the network during the networking process. Furthermore, the group address also needs to be set individually by the application during device operation. This mechanism requires technicians to complete network access and parameter configuration for each device individually, which is not only complex but also significantly increases deployment time and manpower costs, making it difficult to meet the needs of large-scale, rapid deployment.
[0003] In addition, while existing technical solutions use DIP switches to simplify configuration, significant limitations remain. For example, decimal DIP switches limit the number of configurable codes, making it difficult to support regional or group coding requirements. Even with binary DIP switches, while the number of codes can be expanded, the operation is not intuitive for technicians and is prone to errors. Furthermore, the device's operating parameters still need to be preset via DIP switches, and adjustments and configurations are typically required after installation, making the overall deployment process cumbersome and inflexible.
[0004] Furthermore, if equipment malfunctions, technicians need to renetwork or reconfigure the new equipment, which significantly increases time and operational costs, raising maintenance costs and reducing operational efficiency. In addition, when equipment malfunctions, technicians often need to perform renetworking or reconfiguration operations on the new equipment, which is not only cumbersome but also significantly increases deployment time and manpower, leading to a substantial increase in overall maintenance costs and further reducing system operational efficiency. Summary of the Invention
[0005] According to one embodiment of this application, a barcode-based networking method is proposed, comprising the following steps: scanning the barcodes of multiple network devices with an electronic device to obtain the identifiers of each network device, and setting a lifespan parameter, a network group code for each network device, and operating parameters for each network device; designating an agent device by the electronic device and transmitting the lifespan parameter, the identifiers of the multiple network devices, and the network group code to the agent device; generating a networking command signal by the agent device based on the lifespan parameter, the identifiers of the multiple network devices, and the network group code, and broadcasting the networking command signal through a general communication channel; upon receiving the networking command signal, any network device finds the network group code corresponding to that network device based on the networking command signal and enters the mesh network; after entering the mesh network, the network device transmits a reporting signal to the agent device through the mesh network's communication channel; and after receiving the reporting signal, the agent device sends the operating parameters of the network device to the network device through the mesh network's communication channel.
[0006] In one embodiment, the step of sending the corresponding working parameters to the network device via the communication channel of the mesh network after receiving the reporting signal through the agent device further includes: executing the working parameters of the network device through the network device.
[0007] In one embodiment, the step of sending the corresponding working parameters to the network device via the communication channel of the mesh network after receiving the reporting signal through the agent device further includes the following step: the network device transmitting a confirmation signal to the agent device.
[0008] In one embodiment, the method further includes the following steps: decrementing the lifetime parameter by 1 to generate an adjusted lifetime parameter for the network command signal when any network device receives the network command signal, and broadcasting the network command signal through a general communication channel when the adjusted lifetime parameter of the network command signal is not 0, or deleting the network command signal when the adjusted lifetime parameter of the network command signal is 0.
[0009] In one embodiment, the method further includes the following steps: scanning the barcodes of a first network device and a second network device used to replace the first network device among the plurality of network devices using an electronic device to obtain the identifiers of the first network device and the second network device; transmitting the identifiers of the first network device and the second network device to an agent device using the electronic device; searching for the network group code and operating parameters of the first network device in the mesh network using the identifier of the first network device, using them as the network group code and operating parameters of the second network device; generating a maintenance command signal based on the survival time parameter and the network group code of the second network device, and broadcasting the maintenance command signal through a general communication channel; finding the network group code corresponding to the second network device and entering the mesh network based on the maintenance command signal when the second network device receives the maintenance command signal; transmitting a reporting signal to the agent device via the communication channel of the mesh network after entering the mesh network; and sending the operating parameters of the second network device to the second network device via the communication channel of the mesh network after receiving the reporting signal.
[0010] In one embodiment, the step of sending the operating parameters of the second network device to the second network device via the communication channel of the mesh network after receiving the reporting signal through the agent device further includes the following step: executing the operating parameters of the second network device through the second network device.
[0011] In one embodiment, the step of sending the operating parameters of the second network device to the second network device via the communication channel of the mesh network after receiving the reporting signal through the agent device further includes the following step: the second network device transmitting an acknowledgment signal to the agent device.
[0012] In one embodiment, the method further includes the following steps: decrementing the lifetime parameter by 1 to generate an adjusted lifetime parameter for the maintenance command signal when any network device receives the maintenance command signal, and broadcasting the maintenance command signal through a general communication channel when the adjusted lifetime parameter of the maintenance command signal is not 0, or deleting the maintenance command signal when the adjusted lifetime parameter of the maintenance command signal is 0.
[0013] In one embodiment, the barcode is a one-dimensional barcode, a two-dimensional barcode, or a three-dimensional barcode.
[0014] In one embodiment, the general communication channel is a Bluetooth channel.
[0015] In summary, the QR code-based networking method according to the embodiments of this application may have one or more of the following advantages: (1) In one embodiment of this application, the barcode-based networking method includes the following steps: scanning the barcodes of multiple network devices with an electronic device to obtain the identifiers of each network device, and setting the lifespan parameter, the network group code of each network device, and the operating parameters of each network device; designating an agent device by the electronic device and transmitting the lifespan parameter, the identifiers of the multiple network devices, and the network group code to the agent device; generating a networking command signal by the agent device based on the lifespan parameter, the identifiers of the multiple network devices, and the network group code, and broadcasting the networking command signal through a general communication channel; when any network device receives the networking command signal, finding the network group code corresponding to the network device based on the networking command signal and entering the mesh network; transmitting a reporting signal to the agent device through the communication channel of the mesh network after entering the mesh network; and sending the operating parameters of the network device to the network device through the communication channel of the mesh network after receiving the reporting signal. As described above, through the QR code scanning mechanism, users can obtain the identifiers of each network device at once by executing an application on an electronic device, and centrally set the lifespan parameters, network group code, and operating parameters. The agent device then generates and broadcasts a network configuration command signal, enabling each network device to automatically complete network access and parameter configuration based on the command signal. By transforming the original process of configuring each device individually into a centralized batch setting combined with a broadcast mechanism, the network configuration process can be significantly simplified, reducing the steps and time consumed by manual operation, thereby effectively reducing deployment manpower costs and improving the efficiency of rapid deployment of large-scale devices.
[0016] (2) In one embodiment of this application, the identification information of each network device is directly obtained through a scanning mechanism, and the lifespan parameters, network group codes, and working parameters are uniformly set in the application, transforming the setting process from a multi-step, decentralized operation to a centralized operation through a single interface. This not only reduces the complexity of user operation but also avoids parameter errors caused by manual input or multiple settings, thereby improving the accuracy and stability of the settings.
[0017] (3) In one embodiment of this application, the operating parameters of all network devices can be synchronously set by the electronic device after scanning the code, without the need for pre-configuration before device installation or adjustment after installation. This decoupling mechanism between installation and configuration makes the device deployment process more flexible and allows for real-time adjustment of parameter configurations according to actual application needs, thereby improving the system's adaptability and scalability in different scenarios.
[0018] (4) In one embodiment of this application, the method further includes the following steps: scanning the barcodes of the first network device and the second network device used to replace the first network device among the plurality of network devices by an electronic device to obtain the identifiers of the first network device and the second network device; transmitting the identifiers of the first network device and the second network device to the agent device by the electronic device; searching for the network group code and operating parameters of the first network device in the mesh network by the agent device according to the identifier of the first network device, so as to serve as the network group code and operating parameters of the second network device; generating a maintenance command signal by the agent device according to the survival time parameter and the network group code of the second network device, and broadcasting the maintenance command signal through a general communication channel; finding the network group code corresponding to the second network device according to the maintenance command signal when the second network device receives the maintenance command signal and entering the mesh network; transmitting a reporting signal to the agent device through the communication channel of the mesh network after entering the mesh network; and sending the operating parameters of the second network device to the second network device through the communication channel of the mesh network after receiving the reporting signal by the agent device. Through the aforementioned scanning mechanism, when a device malfunctions, users can scan the identification information of both the new and original devices. This allows the new device (the second network device) to automatically inherit the network configuration and operating parameters of the faulty original device (the first network device), enabling rapid replacement. This avoids the time and operational costs associated with renetworking or reconfiguration, effectively shortening maintenance time and reducing manpower requirements, thereby improving overall system operational efficiency.
[0019] (5) In one embodiment of this application, the method can be widely applied to various intelligent application scenarios, such as intelligent parking lots, smart homes, and smart factories. Due to its characteristics of rapid deployment, centralized configuration, and convenient maintenance, it can reduce system implementation and operation costs, and improve system expansion and management efficiency. Therefore, this method is not only more widely applicable, but also in line with future development trends. Attached Figure Description
[0020] Figure 1 This is a schematic diagram of a lighting system according to the first embodiment of this application.
[0021] Figure 2 This is a first schematic diagram showing the operation of the lighting system according to the first embodiment of this application.
[0022] Figure 3 This is a second schematic diagram showing the operation of the lighting system according to the first embodiment of this application.
[0023] Figure 4 This is a third schematic diagram showing the operation of the lighting system according to the first embodiment of this application.
[0024] Figure 5 This is a fourth schematic diagram showing the operation of the lighting system according to the first embodiment of this application.
[0025] Figure 6 This is a flowchart of a QR code-based networking method according to the first embodiment of this application.
[0026] Figure 7 This is a schematic diagram of a lighting system according to a second embodiment of this application.
[0027] Figure 8 This is a first schematic diagram of the operating state of the lighting system according to the second embodiment of this application.
[0028] Figure 9 This is a second schematic diagram showing the operation of the lighting system according to the second embodiment of this application.
[0029] Figure 10 This is a third schematic diagram showing the operation of the lighting system according to the second embodiment of this application.
[0030] Figure 11 This is a fourth schematic diagram showing the operation of the lighting system according to the second embodiment of this application.
[0031] Figure 12 This is a flowchart of a QR code-based networking method according to a second embodiment of this application.
[0032] Explanation of reference numerals in the attached figures: 1-Lighting system; 11-Control device; 12A, 12B, 12C, 12D, 12E-Network device; MD-Electronic device; Gs-Network command signal; Ms-Maintenance command signal; Rs1~Rs5-Reporting signal; Ws1~Ws5-Operating parameters; As1~As5-Confirmation signal; S61~S68, S121~S129-Procedure flow.
[0033] The following detailed description of the features and advantages of this application is sufficient to enable anyone skilled in the art to understand the technical content of this application and implement it accordingly. Based on the content disclosed in this specification, the claims and drawings, anyone skilled in the art can easily understand the related objectives and advantages of this application. Detailed Implementation
[0034] The following description, with reference to relevant figures, illustrates embodiments of the QR code-based networking method according to this application. For clarity and ease of illustration, the dimensions and proportions of the components in the figures may be exaggerated or reduced. In the following description and / or claims, when a component is referred to as "connected" or "coupled" to another component, it may be directly connected or coupled to that other component or there may be an intervening component; when a component is referred to as "directly connected" or "directly coupled" to another component, there is no intervening component. Other terms used to describe the relationship between components or layers should be interpreted in the same manner. For ease of understanding, the same components in the following embodiments are indicated by the same symbols.
[0035] Please see Figure 1 , Figure 2 , Figure 3 , Figure 4 and Figure 5 . Figure 1 This is a schematic diagram of a lighting system according to the first embodiment of this application. Figure 2 This is a first schematic diagram showing the operation of the lighting system according to the first embodiment of this application. Figure 3 This is a second schematic diagram showing the operation of the lighting system according to the first embodiment of this application. Figure 4 This is a third schematic diagram showing the operation of the lighting system according to the first embodiment of this application. Figure 5 This is a fourth schematic diagram illustrating the operational state of the lighting system according to the first embodiment of this application. Figure 1 As shown, the lighting system 1 includes a control device 11 and multiple network devices 12A, 12B, 12C, and 12D (only four network devices 12A, 12B, 12C, and 12D are shown in the figure. The number of network devices 12A, 12B, 12C, and 12D is only for example and convenience of illustration, and this application is not limited thereto). The aforementioned multiple network devices 12A, 12B, 12C, and 12D can be installed in a target area (such as an office building, parking lot, factory, etc.) and in different sub-areas of the target area (e.g., the aforementioned multiple network devices 12A, 12B, 12C, and 12D can be installed in the conference room and offices of an office building, respectively). In this embodiment, the control device 11 can be a control panel. In another embodiment, the control device 11 can be a gateway, a lighting device, or other similar device. In this embodiment, the aforementioned multiple network devices 12A, 12B, 12C, and 12D are lighting devices. In another embodiment, the aforementioned network devices 12A, 12B, 12C, and 12D may also be sensors (such as temperature sensors, humidity sensors, smoke sensors, light sensors, or other various sensors).
[0036] like Figure 2As shown, a user can use the electronic device MD to execute an application to scan the barcodes of the aforementioned network devices 12A, 12B, 12C, and 12D to obtain the identifiers of these network devices 12A, 12B, 12C, and 12D. The user can then set a lifespan parameter, the network group code for all network devices 12, and operating parameters Ws1, Ws2, Ws3, and Ws4. For example, network devices 12A and 12B are both located in a conference room and therefore have the same network group code; network devices 12C and 12D are both located in an office and therefore have the same network group code. For example, operating parameters Ws1, Ws2, Ws3, and Ws4 can be brightness, color temperature, startup time, etc. In this embodiment, the electronic device MD can be a smartphone. In another embodiment, the electronic device MD can also be a personal computer, tablet computer, laptop computer, or other similar device. In this embodiment, the barcode can be a two-dimensional barcode. In another embodiment, the barcode can also be a one-dimensional or three-dimensional barcode. In another embodiment, the electronic device MD may store a preset list of qualified devices. If the identifier of any of the aforementioned network devices 12A, 12B, 12C, and 12D is not in this preset list of qualified devices, the electronic device MD will directly delete the relevant data of this device to exclude it.
[0037] Then, the user can search for a suitable device through the electronic device MD, designate this device as the proxy device, and transmit the lifespan parameter, the identifiers of the aforementioned network devices 12A, 12B, 12C, and 12D, and the network group code to the control device 11 (proxy device). The proxy device can be a gateway, a lighting device, or other devices with a stable power supply. In this embodiment, the user can designate the control device 11 as the proxy device through the electronic device MD. In another embodiment, the user can also directly use the electronic device MD as the proxy device. In yet another embodiment, the electronic device MD can also automatically designate a proxy device. For example, the electronic device MD can select one of the nearby devices as the proxy device based on one or more of the signal strength, power supply status, and online duration. The electronic device MD can designate a device with a signal strength greater than a strength threshold, a stable power supply status, and an online duration greater than an online duration threshold as the proxy device (the above thresholds can be set according to actual needs). Through the above-described automatic proxy designation mechanism, the electronic device MD can designate the most suitable proxy device to perform subsequent operations.
[0038] Next, the control device 11 (agent device) generates a network formation command signal Gs based on the survival time parameter, the identifiers of the plurality of network devices 12A, 12B, 12C, and 12D, and the network group code, and broadcasts the network formation command signal Gs through a universal communication channel. In this embodiment, the universal communication channel can be a Bluetooth channel. In another embodiment, the universal communication channel can also be other common communication channels.
[0039] like Figure 3 As shown, next, when any network device receives the networking command signal Gs, it finds the network group code corresponding to its own network based on the networking command signal Gs and enters the (Bluetooth) mesh network. For example, when network device 12A receives the networking command signal Gs, it finds the network group code corresponding to its own network based on the networking command signal Gs and enters the mesh network. Network devices 12B, 12C, and 12D also perform the same operation.
[0040] Then, after entering the mesh network, each network device transmits a check-in signal to the control device 11 (agent device) via the mesh network's communication channel. For example, network device 12A transmits a check-in signal Rs1 to the control device 11 (agent device) via the mesh network's communication channel after entering the mesh network. Network device 12B transmits a check-in signal Rs2 to the control device 11 (agent device) via the mesh network's communication channel after entering the mesh network. Network device 12C transmits a check-in signal Rs3 to the control device 11 (agent device) via the mesh network's communication channel after entering the mesh network. Network device 12D transmits a check-in signal Rs4 to the control device 11 (agent device) via the mesh network's communication channel after entering the mesh network.
[0041] like Figure 4 As shown, next, after receiving the reporting signals from each network device, the control device 11 (agent device) sends the operating parameters of that network device to that network device through the communication channel of the mesh network. For example, after receiving the reporting signal Rs1 from network device 12A, the control device 11 (agent device) sends its operating parameters Ws1 to network device 12A through the communication channel of the mesh network. After receiving the reporting signal Rs2 from network device 12B, the control device 11 (agent device) sends its operating parameters Ws2 to network device 12B through the communication channel of the mesh network. After receiving the reporting signal Rs3 from network device 12C, the control device 11 (agent device) sends its operating parameters Ws3 to network device 12C through the communication channel of the mesh network. After receiving the reporting signal Rs4 from network device 12D, the control device 11 (agent device) sends its operating parameters Ws4 to network device 12D through the communication channel of the mesh network.
[0042] like Figure 5 As shown, each network device then executes its corresponding operating parameters and transmits an acknowledgment signal to the control device 11 (agent device). For example, network device 12A executes the corresponding operating parameter Ws1 and transmits an acknowledgment signal As1 to the control device 11 (agent device). Network device 12B executes the corresponding operating parameter Ws2 and transmits an acknowledgment signal As2 to the control device 11 (agent device). Network device 12C executes the corresponding operating parameter Ws3 and transmits an acknowledgment signal As3 to the control device 11 (agent device). Network device 12D executes the corresponding operating parameter Ws4 and transmits an acknowledgment signal As4 to the control device 11 (agent device).
[0043] The control device 11 (agent device) can determine whether any network device has not entered the mesh network (networking not completed) based on the identifier and the reporting signal. For example, if the control device 11 (agent device) has stored the identifier of network device 12D but has not received the reporting signal Rs4 from network device 12D, the control device 11 can execute a retransmission mechanism to rebroadcast the network command signal Gs until a preset number of retransmissions is reached or network device 12D enters the mesh network. The above-mentioned retransmission mechanism can effectively increase the robustness of the lighting system 1 to ensure that all network devices 12A, 12B, 12C, and 12D can enter the mesh network. The control device 11 (agent device) can also generate a network report based on the network status of all network devices 12A, 12B, 12C, and 12D and transmit it to the electronic device MD, allowing the user to know the network status of all network devices 12A, 12B, 12C, and 12D.
[0044] As described above, through the scanning mechanism, users can obtain the identifiers of all network devices 12A, 12B, 12C, and 12D at once by executing an application on the electronic device MD. They can then centrally set the lifespan parameters, network group codes, and operating parameters Ws1, Ws2, Ws3, and Ws4. The control device 11 (agent device) then generates and broadcasts the network configuration command signal Gs, enabling all network devices 12A, 12B, 12C, and 12D to automatically complete network access and parameter configuration based on the Gs. By transforming the original process of configuring each device individually into a centralized batch setting combined with a broadcast mechanism, the network configuration process is significantly simplified, reducing the steps and time spent on manual operations, thereby effectively reducing deployment manpower costs and improving the efficiency of rapid deployment of large-scale devices.
[0045] Furthermore, when any network device receives the network command signal Gs, it decrements the lifetime parameter of Gs by 1 to generate an adjusted lifetime parameter. When the adjusted lifetime parameter of Gs is not 0, the network device broadcasts Gs through the general communication channel. Conversely, when the adjusted lifetime parameter of Gs is 0, the network device deletes Gs. For example, the lifetime parameter is 4. When network device 12A receives the network command signal Gs, it decrements the lifetime parameter of Gs by 1; since the adjusted lifetime parameter of Gs is 3 (not 0), network device 12A broadcasts Gs through the general communication channel. Similarly, when network device 12B receives the networking command signal Gs, it decrements the lifetime parameter of Gs by 1. Since the adjusted lifetime parameter of Gs is 2 (not 0), network device 12B broadcasts Gs through the general communication channel. When network device 12C receives the networking command signal Gs, it decrements the lifetime parameter of Gs by 1. Since the adjusted lifetime parameter of Gs is 1 (not 0), network device 12C broadcasts Gs through the general communication channel. When network device 12D receives the networking command signal Gs, it decrements the lifetime parameter of Gs by 1. Since the adjusted lifetime parameter of Gs is 0, network device 12D deletes Gs. This lifetime mechanism ensures that the networking command signal Gs is not broadcast indefinitely, automatically stopping its propagation after the lifetime expires. This effectively prevents the network command signal Gs from being broadcast repeatedly and indefinitely in the mesh network, thus avoiding signal storms or cyclic propagation.
[0046] Of course, this embodiment is only for illustrative purposes and is not intended to limit the scope of this application. Equivalent modifications or changes made to the lighting system 1 according to this embodiment should still be included within the patent scope of this application.
[0047] Please see Figure 6 The flowchart illustrates the QR code-based networking method of the first embodiment of this application. As shown in the figure, the QR code-based networking method of this embodiment includes the following steps: Step S61: Scan the barcodes of multiple network devices using an electronic device to obtain the identifiers of each network device, and set the lifespan parameters, network group codes, and operating parameters of each network device.
[0048] Step S62: The electronic device designates the agent device.
[0049] Step S63: The agent device generates a networking command signal based on the lifespan parameter, the identifiers of the aforementioned multiple network devices, and the network group code, and broadcasts the networking command signal through the general communication channel.
[0050] Step S64: When any network device receives the networking command signal, it finds the network group code corresponding to the network device according to the networking command signal and enters the mesh network.
[0051] Step S65: After entering the mesh network, the network device transmits a reporting signal to the agent device via the mesh network's communication channel.
[0052] Step S66: After receiving the reporting signal, the agent device sends the operating parameters of the network device to the network device through the communication channel of the mesh network.
[0053] Step S67: Execute the operating parameters of the network device through the network device.
[0054] Step S68: The network device transmits a confirmation signal to the agent device.
[0055] Of course, this embodiment is only for illustrative purposes and is not intended to limit the scope of this application. Equivalent modifications or changes made to the QR code-based networking method according to this embodiment should still be included within the patent scope of this application.
[0056] Although the steps of the methods described in this application are shown and described in a specific order, the order of operation of each method may be changed, some steps may be performed in reverse order, or some steps may be performed simultaneously with other steps. In another embodiment, different steps may be implemented in an intermittent and / or alternating manner.
[0057] It's worth noting that existing BLE Mesh smart devices suffer from cumbersome operation during network access and configuration. Taking the international standard BLE Sig Mesh architecture as an example, its network identification parameters (such as network identifiers and network keys) typically need to be dynamically established and allocated collaboratively by the gateway, application, and each network-connected device during the network setup process. Furthermore, group addresses also need to be set individually through the application during device operation. This mechanism requires technicians to complete network access and parameter configuration for each device individually, which is not only complex but also significantly increases deployment time and manpower costs, making it difficult to meet the needs of large-scale rapid deployment. In addition, there are existing technical solutions that use DIP switches to simplify configuration, but these still have significant limitations. For example, when using decimal DIP switches, the configurable... This mechanism requires each device to complete network access and parameter configuration individually, which not only complicates the process but also significantly increases deployment time and manpower costs, making it difficult to meet the needs of large-scale rapid deployment.
[0058] In addition, existing technical solutions that use DIP switches to simplify configuration still have significant limitations. For example, when using decimal DIP switches, the number of codes that can be set is limited, making it difficult to support the permissive use of region codes or group codes. Conversely, according to embodiments of this application, the barcode-based networking method includes the following steps: scanning the barcodes of multiple network devices with an electronic device to obtain the identifiers of each network device, and setting a lifespan parameter, a network group code for each network device, and operating parameters for each network device; designating an agent device by the electronic device and transmitting the lifespan parameter, the identifiers of the multiple network devices, and the network group code to the agent device; generating a networking command signal by the agent device based on the lifespan parameter, the identifiers of the multiple network devices, and the network group code, and broadcasting the networking command signal through a general communication channel; upon receiving the networking command signal, any network device finds the network group code corresponding to that network device based on the networking command signal and enters the mesh network; after entering the mesh network, the network device transmits a check-in signal to the agent device through the mesh network's communication channel; and after receiving the check-in signal, the agent device sends the operating parameters of the network device to the network device through the mesh network's communication channel. As described above, through the QR code scanning mechanism, users can obtain the identifiers of each network device at once by executing an application on an electronic device, and centrally set the lifespan parameters, network group code, and operating parameters. The agent device then generates and broadcasts a network configuration command signal, enabling each network device to automatically complete network access and parameter configuration based on the command signal. By transforming the original process of configuring each device individually into a centralized batch setting combined with a broadcast mechanism, the network configuration process can be significantly simplified, reducing the steps and time consumed by manual operation, thereby effectively reducing deployment manpower costs and improving the efficiency of rapid deployment of large-scale devices.
[0059] Furthermore, according to embodiments of this application, identification information of each network device is directly obtained through a barcode scanning mechanism, and the lifespan parameters, network group codes, and operating parameters are uniformly set in the application, transforming the setting process from a multi-step, distributed operation to a centralized operation through a single interface. This not only reduces the complexity of user operation but also avoids parameter errors caused by manual input or multiple settings, thereby improving setting accuracy and stability.
[0060] Furthermore, according to embodiments of this application, the operating parameters of all network devices can be synchronously set by the electronic device after scanning the code, eliminating the need for pre-configuration before device installation and for individual adjustments after installation. This decoupling mechanism between installation and configuration makes the device deployment process more flexible and allows for real-time adjustment of parameter configurations according to actual application needs, thereby improving the system's adaptability and scalability in different scenarios.
[0061] Furthermore, according to the embodiments of this application, the above method can be widely applied to various intelligent application scenarios, such as smart parking lots, smart homes, and smart factories. Due to its characteristics of rapid deployment, centralized configuration, and convenient maintenance, it can reduce system implementation and operation costs, and improve system expansion and management efficiency. Therefore, this method is not only more widely applicable but also in line with future development trends. As can be seen from the above, the QR code-based networking method according to the embodiments of this application can indeed achieve excellent technical results.
[0062] Please see Figure 7 , Figure 8 , Figure 9 , Figure 10 and Figure 11 Please also refer to Figure 1 . Figure 7 This is a schematic diagram of a lighting system according to a second embodiment of this application. Figure 8 This is a first schematic diagram of the operating state of the lighting system according to the second embodiment of this application. Figure 9 This is a second schematic diagram showing the operation of the lighting system according to the second embodiment of this application. Figure 10 This is a third schematic diagram showing the operation of the lighting system according to the second embodiment of this application. Figure 11 This is a fourth schematic diagram illustrating the operation of the lighting system according to the second embodiment of this application. As shown, if network device 12D malfunctions, the user can scan the barcodes of the malfunctioning network device 12D (first network device) and the network device 12E (second network device) used to replace the malfunctioning network device 12D (first network device) using the electronic device MD to obtain the identifiers of the malfunctioning network device 12D (first network device) and the network device 12E (second network device). Then, the user transmits the identifiers of the malfunctioning network device 12D (first network device) and the network device 12E (second network device) to the control device 11 (agent device) via the electronic device MD.
[0063] Next, the control device 11 (agent device) searches for the network group code and operating parameters Ws4 of the faulty network device 12D (first network device) in the mesh network based on the identifier of the faulty network device 12D (first network device) as the network group code and operating parameters Ws5 of the network device 12E (second network device).
[0064] like Figure 8 As shown, the control device 11 (agent device) then generates a maintenance command signal Ms based on the survival time parameter and the network group code of the network device 12E (second network device), and broadcasts the maintenance command signal Ms through the general communication channel.
[0065] like Figure 9As shown, next, when the network device 12E (second network device) receives the maintenance command signal Ms, it finds the corresponding network group code based on the maintenance command signal Ms and enters the mesh network.
[0066] Next, after entering the mesh network, the network device 12E (second network device) transmits the arrival signal Rs5 to the control device 11 (agent device) via the communication channel of the mesh network.
[0067] like Figure 10 As shown, after receiving the reporting signal Rs5, the control device 11 (agent device) then sends the operating parameters Ws5 of the network device 12E (second network device) to the network device 12E (second network device) through the communication channel of the mesh network.
[0068] like Figure 11 As shown, next, network device 12E (second network device) executes the corresponding operating parameters Ws5 and transmits confirmation signal As5 to control device 11 (agent device).
[0069] Through the aforementioned scanning mechanism, when a device malfunctions, users can scan the identification information of both the new and original devices. This allows the new device (the second network device) to automatically inherit the network configuration and operating parameters of the faulty original device (the first network device), enabling rapid replacement. This avoids the time and operational costs associated with renetworking or reconfiguration, effectively shortening maintenance time and reducing manpower requirements, thereby improving overall system operational efficiency.
[0070] Similarly, when any network device receives a maintenance command signal Ms, it decrements the lifetime parameter of the maintenance command signal Ms by 1 to generate an adjusted lifetime parameter. When the adjusted lifetime parameter of the maintenance command signal Ms is not 0, the network device broadcasts the maintenance command signal Ms through the general communication channel. Conversely, when the adjusted lifetime parameter of the maintenance command signal Ms is 0, the network device deletes the maintenance command signal Ms. For example, the lifetime parameter is 4. When network device 12A receives the maintenance command signal Ms, it decrements the lifetime parameter of the maintenance command signal Ms by 1; since the adjusted lifetime parameter of the maintenance command signal Ms is 3 (not 0), network device 12A broadcasts the maintenance command signal Ms through the general communication channel. Similarly, when network device 12B receives the maintenance command signal Ms, it decrements the lifetime parameter of the maintenance command signal Ms by 1; since the adjusted lifetime parameter of the maintenance command signal Ms is 2 (not 0), network device 12B broadcasts the maintenance command signal Ms through the general communication channel. When network device 12C receives the maintenance command signal Ms, it decrements the lifespan parameter of the maintenance command signal Ms by 1. Since the adjusted lifespan parameter of the maintenance command signal Ms is 1 (not 0), network device 12C broadcasts the maintenance command signal Ms through the general communication channel. When network device 12E receives the maintenance command signal Ms, it decrements the lifespan parameter of the maintenance command signal Ms by 1. Since the adjusted lifespan parameter of the maintenance command signal Ms is 0, network device 12E deletes the maintenance command signal Ms. The above-mentioned lifespan mechanism ensures that the maintenance command signal Ms is not broadcast indefinitely, and automatically stops propagating after the maintenance command signal Ms exceeds its lifespan. This effectively avoids the situation where the maintenance command signal Ms is repeatedly broadcast indefinitely in the mesh network, causing signal storms or cyclic propagation.
[0071] Of course, this embodiment is only for illustrative purposes and is not intended to limit the scope of this application. Equivalent modifications or changes made to the lighting system 1 according to this embodiment should still be included within the patent scope of this application.
[0072] Please see Figure 12 The flowchart illustrates the QR code-based networking method of the second embodiment of this application. As shown in the figure, the QR code-based networking method of this embodiment includes the following steps: Step S121: Scan the barcodes of the first network device and the second network device used to replace the first network device among the plurality of network devices using an electronic device to obtain the identifiers of the first network device and the second network device.
[0073] Step S122: The electronic device transmits the identifiers of the first network device and the second network device to the agent device.
[0074] Step S123: The agent device searches for the network group code and operating parameters of the first network device in the mesh network based on the identifier of the first network device, so as to use them as the network group code and operating parameters of the second network device.
[0075] Step S124: The agent device generates a maintenance command signal based on the survival time parameter and the network group code of the second network device, and broadcasts the maintenance command signal through the general communication channel.
[0076] Step S125: When the second network device receives the maintenance command signal, it finds the network group code corresponding to the second network device according to the maintenance command signal and enters the mesh network.
[0077] Step S126: After entering the mesh network, the second network device transmits a reporting signal to the agent device via the communication channel of the mesh network.
[0078] Step S127: After receiving the reporting signal, the agent device sends the operating parameters of the second network device to the second network device through the communication channel of the mesh network.
[0079] Step S128: Execute the operating parameters of the second network device through the second network device.
[0080] Step S129: The second network device transmits a confirmation signal to the agent device.
[0081] Of course, this embodiment is only for illustrative purposes and is not intended to limit the scope of this application. Equivalent modifications or changes made to the QR code-based networking method according to this embodiment should still be included within the patent scope of this application.
[0082] Although the steps of the methods described in this application are shown and described in a specific order, the order of operation of each method may be changed, some steps may be performed in reverse order, or some steps may be performed simultaneously with other steps. In another embodiment, different steps may be implemented in an intermittent and / or alternating manner.
[0083] Of course, this embodiment is only for illustrative purposes and is not intended to limit the scope of this application. Equivalent modifications or changes made to the QR code-based networking method according to this embodiment should still be included within the patent scope of this application.
[0084] In summary, according to the embodiments of this application, the barcode-based networking method includes the following steps: scanning the barcodes of multiple network devices with an electronic device to obtain the identifiers of each network device, and setting a lifespan parameter, a network group code for each network device, and operating parameters for each network device; designating an agent device by the electronic device and transmitting the lifespan parameter, the identifiers of the multiple network devices, and the network group code to the agent device; generating a networking command signal by the agent device based on the lifespan parameter, the identifiers of the multiple network devices, and the network group code, and broadcasting the networking command signal through a general communication channel; upon receiving the networking command signal, any network device finds the network group code corresponding to that network device based on the networking command signal and enters the mesh network; after entering the mesh network, the network device transmits a reporting signal to the agent device through the mesh network's communication channel; and after receiving the reporting signal, the agent device sends the operating parameters of the network device to the network device through the mesh network's communication channel. As described above, through the QR code scanning mechanism, users can obtain the identifiers of each network device at once by executing an application on an electronic device, and centrally set the lifespan parameters, network group code, and operating parameters. The agent device then generates and broadcasts a network configuration command signal, enabling each network device to automatically complete network access and parameter configuration based on the command signal. By transforming the original process of configuring each device individually into a centralized batch setting combined with a broadcast mechanism, the network configuration process can be significantly simplified, reducing the steps and time consumed by manual operation, thereby effectively reducing deployment manpower costs and improving the efficiency of rapid deployment of large-scale devices.
[0085] Furthermore, according to embodiments of this application, identification information of each network device is directly obtained through a barcode scanning mechanism, and the settings of lifespan parameters, network group codes, and operating parameters are uniformly completed in the application, transforming the setting process from a multi-step, distributed operation to a centralized operation through a single interface. This not only reduces the complexity of user operation but also avoids parameter errors caused by manual input or multiple settings, thereby improving setting accuracy and stability.
[0086] Furthermore, according to embodiments of this application, the operating parameters of all network devices can be synchronously set by the electronic device after scanning the code, eliminating the need for pre-configuration before device installation and for individual adjustments after installation. This decoupling mechanism between installation and configuration makes the device deployment process more flexible and allows for real-time adjustment of parameter configurations according to actual application needs, thereby improving the system's adaptability and scalability in different scenarios.
[0087] Additionally, according to embodiments of this application, the method further includes the following steps: scanning the barcodes of a first network device and a second network device used to replace the first network device among the plurality of network devices using an electronic device to obtain the identifiers of the first network device and the second network device; transmitting the identifiers of the first network device and the second network device to an agent device using the electronic device; searching for the network group code and operating parameters of the first network device in the mesh network using the identifier of the first network device, using them as the network group code and operating parameters of the second network device; generating a maintenance command signal based on the survival time parameter and the network group code of the second network device, and broadcasting the maintenance command signal through a general communication channel; finding the network group code corresponding to the second network device and entering the mesh network based on the maintenance command signal when the second network device receives the maintenance command signal; transmitting a reporting signal to the agent device via the communication channel of the mesh network after entering the mesh network; and sending the operating parameters of the second network device to the second network device via the communication channel of the mesh network after receiving the reporting signal. Through the aforementioned scanning mechanism, when a device malfunctions, users can scan the identification information of both the new and original devices. This allows the new device (the second network device) to automatically inherit the network configuration and operating parameters of the faulty original device (the first network device), enabling rapid replacement. This avoids the time and operational costs associated with renetworking or reconfiguration, effectively shortening maintenance time and reducing manpower requirements, thereby improving overall system operational efficiency.
[0088] Furthermore, according to the embodiments of this application, the above method can be widely applied to various intelligent application scenarios, such as smart parking lots, smart homes, and smart factories. Due to its characteristics of rapid deployment, centralized configuration, and convenient maintenance, it can reduce system implementation and operation costs, and improve system expansion and management efficiency. Therefore, this method is not only more widely applicable but also in line with future development trends.
[0089] It should be noted that although the above embodiments have been described herein, this does not limit the scope of patent protection of this application. Therefore, any changes and modifications made to the embodiments described herein based on the innovative concept of this application, or equivalent structural or procedural transformations made using the content of this application's specification and drawings, directly or indirectly applying the above technical solutions to other related technical fields, are all included within the scope of protection of this patent application.
Claims
1. A networking method based on QR code scanning, characterized in that, include: The identifier of each network device is obtained by scanning the barcode of multiple network devices with an electronic device, and the lifespan parameter, the network group code of each network device and the operating parameters of each network device are set. The electronic device designates an agent device and transmits the survival time parameter, the identifiers of the plurality of network devices, and the network group codes of the plurality of network devices to the agent device. The agent device generates the networking command signal based on the survival time parameter, the identifiers of the plurality of network devices, and the network group codes of the plurality of network devices, and broadcasts the networking command signal through a general communication channel; Upon receiving the networking command signal, any of the network devices can find the network group code corresponding to the network device based on the networking command signal and enter the mesh network. After entering the mesh network, the network device transmits a reporting signal to the agent device via the communication channel of the mesh network; as well as Upon receiving the reporting signal, the agent device sends the network device's operating parameters to the network device via the communication channel of the mesh network.
2. The networking method based on QR code scanning as described in claim 1, characterized in that, The step of sending the network device's operating parameters to the network device via the communication channel of the mesh network after receiving the reporting signal through the agent device further includes: The network device executes the network device's operating parameters.
3. The networking method based on QR code scanning as described in claim 2, characterized in that, The step of sending the network device's operating parameters to the network device via the communication channel of the mesh network after receiving the reporting signal through the agent device further includes: The network device transmits a confirmation signal to the agent device.
4. The networking method based on QR code scanning as described in claim 1, characterized in that, Also includes: When any of the network devices receives the networking command signal, it decrements the lifetime parameter by 1 to generate an adjusted lifetime parameter for the networking command signal, and broadcasts the networking command signal through the general communication channel when the adjusted lifetime parameter of the networking command signal is not 0, or deletes the networking command signal when the adjusted lifetime parameter of the networking command signal is 0.
5. The networking method based on QR code scanning as described in claim 1, characterized in that, Also includes: The electronic device scans the barcodes of the first network device and the second network device (used to replace the first network device) among the plurality of network devices to obtain the identifiers of the first network device and the second network device. The electronic device transmits the identifiers of the first network device and the second network device to the agent device. The agent device searches the mesh network for the network group code and operating parameters of the first network device based on the identifier of the first network device, and uses them as the network group code and operating parameters of the second network device. The agent device generates a maintenance command signal based on the survival time parameter and the network group code of the second network device, and broadcasts the maintenance command signal through the general communication channel. When the second network device receives the maintenance command signal, it finds the network group code corresponding to the second network device based on the maintenance command signal and enters the mesh network. After entering the mesh network, the second network device transmits the arrival signal to the agent device via the communication channel of the mesh network; as well as Upon receiving the reporting signal, the agent device sends the operating parameters of the second network device to the second network device via the communication channel of the mesh network.
6. The networking method based on QR code scanning as described in claim 5, characterized in that, The step of sending the operating parameters of the second network device to the second network device via the communication channel of the mesh network after receiving the reporting signal through the agent device further includes: The operating parameters of the second network device are executed through the second network device.
7. The networking method based on QR code scanning as described in claim 6, characterized in that, The step of sending the operating parameters of the second network device to the second network device via the communication channel of the mesh network after receiving the reporting signal through the agent device further includes: The confirmation signal is transmitted from the second network device to the agent device.
8. The networking method based on QR code scanning as described in claim 5, characterized in that, Also includes: When any of the network devices receives the maintenance command signal, it decrements the lifetime parameter by 1 to generate an adjusted lifetime parameter for the maintenance command signal, and broadcasts the maintenance command signal through the general communication channel when the adjusted lifetime parameter of the maintenance command signal is not 0, or deletes the maintenance command signal when the adjusted lifetime parameter of the maintenance command signal is 0.
9. The networking method based on QR code scanning as described in claim 1, characterized in that, The barcode can be a one-dimensional barcode, a two-dimensional barcode, or a three-dimensional barcode.
10. The networking method based on QR code scanning as described in claim 1, characterized in that, The general communication channel is a Bluetooth channel.