Method for adding wireless lamps in target area to access network through applet
The wireless lights in the target area are identified through mini-program scanning and flashing instructions, which solves the problem of inconvenient pairing of wireless lights that are not connected to the network, and achieves fast network access and simple operation.
Patent Information
- Application Number
- CN202310722775.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-16
- Publication Date
- 2024-12-27
AI Technical Summary
When there are a large number of wireless lights that are not connected to the network within the target area, it is impossible to quickly and intuitively pair the network, and the operation is inconvenient.
The received MeshBeacon message is scanned through the applet, and the flash command is sent cycle to identify the wireless lights in the target area, and stop sending the Beacon message after successful network entry, realizing the fast positioning and network entry operation of the wireless lights.
It realizes rapid and intuitive positioning and network access pairing in the target area. After successful network access, the wireless light will no longer be displayed in the unnetted list, making the operation simple and efficient.
Smart Images

Figure CN119212039A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communications, and in particular to a method for adding wireless lights in a target area to a network through a small program. Background Art
[0002] The existing wireless light pairing technology displays all scanned lights and then pairs them one by one. Unless the pairing is successful, it is impossible to determine in advance whether the target light to be paired is in the target area.
[0003] The present invention proposes an idea, which uses a flashing light command to issue a query similar to "Who is pairing?" to the lamps in the target area in advance. When a light flashes in response to "It's me", the pairing object is successfully determined before the pairing is successful. The technical solution of the present invention is implemented by combining with a small program. When there are a large number of wireless lights that are not connected to the network within the target area, fast and intuitive positioning can be achieved, and the operation is convenient and fast. Summary of the invention
[0004] The present invention aims to solve the problem that when there are a large number of wireless lights that are not connected to the network within the target area, the network pairing cannot be performed quickly and intuitively, and the operation is inconvenient.
[0005] In order to solve the above technical problems, the present invention discloses a method for adding wireless lights in a target area to a network through a small program.
[0006] The method comprises the steps of:
[0007] a. The wireless light that is not connected to the network keeps sending Beacon messages, which contain at least
[0008] Contains the address and other parameters of the lamp;
[0009] b. Scan with the applet and display the wireless lights that have received the MeshBeacon in the applet's list of unconnected devices. The wireless lights in the list are either in the target area or
[0010] domain, or in non-target areas;
[0011] c. Select any wireless light in the non-networked list, send flashing instructions to it cyclically within a predetermined time, and perform network access judgment operation on the wireless light
[0012] And mark it well;
[0013] d. Repeat the above steps for the unmarked wireless lights in the unconnected list until there are no unmarked wireless lights in the list.
[0014] Specifically, the performing of the network access judgment operation and marking includes:
[0015] When the wireless light in the target area flashes, the network access instruction is sent cyclically, the wireless light stops flashing, the mini program configures the network access parameters until the wireless light successfully accesses the network, and the wireless light is marked as successfully added;
[0016] When the wireless light in the target area does not flash, that is, the network access fails, a failure mark is added to the wireless light in the mini program.
[0017] More specifically, when the wireless lamp successfully accesses the network, the applet saves the network access parameters of the wireless lamp.
[0018] More specifically, when the wireless light fails to access the network, a stop flashing instruction is continuously sent to the wireless light.
[0019] More specifically, when the wireless lamp successfully joins the network, the wireless lamp will no longer send Beacon messages subsequently.
[0020] Furthermore, when the wireless light no longer sends Beacon messages, the wireless light will no longer be displayed in the non-networked list.
[0021] Specifically, the flashing light instruction at least includes the address information for a specific wireless light identification response.
[0022] Specifically, the applet scan uses the Bluetooth communication protocol. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is a basic flow chart;
[0024] Figure 2 This is a flowchart of the applet’s execution of network access judgment;
[0025] In the figure, the process is identified by S combined with a number. Specific embodiments
[0026] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.
[0027] (1) Basic network access process
[0028] S100, the wireless lamp that is not connected to the network keeps sending Beacon messages, and the messages at least include the address of the lamp and other parameters;
[0029] S102, the applet scans and presents the wireless lights that receive the MeshBeacon in the list of the applet that are not connected to the network. The wireless lights corresponding to the list are either in the target area or in the non-target area.
[0030] S104, selecting any wireless light in the non-networked list, cyclically sending a flashing instruction to the wireless light within a predetermined time, performing a network access judgment operation on the wireless light and marking it;
[0031] S106, repeat the above steps for the unmarked wireless lights in the non-networked list until there are no unmarked wireless lights in the list.
[0032] (2) Process of executing network access judgment
[0033] like Figure 2 As shown, in the network access judgment operation, the applet cyclically sends a flashing light instruction. If the instruction does not correspond to the address parameter of the wireless light in the target area in S206, no light flashes in the target area, and the network access fails and is marked as a failure.
[0034] S204: If a light flashes in the target area, it means that the flashing light command is recognized and received by the wireless light in the target area, and the applet sends the network access command cyclically, the wireless light stops flashing, and the applet configures the network access parameters until the wireless light successfully accesses the network, and marks the wireless light as successfully added;
[0035] When a wireless light broadcasts a message containing its own address and other parameters, the applet receives the message and displays all wireless lights on the applet according to certain rules, forming a list of those not connected to the network. When a specific wireless light is selected and a flashing light command containing the corresponding address information is sent, the specific wireless light can receive it. There are several possibilities at this time:
[0036] First, the corresponding flashing can be seen by the user, indicating that the light is in the target area and the next step of network access operation can be performed.
[0037] Second, if the user cannot see the corresponding flashing, it means that the light is in a non-target area, and the network access fails, and a failure mark is made.
[0038] It should be noted that the wireless lights that have successfully joined the network will not be displayed in the list of those that have not joined the network because they will no longer broadcast messages with their own address and other information, and will only communicate with devices that have joined the network and have specific addresses.
[0039] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0040] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0041] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0042] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for adding wireless lights in a target area to the network through a mini program, characterized in that: The method comprises the steps of: a. The wireless light that is not connected to the network keeps sending Beacon messages, which contain at least the address of the light and other parameters; b. The applet scans and displays the wireless lights that receive MeshBeacon in the applet's unconnected list. The wireless lights in the list are either in the target area or in the non-target area. c. Select any wireless light in the non-networked list, send a flashing light command to it cyclically within a predetermined time, perform a network access judgment operation on the wireless light and mark it; d. Repeat the above steps for the unmarked wireless lights in the unconnected list until there are no unmarked wireless lights in the list.
2. According to claim 1, a method for adding wireless lights in a target area to the network through a mini program is characterized in that: The performing of the network access judgment operation and marking includes: When the wireless light in the target area flashes, the network access instruction is sent cyclically, the wireless light stops flashing, the mini program configures the network access parameters until the wireless light successfully accesses the network, and the wireless light is marked as successfully added; When the wireless light in the target area does not flash, that is, the network access fails, a failure mark is added to the wireless light in the mini program.
3. According to claim 2, a method for adding wireless lights in a target area to a network through a mini-program is characterized in that: When the wireless lamp successfully accesses the network, the applet saves the network access parameters of the wireless lamp.
4. According to claim 2, a method for adding wireless lights in a target area to a network through a mini-program, characterized in that: When the wireless light fails to access the network, a stop flashing instruction is continuously sent to the wireless light.
5. According to claim 2, a method for adding wireless lights in a target area to a network through a mini-program is characterized in that: When the wireless light successfully joins the network, the wireless light will no longer send Beacon messages.
6. A method for adding wireless lights in a target area to a network through a mini-program according to claim 5, characterized in that: When the wireless light no longer sends Beacon messages, the wireless light will no longer be displayed in the non-networked list.
7. According to claim 1, a method for adding wireless lights in a target area to a network through a mini-program, characterized in that: The flashing light instruction at least includes the address information for a specific wireless light identification response.
8. The method of adding wireless lights in a target area to a network through a mini-program according to claim 1, characterized in that: The applet scanning uses the Bluetooth communication protocol.
