A three-mode communication control system and control method based on LED lighting
Patent Information
- Application Number
- CN202611321791.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-28
- Publication Date
- 2026-10-16
AI Technical Summary
[0004]本发明的目的是提供一种基于LED照明的三模通信控制系统及控制方法,能够解决现有技术中存在的单模传输架构在复杂信道分布与高并发指令场景下易导致协议帧丢失及重传拥塞的缺陷问题
本发明,基于通信模式标识符的物理层参数动态配置与协议帧封装逻辑,使控制指令在传输前的载荷对齐与掩码操作由浮点计算转为定点移位映射,进而将底层算术逻辑单元的计算周期缩减至微秒级,实现多模协议帧在不同物理信道间的低延迟无缝切换。
Smart Images

Figure CN122933803A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of communication control technology, specifically relating to a three-mode communication control system and control method based on LED lighting. Background Technology
[0002] Intelligent lighting control systems typically rely on a single physical layer transmission protocol to interconnect devices. After receiving dimming or switching commands from the host computer, the gateway converts them into a specific wireless radio frequency or power line carrier frame format, and broadcasts or unicasts them to the end lighting nodes via the bus network. The nodes parse the target address and data payload fields within the frame, update the underlying driver registers, and send a status acknowledgment response to the gateway to complete the data interaction.
[0003] Problems with existing technology: However, single-mode transmission architectures have inherent limitations in complex channel distributions, high-concurrency command scenarios, or when edge computing resources are limited. When impulse noise in the mains line causes a sudden increase in the bit error rate of the carrier channel, the system lacks the ability to quickly switch between heterogeneous links, continuously consuming MCU computing power for invalid retransmissions on poor-quality channels. At the same time, static backoff and fixed queue mechanisms can cause channel contention when commands suddenly accumulate, leading to RAM buffer overflows and frequent context switching in the edge gateway, ultimately causing blocking of underlying control signaling or severe delay in driver response. Summary of the Invention
[0004] The purpose of this invention is to provide a three-mode communication control system and control method based on LED lighting, which can solve the defects of the existing single-mode transmission architecture, which is prone to protocol frame loss and retransmission congestion in complex channel distribution and high-concurrency command scenarios.
[0005] The specific technical solution adopted by this invention is as follows: A three-mode communication control method based on LED lighting includes the following steps: Obtain the control command set for the target lighting node; Parse the header fields of the control instruction set to extract the communication mode identifier and data payload; The corresponding physical layer transceiver is initialized based on the communication mode identifier, and link configuration parameters including carrier frequency, modulation order and transmit power are generated. The data payload is encapsulated into a protocol frame that matches the communication mode identifier and written into the transmission queue; Based on link configuration parameters, protocol frames are transmitted through the selected communication channel. Monitor the feedback signal of the communication channel, and end the current distribution process when an acknowledgment response is received; If no acknowledgment response is detected within the preset time, the current channel state is determined to be abnormal. The system switches to the backup communication channel and re-executes the steps of encapsulating the data payload until the retransmission of the protocol frame is completed or the maximum retry threshold is reached.
[0006] According to another aspect of the present invention, the data structure of the protocol frame includes a fixed-length frame header, a variable-length data area, and a checksum tail segment; The frame header contains, in byte order, the frame synchronization flag, the communication mode identifier, the target node address, the data length field, and the sequence number; The checksum is calculated using the Cyclic Redundancy Check (CRC) algorithm on the frame header and data area, and the resulting checksum is appended to the end of the data area.
[0007] According to another aspect of the present invention, the monitoring of the return signal of the communication channel includes: Real-time acquisition of the current channel received signal strength indicator and continuous packet loss counter; The received signal strength indicator is compared with the static threshold. If it is lower than the static threshold and the cumulative value of the continuous packet loss counter is greater than zero, a channel quality degradation flag is triggered.
[0008] According to another aspect of the present invention, the switching to the backup communication channel includes: Query the preset channel priority table to determine the candidate communication mode with the second highest priority; Initialize the RF front-end or power line coupling circuit corresponding to the candidate communication mode and inject the wake-up sequence; Extract the protocol frames from the queue to be retransmitted, update the sequence number, and repackage them into a new mode protocol frame.
[0009] According to another aspect of the present invention, it further includes: Before initiating downlink control commands, a probe signal is broadcast to each node to be controlled; Count the number of nodes that respond to the probe signal within the listening window; When the number of responding nodes is less than 80% of the total number of initial network registrations, a full-band scanning procedure is initiated to reallocate sub-channel resources for each communication mode.
[0010] According to another aspect of the present invention, after the protocol frame is sent, the method further includes: Receive status report frames returned by the lighting nodes; Analyze the fault code field in the status reporting frame to determine if there is an over-temperature or under-voltage alarm; When a fault code field is detected to match a preset safety threshold, a forced frequency reduction instruction is written to the control register of the LED driver or the output enable bit is cut off.
[0011] According to another aspect of the present invention, initializing the corresponding physical layer transceiver according to the communication mode identifier specifically includes: When the communication mode identifier corresponds to a power line carrier, configure the center frequency of the bandpass filter and load the orthogonal frequency division multiplexing carrier mapping table. When the communication mode identifier corresponds to Bluetooth Low Energy, set the broadcast channel number and connection interval timer; When the communication mode identifier corresponds to the subhertz frequency band, adjust the spreading factor and symbol rate and activate the half-duplex switch.
[0012] According to another aspect of the present invention, the process of parsing a control instruction set into a structured data packet includes: Establish a lookup table mapping instruction types to underlying register offset addresses; The target register address and write mask are obtained by querying the mapping lookup table according to the instruction type. Align the user-defined brightness level or color temperature value to the valid bits of the write mask to generate a writable data block.
[0013] According to another aspect of the present invention, the process of writing a protocol frame into a queue to be transmitted includes memory page allocation logic for the queue buffer; When the queue length exceeds the preset capacity level, a persistent backup sector write operation is triggered in the non-volatile memory to prevent the loss of pending instructions due to system restart.
[0014] According to another aspect of the present invention, a three-mode communication control system based on LED lighting is also provided, applied in a smart lighting gateway device, the system comprising: The instruction receiving unit acquires the target lighting node control instruction set sent by the external host computer; The protocol processing unit is used to parse the header fields of the control instruction set, extract the communication mode identifier and data payload, and initialize the corresponding physical layer transceiver according to the communication mode identifier to generate link configuration parameters. The frame construction unit encapsulates the data payload into a protocol frame that matches the communication mode identifier and writes it into the transmission queue; The channel scheduling unit transmits protocol frames through the selected communication channel based on the link configuration parameters. If no acknowledgment response is received within a preset time, the current channel status is determined to be abnormal, and the system switches to the backup communication channel to trigger retransmission.
[0015] According to another aspect of the present invention, an electronic device is also provided, the electronic device including a memory and a processor; the memory is used to store a program; the processor executes the program to implement the method described in any one of the foregoing.
[0016] According to another aspect of the present invention, a computer-readable storage medium is also provided, the storage medium storing a computer program that, when executed by a processor, implements the method described in any one of the preceding embodiments.
[0017] According to another aspect of the present invention, a computer program product is also provided, including a computer program that, when executed by a processor, implements the method described in any one of the preceding embodiments.
[0018] The technical effects achieved by this invention are as follows: This invention, based on the dynamic configuration of physical layer parameters and protocol frame encapsulation logic of communication mode identifiers, transforms the payload alignment and masking operations of control commands before transmission from floating-point calculations to fixed-point shift mappings, thereby reducing the calculation cycle of the underlying arithmetic logic unit to the microsecond level and realizing low-latency seamless switching of multi-mode protocol frames between different physical channels.
[0019] This invention, based on a channel quality assessment model using received signal strength indication and a continuous packet loss counter, and adaptive contention window calculation, enables the transmit power parameters and retransmission backoff interval of the MAC layer to be linearly scaled in real time according to the fluctuation of the ambient noise floor. This eliminates the channel congestion deadlock caused by single-mode fixed threshold determination and ensures the bus throughput stability when issuing high-concurrency commands.
[0020] This invention employs a ring-shaped buffer pool water level monitoring interruption and a power-off preservation disk write strategy for non-volatile memory. This transforms the risk of overflow in the pending transmission queue into hardware-level memory freezing and safe sector snapshot writing, thereby preventing data flushing caused by controller reset. This ensures that the control of the lighting driver actuator is traceable and prevents loss of control under extreme operating conditions. Attached Figure Description
[0021] Figure 1 This is a flowchart of a three-mode communication control method based on LED lighting according to the present invention; Figure 2 This is a diagram of a three-mode communication control system architecture based on LED lighting according to the present invention. Detailed Implementation
[0022] To make the objectives and advantages of this invention clearer, the invention will be specifically described below with reference to embodiments. It should be understood that the following text is merely used to describe one or more specific embodiments of the invention and does not strictly limit the scope of protection specifically claimed by the invention.
[0023] It should be noted that the terms "first," "second," etc., used in this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0024] According to an embodiment of the present invention, a method embodiment of a three-mode communication control method based on LED lighting is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0025] In one optional embodiment, the underlying hardware carrier of this solution is an integrated intelligent lighting communication gateway node. This node uses an industrial-grade microcontroller as its core computing hub, internally divided into independent functional storage domains and real-time control bus spaces. Based on practical engineering implementation requirements, its hardware includes, but is not limited to, a core processing unit, on-chip static random access memory, and external non-volatile flash memory. Strict physical isolation is implemented in the memory address space: the starting address region is used to embed the bootloader and secure boot verification logic; subsequent address segments are designated as erasable firmware upgrade partitions; the remaining main memory region is functionally divided into four segments: the first segment deploys the task control block and system stack of a lightweight real-time operating system; the second segment serves as a zero-copy circular buffer pool for multi-mode protocol frames; the third segment is allocated to link quality assessment variables and dynamic routing tables; and the fourth segment is reserved for a temporary operand cache for the security encryption engine.
[0026] The peripheral interconnect topology is constructed through a standardized bus matrix. Power line carrier coupling circuits are connected to the main control universal asynchronous transceiver and serial peripheral interface pins via optocoupler isolation. The low-power Bluetooth RF front-end is connected to the external interrupt control line via a high-speed serial interface. The sub-Hertz band power amplifier and low-noise amplifier array are physically selected by analog RF switches controlled by independent universal input / output pins. The analog-to-digital conversion channel is directly connected to the current sensing resistor and power input terminal of the lighting driver circuit. The pulse width modulation output module is directly bound to the gate drive signal line of the power transistor via a timer capture and comparison unit. The entire system clock source uses a high-stability crystal oscillator, which, in conjunction with a phase-locked loop, generates a precise sampling clock and symbol timing reference, ensuring that the orthogonal frequency division multiplexing carrier phase does not accumulate drift. The direct memory access controller is configured with four independent channels, respectively mapping serial port reception, serial interface transceiver, analog-to-digital continuous conversion, and data transfer from internal memory to internal memory, freeing the central processing unit from periodic occupation of the underlying data stream.
[0027] like Figure 1 As shown, a three-mode communication control method based on LED lighting includes the following steps: S101. Obtain the control instruction set for the target lighting node; S102. Parse the header field of the control instruction set and extract the communication mode identifier and data payload; S103. Initialize the corresponding physical layer transceiver according to the communication mode identifier, and generate link configuration parameters including carrier frequency, modulation order and transmission power. S104. Encapsulate the data payload into a protocol frame that matches the communication mode identifier and write it into the transmission queue. S105. Transmit protocol frames through the selected communication channel based on link configuration parameters; S106. Monitor the return signal of the communication channel, and end the current distribution process when an acknowledgment response is received; S107. When no acknowledgment response is detected within the preset time, the current channel state is determined to be abnormal. The system switches to the backup communication channel and re-executes the steps of encapsulating the data payload until the retransmission of the protocol frame is completed or the maximum retry threshold is reached.
[0028] According to the above steps, in a preferred implementation path, when the upper monitoring terminal or edge controller generates a lighting control intention, the system executes step S101: the target communication port intercepts the target lighting node control instruction set containing brightness adjustment, color temperature switching or fault diagnosis requirements, and loads it completely into the instruction temporary storage area in memory.
[0029] Then, in step S102, the instruction parsing engine reads the header byte sequence of the binary stream to be processed and strips off the fixed-length frame header information. The frame header structure follows a predefined compact encoding rule, distributed sequentially according to memory byte offsets: the zeroth byte is the frame synchronization flag, the first byte extracts the communication mode identifier, the second and third bytes are the unique address field of the target end node, the fourth byte declares the actual length of the subsequent data payload, and the fifth byte carries an incrementing sequence number. After parsing, the system loads the identifier value into the status register and extracts the payload data slice into the working register group.
[0030] Next, step S103 is executed: Based on the identifier residing in the status register, the central processing unit injects link configuration parameters into the control registers of each heterogeneous RF and modulation / demodulation subsystem. If the identifier corresponds to a power line carrier, the system loads the standard subset configuration table, aligns the center frequency of the bandpass filter to the preset level range, and enables the forward error correction check engine and cyclic redundancy check calculation module. If the identifier corresponds to Bluetooth Low Energy, the broadcast channel index is written, the transmit power step value is set, and the connection interval timer is initialized. If the identifier corresponds to the sub-Hertz band, the spreading factor, bandwidth, and half-duplex antenna switching delay parameters are configured. This stage completes the hardware initialization of all transmit gains and modulation orders.
[0031] The data flow proceeds to step S104: The system fills the original data payload into the variable-length data area and appends a two-byte checksum tail segment calculated based on polynomial division. The encapsulated complete protocol frame is directly pushed into the management queue of the circular buffer pool in the shared memory area.
[0032] For dimming commands, the system queries the instruction type and register offset lookup table pre-programmed into the read-only memory to locate the pulse width modulation duty cycle control register address of the target driver IC. The user-defined brightness value is then shifted left to align with the valid mask bit of this register, generating a directly writable operation data block. This replaces the traditional floating-point arithmetic process, significantly reducing the computational overhead of the arithmetic logic unit.
[0033] Step S105 triggers the actual physical transmission. The direct memory access controller automatically moves the protocol frame from the buffer pool to the peripheral transmit shift register of the selected physical channel according to the priority arbitration result. The transmitter converts the digital bit stream into an analog radio frequency or voltage pulse signal according to the configured carrier frequency and modulation waveform, which is then amplified by a power amplifier and coupled to the antenna or power line transformer.
[0034] After the transmission action occurs, the system immediately suspends the current task and listens for the return of the physical medium, and executes step S106: confirm the response monitoring. The listening window duration is preset according to the communication mode and distance.
[0035] If the specified timeout timer does not overflow and a valid acknowledgment frame is received, the retransmission flag in the buffer is cleared, the page frames occupied by the circular buffer are released, and the current downlink control process ends normally.
[0036] If the listening window is exhausted without a valid response, the system proceeds to step S107 for degradation and reconstruction. The controller reads the link quality assessment variables and performs a signed subtraction comparison between the real-time acquired received signal strength indicator value and the pre-stored static threshold. Simultaneously, the continuous packet loss counter is incremented. When the calculation results indicate that the received signal strength indicator value is below the threshold and the cumulative value of the continuous packet loss counter is greater than zero, the system determines that the current channel is experiencing deep fading or strong interference coverage. Instead of executing an invalid retry loop, a seamless migration of the heterogeneous link is triggered: the fixed channel priority management table is queried, and the suboptimal candidate communication mode is locked. At the hardware level, the general-purpose input / output is driven to switch states, the power supply to the original coupling circuit is cut off, and the backup RF path is closed. At the software level, the old protocol frame at the top of the retransmission queue is popped, the sequence number register is incremented by one, the physical layer parameters of the new mode are reapplied for secondary encapsulation, and a new round of transmission is immediately initiated. The retry action has a built-in hard limit on the maximum number of attempts. If the link is not established after exceeding the threshold, the system records the communication log to an independent security sector and maintains the safe hold state of the local control parameters to prevent node loss of control.
[0037] As an optional implementation, for dynamic routing and resource allocation, the system implements a backoff calculus model based on contention avoidance. In carrier sense multiple access and collision avoidance mode, whenever the channel idle criterion is detected, the central processing unit does not immediately send a signal, but instead calls a pseudo-random number generator to generate an initial backoff countdown slot. The slot width strictly conforms to the physical layer time slot definition.
[0038] During the countdown, if the energy peak is detected to exceed the Gaussian noise floor level again, the countdown is paused and the current slot value is pushed onto the hardware auxiliary register stack. The count is resumed only after the channel is restored, thus preventing the accumulation of conflicts caused by multiple nodes competing for resources.
[0039] As an optional implementation, in the physical layer implementation of orthogonal frequency division multiplexing, the system adopts a variable-length fast Fourier transform window. According to the set frequency band, the inverse fast Fourier transform engine allocates a corresponding number of subcarriers. The subcarrier mapping follows the spectrum mask specification, disables edge frequency bands with severe harmonic pollution from the adjacent mains, and only activates clean frequency bands.
[0040] The modulation mode dynamic selection module adaptively switches based on historical signal-to-interference-plus-noise ratio (SIR) records. When the link is stable, quadrature amplitude modulation is enabled to improve spectral efficiency; When a sudden power frequency fluctuation causes the instantaneous bit error rate to exceed the hard decoding limit, it automatically downgrades to a two-phase phase shift keying noise reduction mode and inserts redundant monitoring bits through a forward error correction encoder.
[0041] As an optional implementation, the Advanced Encryption Standard (AES) encryption engine directly pulls bytes from the data payload area of the storage area, uses the internal random access memory as the working area for round key expansion, and combines the non-clonable physical function derived key stored in the electrically erasable programmable read-only memory fuse to complete the ciphertext replacement.
[0042] After the receiving end decrypts the message, the hash verifier performs a one-way hash calculation on the entire message and compares the locally generated digest value with the signature field attached to the frame.
[0043] If a single bit flip or man-in-the-middle attack occurs, the interrupt controller immediately sets the safety anomaly flag, blocking subsequent pulse width modulation output updates and ensuring that the lighting load is in a known safe state.
[0044] As an optional implementation, under normal conditions, nodes only perform weak probes between heartbeat packets. However, when the network topology experiences large-scale offline events or the total number of registered nodes drops sharply to less than 80% of the initial configuration, the global state machine forcibly starts the full-band probe task. The main control CPU suspends non-real-time application layer polling and centrally releases direct memory access bandwidth and arithmetic logic unit computing power to continuously transmit directional probe sequences at the highest transmission power.
[0045] After each surviving node sends back a probe acknowledgment, the Media Access Control (MAC) layer reassembles the routing topology tree, recalculates the Time Division Multiple Access (TDMA) slot allocation table, or optimizes the contention window size for Carrier Sense Multiple Access (CSMA) to avoid bus paralysis caused by a network-wide broadcast storm.
[0046] As an optional implementation, in response to link overheating caused by continuous packet loss, the system constructs a multi-level source cooling system. After the first handover failure, instead of blindly restarting the RF front end, it performs parameter conservative degradation: reducing the transmit power to the minimum compliant level, expanding the orthogonal frequency division multiplexing protection interval to combat multipath effects, and disabling high-order modulation options.
[0047] If the backup channel still cannot meet the low-latency control requirements, the system will trigger a status report and circuit breaker will be activated. Stop issuing complex dimming commands and switch to a simplified on / off heartbeat keep-alive mode once per second. Lock the local brightness register at the current safe duty cycle to prevent ballast overvoltage breakdown or flickering caused by control command interruption.
[0048] As an optional implementation, to address the risks of queue overflow and storage breakdown, the system incorporates a waterline monitoring interrupt in the read / write pointer intersection area of the circular buffer pool. When the queue load rate reaches 85%, the hardware directly takes over the freezing operation of the remaining memory pages to prevent newly arriving data from overwriting incomplete transmission frame segments. Simultaneously, a background daemon thread triggers a wear-leveling write program for non-volatile memory, batch-flushing the backlog of control snapshots into designated blocks. This process employs residual power preservation logic powered by a power-off protection capacitor to ensure sufficient time for persistent writing of critical control indicators to disk even in the event of an unexpected mains power failure, guaranteeing that the system can resume transmission from where it left off and accurately reproduce data after power-on.
[0049] In addition, the continuously sampled internal temperature sensor data is fed into the first-order proportional-integral-differential filter stage. When the junction temperature approaches the high temperature limit, the sleep mode wake-up cycle is actively shortened, the operation frequency of the baseband demodulator is reduced, and the decision threshold of the transmit and receive sensitivity is tightened. This sacrifices some throughput to ensure the electrical stability of the system in long-term operation and prevents the reset dead loop caused by thermal runaway.
[0050] As an optional embodiment, referring to the aforementioned system architecture, the constructed three-mode communication control system deploys several logical functional entities. These entities are not loose software abstractions, but rather form a tightly interlocked data processing pipeline through a defined physical bus, shared memory mapping area, and control signal lines.
[0051] The physical input of the instruction receiving unit is directly connected to the universal asynchronous transceiver receiving pin of the main control chip or the external network physical layer interface. The instruction receiving unit integrates a serial port data capture hardware state machine based on the first-in-first-out structure, which is responsible for stripping the level signal and writing the cleaned original instruction byte stream into the ring buffer pool of the first segment of the shared memory area through the channel direct memory access controller with zero copy.
[0052] The instruction receiving unit sends a soft interrupt vector to the nested vector interrupt controller via the hardware interrupt request line, waking up the protocol processing unit.
[0053] Furthermore, the protocol processing unit is essentially a lightweight protocol parsing firmware executed by the main control application processor, which establishes a memory-mapped connection with the shared memory buffer pool area through the Advanced Bus Link System. After reading the raw bytes written by the instruction receiving unit, the protocol processing unit performs protocol header decomposition, payload slicing, and mode routing decisions.
[0054] The decision results are written to the status register and routing table variable area, and synchronized to the visible memory pages of the frame building unit through the shared memory barrier instruction, eliminating data races caused by cross-task context switching.
[0055] Furthermore, the frame construction unit consists of an independent media access control layer scheduling task and dedicated assembly routines. It pulls classified data payloads from the common buffer pool and assembles the frame header and trailer according to the protocol standard. The completed protocol frame is marked as ready to transmit, and then direct memory access to the channel is triggered to initiate data transmission to the specific peripheral transmit register. During this process, the frame construction unit is connected to the hardware priority arbiter through a dedicated general-purpose input / output signal line to ensure that frames of critical control instructions can obtain bus access privileges first during multi-threaded preemption.
[0056] Furthermore, the channel scheduling unit is primarily responsible for radio frequency path selection and parameter distribution. The channel scheduling unit comprises two sets of control logic: A set of configuration registers for Bluetooth Low Energy and sub-Hertz RF chips are written to via a serial peripheral interface, specifying the rate, power, and frequency hopping parameters. Another set of external analog RF switch chips is controlled via a general-purpose input / output pin matrix.
[0057] When a physical switch in communication mode is required, the channel scheduling unit outputs a level transition pulse to enable the power amplifier bias circuit and the low-noise amplifier matching network of the corresponding frequency band, while simultaneously cutting off the ground loop of other idle RF front-ends.
[0058] The channel scheduling unit and the physical layer configuration parameter area are connected via read-only memory mapping to ensure the atomicity of configuration modifications and prevent RF impedance mismatch or VSWR exceeding limits during parameter loading. The overall data flow exhibits typical characteristics of simultaneous transmission and reception and asynchronous decoupling. The four components are intertwined through a central memory hub and a high-speed interrupt neural network to form a closed-loop control execution system.
[0059] As an optional embodiment, the frame construction unit encapsulates the target value of the pulse width modulation duty cycle into a protocol frame body that conforms to industry standards, and the channel scheduling unit locks the transmission frequency to a relatively clean low-frequency band. With the aid of forward error correction redundancy coding, the signal is coupled into the main power supply line through a power transformer. When the signal propagates along the line and reaches the end lighting driver, the driver integrated circuit parses the instructions and smoothly adjusts the constant current source output of the LED to achieve flicker-free gradual brightening and dimming.
[0060] However, if a large electric vehicle charging station happens to be operational on this section of the road, its insulated-gate bipolar transistor high-frequency inverter switch will inject strong broadband common-mode noise into the power grid, causing a sharp deterioration in the local power line carrier signal-to-interference-plus-noise ratio. The system monitoring module detects that the received signal strength indicator value has fallen below the warning threshold, and confirms that the cumulative number of lost response frames has exceeded three. At this point, the degradation strategy is immediately activated: the controller abandons invalid retransmissions on noisy power lines, and within milliseconds, flips the general-purpose input / output pins to switch to the sub-Hertz unlicensed frequency band.
[0061] The new control commands are repackaged and transmitted directly to the lighting nodes via short-range radio. Due to the excellent penetration and low-frequency diffraction capabilities of sub-hertz frequencies, the power outage command can be reliably delivered even under strong interference. Once the charging station ceases operation or grid noise subsides, the channel scheduling unit automatically performs a background scan, preferentially switching back to the high-bandwidth power line carrier mode for the reporting and aggregation of massive amounts of telemetry data. The entire switching process appears as a seamless hot migration of the communication link for the terminal light source, eliminating the black-box phenomenon of disconnection in traditional single-mode systems under harsh conditions.
[0062] As an optional embodiment, refer to the appendix Figure 2 Furthermore, a three-mode communication control system based on LED lighting is provided, comprising: an instruction receiving unit, a protocol processing unit, a frame construction unit, and a channel scheduling unit. Each unit establishes a deterministic data exchange channel through a system bus, a shared memory mapping area, and a peripheral control interface.
[0063] This application also provides a three-mode communication control device based on LED lighting, including: an industrial-grade lighting gateway computing platform, which adopts a heterogeneous multi-core architecture, including an application processor as the main controller and a baseband modem as a coprocessor; a multi-source sensing and interface array, which is connected to the baseband modem and the main controller through a direct memory access controller, covering serial ports, serial peripheral interfaces, synchronous serial interfaces, pulse width modulation and analog-to-digital conversion physical interfaces; wherein, the baseband modem is configured to perform low-level power line carrier filtering, orthogonal frequency division multiplexing carrier mapping and real-time timestamp alignment, and the application processor is configured to execute the control method of any of the foregoing embodiments, and complete instruction parsing, link degradation routing and secure writing to hardware registers.
[0064] This application embodiment also provides a computer-readable storage medium deployed in the non-volatile memory of an industrial lighting control device, on which computer instructions are stored. The computer instructions are read, decoded, and executed by the processor's arithmetic logic unit and floating-point unit. Furthermore, during the execution of the method, the computer instructions are configured to simultaneously write multi-source heterogeneous sensing data, relative pose data, and thrust allocation instructions into the black box data recording area of the non-volatile memory for subsequent offline calibration, fault root cause tracing, and precise adaptation of firmware remote over-the-air download differential patches.
[0065] It should be noted that the above modules can be implemented using software or hardware. In the context described herein, those skilled in the art can choose either hardware or software implementation based on actual control requirements, and both fall within the scope of protection of this patent claim in their technical essence. The naming of modules is merely for the purpose of distinguishing data flow and responsibility boundaries; in actual code engineering or underlying schematic diagrams, they do not necessarily represent physically separated independent chip units. The above embodiments are merely preferred embodiments of this application. Any changes to the design, component replacements, or reversals of order that do not involve substantial design changes within the technical concept of this application should be considered as included within the scope of protection of this application.
[0066] The above description is merely a preferred embodiment of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention. Structures, devices, and operating methods not specifically described or explained in this invention are implemented according to conventional methods in the art unless otherwise specified or limited.
Claims
1. A three-mode communication control method based on LED lighting, characterized in that, Includes the following steps: Obtain the control command set for the target lighting node; Parse the header fields of the control instruction set to extract the communication mode identifier and data payload; The corresponding physical layer transceiver is initialized based on the communication mode identifier, and link configuration parameters including carrier frequency, modulation order and transmit power are generated. The data payload is encapsulated into a protocol frame that matches the communication mode identifier and written into the transmission queue; Based on link configuration parameters, protocol frames are transmitted through the selected communication channel. Monitor the feedback signal of the communication channel, and end the current distribution process when an acknowledgment response is received; If no acknowledgment response is detected within the preset time, the current channel state is determined to be abnormal. The system switches to the backup communication channel and re-executes the steps of encapsulating the data payload until the retransmission of the protocol frame is completed or the maximum retry threshold is reached.
2. The three-mode communication control method based on LED lighting according to claim 1, characterized in that: The data structure of a protocol frame includes a fixed-length frame header, a variable-length data area, and a checksum tail. The frame header contains, in byte order, the frame synchronization flag, the communication mode identifier, the target node address, the data length field, and the sequence number; The checksum is calculated using the Cyclic Redundancy Check (CRC) algorithm on the frame header and data area, and the resulting checksum is appended to the end of the data area.
3. The three-mode communication control method based on LED lighting according to claim 1, characterized in that, The feedback signal of the monitoring communication channel includes: Real-time acquisition of the current channel received signal strength indicator and continuous packet loss counter; The received signal strength indicator is compared with the static threshold. If it is lower than the static threshold and the cumulative value of the continuous packet loss counter is greater than zero, a channel quality degradation flag is triggered.
4. The three-mode communication control method based on LED lighting according to claim 1, characterized in that: The switching to the backup communication channel includes: Query the preset channel priority table to determine the candidate communication mode with the second highest priority; Initialize the RF front-end or power line coupling circuit corresponding to the candidate communication mode and inject the wake-up sequence; Extract the protocol frames from the queue to be retransmitted, update the sequence number, and repackage them into a new mode protocol frame.
5. The three-mode communication control method based on LED lighting according to claim 1, characterized in that, Also includes: Before initiating downlink control commands, a probe signal is broadcast to each node to be controlled; Count the number of nodes that respond to the probe signal within the listening window; When the number of responding nodes is less than 80% of the total number of initial network registrations, a full-band scanning procedure is initiated to reallocate sub-channel resources for each communication mode.
6. The three-mode communication control method based on LED lighting according to claim 1, characterized in that, After the protocol frame is sent, the following steps are also included: Receive status report frames returned by the lighting nodes; Analyze the fault code field in the status reporting frame to determine if there is an over-temperature or under-voltage alarm; When a fault code field is detected to match a preset safety threshold, a forced frequency reduction instruction is written to the control register of the LED driver or the output enable bit is cut off.
7. The three-mode communication control method based on LED lighting according to claim 1, characterized in that, Initialize the corresponding physical layer transceiver according to the communication mode identifier, specifically including: When the communication mode identifier corresponds to a power line carrier, configure the center frequency of the bandpass filter and load the orthogonal frequency division multiplexing carrier mapping table. When the communication mode identifier corresponds to Bluetooth Low Energy, set the broadcast channel number and connection interval timer; When the communication mode identifier corresponds to the subhertz frequency band, adjust the spreading factor and symbol rate and activate the half-duplex switch.
8. The three-mode communication control method based on LED lighting according to claim 1, characterized in that, The process of parsing a control instruction set into structured data packets includes: Establish a lookup table mapping instruction types to underlying register offset addresses; The target register address and write mask are obtained by querying the mapping lookup table according to the instruction type. Align the user-defined brightness level or color temperature value to the valid bits of the write mask to generate a writable data block.
9. The three-mode communication control method based on LED lighting according to claim 1, characterized in that, The process of writing protocol frames into the queue to be transmitted includes the logic of allocating memory pages to the queue buffer; When the queue length exceeds the preset capacity level, a persistent backup sector write operation is triggered in the non-volatile memory to prevent the loss of pending instructions due to system restart.
10. A three-mode communication control system based on LED lighting, operating the method as described in any one of claims 1 to 9, characterized in that, The system, used in smart lighting gateway devices, includes: The instruction receiving unit acquires the target lighting node control instruction set sent by the external host computer; The protocol processing unit is used to parse the header fields of the control instruction set, extract the communication mode identifier and data payload, and initialize the corresponding physical layer transceiver according to the communication mode identifier to generate link configuration parameters. The frame construction unit encapsulates the data payload into a protocol frame that matches the communication mode identifier and writes it into the transmission queue; The channel scheduling unit transmits protocol frames through the selected communication channel based on the link configuration parameters. If no acknowledgment response is received within a preset time, the current channel status is determined to be abnormal, and the system switches to the backup communication channel to trigger retransmission.