A visible light communication-based light supplementing lamp parameter wireless configuration method

By utilizing a light intensity sensor and an MCU controller in the fill light to achieve visible light communication, the problem of remote wireless setting of fill light address and parameter configuration is solved, reducing operating costs and security risks, and improving the reliability and accuracy of configuration.

CN121815524BActive Publication Date: 2026-05-29杭州方千科技有限公司 +1

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
杭州方千科技有限公司
Filing Date
2026-03-10
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

The existing auxiliary lighting address settings and parameter configuration require working at height, rely on additional hardware, and cannot reliably complete single-point wireless configuration in long-distance or dense deployment scenarios, resulting in inconvenient operation, high cost, poor security and insufficient reliability.

Method used

The method adopts visible light communication, which receives signals from an external controllable light source through the illuminance sensor module in the supplementary light lamp, converts them into analog electrical signals, and uses the MCU controller to perform frame header recognition, data parsing and integrity verification to realize wireless parameter configuration. The frame header and data part use specific light state modes and byte spacing signals to ensure accuracy.

Benefits of technology

No need for working at heights or adding new hardware, significantly reducing debugging costs and safety risks, improving the reliability and accuracy of parameter configuration, and making it suitable for long-distance and dense deployment scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121815524B_ABST
    Figure CN121815524B_ABST
Patent Text Reader

Abstract

The application discloses a light supplementing lamp parameter wireless configuration method based on visible light communication and relates to the field of light supplementing lamps. The method multiplexes an existing light intensity sensor module in the light supplementing lamp to receive a visible light signal emitted by an external controllable light source and modulated according to a preset communication protocol, and a built-in MCU controller completes frame header identification, data analysis, verification and parameter configuration. Without the need of climbing operation and without the need of adding special communication hardware such as an infrared receiver, address allocation and parameter configuration of the light supplementing lamp installed at a high position can be remotely completed on the ground, and the debugging cost and safety risk in the scene of an expressway, a tunnel and the like are remarkably reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of fill lights, and more particularly to a wireless configuration method for fill light parameters based on visible light communication. Background Technology

[0002] In security, transportation, and industrial machine vision recognition systems, supplementary lighting devices, as key optical auxiliary equipment, often require address allocation and parameter configuration (such as brightness and color temperature) to support network control and differentiated adjustments. However, existing technologies have significant drawbacks: First, while using an RS485 wired interface with host computer software for address and parameter settings can achieve precise configuration, supplementary lights are typically installed on poles over 6 meters high. In scenarios such as highways and tunnels, this necessitates the use of aerial work platforms, resulting in high labor costs, low efficiency, and significant safety risks. Second, using DIP switches for address encoding, while eliminating the need for communication lines during configuration, limits the number of coded addresses, making it difficult to meet the needs of large-scale deployments. Furthermore, ensuring outdoor waterproofing requires additional structural sealing design, increasing manufacturing costs. Third, while infrared remote control solutions allow for wireless operation, they are limited by the invisible nature of infrared light, resulting in short effective transmission distances, susceptibility to obstruction, and inability to accurately point to the target device when multiple devices are densely installed, leading to misoperation or configuration failure. Furthermore, wired methods are susceptible to electromagnetic interference or poor wiring, further reducing the reliability of parameter settings. Therefore, there is an urgent need for a wireless parameter configuration method that requires no climbing, no additional hardware, has strong anti-interference capabilities, supports precise single-point configuration, and is suitable for long-distance operation. Summary of the Invention

[0003] To address the problems in existing technologies, such as the need for working at heights to set and configure supplementary lighting addresses and parameters, reliance on additional hardware, and the inability to reliably complete single-point wireless configuration in long-distance or densely deployed scenarios, this invention proposes a wireless configuration method for supplementary lighting parameters based on visible light communication, comprising:

[0004] The illumination sensor module in the supplementary light receives illumination signals from an external controllable light source and converts the illumination signals into corresponding analog electrical signals; the illumination signals are modulated according to a preset communication protocol.

[0005] The built-in MCU controller of the fill light performs AD sampling on the analog electrical signal to obtain AD sampling values, and identifies the frame header from the AD sampling values ​​according to the preset communication protocol. After the frame header is successfully identified, the command word, parameter word and check code are parsed from the subsequent AD sampling values ​​according to the preset communication protocol, and the integrity of the command word and parameter word is checked according to the check code. If the check passes, the parameter configuration operation type to be executed is determined according to the command word, and the corresponding parameter configuration is executed in combination with the parameter word. After the execution is completed, the light source of the fill light is controlled to emit a feedback light signal.

[0006] Furthermore, the preset communication protocol is configured as follows:

[0007] The frame header is a bit sequence consisting of three binary bit values, wherein the first and last bits are the first binary bit value, and the middle bits are the second binary bit value; the first binary bit value corresponds to the bright light state; and the second binary bit value corresponds to the dark light state.

[0008] Furthermore, the preset communication protocol is configured as follows:

[0009] The frame header is a bit sequence containing at least two first binary bit values ​​and one second binary bit value, and the first and last bit values ​​are both first binary bit values; the first binary bit value corresponds to the bright light state; the second binary bit value corresponds to the dark light state.

[0010] Further, the step of identifying the frame header from the AD sampled values ​​according to the preset communication protocol specifically involves:

[0011] The AD sampled values ​​are divided according to the bit period included in the frame header set by the preset communication protocol to obtain multiple bit periods;

[0012] Within each bit period, the AD sample value is compared with a preset threshold to determine the optical state corresponding to that period;

[0013] The optical state is mapped to the corresponding binary bit value to obtain a received bit sequence consisting of multiple binary bit values;

[0014] The received bit sequence is matched with the bit sequence corresponding to the frame header set in the preset communication protocol. If the match is successful, the frame header is determined to be successfully identified.

[0015] Furthermore, the preset communication protocol is configured as follows:

[0016] The data portion following the frame header consists of multiple bytes, which are separated by a byte spacing identification signal and end with the byte spacing identification signal.

[0017] Each byte of the data portion consists of multiple bit cycles, each bit cycle having the same fixed duration, used to represent a binary bit value;

[0018] The byte interval identification signal is a continuous bright light signal with a duration longer than a single bit period of the data portion.

[0019] Furthermore, the step of parsing the command word, parameter word, and checksum based on subsequent AD sampling values ​​according to the preset communication protocol specifically involves:

[0020] Within each bit period, the AD sample value is compared with a preset threshold to determine the optical state corresponding to that period and mapped to the corresponding binary bit value;

[0021] The continuously parsed binary bit values ​​are cached sequentially, and the existence of a continuous bright light signal with a duration longer than a single bit period of the data portion is monitored in real time.

[0022] When the continuous bright light signal is detected, it is identified as a byte interval identification signal, and the cached binary bit values ​​are combined into one byte using the byte interval identification signal as the boundary;

[0023] According to the frame format specified by the preset communication protocol, each byte is sequentially determined as a command word, a parameter word, and a checksum.

[0024] Furthermore, within each bit period, the AD sample value is compared with a preset threshold to determine the optical state corresponding to that period; specifically:

[0025] For each bit period, the AD sample values ​​are compared with a preset threshold.

[0026] If the number of AD sample values ​​greater than or equal to the preset threshold exceeds a preset proportion, then the bit period is determined to correspond to a bright light state; otherwise, it is determined to be a dark light state.

[0027] Further, the step of performing integrity verification on the command word and parameter word based on the check code specifically involves:

[0028] The command word and parameter word are processed according to the verification algorithm set by the preset communication protocol to generate a local verification value;

[0029] Compare whether the local check value matches the determined check code;

[0030] If they match, the integrity check is considered successful; otherwise, the check is considered unsuccessful and the command word and parameter word are discarded.

[0031] Furthermore, the specific calculation method for the local check value is as follows:

[0032] The command word and the parameter word are combined into a continuous bit sequence, and the sequence is divided into multiple bytes;

[0033] Initialize a one-byte-wide check register and set its initial value;

[0034] Each byte in the continuous bit sequence is XORed with the current value of the check register in turn, and the result is updated to the check register.

[0035] The final value of the check register is set to the local check value.

[0036] Furthermore, the command word and / or parameter word consists of at least two bytes.

[0037] Compared with the prior art, the present invention has at least the following beneficial effects:

[0038] (1) This invention reuses the existing illuminance sensor module in the supplementary light to receive visible light signals emitted by an external controllable light source and modulated according to a preset communication protocol. The built-in MCU controller completes frame header recognition, data parsing, verification and parameter configuration. No need to climb to heights or add special communication hardware such as infrared receivers. The address allocation and parameter configuration of the supplementary light installed at high altitudes can be completed remotely from the ground, which significantly reduces the debugging cost and safety risks in scenarios such as highways and tunnels.

[0039] (2) The frame header of the present invention adopts a bit sequence in which the first and last parts correspond to the bright light state and the middle part contains at least one dark light state. The duration of each state strictly follows the bit period included in the frame header set by the preset communication protocol, forming a unique light state mode that is different from continuous bright light or irregular random flickering. Combined with the identification mechanism of dividing the AD sampling value according to the bit period included in the frame header set by the preset communication protocol, determining the light state period by period and mapping it to the received bit sequence, and then matching it with the bit sequence set in the preset communication protocol, the probability of frame header misidentification caused by the random formation of similar bright and dark modes by ambient light is significantly reduced, and the incorrect parameter configuration caused by this is avoided.

[0040] (3) This invention introduces a continuous bright light signal with a duration longer than a single bit period of the data portion between each byte as a byte interval identification signal, and uses this signal as a clear boundary to combine the previously received binary bit values ​​into a single byte during parsing. This mechanism does not rely on counting the fixed length of the continuous bit stream to determine the byte boundary, thereby effectively avoiding byte segmentation errors caused by the cumulative deviation of sampling timing, and ensuring that the command word, parameter word and check code are accurately identified.

[0041] (4) This invention generates a local check value by performing an XOR operation on all bytes of the command word and parameter word sequentially, and compares it with the received check code. This mechanism can effectively detect data transmission errors caused by ambient light interference, signal obstruction, or AD sampling noise without adding extra communication overhead. When the check fails, the MCU controller actively discards the instruction to avoid executing incorrect parameter configuration, thereby significantly improving the reliability, accuracy, and security of the wireless configuration process of the fill light parameters. Attached Figure Description

[0042] Figure 1 This is a flowchart of a wireless configuration method for supplementary lighting parameters based on visible light communication in an embodiment of the present invention;

[0043] Figure 2 This is a circuit diagram of the light intensity sensor module in an embodiment of the present invention. Detailed Implementation

[0044] The following are specific embodiments of the present invention, which are described in conjunction with the accompanying drawings to further illustrate the technical solutions of the present invention. However, the present invention is not limited to these embodiments.

[0045] To address the problems of inconvenience, high cost, poor security, and insufficient reliability of single-point configuration caused by the reliance on high-altitude operations, dedicated hardware (such as DIP switches or infrared receivers), or wired communication interfaces when assigning addresses and configuring parameters for supplementary lighting in high-altitude or densely deployed scenarios, such as... Figure 1 As shown, this invention proposes a wireless configuration method for supplementary lighting parameters based on visible light communication, including:

[0046] The illumination sensor module in the supplementary light receives illumination signals from an external controllable light source and converts the illumination signals into corresponding analog electrical signals; the illumination signals are modulated according to a preset communication protocol.

[0047] In this embodiment, the circuit diagram corresponding to the light intensity sensor module is as follows: Figure 2 As shown:

[0048] This module mainly includes a photosensitive sensor PD1, a current-limiting resistor R1, a conversion resistor R3, a matching resistor R2, a voltage-regulating capacitor C2, and a decoupling capacitor C1. All components are connected between a +3.3V power supply and GND. The photosensitive sensor PD1 receives light signals from an external controllable light source and converts them into a corresponding photocurrent. This photocurrent flows through the current-limiting resistor R1 and the conversion resistor R3, generating a voltage signal proportional to the light signal intensity across R3. This voltage signal is then output as an analog electrical signal to the AD input port (i.e., the I / O port) of the MCU controller.

[0049] The matching resistor R2 is used to match the input impedance of the MCU controller's AD input port to reduce signal reflection and improve sampling accuracy. The voltage regulator capacitor C2 is connected in parallel across the conversion resistor R3 to filter out high-frequency noise and stabilize the output voltage. The decoupling capacitor C1 is connected between the +3.3V power supply and GND to suppress power supply ripple interference on the analog signal. The MCU controller samples the analog electrical signal through its AD input port to obtain the AD sample value, and completes frame header identification, data parsing, and integrity verification based on a preset communication protocol, thereby enabling wireless configuration of the fill light parameters.

[0050] In one embodiment, the preset communication protocol is configured as follows:

[0051] The frame header is a bit sequence consisting of three binary bit values, wherein the first and last bits are the first binary bit value, and the middle bits are the second binary bit value; the first binary bit value corresponds to the bright light state; and the second binary bit value corresponds to the dark light state.

[0052] In another embodiment, the preset communication protocol is configured as follows:

[0053] The frame header is a bit sequence containing at least two first binary bit values ​​and one second binary bit value, and the first and last bit values ​​are both first binary bit values; the first binary bit value corresponds to the bright light state; the second binary bit value corresponds to the dark light state.

[0054] The frame header of this invention uses a bit sequence with the first and last positions corresponding to bright light states and at least one dark light state in the middle. The duration of each state strictly follows the bit period included in the frame header as set by the preset communication protocol, forming a unique light state mode that is different from continuous bright light or irregular random flickering. Combined with the identification mechanism that divides the AD sampling value according to the bit period included in the frame header as set by the preset communication protocol, determines the light state period by period and maps it to the received bit sequence, and then matches it with the bit sequence set in the preset communication protocol, the probability of frame header misidentification caused by ambient light accidentally forming similar bright and dark patterns is significantly reduced, and the incorrect parameter configuration caused by this is avoided.

[0055] The analog electrical signal is sampled by the built-in MCU controller of the fill light to obtain the AD sample value, and the frame header is identified from the AD sample value according to the preset communication protocol;

[0056] The step of identifying the frame header from the AD sampled values ​​according to the preset communication protocol specifically involves:

[0057] The AD sampled values ​​are divided according to the bit period included in the frame header set by the preset communication protocol to obtain multiple bit periods;

[0058] Within each bit period, compare the AD sampling value with a preset threshold to determine the optical state corresponding to that period;

[0059] Map the optical state to the corresponding binary bit value to obtain a received bit sequence composed of multiple binary bit values;

[0060] Match the received bit sequence with the bit sequence corresponding to the frame header set in the preset communication protocol. If the match is successful, it is determined that the frame header recognition is successful.

[0061] In a normal application environment, the AD sampling value of the illuminance sensor module fluctuates little (usually not exceeding ±5). When an external controllable light source sends a configuration instruction, the light signal it emits starts with a frame header, and the first bit of the frame header is a bright light state, which will cause a significant jump in the AD sampling value. The measured change amplitude is generally greater than 40.

[0062] The MCU controller monitors the AD sampling value in real time. When it detects that the instantaneous change amplitude of the AD sampling value exceeds the preset jump threshold (such as 40), the moment when the jump occurs is regarded as the starting point of the frame header. Starting from this point, according to the bit periods included in the frame header set by the preset communication protocol, the subsequent AD sampling values are divided, and the optical states in each bit period are determined in turn and mapped to binary bit values to form a received bit sequence.

[0063] Subsequently, match the received bit sequence with the frame header bit sequence set in the preset communication protocol. Only after the frame header recognition is successful, continue to parse the subsequent data part, including command words, parameter words, and check codes, and perform corresponding parameter configuration according to the check result.

[0064] In addition, in the present invention, the bit periods of the frame header do not need to have the same time length, and the duration of its bright / dark state can be flexibly set according to requirements. For example, in a specific embodiment, the frame header consists of three optical states: first, a bright light state lasting for 5 milliseconds, then a dark light state lasting for 2 milliseconds, and finally a bright light state lasting for 3 milliseconds.

[0065] Considering that the external controllable light source and the MCU controller use independent clock sources and there are slight differences in their timing accuracies, the preset communication protocol allows the actual duration of each optical state in the frame header to fluctuate within the preset tolerance range of its nominal value (such as ±0.1 ms); when the MCU controller recognizes the frame header, if it detects that the duration of the bright / dark state falls within the tolerance interval of the corresponding nominal value, it still determines that the state is valid and continues with the bit sequence matching. For example, for a dark light state with a nominal duration of 2 ms, if the measured duration T satisfies 1.9 ms < T < 2.1 ms, it is regarded as valid.

[0066] The MCU controller segments the AD sampled values ​​according to the preset timing sequence, obtaining multiple bit periods. It then sequentially determines the light state within each bit period, mapping the bright light state to a first binary bit value (e.g., "1") and the dim light state to a second binary bit value (e.g., "0"), thus obtaining the received bit sequence corresponding to the frame header (e.g., "101"). When this received bit sequence matches the bit sequence corresponding to the frame header set in the preset communication protocol, the frame header is considered successfully identified.

[0067] In contrast, in this embodiment, the data portion following the frame header (including command words, parameter words, and checksums) uses a fixed bit period (e.g., each bit period is 2 milliseconds) to simplify data parsing and improve transmission efficiency.

[0068] This invention employs a frame header with a specific timing structure (such as a "on-off-on" mode) combined with a data integrity verification mechanism, ensuring that the corresponding parameter configuration is executed only after the frame header is successfully identified and verified. This effectively reduces the probability of false triggering in scenarios with dense deployment of multiple devices and improves the reliability of single-point wireless configuration.

[0069] After the frame header is successfully identified, the command word, parameter word and check code are parsed based on the subsequent AD sampling values ​​according to the preset communication protocol, and the integrity of the command word and parameter word is checked according to the check code.

[0070] The preset communication protocol is configured as follows:

[0071] The data portion following the frame header consists of multiple bytes, which are separated by a byte spacing identification signal and end with the byte spacing identification signal.

[0072] Each byte of the data portion consists of multiple bit cycles, each bit cycle having the same fixed duration, used to represent a binary bit value;

[0073] The byte interval identification signal is a continuous bright light signal with a duration longer than a single bit period of the data portion.

[0074] The step of parsing the command word, parameter word, and checksum based on subsequent AD sampling values ​​according to the preset communication protocol is as follows:

[0075] Within each bit period, the AD sample value is compared with a preset threshold to determine the optical state corresponding to that period and mapped to the corresponding binary bit value;

[0076] The continuously parsed binary bit values ​​are cached sequentially, and the existence of a continuous bright light signal with a duration longer than a single bit period of the data portion is monitored in real time.

[0077] When the continuous bright light signal is detected, it is identified as a byte interval identification signal, and the cached binary bit values ​​are combined into one byte using the byte interval identification signal as the boundary;

[0078] According to the frame format specified by the preset communication protocol, each byte is sequentially determined as a command word, a parameter word, and a checksum.

[0079] In this embodiment, regarding the frame format specified by the preset communication protocol, it should be noted that:

[0080] The data portion consists of multiple consecutive bytes, and its structure is as follows: command word, parameter word, and checksum.

[0081] The first and second bytes together form a 16-bit command word, used to indicate the type of configuration operation to be performed. For example:

[0082] When the command word is 0x0001 (i.e., byte 1 = 0x00, byte 2 = 0x01), it indicates that an address setting operation is performed;

[0083] When the command word is 0x0002 (i.e., byte 1 = 0x00, byte 2 = 0x02), it indicates that a brightness value adjustment operation is performed;

[0084] When the command word is 0x0003, it indicates that a working mode switching operation is performed, and so on.

[0085] The third byte to the second-to-last byte is the parameter word, which is used to provide configuration parameters (such as target address value, brightness value, etc.) corresponding to the command word.

[0086] It should be noted that the bytes mentioned refer to data bytes that carry valid information, excluding byte interval identification signals used for byte boundary synchronization.

[0087] The last byte is a checksum, used to verify the integrity of the command word and parameter word. After successfully recognizing the frame header and parsing each byte, the MCU controller allocates the parsed bytes into the command word, parameter word, and checksum in the fixed order described above, and performs subsequent processing accordingly.

[0088] In the visible light communication process of this invention, the data portion consists of multiple bytes sequentially, each byte containing 8 binary bits, or 8 bit cycles. These are modulated into bright and dark light signals by an external controllable light source according to a preset communication protocol and transmitted. The MCU controller built into the supplementary light lamp collects the illumination signal through a light intensity sensor module and outputs an analog electrical signal. It then divides the AD sampling values ​​according to the preset communication protocol: within each bit cycle, the AD sampling value is compared with a preset threshold to determine the light state corresponding to that cycle, and the light state is mapped to the corresponding binary bit value, thereby achieving bit-by-bit discrimination and buffering.

[0089] In practical applications, the modulation timing of the external controllable light source is generated by its own controller (such as a smartphone or dedicated configuration device), while the MCU controller at the fill light end uses an independent internal clock for AD sampling and bit period division. Since their clock sources are independent, there may be slight time base differences. For example, assuming the preset communication protocol specifies a single bit period of 2 milliseconds for the data portion, and the external controllable light source strictly switches between bright and dark states at 2.00ms, the MCU controller, due to the precision limitations of its internal RC oscillator, actually divides the sampling period into 1.98ms. In this case, for each bit received, the MCU controller's sampling window will advance by approximately 0.02ms; after continuously receiving 40 bits, the accumulated time deviation can reach approximately 0.8ms, close to half a bit period.

[0090] If bytes are divided using bit value counting, two types of problems may occur:

[0091] Bit value error: Due to timing deviation, the sampling window drifts and the MCU controller misjudges the optical state within a certain bit period as the optical state of an adjacent bit, resulting in the parsed binary bit value being inconsistent with the transmitting end.

[0092] Byte boundary offset: Since the MCU controller relies on the local clock to continuously count bit cycles to divide bytes, the accumulated time deviation will cause the start / end time of the bytes it recognizes to gradually deviate from the byte boundary of the real data frame, so that the combined "byte" actually mixes some bits of two adjacent real bytes.

[0093] Table 1 below illustrates the process of byte boundary offset formation, using the period from the end of byte 1 to the beginning of byte 2 as an example. Table 1:

[0094]

[0095] As shown in Table 1, the continuous forward movement of the sampling window leads to an overall forward movement of the byte boundaries, resulting in misalignment of the parsed byte content. This phenomenon, caused by the asynchronous clock, where the sampling timing continuously drifts and accumulates at the byte level, is known as the cumulative sampling timing deviation.

[0096] To address the aforementioned issues, this invention inserts a continuous bright light signal with a duration longer than a single bit cycle between each byte of the data portion as a byte interval identification signal. During the parsing process, the MCU controller monitors the AD sampling values ​​in real time. When it detects a continuous bright light signal with a duration exceeding the duration of a single bit cycle in the data portion, it determines it to be a byte interval identification signal and uses this as the end boundary of the current byte, combining the previously cached binary bit values ​​into a single byte.

[0097] Subsequently, the buffer is cleared, and after the byte interval identification signal ends, the sampling, discrimination, and buffering of the next byte's bits are restarted.

[0098] This mechanism enables automatic resynchronization at each byte boundary, even if there are accumulated timing deviations due to independent clock sources. It effectively avoids byte segmentation errors caused by boundary offsets and ensures that each byte can be correctly identified as the command word, parameter word, and checksum in sequence.

[0099] This invention introduces a continuous bright light signal with a duration longer than a single bit period of the data portion between each byte as a byte interval identification signal. During parsing, this signal is used as a clear boundary to combine previously received binary bit values ​​into a single byte. This mechanism does not rely on counting the fixed length of the continuous bit stream to determine byte boundaries, thereby effectively avoiding byte segmentation errors caused by accumulated sampling timing deviations and ensuring that command words, parameter words, and check codes are accurately identified.

[0100] Within each bit period, the AD sample value is compared with a preset threshold to determine the optical state corresponding to that period; specifically:

[0101] For each bit period, the AD sample values ​​are compared with a preset threshold.

[0102] If the number of AD sample values ​​greater than or equal to the preset threshold exceeds a preset proportion, then the bit period is determined to correspond to a bright light state; otherwise, it is determined to be a dark light state.

[0103] In one specific embodiment, the MCU controller performs AD sampling at a frequency of 4kHz. For the data portion, the protocol specifies that each bit period is 2ms. Therefore, each bit period contains 8 AD sample values. The MCU controller compares these 8 AD sample values ​​with a preset threshold. If the number of sample values ​​greater than or equal to the threshold exceeds 60% (i.e., at least 5), the bit is determined to correspond to a bright state (mapped to "1"); otherwise, it is determined to be a dark state (mapped to "0").

[0104] The aforementioned discrimination mechanism is not arbitrarily set, but rather takes into account that supplementary lights are usually deployed outdoors or in industrial environments, and are susceptible to ambient light interference such as sunlight flickering, vehicle headlights, and rain / fog scattering, which can cause momentary anomalies in individual AD sampling values. If the light state is determined solely based on a single sampling result, it is highly susceptible to misjudgment due to noise. Therefore, this invention performs multiple AD samplings within each bit period and counts the number of sampling values ​​greater than or equal to a preset threshold; only when this number exceeds a preset proportion (e.g., 60%) is the corresponding light state for that bit period determined. This mechanism, through a majority voting strategy in the time domain, can effectively filter out random noise and momentary interference, significantly improving communication reliability.

[0105] The integrity verification of the command word and parameter word based on the check code is specifically as follows:

[0106] The command word and parameter word are processed according to the verification algorithm set by the preset communication protocol to generate a local verification value;

[0107] The specific calculation method for the local verification value is as follows:

[0108] The command word and the parameter word are combined into a continuous bit sequence, and the sequence is divided into multiple bytes;

[0109] Initialize a one-byte-wide check register and set its initial value;

[0110] Each byte in the continuous bit sequence is XORed with the current value of the check register in turn, and the result is updated to the check register.

[0111] The final value of the check register is set to the local check value.

[0112] The specific calculations for local checksums are illustrated in the following example:

[0113] Assume the consecutive byte sequence consisting of the command word and parameter word is [0x12, 0x34, 0x56, 0x78] (for ease of description, each byte is represented in hexadecimal form, and each hexadecimal value corresponds to an 8-bit byte);

[0114] The MCU controller first initializes an 8-bit parity register and sets its initial value to 0x00. Then, it sequentially XORs each byte in the aforementioned consecutive byte sequence with the current value of the parity register and updates the parity register with the result. The specific process is as follows:

[0115] Initial value: Checksum = 0x00;

[0116] Byte 1: Checksum = 0x00 XOR 0x12 = 0x12;

[0117] Byte 2: Checksum = 0x12 XOR 0x34 = 0x26;

[0118] Byte 3: Checksum = 0x26 XOR 0x56 = 0x70;

[0119] Byte 4: Checksum = 0x70 XOR 0x78 = 0x08;

[0120] Finally, the value of the verification register is 0x08, which is the local verification value. The MCU controller compares this value with the received checksum. If they match, the data is considered complete and error-free; otherwise, the instruction is discarded.

[0121] Compare whether the local check value matches the determined check code;

[0122] If they match, the integrity check is considered successful; otherwise, the check is considered unsuccessful and the command word and parameter word are discarded.

[0123] If the verification passes, the parameter configuration operation type to be executed is determined according to the command word, the corresponding parameter configuration is executed in combination with the parameter word, and after the execution is completed, the light source of the fill light is controlled to emit a feedback light signal.

[0124] This invention generates a local checksum by performing an XOR operation on all bytes of the command word and parameter word sequentially, and then compares it with the received checksum. This mechanism effectively detects data transmission errors caused by ambient light interference, signal obstruction, or AD sampling noise without adding extra communication overhead. When the checksum fails, the MCU controller actively discards the instruction to avoid executing incorrect parameter configurations, thereby significantly improving the reliability, accuracy, and security of the wireless configuration process for the supplementary lighting parameters.

[0125] The command word and / or parameter word consists of at least two bytes.

[0126] In this invention, the command word and / or parameter word consists of at least two bytes to meet the encoding requirements of practical application scenarios. For example, when using 2 bytes (16 bits) as the address parameter, up to [number missing] can be supported. Each device has a unique address, far exceeding the typical network size of fill lights (usually no more than a few hundred units), fully meeting the needs of industrial or consumer deployments. If future applications require a larger address space or more complex configuration parameters, the number of bytes for the parameter words can also be increased through protocol extensions.

[0127] This invention reuses an existing illuminance sensor module in the supplementary lighting to receive visible light signals modulated according to a preset communication protocol emitted by an external controllable light source. The built-in MCU controller completes frame header recognition, data parsing, verification, and parameter configuration. Without the need for working at heights or adding dedicated communication hardware such as infrared receivers, the address allocation and parameter configuration of supplementary lighting installed at heights can be completed remotely from the ground, significantly reducing debugging costs and safety risks in scenarios such as highways and tunnels.

[0128] Furthermore, since this invention eliminates the need for an additional infrared receiving window or external wireless communication module, it avoids the need for additional optical holes or electrical interfaces on the lamp housing, thus saving on the corresponding sealing structure design; at the same time, it also eliminates the need for mechanical coding components such as DIP switches. This not only simplifies the product's mechanical structure and waterproofing process but also improves the long-term operational reliability of the entire unit in high-humidity and dusty environments, making it particularly suitable for harsh scenarios such as tunnels and outdoor road lighting.

[0129] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indication will also change accordingly.

[0130] Furthermore, in this invention, descriptions involving terms such as "first," "second," and "a" are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0131] In this invention, unless otherwise explicitly specified and limited, the terms "connection," "fixed," etc., should be interpreted broadly. For example, "fixed" can mean a fixed connection, a detachable connection, or an integral part; it can mean a mechanical connection or an electrical connection; it can mean a direct connection or an indirect connection through an intermediate medium; it can mean the internal communication of two components or the interaction between two components, unless otherwise explicitly limited. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.

[0132] Furthermore, the technical solutions of the various embodiments of the present invention can be combined with each other, but only if they are feasible for those skilled in the art. If the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such combination of technical solutions does not exist and is not within the scope of protection claimed by the present invention.

Claims

1. A method for wirelessly configuring supplementary lighting parameters based on visible light communication, characterized in that, include: The light source receives light signals from an external controllable light source through the illuminance sensor module in the supplementary light lamp, and converts the light signals into corresponding analog electrical signals. The illumination signal is modulated according to a preset communication protocol; the preset communication protocol specifies that: The data portion following the frame header consists of multiple bytes, which are separated by a byte spacing identification signal and end with the byte spacing identification signal. Each byte of the data portion consists of multiple bit cycles, each bit cycle having the same fixed duration, used to represent a binary bit value; The byte interval identification signal is a continuous bright light signal with a duration longer than a single bit period of the data portion; The built-in MCU controller of the fill light performs AD sampling on the analog electrical signal to obtain AD sampling values, and identifies the frame header from the AD sampling values ​​according to the preset communication protocol. After the frame header is successfully identified, the command word, parameter word and check code are parsed from the subsequent AD sampling values ​​according to the preset communication protocol, and the integrity of the command word and parameter word is checked according to the check code. If the check passes, the parameter configuration operation type to be executed is determined according to the command word, and the corresponding parameter configuration is executed in combination with the parameter word. After the execution is completed, the light source of the fill light is controlled to emit a feedback light signal. The step of parsing the command word, parameter word, and checksum based on subsequent AD sampling values ​​according to the preset communication protocol is as follows: Within each bit period, the AD sample value is compared with a preset threshold to determine the optical state corresponding to that period and mapped to the corresponding binary bit value; The continuously parsed binary bit values ​​are cached sequentially, and the existence of a continuous bright light signal with a duration longer than a single bit period of the data portion is monitored in real time. When the continuous bright light signal is detected, it is identified as a byte interval identification signal, and the cached binary bit values ​​are combined into one byte using the byte interval identification signal as the boundary; According to the frame format specified by the preset communication protocol, each byte is sequentially determined as a command word, a parameter word, and a checksum.

2. The wireless configuration method for supplementary lighting parameters based on visible light communication according to claim 1, characterized in that, The preset communication protocol is configured as follows: The frame header is a bit sequence consisting of three binary bit values, wherein the first and last bits are the first binary bit value, and the middle bits are the second binary bit value; the first binary bit value corresponds to the bright light state; and the second binary bit value corresponds to the dark light state.

3. The wireless configuration method for supplementary lighting parameters based on visible light communication according to claim 1, characterized in that, The preset communication protocol is configured as follows: The frame header is a bit sequence containing at least two first binary bit values ​​and one second binary bit value, and the first and last bit values ​​are both first binary bit values; the first binary bit value corresponds to the bright light state; the second binary bit value corresponds to the dark light state.

4. A wireless configuration method for supplementary lighting parameters based on visible light communication according to claim 2 or 3, characterized in that, The step of identifying the frame header from the AD sampled values ​​according to the preset communication protocol specifically involves: The AD sampled values ​​are divided according to the bit period included in the frame header set by the preset communication protocol to obtain multiple bit periods; Within each bit period, the AD sample value is compared with a preset threshold to determine the optical state corresponding to that period; The optical state is mapped to the corresponding binary bit value to obtain a received bit sequence consisting of multiple binary bit values; The received bit sequence is matched with the bit sequence corresponding to the frame header set in the preset communication protocol. If the match is successful, the frame header is determined to be successfully identified.

5. The wireless configuration method for supplementary lighting parameters based on visible light communication according to claim 1, characterized in that, Within each bit period, the AD sample value is compared with a preset threshold to determine the optical state corresponding to that period; specifically: For each bit period, the AD sample values ​​are compared with a preset threshold. If the number of AD sample values ​​greater than or equal to the preset threshold exceeds a preset proportion, then the bit period is determined to correspond to a bright light state; otherwise, it is determined to be a dark light state.

6. The wireless configuration method for supplementary lighting parameters based on visible light communication according to claim 1, characterized in that, The integrity verification of the command word and parameter word based on the check code is specifically as follows: The command word and parameter word are processed according to the verification algorithm set by the preset communication protocol to generate a local verification value; Compare whether the local check value matches the determined check code; If they match, the integrity check is considered successful; otherwise, the check is considered unsuccessful and the command word and parameter word are discarded.

7. A wireless configuration method for supplementary lighting parameters based on visible light communication according to claim 6, characterized in that, The specific calculation method for the local verification value is as follows: The command word and the parameter word are combined into a continuous bit sequence, and the sequence is divided into multiple bytes; Initialize a one-byte-wide check register and set its initial value; Each byte in the continuous bit sequence is XORed with the current value of the check register in turn, and the result is updated to the check register. The final value of the check register is set to the local check value.

8. The wireless configuration method for supplementary lighting parameters based on visible light communication according to claim 1, characterized in that, The command word and / or parameter word consists of at least two bytes.