Method and system for realizing wireless node control based on visible light flicker mode recognition

By using visible flicker pattern recognition technology, the challenges of wireless IoT devices in terms of operation accuracy and cost are solved, and flexible and multifunctional control of wireless devices is realized, suitable for diversified application scenarios.

CN119600793AActive Publication Date: 2025-03-11SHENZHEN LITETRACE TECH CO LTD

Patent Information

Application Number
CN202411520307.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2025-03-11
Estimated Expiration
2044-10-29

AI Technical Summary

Technical Problem

Existing wireless IoT devices have problems such as difficult to determine location, inaccurate operation, increased hardware cost and complexity in operations such as wireless enablement, disablement and mode switching, which are difficult to meet the needs of diversified applications.

Method used

Using a method based on visible light flicker pattern recognition, the light-emitting device flashes and illuminates the light-sensitive sensor of the wireless device at a preset frequency or encoding method. The wireless device continuously reads the light-sensitive data and decodes it, and then enters a different state or performs corresponding operations.

Benefits of technology

It realizes simple and fast control of wireless devices, reduces hardware costs and complexity, and can achieve multiple control needs without increasing costs, adapt to different application scenarios, and supports one-to-one precise control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119600793A_ABST
    Figure CN119600793A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of Internet of Things, and provides a method and a system for realizing wireless node control based on visible light flicker mode recognition, and the method comprises the steps: S1, carrying out the flicker irradiation of a light sensor of wireless equipment through light-emitting equipment according to a preset frequency or a coding mode; s2, the wireless device continuously reads the sampling data of the light sensor, and decodes the flicker frequency or the coding mode of the light-emitting device according to the sampling data; and S3, the wireless equipment enters different states or executes operation of corresponding coding modes according to result data obtained by decoding. The method is realized by using a visible light sensor of an existing controller, a special sensor or a receiving head does not need to be additionally arranged on equipment, the cost can be effectively reduced, and the complexity of the equipment is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of Internet of Things technology, and particularly relates to technologies and products such as wireless enabling, disabling, and mode switching of wireless Internet of Things devices, and their applications in the field of lighting control, and more particularly to a control method and system for wireless nodes based on visible light flicker pattern recognition. Background Art

[0002] Wireless IoT devices do not require physical wire connections, have the advantages of low implementation costs and reduced labor requirements. However, wireless connection technology also has some inherent difficulties, such as: it is difficult to determine the location of the node, and it is not easy to accurately operate and set the node one by one.

[0003] At present, there are some common ways to solve these problems on the market. For example: 1. Add a button to the wireless device, and click or long press the button to make the wireless device enter a specific mode. 2. Add additional receiving devices to the wireless device, such as laser receiving heads, infrared receiving heads, etc. Through the corresponding transmitting devices, such as laser transmitters, infrared transmitters, etc., transmit signals to the receiving devices on the wireless device to make the device enter a specific mode. 3. Make the device enter a specific mode through power-off and power-on cycles. To avoid misoperation, a power-off and power-on cycle of multiple different lengths is usually set. For example, three consecutive short power-ons, or three consecutive long power-ons plus two consecutive short power-ons, etc. The above-mentioned specific modes include but are not limited to: a. Wireless pairing mode, in which wireless devices can be paired. b. Scene mode setting, save the current device status as a specific scene. c. Enable and disable wireless functions, etc.

[0004] The above settings also expose some defects in actual applications: 1. Wireless devices are sometimes installed in high or hidden locations, making them difficult for people to access. Therefore, adding buttons is not practical in many application scenarios.

[0005] 2. Adding additional receiving devices will increase the design complexity of the equipment, increase hardware and production costs. In addition, dedicated transmitting equipment is required, which also brings a lot of inconvenience in practical applications.

[0006] 3. The directivity and distance of the transmitted signal also lead to difficulties in field applications: a. Some transmission signals, such as lasers, are too directional. They can only point to a very narrow area or even a point. If the device is a little far away, it is very difficult to accurately locate the laser point on the receiving head of the device.

[0007] b. Some transmission signals, such as infrared, are too weak in directivity and easily reflect, which results in receiving heads in a wide area being able to receive instructions, making it difficult to achieve precise one-to-one control.

[0008] c. Some transmission signals, such as infrared, have fast signal attenuation and short effective distance. If the wireless device is a little far away, it cannot be effectively controlled.

[0009] 4. The power-off and power-on cycle can only be used to operate the devices on a power supply circuit in a unified manner, and it is not possible to operate a single device. In addition, at the customer site, the load on a power supply circuit is often very large, making it difficult to perform power-off and power-on cycle operations.

[0010] 5. Common operation methods are simple and usually can only realize a single operation. It is difficult to meet the diversified practical application needs of wireless IoT devices.

[0011] The above defects have limited the promotion of wireless Internet of Things technology solutions. There is an urgent need for a simpler wireless device fast control solution. Summary of the invention

[0012] The purpose of the present invention is to provide a control method for wireless nodes based on visible light flicker pattern recognition, aiming to solve the above-mentioned technical problems.

[0013] The present invention is implemented as follows: a control method for wireless nodes based on visible light flicker pattern recognition, the control method comprising the following steps: S1. Use a light-emitting device to flash and illuminate a light sensor of a wireless device at a preset frequency or in a coding manner; S2. The wireless device continuously reads the sampling data of the light sensor and decodes the flashing frequency or encoding method of the light-emitting device according to the sampling data; S3. The wireless device enters different states or performs operations corresponding to the encoding method according to the result data obtained by decoding.

[0014] A further technical solution of the present invention is: the step S2 further includes the following steps: S21, the wireless device continuously reads light sensor readings after being powered on; S22, calculating the artificial visible light flicker frequency according to the change of the light sensor reading and outputting it to the subsequent recognition processing flow.

[0015] A further technical solution of the present invention is: in step S21, by analyzing the proportional change or absolute value change of the light sensing reading exceeding a certain range, it is determined whether it is artificial visible light flicker. If so, step S22 is executed, if not, return to step S21.

[0016] A further technical solution of the present invention is: the step S3 includes the following steps: S31, the wireless device is powered on to initialize the pattern recognition state machine and continuously read the flashing frequency currently recognized by the light sensor; S32, determine whether artificial visible light flicker is detected, if so, calculate the frequency and time and update the pattern recognition state machine and return to step S31, if not, match the corresponding pattern according to the current state of the state machine and execute the next step; S33, determine whether the state machine matches the pattern. If so, the current state machine matches a preset flashing pattern, and executes the operation corresponding to the pattern or enters the corresponding state. If no match is found, reset the pattern recognition state machine and return to step S31.

[0017] A further technical solution of the present invention is: when the artificial visible light flickering frequency is detected in step S32, it is necessary to calculate the flickering duration of the frequency to determine whether the flickering frequency is the same as the previous one. If the same, the flickering duration of the frequency is updated, and the state of the state machine is updated accordingly; if different, the state machine state is updated, and the new flickering frequency and duration are recorded.

[0018] A further technical solution of the present invention is: the preset frequency or coding method in step S1 includes continuous flashing of frequency or flashing of frequency combination or similar bar code, Morse code; when the continuous flashing of frequency or flashing of frequency combination, the time length can be specified.

[0019] A further technical solution of the present invention is: the operations of different states or corresponding coding methods in step S3 include enabling the wireless signal of the device or disabling the wireless signal of the device or adding the device to a group or removing the device from a group or setting the current state to a scene or removing a scene or multiple scenes.

[0020] Another object of the present invention is to provide a control system for wireless nodes based on visible light flicker pattern recognition, the control system comprising A visible light irradiation module, used to utilize a light emitting device to flash and illuminate a light sensor of a wireless device at a preset frequency or in a coded manner; The sampling and decoding module is used for the wireless device to continuously read the sampling data of the light sensor and decode the flashing frequency or coding mode of the light-emitting device according to the sampling data; The state operation module is used for the wireless device to enter different states or perform operations corresponding to the encoding method according to the result data obtained by decoding.

[0021] A further technical solution of the present invention is: the sampling decoding module also includes: Light sensing reading unit, used to continuously read light sensing readings after the wireless device is powered on; The calculation output unit is used to calculate the artificial visible light flicker frequency according to the changes in the light sensor readings and output it to the subsequent recognition processing flow.

[0022] A further technical solution of the present invention is: the light sensing reading unit determines whether it is artificial visible light flicker by analyzing the light sensing reading ratio change or absolute value change exceeding a certain range, and if so, executes the calculation output unit, and if not, returns to the light sensing reading unit; The state operation module includes: A reading and recognition unit is used to initialize the pattern recognition state machine when the wireless device is powered on and continuously read the flashing frequency currently recognized by the light sensor; A visible light judgment unit, used to judge whether artificial visible light flicker is detected. If so, the frequency and time are calculated and the pattern recognition state machine is updated and returned to the reading recognition unit. If not, the corresponding pattern is matched according to the current state of the state machine and the state machine judgment unit is executed; The state machine judgment unit is used to judge whether the state machine matches the mode. If it matches, the current state machine matches a preset flashing mode, and then the operation corresponding to the mode is executed or the corresponding state is entered. If it does not match, the mode recognition state machine is reset and the reading recognition unit is returned; When the visible light judgment unit detects the artificial visible light flicker frequency, it is necessary to calculate the flicker duration of the frequency to determine whether the flicker frequency is the same as before. If the flicker frequency is the same, the flicker duration of the frequency is updated, and the state of the state machine is updated accordingly; if the flicker frequency is different, the state of the state machine is updated, and the new flicker frequency and duration are recorded; The preset frequency or coding method in the visible light irradiation module includes a frequency that flashes continuously or a frequency combination that flashes or is similar to a bar code or Morse code; when the frequency flashes continuously or the frequency combination flashes, the time length can be specified.

[0023] The operations of different states or corresponding coding methods in the state operation module include enabling the wireless signal of the device or disabling the wireless signal of the device or adding the device to a group or removing the device from a group or setting the current state to a scene or removing a scene or multiple scenes.

[0024] The beneficial effects of the present invention are: it is implemented by utilizing the visible light sensor of the existing controller, and there is no need to add a special sensor or receiving head to the device, which can effectively reduce the cost and reduce the complexity of the device.

[0025] Frequency pattern recognition using visible light can be performed using common flashlights, searchlights, headlights, etc. These lights may already have a flashing pattern and can be used directly; or they can be simply modified to achieve a specified pattern of flashing. It is simple and easy.

[0026] Visible light equipment can easily find, design and produce products with different powers, different focal lengths or variable focal lengths. It can easily adapt to the needs of different applications, and can control the range of the light spot, and realize one-to-one control conveniently and accurately.

[0027] Common products on the market can usually only perform simple single operations. This solution can achieve multiple control requirements at the same time without increasing costs through frequency flicker pattern recognition. It is more flexible and convenient.

[0028] Control can be achieved through remote control without actual contact, making actual on-site application more flexible. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 It is an overall flow chart of the auxiliary control of the flashlight provided by the embodiment of the present invention.

[0030] Figure 2 The present invention provides a flow chart of the optical frequency recognition of a wireless device.

[0031] Figure 3 It is a flow chart of the pattern recognition processing operation provided by an embodiment of the present invention.

[0032] Figure 4 The figures are front and back appearance diagrams of the Bluetooth smart lighting controller provided by an embodiment of the present invention.

[0033] Figure 5 1 and 2 are front and back views of a Bluetooth lamp controller PCBA provided in an embodiment of the present invention.

[0034] Figure 6 It is a schematic diagram of a flashlight with adjustable focus and flashing function provided by an embodiment of the present invention.

[0035] Figure 7 The invention provides a smart lamp equipped with a Bluetooth lamp controller. DETAILED DESCRIPTION

[0036] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0037] In the description of the present invention, it should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, in the description of the present invention, "multiple" means two or more, unless otherwise clearly and specifically defined.

[0038] The solution corresponding to this application is to solve the defects of the prior art. The requirements and objectives of the solution include: there is no need to add additional devices to the wireless device, and the solution can be implemented using the devices that the wireless device itself already needs. The solution should be easy to operate and do not require physical contact. It can meet the control distance requirements of general application scenarios. It can easily achieve one-to-one control. It can realize multiple simple control functions, operate the device to enter different states or perform simple operations. It is not a full-function device operation and configuration. The full-function operation and configuration are still achieved through gateways, special software, APP, programmers, etc.

[0039] In view of the requirements and goals of the solution, as well as the specific and penetration conditions of wireless Internet of Things applications, the present invention patent designs and develops a wireless intelligent lighting controller. In particular, the solution is suitable for wireless intelligent devices with light (visible light) sensors. In wireless intelligent lighting controllers, light sensors are usually built in for daylight compensation and energy-saving control. The technical solution of this application uses light sensors to achieve simple and fast control functions.

[0040] like Figure 1 As shown, the present invention provides a method for controlling wireless nodes based on visible light flicker pattern recognition, which is described in detail as follows: Step S1, using a light-emitting device to flash and illuminate the light sensor of the wireless device at a preset frequency or coding method; using a light-emitting device such as a flashlight to illuminate the light sensor of the wireless device. The flashlight is only a reference, and in actual applications, visible light-emitting devices such as searchlights, flashlights, headlights, etc. can also be used. Light-emitting devices such as flashlights flash at a preset frequency or coding method.

[0041] Step S2, the wireless device continuously reads the sampling data of the light sensor, and decodes the flashing frequency or coding mode of the light-emitting device according to the sampling data; the wireless device continuously reads the sampling data of the light sensor, and decodes the flashing frequency or coding of the light-emitting device. The flashing frequency or coding of the light-emitting device includes but is not limited to the following: flashing continuously at a specified frequency, such as flashing at a frequency of 0.5hz, 1hz, 3hz, 5hz, etc. Flashing in a frequency combination, such as 0.5hz + 3hz, 1hz + 5hz, etc. Flashing in a long and short combination in a manner similar to barcode and Morse code, such as one long and one short, three long and three short, three short, three long and three short, etc. When the above frequencies or frequency combinations flash, the time length can be specified, such as 3 consecutive seconds, or 6 consecutive seconds, etc.

[0042] Step S3, the wireless device enters different states or performs operations corresponding to the encoding method according to the result data obtained by decoding. The wireless device enters different states or takes corresponding operations according to the decoding results. The optional states and operations include, but are not limited to: enabling the wireless signal of the device. Disabling the wireless signal of the device. Adding the device to a group. Removing the device from a group. Setting the current state to a scene. Removing a scene or multiple scenes.

[0043] The technical solution of this application includes the following equipment and software: Flashlight. Flashlights provide visible light and can be controlled to flash at specified requirements and frequencies. Flashing of flashlights can be controlled by MCU coding, by specially designed hardware, or by other means.

[0044] Wireless smart device. The wireless smart device in the present invention can run embedded software. And it needs to include a light sensor component. Other components and functions on the wireless smart device are irrelevant to the innovation of the present invention and are not explained and described in this document.

[0045] The following is an explanation of the operating procedures involved in the invention patent.

[0046] The description in this section is only used to more clearly describe the innovation and interactive operation process of the present invention. It is not a limitation on the actual implementation process. During the development process, different implementation schemes can be designed based on this, which does not affect the innovation of the invention.

[0047] like Figure 1 As shown in the figure, the overall process of using a flashlight to achieve auxiliary control is as follows: The user starts the specified flashing sequence on the flashlight according to the currently required operation. The flashlight starts flashing at the preset frequency and time.

[0048] The software on the wireless device does the following: Continuously read light sensor data.

[0049] Judge the light reading and detect the flashing frequency of the flashlight.

[0050] According to the detected frequency, the corresponding operation is performed or the preset mode is entered.

[0051] The MCU on the wireless device is a single chip with limited resources. For the convenience of processing, the operation process is divided into two parts: frequency recognition and pattern recognition, which are explained separately.

[0052] like Figure 2 As shown, after the wireless device is powered on, it continuously reads the light sensor readings and calculates the frequency of light sensor flashing according to the changes in the light sensor readings.

[0053] In this process, it is necessary to eliminate occasional error interference and error interference caused by the continuous changes in natural light, and at the same time combine the analysis of the change ratio and absolute value of the light reading to determine whether it is artificial visible light flicker.

[0054] Based on the changes in light sensor readings, the frequency of artificial visible light flicker is calculated and provided as input to the pattern recognition processing flow.

[0055] If no visible light flashes are detected for a period of time, the pattern recognition processing operation flow also needs to be notified.

[0056] like Figure 3 As shown, a state machine is used in pattern recognition to flexibly adapt to the recognition requirements of various different patterns. (In actual applications and implementations, different solutions can also be used.) After power-on, the wireless device initializes the pattern recognition state machine.

[0057] Then, the currently recognized frequency is continuously read.

[0058] If no artificial visible light flicker frequency is currently identified, it means that this is the end of a state machine.

[0059] If the current state machine matches a preset flashing mode, the operation corresponding to the mode is executed (or the corresponding state is entered).

[0060] The pattern recognition state machine is then reset.

[0061] If an artificial visible light flicker frequency is identified, the flicker duration of this frequency needs to be calculated.

[0062] If the frequency is the same as before, update the duration of the flashing at that frequency and update the state of the state machine accordingly.

[0063] If the frequency is different from the previous one, the state of the state machine is updated and the new flashing frequency and duration are recorded.

[0064] Compared with the common products and solutions currently on the market, the visible light frequency pattern recognition control solution proposed in this invention has significant advantages: By utilizing the visible light sensor of the existing controller, there is no need to add special sensors or receiving heads to the equipment, which can effectively reduce costs and reduce the complexity of the equipment.

[0065] Frequency pattern recognition using visible light can be performed using common flashlights, searchlights, headlights, etc. These lights may already have a flashing pattern and can be used directly; or they can be simply modified to achieve a specified pattern of flashing. It is simple and easy.

[0066] Flashlights and other visible light devices can easily find, design, and produce products with different powers, different focal lengths, or variable focal lengths. They can easily adapt to the needs of different applications, and can control the range of the light spot, making it easy and accurate to achieve one-to-one control.

[0067] Common products on the market can usually only perform simple single operations. This solution can achieve multiple control requirements at the same time without increasing costs through frequency flicker pattern recognition. It is more flexible and convenient.

[0068] The solution of the patent of the present invention can realize control by remote control without actual contact, and the actual on-site application is more flexible.

[0069] According to the technical solution of the patent of the present invention, a Bluetooth smart lighting controller is selected as the wireless device in the implementation.

[0070] The Bluetooth smart lighting controller uses the Telink TLSR8250 Bluetooth chip as the main chip. This chip integrates Bluetooth wireless transceiver functions, has a 32M main frequency MCU, and has built-in running memory and storage flash memory. The chip supports BLEMESH wireless communication technology and can support up to 255 devices online at the same time in a network. It is one of the preferred solutions for wireless smart devices and has been widely used in the market.

[0071] The Bluetooth smart lighting controller integrates a visible light sensor, human body sensing and lamp control functions. Among them, the visible light sensor is related to the implementation scheme of the present invention. Other functions are not related to this invention patent, are not described in the present invention, and do not affect the innovation of the present invention.

[0072] Choose to purchase a high-power flashlight with zoom for control operation. This flashlight has built-in multiple strobe modes with different frequencies, and can switch between constant light, 1Hz slow flash, 3Hz fast flash, 5Hz strobe and other functions by pressing a button. It can be used in combination in this implementation scheme.

[0073] In this implementation plan, the Bluetooth smart lighting controller uses the Tailing TLSR8250 Bluetooth chip as the main chip, uses DC12V power supply, has built-in visible light sensors and human body sensors, and controls lamps through 0-10V dimming output.

[0074] The appearance and PCBA of the controller are as follows Figure 4 shown.

[0075] like Figure 5 As shown, the Bluetooth lamp controller includes the following components: Component 1 is the TLSR8250 Bluetooth chip, which includes Bluetooth transceiver and communication software, and smart lighting control software.

[0076] Component 2 is the onboard Bluetooth antenna.

[0077] Component 3 is a passive infrared (PIR) human body sensing sensor Component 4 is a visible light sensor Component 5 is the interface, including DC 12V power input and 0-10V dimming output terminal.

[0078] The functions of the human body sensing sensor and lighting control are irrelevant to the patent of the present invention and do not affect the functions and effects of the patent of the present invention, and are not described in this article.

[0079] like Figure 6 As shown, the flashlight includes the following components: Component 1 is a light emitting device that can emit visible light.

[0080] Component 2 is a focus adjustment ring that can adjust the size of the light spot. The smaller the light spot, the higher the light intensity per unit area. The larger the light spot, the lower the light intensity per unit area.

[0081] Component 3 is a button, and by pressing this button multiple times, the flashlight can be set to different flashing frequencies. This flashlight is a product that can be directly purchased on the market, and the flashing function of multiple different frequencies is realized by hardware inside, which can meet the test needs of the solution of the present invention.

[0082] Component 4 is the battery compartment.

[0083] In this implementation plan, smart lamps are used and Bluetooth smart lamp controllers are installed. The smart lamps are equipped with a DC12V power output interface and a 0-10V dimming input interface, and a location for the Bluetooth lamp controller is reserved. They can work with the Bluetooth lamp controller and be turned on, off or dimmed through the Bluetooth lamp controller. Figure 7 As shown, the specific design and function of the smart lamp are irrelevant to the patent of the present invention and do not affect the function and effect of the patent of the present invention, and are not described in this article.

[0084] In the test, the following frequency flashing modes were set, and the corresponding operations and modes of the Bluetooth smart lighting controller were set.

[0085] In the MCU of Bluetooth smart lighting control, the firmware was written according to the scheme design, and the flashing mode corresponding to the above control functions was configured.

[0086] After testing, it is found that the specified functions can be achieved by illuminating the visible light sensor of the Bluetooth smart lighting controller with a flashlight in a specified frequency flashing mode: When the flashlight flashes at 3Hz and illuminates the sensor for 2 seconds, the Bluetooth smart lighting controller disables the wireless transmission function. The signal of the device cannot be scanned on the control device (mobile phone, computer).

[0087] When the flashlight flashes at 5Hz and illuminates the sensor for 5 seconds, the Bluetooth smart lighting controller enables wireless transmission. The signal of the device can be scanned on the control device (mobile phone, computer).

[0088] When the flashlight flashes at 1Hz and illuminates the sensor for 3 seconds, and then flashes at 3Hz and illuminates the sensor for 3 seconds, the Bluetooth smart lighting controller returns to the factory settings, and all controller parameters are restored to the factory settings and initialized.

[0089] By adjusting the focal length of the flashlight, light spots of different sizes are formed to illuminate the sensor. The sensor can be illuminated very accurately within the range of 1 to 20 meters, and one-to-one control can be achieved.

[0090] The test results show that the solution of the invention patent is feasible and fully meets the design requirements and goals. It has excellent market and technical feasibility.

[0091] Another object of the present invention is to provide a control system for wireless nodes based on visible light flicker pattern recognition, the control system comprising A visible light irradiation module, used to utilize a light emitting device to flash and illuminate a light sensor of a wireless device at a preset frequency or in a coded manner; The sampling and decoding module is used for the wireless device to continuously read the sampling data of the light sensor and decode the flashing frequency or coding mode of the light-emitting device according to the sampling data; The state operation module is used for the wireless device to enter different states or perform operations corresponding to the encoding method according to the result data obtained by decoding.

[0092] A further technical solution of the present invention is: the sampling decoding module also includes: Light sensing reading unit, used to continuously read light sensing readings after the wireless device is powered on; The calculation output unit is used to calculate the artificial visible light flicker frequency according to the changes in the light sensor readings and output it to the subsequent recognition processing flow.

[0093] The light sensing reading unit determines whether it is man-made visible light flicker by analyzing the light sensing reading ratio change or absolute value change exceeding a certain range. If so, the calculation output unit is executed. If not, the calculation output unit is returned to the light sensing reading unit. The state operation module includes: A reading and recognition unit is used to initialize the pattern recognition state machine when the wireless device is powered on and continuously read the flashing frequency currently recognized by the light sensor; A visible light judgment unit, used to judge whether artificial visible light flicker is detected. If so, the frequency and time are calculated and the pattern recognition state machine is updated and returned to the reading recognition unit. If not, the corresponding pattern is matched according to the current state of the state machine and the state machine judgment unit is executed; The state machine judgment unit is used to judge whether the state machine matches the mode. If it matches, the current state machine matches a preset flashing mode, and then the operation corresponding to the mode is executed or the corresponding state is entered. If it does not match, the mode recognition state machine is reset and the reading recognition unit is returned; When the visible light judgment unit detects the artificial visible light flicker frequency, it is necessary to calculate the flicker duration of the frequency to determine whether the flicker frequency is the same as before. If the flicker frequency is the same, the flicker duration of the frequency is updated, and the state of the state machine is updated accordingly; if the flicker frequency is different, the state of the state machine is updated, and the new flicker frequency and duration are recorded; The preset frequency or coding method in the visible light irradiation module includes a frequency that flashes continuously or a frequency combination that flashes or is similar to a bar code or Morse code; when the frequency flashes continuously or the frequency combination flashes, the time length can be specified.

[0094] The operations of different states or corresponding coding methods in the state operation module include enabling the wireless signal of the device or disabling the wireless signal of the device or adding the device to a group or removing the device from a group or setting the current state to a scene or removing a scene or multiple scenes.

[0095] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for controlling wireless nodes based on visible light flicker pattern recognition, characterized in that: The control method comprises the following steps: S1. Use a light-emitting device to flash and illuminate a light sensor of a wireless device at a preset frequency or in a coding manner; S2. The wireless device continuously reads the sampling data of the light sensor and decodes the flashing frequency or encoding method of the light-emitting device according to the sampling data; S3. The wireless device enters different states or performs operations corresponding to the encoding method according to the result data obtained by decoding.

2. The method for controlling wireless nodes based on visible light flicker pattern recognition according to claim 1, characterized in that: The step S2 also includes the following steps: S21, the wireless device continuously reads light sensor readings after being powered on; S22, calculating the artificial visible light flicker frequency according to the change of the light sensor reading and outputting it to the subsequent recognition processing flow.

3. The method for controlling wireless nodes based on visible light flicker pattern recognition according to claim 2, characterized in that: In step S21, by analyzing the change in the ratio or absolute value of the light sensing reading exceeding a certain range, it is determined whether it is artificial visible light flicker. If so, step S22 is executed, otherwise, the process returns to step S21.

4. The method for controlling wireless nodes based on visible light flicker pattern recognition according to claim 3, characterized in that: The step S3 includes the following steps: S31, the wireless device is powered on to initialize the pattern recognition state machine and continuously read the flashing frequency currently recognized by the light sensor; S32, determine whether artificial visible light flicker is detected, if so, calculate the frequency and time and update the pattern recognition state machine and return to step S31, if not, match the corresponding pattern according to the current state of the state machine and execute the next step; S33, determine whether the state machine matches the pattern. If so, the current state machine matches a preset flashing pattern, and executes the operation corresponding to the pattern or enters the corresponding state. If no match is found, reset the pattern recognition state machine and return to step S31.

5. The method for controlling wireless nodes based on visible light flicker pattern recognition according to claim 4, characterized in that: If the artificial visible light flickering frequency is detected in step S32, it is necessary to calculate the flickering duration of the frequency to determine whether the flickering frequency is the same as the previous one. If they are the same, the flickering duration of the frequency is updated and the state of the state machine is updated accordingly; if they are not the same, the state machine state is updated and the new flickering frequency and duration are recorded.

6. The method for controlling wireless nodes based on visible light flicker pattern recognition according to claim 5, characterized in that: The preset frequency or coding method in step S1 includes a frequency that flashes continuously or a frequency combination that flashes or is similar to a bar code or Morse code; when the frequency flashes continuously or the frequency combination flashes, the time length can be specified.

7. The method for controlling wireless nodes based on visible light flicker pattern recognition according to claim 6, characterized in that: The operations of different states or corresponding coding methods in step S3 include enabling the wireless signal of the device or disabling the wireless signal of the device or adding the device to a group or removing the device from a group or setting the current state to a scene or removing a scene or multiple scenes.

8. A control system for wireless nodes based on visible light flicker pattern recognition, characterized in that: The control system includes A visible light irradiation module, used to utilize a light emitting device to flash and illuminate a light sensor of a wireless device at a preset frequency or in a coded manner; The sampling and decoding module is used for the wireless device to continuously read the sampling data of the light sensor and decode the flashing frequency or coding mode of the light-emitting device according to the sampling data; The state operation module is used for the wireless device to enter different states or perform operations corresponding to the encoding method according to the result data obtained by decoding.

9. The control system for realizing wireless nodes based on visible light flicker pattern recognition according to claim 8, characterized in that: The sampling decoding module also includes Light sensing reading unit, used to continuously read light sensing readings after the wireless device is powered on; The calculation output unit is used to calculate the artificial visible light flicker frequency according to the changes in the light sensor readings and output it to the subsequent recognition processing flow.

10. The control system for wireless nodes based on visible light flicker pattern recognition according to claim 9, characterized in that: The light sensing reading unit determines whether it is man-made visible light flicker by analyzing the light sensing reading ratio change or absolute value change exceeding a certain range. If so, the calculation output unit is executed. If not, the calculation output unit is returned to the light sensing reading unit. The state operation module includes: A reading and recognition unit is used to initialize the pattern recognition state machine when the wireless device is powered on and continuously read the flashing frequency currently recognized by the light sensor; A visible light judgment unit, used to judge whether artificial visible light flicker is detected. If so, the frequency and time are calculated and the pattern recognition state machine is updated and returned to the reading recognition unit. If not, the corresponding pattern is matched according to the current state of the state machine and the state machine judgment unit is executed; The state machine judgment unit is used to judge whether the state machine matches the mode. If it matches, the current state machine matches a preset flashing mode, and then the operation corresponding to the mode is executed or the corresponding state is entered. If it does not match, the mode recognition state machine is reset and the reading recognition unit is returned; When the visible light judgment unit detects the artificial visible light flicker frequency, it is necessary to calculate the flicker duration of the frequency to determine whether the flicker frequency is the same as before. If the flicker frequency is the same, the flicker duration of the frequency is updated, and the state of the state machine is updated accordingly; if the flicker frequency is different, the state of the state machine is updated, and the new flicker frequency and duration are recorded; The preset frequency or coding method in the visible light irradiation module includes a frequency that flashes continuously or a frequency combination that flashes or is similar to a bar code or Morse code; when the frequency flashes continuously or the frequency combination flashes, the time length can be specified. The operations of different states or corresponding coding methods in the state operation module include enabling the wireless signal of the device or disabling the wireless signal of the device or adding the device to a group or removing the device from a group or setting the current state to a scene or removing a scene or multiple scenes.

Citation Information

Patent Citations

  • Home appliance network distribution method, intelligent home appliance and readable storage medium

    CN107276862A

  • Internet of Things device, control method and control device thereof

    CN107749879A

  • Visible light coding mode capable of being identified by RFID tag

    CN113743562A

  • Smart home system

    CN214311348U

  • Visible light smart home LiFi remote control system

    CN216486784U

Cited By

  • Bluetooth device networking method, terminal device and computer program product

    CN121284525A