Wireless sensor, lamp and networking and control implementation method

By integrating a rotary encoder and a DIP switch into a wireless sensor, the problems of unintuitive configuration, complex linkage strategies, and difficult maintenance of intelligent lighting systems are solved, achieving efficient and energy-saving refined lighting control, suitable for environments without network coverage.

CN121815523APending Publication Date: 2026-04-07LUMIX LIGHTING & ELECTRICAL
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-02-10
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

Existing intelligent lighting systems suffer from problems such as unintuitive configuration and operation, susceptibility to errors, difficulties in configuration under weak signal or no network conditions, inability to implement refined linkage strategies, and low efficiency due to the need for climbing ladders for later maintenance.

Method used

The system employs a wireless sensor that integrates a rotary encoder, DIP switch, microprocessor, and 2.4G wireless transceiver module. The rotary encoder sets the target channel number to be continuously mapped to the building space, and the DIP switch configures single-channel or multi-channel modes. Combined with a microwave radar module to detect human movement speed, it achieves refined linkage control.

Benefits of technology

The configuration is intuitive and efficient, with a high initial configuration accuracy. It is suitable for weak signal environments, improves energy efficiency by 40%-60%, reduces maintenance time by 75%, and avoids the risks of working at heights.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121815523A_ABST
    Figure CN121815523A_ABST
Patent Text Reader

Abstract

The invention provides a wireless sensor, a lamp and a networking and control method thereof, belongs to the field of intelligent illumination, and solves the problems that existing configuration is not visual, depends on an APP, needs a ladder for maintenance and the like. The scale of the rotary encoder is in continuous visual correspondence with the building space area; the dial switch is configured with a single / multi-channel mode and a master-slave role; and an included angle of 30-45 degrees is formed between the mounting angle of the rotary encoder and the visual horizontal line. The device has the advantages that the configuration efficiency is improved by 67%, the energy-saving rate is 40%-62%, and ladder-stand-free maintenance is achieved. The method is suitable for warehouses, corridors, staircases and other scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of intelligent lighting control technology, specifically relating to a wireless sensor integrated inside a lamp and its networking configuration and linkage control method, which is particularly suitable for places such as warehouses, corridors, stairwells, and parking lots that require zoned and time-segmented intelligent lighting. Background Technology

[0002] With the continuous improvement of building energy efficiency standards and the popularization of Internet of Things (IoT) technology, human-sensor-based intelligent lighting systems are widely used in commercial buildings, industrial plants, underground parking garages, public transportation hubs, and other locations. However, existing technical solutions have revealed the following prominent problems in actual deployment and application, which seriously restrict the promotion effect and user experience of intelligent lighting systems: The current state of traditional technical solutions and their inherent defects.

[0003] Currently, intelligent lighting control systems on the market mainly adopt the following technical approaches: 1. Wired centralized control solution: Connect each lighting node to the central controller via a wired bus protocol. While this solution offers high stability, it suffers from complex wiring, difficult retrofitting, and high costs, making it almost impossible to implement, especially in existing building renovations where pre-embedded wiring is unavailable.

[0004] 2. Individual Lamp Sensor Solution: Each lamp has a built-in independent microwave radar module (PIR or microwave radar) to achieve single-point control: "lights turn on when someone approaches, lights turn off when someone leaves." While this solution is simple to deploy, it cannot achieve regionalized coordinated lighting. As described in the technical disclosure, in stairwell scenarios, only the lights on the current floor are on, while the stairwells above and below remain dark, creating blind spots and posing a significant safety hazard. In long corridor scenarios, the lights in front of pedestrians do not turn on in advance, causing lighting to lag behind pedestrian movement and resulting in a poor user experience.

[0005] 3. Smartphone App-Based Wireless Networking Solution: This type of solution uses Zigbee, Bluetooth Mesh, or Wi-Fi technologies, relying on a mobile app to complete device configuration, grouping, and parameter settings. However, its technical architecture still has the following insurmountable shortcomings.

[0006] High failure rate in weak signal environments: In scenarios with weak or no mobile network signal, such as underground garages, enclosed warehouses, and remote stairwells, smartphones cannot connect to cloud servers or local gateways, resulting in a high failure rate for network configuration.

[0007] The operation is difficult and the process is complicated: ordinary installers (mostly middle-aged electricians) are not familiar with operating smartphones and need to go through more than ten steps such as "downloading the APP → registering an account → searching for the device → entering the password → configuring the group", which takes an average of more than 8 minutes per lamp, and repeated debugging is required after incorrect configuration.

[0008] Post-installation maintenance is difficult: The installation height of the lights is usually 3-5 meters. If the grouping strategy needs to be adjusted, the network must be reconfigured using ladders or lifting platforms, which is costly and poses safety hazards.

[0009] 4. Static Addressing Scheme Based on DIP Switches: To avoid the drawbacks of APP configuration, some manufacturers use DIP switches for group settings. The addresses and groups of lighting fixtures are set via DIP switches. However, this technology has the following fundamental flaws.

[0010] The coding has no mapping relationship with the physical space: the 8-bit DIP code can generate 256 combinations, and the coding is an abstract binary sequence (such as 0x01, 0x02, 0x04, 0x08...), which is completely disconnected from the actual spatial layout of the building (such as the floor order and corridor direction). Installers need to operate according to a complex coding table. For medium-sized projects with more than 20 lamps, the misconfiguration rate is as high as 15%-20%, making later troubleshooting difficult.

[0011] Unable to express linkage logic: DIP switches can only define "whether they belong to the same group", and cannot intuitively set the linkage direction between groups (such as "upper layer triggers lower layer" or "lower layer triggers upper layer"), response timing and master-slave roles, which makes it impossible to realize refined scenarios such as "pre-lighting" in stairwells or "following lighting" in long corridors.

[0012] The maintenance efficiency is extremely low: if the group needs to be adjusted later, it is still necessary to climb to the position of the light fixture and re-dial it, which is exactly the same as the problem of "needing to climb ladders or repeatedly disassemble and reassemble light fixtures" mentioned in the technical handover document, resulting in low operation and maintenance efficiency.

[0013] The root cause of the above problems lies in the fact that the technical design did not fully consider the actual working conditions of the industrial site and the skill level of the front-line operators.

[0014] 1. Interaction methods are detached from physical space: Neither the virtual interface of the APP nor the abstract coding of the dialer can establish an intuitive visual mapping between configuration parameters and the physical space of the building (such as floor number and area number), which violates the basic principles of ergonomics and leads to excessive cognitive load.

[0015] 2. Lack of lightweight, decentralized networking protocols: Traditional 2.4G Mesh solutions (such as Zigbee) require maintaining complete routing tables and network layer addresses, resulting in high protocol stack complexity and power consumption. In lighting scenarios requiring only simple group linkage, this "heavy-loaded" protocol causes unnecessary resource waste and fails to optimize the frame structure for physical configuration methods, leading to low configuration efficiency.

[0016] 3. Linkage strategies are hard-coded in software: The linkage logic of existing systems (such as synchronized on / off and delayed shutdown) is hard-coded in the software, and users cannot quickly adjust it through hardware. However, actual engineering requirements are diverse. For example, stairwells need "linkage between upper and lower floors but with different brightness", and parking lots need "gradual lighting in zones". These requirements cannot be achieved through static DIP switches.

[0017] This invention addresses the aforementioned shortcomings of existing technologies by resolving the following core technical issues: unintuitive configuration operations that are prone to errors; configuration challenges in weak signal or no-network scenarios; inability to implement refined linkage strategies; and the need for VPNs and low efficiency in later maintenance. Summary of the Invention

[0018] The technical problem to be solved by the present invention is to provide a wireless sensor and its networking control method that do not rely on smart devices, are intuitive and efficient in configuration, support fine-grained linkage strategies, and are easy to maintain without climbing ladders.

[0019] To address the aforementioned technical problems, this invention provides a wireless sensor, comprising: a microprocessor, a non-volatile memory, a 2.4G wireless transceiver module, a remote control receiver module, a rotary encoder, a DIP switch, a photosensor, and a microwave radar module. The rotary encoder has digital scales and an arrow pointer for setting the target channel number to which the light fixture belongs, and the digital scales have a continuous visual correspondence with the building space area number. The DIP switch includes a channel mode setting bit for configuring a single-channel receiving mode or a multi-channel receiving mode. The non-volatile memory stores the target channel number, mode parameters, and linkage strategy. The 2.4G wireless transceiver module sends or receives interactive data in a network mode, the interactive data including the channel number and / or trigger source identifier. When the wireless sensor is in multi-channel receiving mode, it responds synchronously with adjacent channel lights.

[0020] Furthermore, the networking methods for wireless sensors include 2.4GHz, Bluetooth, and / or Mesh networking.

[0021] Furthermore, when the arrow pointer of the rotary encoder points to channel 0, it is in stand-alone mode and is used as an independent sensor; When the arrow pointer of the rotary encoder points to any one of the channels between channel 1 and channel 9, it is in networking mode, which is used to achieve linkage with other wireless sensors.

[0022] Furthermore, the DIP switch can be set to a single-channel mode and a multi-channel mode. When the mode bit is on the ON sign, it is configured as a multi-channel receiving mode, and when the mode bit is on the OFF sign, it is configured as a single-channel receiving mode. The single-channel mode is used to receive the trigger signal of the current channel, and the multi-channel mode is used to link with adjacent wireless sensors that are in multi-channel mode.

[0023] Furthermore, the remote control receiving module is used to receive signals from an external remote control, and the code value of the remote control signal is used to perform secondary settings on the wireless sensor.

[0024] Furthermore, the 2.4G wireless transceiver module is used to send or receive interactive data in networking mode. The interactive data includes channel number, trigger source identifier, and speed estimate. When the wireless sensor is in multi-channel receiving mode, the response strategy of adjacent channel lights is dynamically adjusted based on the human movement speed estimate, where the human movement speed estimate = d / Δt, d is the distance between adjacent lights, and Δt is the continuous trigger time difference. The response strategy includes brightness and delay time.

[0025] The present invention provides a lamp that integrates the wireless sensor described in any of the above claims.

[0026] This invention provides a method for wireless sensor networking and control, based on the aforementioned lighting fixture, comprising the following steps: The microprocessor reads the pre-stored channel number, single-channel mode flag, and / or multi-channel mode flag from the non-volatile memory, and initializes the 2.4G wireless transceiver module to enter the listening state. The target channel number is set by manually adjusting the rotary encoder, and the target channel number has a continuous mapping relationship with the physical space of the building; the single-channel receiving mode or the multi-channel receiving mode is set by the DIP switch. After configuration, when a sensor detects a trigger event, the sensor, as the master sensor node, broadcasts the first interactive data via a 2.4G wireless channel. The first interactive data includes a trigger signal, a number of forwards, and a trigger channel number message. Sensors within the communication range receive the message. When any sensor's microwave radar module detects a valid movement signal, it executes the lighting output control of this lamp and broadcasts second interactive data via a 2.4G wireless channel; the second interactive data includes the channel number, trigger source node ID, and forwarding count; After other sensors receive the node ID of the second interaction data, determine whether it has already been received; If it is determined that the second interaction data has been received, then the operation corresponding to the second interaction data will not be executed; If it is determined that the second interactive data has not been received, the channel number in the frame is compared with the channel number stored locally; If the device is in single-channel receive mode and the channel number is consistent, then a lighting response is executed; If the device is in multi-channel receive mode and the channel number belongs to the device's channel or its adjacent channel, then a lighting response is executed; Check if the maximum number of forwards has been reached; if it has, there is no need to forward.

[0027] Furthermore, the first or second interactive data adopts a custom lightweight frame format, which includes a 2-byte frame header, a 1-byte frame length, an 8-byte identification code, a 1-byte command, 0 to 6 bytes of data, a 1-byte checksum, and a 1-byte frame tail.

[0028] Furthermore, the step of executing the lighting output control of the lamp and broadcasting the second interactive data via the 2.4G wireless channel when the microwave radar module of any sensor detects a valid movement signal includes: Each of the sensors will execute the lighting output control of the lamp only when it detects a valid movement signal and the photosensor determines that the ambient light is below a set threshold, and will broadcast the second interactive data through the 2.4G wireless channel.

[0029] Furthermore, after the step of executing the lighting output control of the luminaire when the microwave radar module of any sensor detects a valid movement signal, and broadcasting the second interactive data via the 2.4G wireless channel, the method further includes: The remote controller sends a parameter modification command to the target lamp. After receiving the command through the remote controller receiving module, the lamp updates the channel number, detection area sensitivity, hold time or standby time parameters in the non-volatile memory, and confirms the successful modification by flashing the lamp. If the remote control detects that the user has pressed and held the synchronization button for more than 3 seconds, it will broadcast a synchronization command frame to all sensors in the same channel. After receiving the synchronization command frame, any sensor broadcasts its own parameters to other slave sensors in the group, thereby achieving batch parameter synchronization.

[0030] This invention provides a method for wireless sensor networking and control, based on the aforementioned lighting fixture, comprising the following steps: The microprocessor reads the pre-stored channel number, single-channel mode flag, multi-channel mode flag and / or master-slave role parameters from the non-volatile memory, and initializes the 2.4G wireless transceiver module to enter the listening state. The target channel number is set by manually adjusting the rotary encoder. The target channel number has a continuous mapping relationship with the physical space of the building. The single-channel receiving mode or multi-channel receiving mode is set by the DIP switch. When the multi-channel receiving mode is set, the node is further designated as the master sensor or the slave sensor. After configuration, the master sensor node broadcasts a discovery message via a 2.4G wireless channel. After receiving the discovery message from the sensor node, it records a list of communicable master nodes. The discovery message includes the local node's channel number and master / slave identifiers for network discovery. When any of the main sensors' microwave radar modules detects a valid movement signal, the lighting output control of this lamp is executed, and third interactive data is broadcast to all nodes in the target channel via a 2.4G wireless channel; the third interactive data includes the channel number, the trigger source node ID, and the speed estimate. The node that receives the third interactive data compares the channel number in the frame with the channel number stored locally. If the local machine is in single-channel receiving mode and the channel number matches, then it executes a lighting response. If the device is in multi-channel receiving mode and the channel number belongs to the device channel or its adjacent channel, then the lighting response is executed according to the preset timing delay; wherein, the third interactive data adopts a custom lightweight frame format, which includes 2 bytes of preamble, 4 bytes of channel number, 1 byte of master-slave identifier, 1 byte of signal strength indicator and 1 byte of cyclic redundancy check.

[0031] Furthermore, the step of executing the lighting output control of this lamp and broadcasting third interactive data to all nodes in the target channel via a 2.4G wireless channel when the microwave radar module of any main sensor detects a valid movement signal includes: The main sensor only executes the lighting output of this lamp and broadcasts the trigger command frame when it detects a valid motion signal and the photosensor determines that the ambient light is below a set threshold. After the steps of executing the lighting output control of this lamp when the microwave radar module of any main sensor detects a valid movement signal, and broadcasting third interactive data to all nodes in the target channel via a 2.4G wireless channel, the method further includes: In multi-channel receiving mode, when the estimated human movement speed is greater than the first speed, the lights in the adjacent channels will respond after a 50ms delay; where the first speed includes 2 meters per second. When the estimated human movement speed is within the first speed range ∈ [0.8, 2] m / s, the adjacent channel lights will respond to 80% brightness after a 200ms delay; wherein the first speed range includes 0.8 to 2 m / s; When the estimated human movement speed is less than the second speed, the adjacent channel lights respond to 60% brightness after a 500ms delay; wherein, the second speed includes 0.8 m / s; wherein, the estimated human movement speed is calculated by the main sensor through a continuous trigger time difference Δt, the installation distance between adjacent lights is d, and the speed estimate v = d / Δt.

[0032] The technical effects of the present invention are as follows: 1. Intuitive and efficient configuration: The digital scale of the rotary encoder is directly mapped to the physical space, allowing installers to quickly complete grouping without an encoding table. The actual configuration time is significantly reduced compared to traditional solutions, and the accuracy of the first configuration is greatly improved.

[0033] 2. Suitable for weak signal scenarios: The entire process uses a physical rotary encoder, DIP switch and remote control configuration, which does not rely on smartphones and cloud services, making it particularly suitable for environments without mobile network coverage such as underground garages and enclosed warehouses.

[0034] 3. Refined energy-saving control: Multi-channel receiving mode combined with speed estimation algorithm realizes stepped and following lighting, which improves energy saving rate by 40%-60% compared with the traditional "all on and all off" mode.

[0035] 4. Ladder-free maintenance: The remote control supports ground operation to read and modify parameters and perform batch synchronization, reducing maintenance time by 75% and avoiding the risks of working at heights. Attached Figure Description

[0036] Figure 1 This is the main flowchart of the networking and control implementation method of the present invention. Detailed Implementation

[0037] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.

[0038] The wireless sensor disclosed in this invention is integrated inside a lighting fixture and includes: a microprocessor, a non-volatile memory, a 2.4G wireless transceiver module, a remote control receiver module, a rotary encoder, a DIP switch, a photosensor, and a microwave radar module. The rotary encoder has two or more digital scales for setting the target channel number to which the lighting fixture belongs, and the digital scales have a continuous visual correspondence with the building space area number. The DIP switch includes a mode setting bit for configuring a single-channel receiving mode or a multi-channel receiving mode, and defining the master / slave role of the lighting fixture in the corresponding mode. The non-volatile memory is used to store the target channel number, mode parameters, and linkage strategy. The 2.4G wireless transceiver module is used to send or receive broadcast frames containing the channel number, trigger source identifier, and forwarding count in a network mode.

[0039] The microprocessor communicates with non-volatile memory via a bus, connects to a 2.4G wireless transceiver module via an interface, and connects to rotary encoders, DIP switches, LED lights, and sensors via GPIO ports. The microprocessor has a built-in watchdog timer to prevent program crashes and ensure long-term stable system operation.

[0040] One implementation: A non-volatile memory is connected to the microprocessor via a bus. This memory stores parameters including, but not limited to, the target channel number (1 byte) set by the rotary encoder, a single / multi-channel mode flag (1 byte), a master / slave sensor role flag (1 byte), a photosensor calibration threshold (2 bytes), a microwave radar module sensitivity setting (1 byte), and a linkage strategy identifier (1 byte). Write operations employ a wear-leveling algorithm to ensure data storage lifetime exceeds 100,000 write / erase cycles.

[0041] The rotary encoder offers 10 mechanical speeds from 0 to 9. Its pin configuration is as follows: pin C is grounded, and pins A and B are connected to the microprocessor. During rotation, pins A and B generate quadrature coded pulses. The microprocessor captures the pulse edges via interrupts, determining the clockwise or counter-clockwise rotation direction to adjust the speed. A key feature is the continuous visual correspondence between its digital scale and the architectural space: for example, the top of the rotary encoder knob is silkscreened with Arabic numerals "0, 1, 2…9," evenly distributed along the circumference.

[0042] The DIP switch, similar to the mode setting (Switch-1), allows for the following settings: ON for multi-channel reception mode and OFF for single-channel reception mode. The master / slave setting (Switch-2) is only valid in multi-channel mode; the ON position designates this node as the master sensor, and the OFF position designates it as the slave sensor. The DIP switch is soldered to the edge of the sensor PCB, with the switch lever protruding from the lamp housing. Manual operation is supported, with a damping force of 0.5N±0.2N to prevent accidental activation.

[0043] The photosensor adopts a dual-photosensitive element design; the sensor is installed inside the lamp, and the photosensitivity can distinguish natural light and the light emitted by the lamp itself. An algorithm is used to deduct the self-light interference in real time, so as to accurately sense the real environmental brightness. The system has the ability of ambient light adaptive learning, can monitor and automatically calibrate the light trigger threshold for a long time, effectively overcomes the threshold drift problem caused by device aging, seasonal change or light pollution, and ensures the long-term accuracy of the light control logic.

[0044] For the microwave radar module, in this embodiment, a 5.8GHz microwave radar module is adopted. The module is built-in with a PLL phase-locked loop and a mixer, and outputs an intermediate frequency signal to the microprocessor. The microprocessor analyzes the spectrum of the intermediate frequency signal through the FFT algorithm, extracts the Doppler frequency shift. When the frequency shift range falls within the interval of 0.5Hz to 100Hz (1 - 40HZ) (corresponding to the human body movement speed of 0.2m / s to 5m / s) and the signal strength exceeds the dynamic threshold, it is determined as an effective trigger. The sensing distance is set in 4 gears through an adjustable resistor or software gain: the 10% gear corresponds to a distance of 1 meter, the 25% gear corresponds to 2 meters, the 50% gear corresponds to 3 meters, and the 100% gear corresponds to 6 meters (radius).

[0045] The method for realizing the networking and control of the wireless sensors disclosed in the present invention is based on the collaborative work of the foregoing hardware structure, and realizes the intelligent networking and linkage control of the lamps through a hierarchical state machine and an event-driven mechanism. The following combines the attached Figure 1 The main flow chart of the method for realizing the networking and control of the present invention will be used to elaborate on the specific implementation manners of each stage of the method in detail.

[0046] I. Embodiment of the power-on initialization stage Refer to the attached Figure 1 For the "power-on initialization" node and subsequent branches, this stage is executed after the system is powered on, and specifically includes the following hardware initialization and parameter loading steps: Step 1.1: Power management and reset When the lamp is connected to the AC 220V power supply, the built-in switching power supply module outputs two voltages. The internal power-on reset circuit generates a reset pulse. After the reset is completed, the microprocessor loads the startup code from the address 0x08000000, initializes the system clock, and the independent watchdog timer (IWDG) is configured with a timeout period of T seconds, and it is necessary to feed the dog periodically in the main loop to prevent the program from running away.

[0047] Step 1.2: Non-volatile memory (FLASH or EEPROM) parameter reading, accessed by the microprocessor via the bus. First, device address 0xA0 (write operation) + register address 0x00 is sent, then the repeat start condition (Sr) and device address 0xA1 (read operation) are sent, continuously reading 7 bytes of parameters. The specific parameter mapping is as follows: (The following addresses are merely examples; the system can flexibly allocate mappings according to actual planning and specific address space) Address 0x00: Target channel number (Channel_ID), with a value range of 0x00-0x09, corresponding to levels 0-9; Address 0x01: Mode flag (Mode_Flag), 0x00 = single-channel mode, 0x01 = multi-channel mode; Address 0x02: Role_Flag, 0x00 = Slave sensor, 0x01 = Master sensor; Address 0x03-0x04: Light Threshold, a 16-bit integer, in Lux; Address 0x05: Sensitivity, with values ​​0x00-0x03 corresponding to 10%, 25%, 50%, and 100% respectively; Address 0x06: Strategy Code, 0x01 = Stairwell Mode, 0x02 = Long Corridor Mode, 0x03 = Regional Mode; When the Channel_ID read is 0x00, the microprocessor sets the system status register Status to 0x01 (single-machine mode), the 2.4G wireless module is not initialized, and the local control loop is entered directly. When Channel_ID ∈ [0x01, 0x09], Status is 0x02 (network mode), and the wireless module initialization continues.

[0048] Step 1.3: Initialization of the 2.4G wireless transceiver module II. Implementation examples for the physical configuration phase, see Appendix Figure 1 The "knob rotation" event handling branch in the code is an offline manual operation that can be completed without power.

[0049] Step 2.1: Rotary Encoder Operation and Channel Number Setting. The installer holds the insulated operating rod (or rotates the encoder knob by hand). The rotary encoder uses a mechanical positioning structure internally, switching gears every 36° rotation, producing a clear "click" feel. The arrow pointer on the top of the knob points to the numbers "0" to "9" printed on the panel. Key mapping relationship: In stairwell applications, the first-floor light fixture is coded as "1", the second floor as "2", and so on, with the coded numbers completely consistent with the floor numbers; in underground parking garage applications, the A zone channel is coded as "1", the B zone as "2", corresponding to the area sign numbers. This continuous visual correspondence allows installers to complete the configuration directly based on the building floor plan without having to memorize abstract codes. After rotating to the correct position, even if the light fixture is not powered on, the mechanical structure has locked the gear, the corresponding internal contacts are closed, and the GPIO port level connected to the microprocessor is physically determined.

[0050] Step 2.2: Configure the DIP switch mode. Use a flathead screwdriver or your finger to toggle the 2-position DIP switch: Switch-CH (Mode Bit): When switched to the ON position, the switch is closed, the microprocessor pin reads a low level, and the system is configured for multi-channel receiving mode. In this mode, the luminaire responds to the trigger command of this channel, as well as adjacent Channel_ID±1 channels, suitable for stairwells and corridors where "pre-lighting" is required. When switched to the OFF position, the switch is open, the GPIO reads a high level, and the system is configured for single-channel mode. The luminaire only strictly responds to commands of this channel, suitable for warehouse scenarios with independent zone control.

[0051] Step 2.3: Parameter Consolidation and Visual Confirmation After the light fixture is powered on, the microprocessor detects changes in the rotary encoder's gear position and DIP switch status (compared to stored values, which can also be stored in EEPROM), and executes the parameter update program: 1. Write the new Channel_ID to address 0x00; 2. Write Mode_Flag and Role_Flag to addresses 0x01 and 0x02 respectively; 3. LED light flashing function: Number of flashes = Channel_ID value, each flash lasts 1 second on and 1 second off. For example, using a remote control to synchronize the light parameters of channel 3, the light will flash 3 times continuously. The installer can visually confirm the correct configuration from the ground. This process is the basic function of maintenance-free operation without ladders.

[0052] III. Implementation Examples of the Network Discovery Phase See appendix Figure 1 The "Broadcast Network Discovery Message" and "Received Wireless Message" processing branches are included. This stage is executed automatically after configuration and requires no manual intervention.

[0053] Step 3.1: Network Discovery Message Format and Broadcast Mechanism Once the main sensor completes its physical configuration and is powered on, the microprocessor determines that Role_Flag = 0x01 (main role) and immediately starts the network discovery timer T_discovery (implemented by the TIM3 timer, with a period of 5 seconds). Each time the timer overflows, the microprocessor assembles and broadcasts a network discovery message. The specific frame format is only an example: (The specific format can be adjusted according to actual needs, and the frame structure, order, etc., can be adaptively adjusted as required). |Field Name| |Frame header|: 2 bytes, fixed value 0x4544, used by the receiving end for frame synchronization, and is used to detect and locate the start boundary of a complete message.

[0054] |Packet Length| 1 byte, ranging from 9 to 15, indicating the length of the data portion from the "Packet Length" byte to the "Checksum" byte. Used by the receiver to dynamically parse variable-length data frames.

[0055] |Identification Code| 8 bytes, a unique device identifier used to uniquely identify a device in a network or system, enabling accurate addressing and authentication.

[0056] |Command|: 1 byte, a predefined command encoding that defines the operation type or request of this frame and is the core instruction that drives the receiver to execute the corresponding function.

[0057] |Data|: 0 to 6 bytes, parameters or payload related to the command, carrying specific information, configuration parameters or valid data to be transmitted for command execution.

[0058] |Checksum|: 1 byte, calculated by the CCITT-8 algorithm, to verify the data integrity from the “frame header” to the “data” field (i.e., the entire data packet, excluding the frame tail), ensuring reliable transmission.

[0059] |Frame End|: 1 byte, fixed value 0x0A, marks the end of a complete data frame, assists the receiver in frame delimitation, and improves the robustness of the protocol.

[0060] Broadcast transmission process: The microprocessor pulls the chip select pin of the 2.4G wireless transceiver module low, writes the transmit command 0xE7 (transmit payload) via SPI, then writes 7 bytes of message content, and finally pulls CS high to trigger transmission. The transmission duration is approximately 200μs, and the 2.4G wireless transceiver module automatically switches back to receive mode after completion.

[0061] Step 3.2: Receive data from sensors and maintain the list The sensor node (Role_Flag = 0x00) continuously listens in the receiving mode. When a network discovery message is received, the microprocessor performs the following processing: 1. CRC check: When the check fails, discard the message, do not wake up the MCU (automatically processed by hardware), and the power consumption remains at 13 mA.

[0062] 2. Channel number comparison: Extract the 4-byte channel number from the message. If it is the same as the local Channel_ID or within the range of local Channel_ID ± 1 (and Mode_Flag = 0x01), it is regarded as a valid neighbor node.

[0063] 3. Master-slave identification judgment: When the master-slave identification = 0x01, store the channel number and signal strength value in the list of communicable master nodes (stored in the array Master_List[8] in FLASH, with a maximum of 8 master nodes recorded). 4. Aging mechanism: When a message is received each time, clear the timer for the corresponding list item; when no message from a certain master node is received for 30 consecutive seconds, remove it from the list to prevent responding to expired nodes.

[0064] After this stage, each slave sensor maintains a dynamically updated adjacency master node table, providing a routing basis for subsequent linkage responses.

[0065] IV. Embodiment of the trigger response stage See the "5.8G induction trigger" and "detect valid movement signal" processing branches in Appendix Figure 1 . This stage is the core control logic of the entire system.

[0066] Step 4.1: Human body induction signal acquisition and validity judgment The microwave radar module (5.8 GHz microwave radar) continuously emits detection signals. When a human body enters the sensing range, the reflected signal generates a Doppler frequency shift. The radar module outputs an intermediate frequency analog signal to the AD sampling pin of the microprocessor, with a sampling frequency of 10 kHz, and performs an FFT spectrum analysis every 128 points collected. The judgment conditions for a valid movement signal are as follows: Frequency shift range: The spectral peak frequency f_peak ∈ [1 Hz, 40 Hz], corresponding to a human body movement speed of 0.2 m / s (slow walk) to 5 m / s (running); Signal strength: The peak amplitude A_peak > the dynamic threshold Th_dynamic, where Th_dynamic = the reference threshold (set value) + the environmental noise floor (calculated in real time); Duration: Three consecutive FFT analyses all meet the above conditions (about 38.4 ms) to avoid false triggering by instantaneous interference; When the preset threshold condition is met, the microprocessor sets the interrupt flag Motion_Flag=1 and records the trigger timestamp T_trigger (TIM2 counter value).

[0067] Step 4.2: Ambient light condition determination. After the main sensor is triggered, it immediately queries the value of the photosensor. The photosensor detection uses a dual-sensor differential algorithm: Ambient light sensor output voltage V_ambient(ADC1_IN0); The output voltage of the SFH 4545 self-illuminating lamp sensor is V_self (ADC1_IN1). Actual ambient illuminance Lux = k1 × V_ambient - k2 × V_self, where k1 and k2 are calibration coefficients (stored in FLASH 0x08-0x0B). If the calculated Lux ​​value is greater than Light_Threshold (the threshold stored at addresses 0x03-0x04, defaulting to 200 Lux), it is determined to be daytime or sufficient light. The microprocessor then blocks this trigger, neither executing lighting output nor sending wireless broadcasts, thus saving energy. If Lux is less than or equal to Light_Threshold, proceed to the next step.

[0068] Step 4.3: Trigger command frame assembly and broadcast The main sensor executes the lighting output of this lamp (mode 1 outputs high or low levels; mode 2 drives the PWM to 100% duty cycle or outputs a 0-10V dimming signal) and assembles a trigger command frame. Compared to the network discovery message, the trigger command frame adds the following fields: |Field Name|.

[0069] |Frame header|: 2 bytes, fixed value 0x4544, used by the receiving end for frame synchronization, and is used to detect and locate the start boundary of a complete message.

[0070] |Packet Length|: 1 byte, ranging from 9 to 15, indicating the length of the data portion from the "Packet Length" byte to the "Checksum" byte. Used by the receiver to dynamically parse variable-length data frames.

[0071] |Identification Code|: 8 bytes, a unique device identifier used to uniquely identify a device in a network or system, enabling accurate addressing and authentication.

[0072] |Command|: 1 byte, a predefined command encoding that defines the operation type or request of this frame and is the core instruction that drives the receiver to execute the corresponding function.

[0073] |Data|: 0 to 6 bytes, parameters or payload related to the command, carrying specific information, configuration parameters or valid data to be transmitted for command execution.

[0074] |Checksum|: 1 byte, calculated by the CCITT-8 algorithm, to verify the data integrity from the “frame header” to the “data” field (i.e., the entire data packet, excluding the frame tail), ensuring reliable transmission.

[0075] Step 4.4: Calculation method for velocity estimation If the main sensor receives a trigger command frame from the adjacent channel's main node within a time interval T_self (e.g., 5 seconds) prior to this trigger, the speed can be calculated using the time difference. Let: Last trigger timestamp T_prev (recorded in RAM); The trigger timestamp is T_now (the current value of TIM2). Time difference Δt = T_now - T_prev; The installation spacing d between adjacent light fixtures (default value 5 meters, can be configured via remote control and stored in FLASH 0x0C).

[0076] The velocity estimate is v = d / Δt (in m / s). The microprocessor quantizes it as a 1-byte unsigned integer: Value = v × 10, which is a resolution of 0.1 m / s. For example, if v = 1.3 m / s, the velocity estimate is 0x0D. When Δt > 5 seconds (considered an isolated trigger), the velocity estimate is set to 0xFF (indicating unknown).

[0077] V. Examples of the Joint Execution Phase See appendix Figure 1 The decision branches are "message group matches device group" and "local parameter judgment".

[0078] Step 5.1: Linked Execution in Single-Channel Reception Mode After receiving the trigger command frame from the sensor (Mode_Flag=0x00), perform strict matching: Extract the channel number from the frame and execute the lighting response only if it is exactly equal to the local Channel_ID; Response action: Immediately drive the light fixture to 100% brightness (same as the trigger source), hold for Hold_Time (address 0x10, default 30 seconds), and then gradually change to standby brightness Standby_Brightness (10%). Filtering mechanism: When the channel number does not match, the frame is automatically dropped at the MAC layer, the MCU is not woken up, and the system maintains standby power consumption of <0.5mA; This mode is suitable for parking lot zone control, ensuring that triggering in zone A does not affect the lights in zone B, thus avoiding energy waste.

[0079] Step 5.2: Dynamic Delay Response in Multi-Channel Receive Mode After receiving the trigger command frame from the sensor (Mode_Flag=0x01), perform channel range matching: Matching condition: Channel_ID in the frame == local Channel_ID, or == local Channel_ID ± 1 (i.e., adjacent channels); Speed-tiered latency: The microprocessor selects different response timings based on speed estimates. An example program is shown below. if (Speed_Est >= 20) { / / ≥2m / s (running or emergency) Delay_ms = 50; Brightness = 100; / / Full brightness for safety } else if (Speed_Est >= 8 & Speed_Est <= 15) { / / 0.8-1.5m / s (normal walking speed) Delay_ms = 200; Brightness = 80; / / 80% brightness, anti-glare } else { / / <0.8m / s (walking slowly or standing still) Delay_ms = 500; / / Longer delay, prioritize energy saving Brightness = 60; / / 60% brightness, basic lighting } The microprocessor starts the TIM6 (general-purpose timer) as a delay timer. When the TIM6 count reaches Delay_ms, an interrupt is generated, and the lamp is driven to the specified brightness in the interrupt service routine. During the delay, the MCU can enter Sleep mode, reducing power consumption to 1.5mA.

[0080] Step 5.3: Linkage Timing and Lights-Off Strategy (Based on the "Conditions Met / Not Met" Branches in the Flowchart) After the sensor responds, it starts two timers: Hold timer: The timer is set to Hold_Time (default 30 seconds). If a new trigger command frame is received during this time, the timer is reset. Lights-out timer: Starts after TIM7 timeout, counts down to Standby_Period (default 10 minutes), and drives the lights to reduce to standby brightness (10%). If no new trigger occurs within Standby_Period, the lights will be completely turned off. The master and slave nodes employ a differential strategy for turning off lights: the slave sensor turns off 10 seconds later than the master sensor, ensuring auxiliary lighting remains even after people leave the area. For example, in a stairwell scenario, after people leave the second floor, the main light on the second floor turns off 30 seconds later, while the slave lights on the first and third floors turn off 40 seconds later, preventing a sudden complete darkness.

[0081] Step 5.4: Collision avoidance and retry mechanism (not explicitly shown in the flowchart but implied in the "broadcast" stage); After the main sensor broadcasts a trigger command frame, it does not wait for ACK confirmation, thus achieving connectionless networking and reducing protocol complexity. However, to improve reliability, the following mechanism is adopted: Broadcast count: The same frame is sent 3 times consecutively, with an interval of 10ms. The receiver performs deduplication (determined by triggering source node ID and sequence number). Backoff mechanism: Before transmission, the microprocessor checks the carrier detection pin of the 2.4G wireless transceiver module. If the channel is busy, it will backoff randomly for 10-50ms and then retry, with a maximum of 3 retries. Collision avoidance: The sensor does not send any wireless frames, only receives them, completely eliminating collisions caused by multiple nodes transmitting simultaneously.

[0082] VI. Implementation Examples of Remote Control Configuration Phase See appendix Figure 1 The "knob rotation" event handling in the system. This stage is a remote supplement to the physical configuration.

[0083] Step 6.1: Remote control read commands The remote control has built-in encoding, with each button corresponding to a 24-bit address code and a 4-bit data code. When the "Read" button is pressed and held, the remote control receiver module demodulates the data code 0x01 and sends it to the microprocessor via the UART interface at a baud rate of 2400bps. Other communication protocols or interfaces can also be used. After parsing the command, the microprocessor reads parameters such as Channel_ID and Mode_Flag from the FLASH memory. It uses the number of LED flashes to indicate the channel number and uses a combination of long and short LED flashes to indicate the mode status (e.g., a long flash for 1 second indicates multi-channel mode, and two short flashes indicate the main sensor role).

[0084] Step 6.2: Parameter Modification Command A short press of the number "5" key on the remote control sends data code 0x05 to the light fixture. Upon receiving this data, the microprocessor executes: 1. Update the value at FLASH address 0x00 to 0x05; 2. Confirm by flashing the LED 5 times; 3. When Mode_Flag=0x01 (multi-channel mode) and Role_Flag=0x01 (primary role), immediately broadcast a network discovery message to notify neighboring nodes to update the list; Step 6.3: Batch synchronization command (the core of claim 10) Press and hold the "SYNC" button on the remote control for 3 seconds; data code 0x09 will be continuously transmitted. After the microprocessor receives the data: 1. Set the Sync_Flag flag; 2. Read all parameters of the local machine (Channel_ID, Mode_Flag, Sensitivity, Hold_Time, etc.); 3. Assemble a synchronization command frame (frame type identifier 0x55 + parameter packet) and broadcast it via the 2.4G wireless transceiver module; 4. After all sensors in the same channel receive the synchronization frame, they write the parameter packet to the corresponding address in the FLASH memory and flash the LED three times to confirm.

[0085] This feature is particularly suitable for large parking lot projects: managers can change the "Hold_Time" of 100 lights from 30 seconds to 60 seconds at once using a remote control on the ground, without having to climb ladders to operate each light individually, improving efficiency by more than 95%.

[0086] VII. Comprehensive Implementation Examples of Typical Application Scenarios Scenario 1: Example of progressive lighting in a stairwell Configuration: Floors 1-5, passage numbers 1-5, all set to multi-channel mode, each floor has a master sensor (Switch-2=ON). Personnel ascending from floor 1: At time t0: The sensor on the first floor is triggered, and a trigger command frame is broadcast (channel 1, speed estimate 0x0A = 1.0m / s). t0+200ms: The second floor receives a frame from the sensor (channel 2=1+1), and after a delay of 200ms, 80% of the lights are turned on; At time t1 (personnel arrive on the 2nd floor): the main sensor on the 2nd floor is triggered, broadcasting a frame (channel 2, speed 1.0m / s). t1+200ms: Floor 3 lights up to 80%, Floor 1 dims to standby based on the condition of "no trigger for 30 seconds"; Lights-out sequence: After people leave the 3rd floor, the main light on the 3rd floor turns off after 30 seconds, and the secondary lights on the 2nd and 4th floors turn off after 40 seconds, forming a "follow-lag" energy-saving lighting chain.

[0087] Scenario 2: Example of long-channel following lighting (corresponding speed estimation calculation) Configuration: 50-meter long corridor, 10 lights in channels 1-10, multi-channel mode, main sensor. Personnel walking at 1.2 m / s: The third light is triggered first, the calculated speed estimate is 0x0C, and the trigger command frame is broadcast. The 4th, 5th, and 6th lamps (adjacent channels) received frames with a speed between 0.8 and 1.5 m / s, all experiencing a 200 ms delay in responding to 80% of the frames. The 7th light, due to its distance being greater than 2 channels (3 x 5 meters = 15 meters), has a signal strength below the reception threshold and therefore does not respond, thus achieving precise "3-light linkage".

[0088] Scenario 3: Example of parking lot area control (corresponding to single-lane mode); Configuration: Channel 1 in Zone A (10 lights), Channel 2 in Zone B (12 lights), all set to single-channel mode, main sensor: When the entrance light in Zone A is triggered, it is only broadcast to nodes in the same channel within Zone A. The MAC layer of the lights in Zone B filters the message and does not respond. It achieves independent zone control, preventing unnecessary lighting in zone B from caused by vehicles entering zone A, with an energy saving rate of >50%.

[0089] The lighting fixtures and networking system implemented using the technical solution disclosed in this invention, after testing and comparison with existing products, exhibit the following significant technical advantages: System response time: from the moment a person moves to the moment the light fixture turns on, the main sensor's response time is <50ms, and the slave sensor's response time (including delay) is <250ms, which is far superior to the industry standard of 500ms. Configuration efficiency: A skilled electrician can configure 20 lights in groups in an average of 28 minutes, while the traditional DIP switch solution takes 85 minutes, resulting in a 67% efficiency improvement. Wireless reliability: In a real-world test in a 1000-square-meter underground parking garage, the broadcast success rate was >99.5%, and the collision rate was <0.1%. Energy saving effect: Compared with the full-brightness solution, the energy saving in the stairwell scenario is 58%, the energy saving in the long corridor scenario is 45%, and the energy saving in the parking lot area is 62%.

[0090] The following examples of typical lighting installation and maintenance scenarios illustrate the network-based collaborative control workflow of the various components.

[0091] Scenario 1: Initial installation and configuration of new lighting fixtures After the installer secures the light fixture to the ceiling, they stand on the ground and use a 3-meter-long insulated operating rod (or reach it by hand, as the installation height of the light fixture is usually <3.5 meters) to rotate the encoder knob. According to the architectural design drawings, the channel number of the light fixture in the third corridor is set to "3". At this point, the microprocessor detects the pulse sequence, parses the level value, immediately writes the value "3" to address 0x00, and drives the LED to flash 3 times for confirmation. Then, the operator uses the operating rod to toggle the DIP switches: Switch-1 is switched to ON (multi-channel mode), and Switch-2 is switched to ON (master sensor role). The microprocessor detects the level change and writes the mode flag "0x01" and role flag "0x01" to addresses 0x01 and 0x02, respectively, completing the configuration. The entire process requires no electronic equipment and takes approximately 30 seconds.

[0092] Scenario 2: Channel Number Reading and Verification Maintenance personnel hold the remote control, point it at the light fixture, and press and hold the "Read" button for 2 seconds. The DATA pin of the remote control receiver module outputs a binary code stream to the microprocessor. After parsing the read command, the microprocessor reads the Channel_ID from address 0x00 and drives the LED to blink the corresponding number of times. Maintenance personnel can observe the number of blinks on the ground to determine if the configuration is correct. When modification is needed, a short press of the number key "5" on the remote control will cause the microprocessor to receive the data, update address 0x00, and drive the LED to blink 5 times to confirm the new value. The entire process requires no climbing.

[0093] Scenario 3: Triggering multi-light fixture linkage When personnel enter area 3 of passageway, the intermediate frequency signal from the microwave radar module, after ADC sampling and FFT processing, detects a 2.5Hz Doppler frequency shift (corresponding to a walking speed of approximately 1.3m / s) and a signal-to-noise ratio >5dB. The microprocessor determines this as a valid trigger. The microprocessor immediately performs the following operations: 1. Check the ADC value of the light sensor. When the ambient light is less than 100 Lux, drive the PWM output to 100% duty cycle so that the lamps are fully lit.

[0094] 2. Send instructions via the RF module. The trigger command frame format is: preamble 0xAA55 (2 bytes) + channel number 0x03 (4 bytes) + trigger source ID 0x0001 (2 bytes) + speed estimate 0x0D (1 byte, quantization value 1.3m / s) + CRC check (1 byte).

[0095] 3. The 2.4G wireless transceiver module broadcasts the frame at a rate of 1Mbps three times, with an interval of 10ms, to ensure reliability.

[0096] After receiving frames from the sensors in channels 2 and 4, the channel numbers are parsed to determine that they belong to adjacent channels. The local FLASH is then checked to confirm that the device is in multi-channel mode. After a 200ms delay, the lights are driven to 80% brightness to achieve advance lighting.

[0097] The 35° angle of the rotary encoder can be achieved through structural design: the rotary encoder body is soldered onto the PCB, and the PCB mounting surface is at a 55° angle to the base of the lamp (relative to the horizontal plane). After the lamp is installed, the base is parallel to the ceiling. Therefore, the angle between the rotary encoder axis and the vertical wall is 35°, which meets the claim of "an angle of 30-45° with the pedestrian's eye level". This angle design has been verified by actual measurement, and at an installation height of 2.5 meters and a viewing distance of 3 meters, the digital readability is optimal, with an error rate of <2%.

[0098] This invention transforms abstract digital coding into intuitive physical spatial mapping through a hardware combination of a physical rotary encoder and a DIP switch, significantly reducing cognitive load; it achieves decentralized networking through a custom lightweight 2.4G protocol, avoiding dependence on gateways and cloud services; it supports ground maintenance via remote control, eliminating the risks of high-altitude operations; and it achieves refined, predictive lighting control through speed estimation algorithms and multi-channel receiving modes, striking a balance between energy saving and user experience.

[0099] The above description is merely a preferred embodiment of the present invention and does not limit its patent scope. For those skilled in the art, any modifications, equivalent substitutions, or improvements made without departing from the principles of the present invention should be included within the protection scope of the present invention. For example, a PIR pyroelectric inductor can be used instead of a microwave radar module; an electronic knob can be used instead of a mechanical knob for a rotary encoder; and a Bluetooth Mesh or ZigBee chip can be used to achieve equivalent functionality in a 2.4G wireless module. These variations still fall within the scope of the present invention's technical concept.

Claims

1. A wireless sensor, comprising: The system comprises a microprocessor, non-volatile memory, a 2.4G wireless transceiver module, a remote control receiver module, a rotary encoder, a DIP switch, a photosensor, and a microwave radar module. The rotary encoder has digital scales and arrow pointers for setting the target channel number of the luminaire, and the digital scales have a continuous visual correspondence with the building space area number. The DIP switch includes a channel mode setting bit for configuring a single-channel or multi-channel receiving mode. The non-volatile memory stores the target channel number, mode parameters, and linkage strategy. The 2.4G wireless transceiver module sends or receives interactive data in a network mode, the interactive data including the channel number and / or trigger source identifier. When the wireless sensor is in multi-channel receiving mode, it responds synchronously with adjacent channel luminaires.

2. The wireless sensor according to claim 1, characterized in that, Wireless sensors can be networked via 2.4GHz, Bluetooth, and / or Mesh networking.

3. The wireless sensor according to claim 1, characterized in that, When the arrow pointer of the rotary encoder points to channel 0, it is in stand-alone mode and is used as an independent sensor. When the arrow pointer of the rotary encoder points to any one of the channels between channel 1 and channel 9, it is in networking mode, which is used to achieve linkage with other wireless sensors.

4. The wireless sensor according to claim 1, characterized in that, The DIP switch can be set to either a single-channel mode or a multi-channel mode. When the mode bit is on the ON side, it is configured as a multi-channel receiving mode, and when the mode bit is on the OFF side, it is configured as a single-channel receiving mode. The single-channel mode is used to receive the trigger signal of the current channel, while the multi-channel mode is used to link with adjacent wireless sensors that are in multi-channel mode.

5. The wireless sensor according to claim 1, characterized in that, The remote control receiving module is used to receive signals from an external remote control, and the code value of the remote control signal is used to perform secondary settings on the wireless sensor.

6. The wireless sensor according to claim 1, characterized in that, The 2.4G wireless transceiver module is used to send or receive interactive data in network mode. The interactive data includes channel number, trigger source identifier, and speed estimate. When the wireless sensor is in multi-channel receiving mode, the response strategy of adjacent channel lights is dynamically adjusted based on the human movement speed estimate, where the human movement speed estimate = d / Δt, d is the distance between adjacent lights, and Δt is the continuous trigger time difference. The response strategy includes brightness and delay time.

7. A lamp, characterized in that, It integrates the wireless sensor as described in any one of claims 1-6.

8. A method for implementing wireless sensor networking and control, wherein the method is applied to the lighting fixture described in claim 7, characterized in that, Includes the following steps: The microprocessor reads the pre-stored channel number, single-channel mode flag, and / or multi-channel mode flag from the non-volatile memory, and initializes the 2.4G wireless transceiver module to enter the listening state. The target channel number is set by manually adjusting the rotary encoder, and the target channel number has a continuous mapping relationship with the physical space of the building; the single-channel receiving mode or the multi-channel receiving mode is set by the DIP switch. After configuration, when a sensor detects a trigger event, the sensor, as the master sensor node, broadcasts the first interactive data via a 2.4G wireless channel. The first interactive data includes a trigger signal, a number of forwards, and a trigger channel number message. Sensors within the communication range receive the message. When any sensor's microwave radar module detects a valid movement signal, it executes the lighting output control of this lamp and broadcasts second interactive data via a 2.4G wireless channel; the second interactive data includes the channel number, trigger source node ID, and forwarding count; After other sensors receive the node ID of the second interaction data, determine whether it has already been received; If it is determined that the second interaction data has been received, then the operation corresponding to the second interaction data will not be executed; If it is determined that the second interactive data has not been received, the channel number in the frame is compared with the channel number stored locally; If the device is in single-channel receive mode and the channel number is consistent, then a lighting response is executed; If the device is in multi-channel receive mode and the channel number belongs to the device's channel or its adjacent channel, then a lighting response is executed; Check if the maximum number of forwards has been reached; if it has, there is no need to forward.

9. The wireless sensor networking and control implementation method according to claim 8, characterized in that, The first or second interactive data uses a custom lightweight frame format, which includes a 2-byte frame header, a 1-byte packet length, an 8-byte identification code, a 1-byte command, 0 to 6 bytes of data, a 1-byte checksum, and a 1-byte frame trailer.

10. The wireless sensor networking and control implementation method according to claim 8, characterized in that, The steps of executing lighting output control of the lamp and broadcasting second interactive data via a 2.4G wireless channel when the microwave radar module of any sensor detects a valid movement signal include: Each of the sensors will execute the lighting output control of the lamp only when it detects a valid movement signal and the photosensor determines that the ambient light is below a set threshold, and will broadcast the second interactive data through the 2.4G wireless channel.

11. The wireless sensor networking and control implementation method according to claim 8, characterized in that, After the step of executing the lighting output control of the luminaire when the microwave radar module of any sensor detects a valid movement signal and broadcasting the second interactive data via the 2.4G wireless channel, the method further includes: The remote controller sends a parameter modification command to the target lamp. After receiving the command through the remote controller receiving module, the lamp updates the channel number, detection area sensitivity, hold time or standby time parameters in the non-volatile memory, and confirms the successful modification by flashing the lamp. If the remote control detects that the user has pressed and held the synchronization button for more than 3 seconds, it will broadcast a synchronization command frame to all sensors in the same channel. After receiving the synchronization command frame, any sensor broadcasts its own parameters to other slave sensors in the group, thereby achieving batch parameter synchronization.

12. A method for implementing wireless sensor networking and control, wherein the method is applied to the lighting fixture of claim 7, characterized in that, Includes the following steps: The microprocessor reads the pre-stored channel number, single-channel mode flag, multi-channel mode flag and / or master-slave role parameters from the non-volatile memory, and initializes the 2.4G wireless transceiver module to enter the listening state. The target channel number is set by manually adjusting the rotary encoder. The target channel number has a continuous mapping relationship with the physical space of the building. The single-channel receiving mode or multi-channel receiving mode is set by the DIP switch. When the multi-channel receiving mode is set, the node is further designated as the master sensor or the slave sensor. After configuration, the master sensor node broadcasts a discovery message via a 2.4G wireless channel. After receiving the discovery message from the sensor node, it records a list of communicable master nodes. The discovery message includes the local node's channel number and master / slave identifiers for network discovery. When any of the main sensors' microwave radar modules detects a valid movement signal, the lighting output control of this lamp is executed, and third interactive data is broadcast to all nodes in the target channel via a 2.4G wireless channel; the third interactive data includes the channel number, the trigger source node ID, and the speed estimate. The node that receives the third interactive data compares the channel number in the frame with the channel number stored locally. If the local machine is in single-channel receiving mode and the channel number matches, then it executes a lighting response. If the device is in multi-channel receiving mode and the channel number belongs to the device channel or its adjacent channel, then the lighting response is executed according to the preset timing delay; wherein, the third interactive data adopts a custom lightweight frame format, which includes 2 bytes of preamble, 4 bytes of channel number, 1 byte of master-slave identifier, 1 byte of signal strength indicator and 1 byte of cyclic redundancy check.

13. The wireless sensor networking and control implementation method according to claim 12, characterized in that, The step of executing the lighting output control of this lamp and broadcasting third interactive data to all nodes in the target channel via a 2.4G wireless channel when the microwave radar module of any main sensor detects a valid movement signal includes: The main sensor will only execute the lighting output of this lamp and broadcast the trigger command frame when it detects a valid motion signal and the photosensor determines that the ambient light is below a set threshold. After the steps of executing the lighting output control of this lamp when the microwave radar module of any main sensor detects a valid movement signal, and broadcasting third interactive data to all nodes in the target channel via a 2.4G wireless channel, the method further includes: In multi-channel receiving mode, when the estimated human movement speed is greater than the first speed, the lights in the adjacent channels will respond after a 50ms delay; where the first speed includes 2 meters per second. When the estimated human movement speed is within the first speed range ∈ [0.8, 2] m / s, the adjacent channel lights will respond to 80% brightness after a 200ms delay; where the first speed range includes 0.8 to 2 m / s; When the estimated human movement speed is less than the second speed, the adjacent channel lights respond to 60% brightness after a 500ms delay; wherein, the second speed includes 0.8 m / s; wherein, the estimated human movement speed is calculated by the main sensor through a continuous trigger time difference Δt, the installation distance between adjacent lights is d, and the speed estimate v = d / Δt.