Data processing method, light device, and medium
By generating data addresses and data packets based on control commands in the lighting control system, the problems of complex data forwarding methods and cumbersome address settings in the prior art are solved, thereby achieving flexibility in equipment deployment and high efficiency and reliability in data processing.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN INTELLIROCKS TECH CO LTD
- Filing Date
- 2025-07-14
- Publication Date
- 2026-04-28
AI Technical Summary
Existing data forwarding methods for lighting equipment suffer from high bandwidth consumption, high system complexity, cumbersome address settings, and poor scalability.
The system generates control data based on control commands, determines the data address through preset address setting rules, and generates control data packets based on the data address to realize the transmission and updating of data packets. This avoids the need for pre-setting addresses and allows for flexible configuration to adapt to actual application scenarios.
It improves the flexibility of equipment deployment and the efficiency of data processing, and enhances the reliability of the system.
Smart Images

Figure CN120475598B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of lighting control technology, and more specifically, to a data processing method, lighting equipment, and medium. Background Technology
[0002] In a lighting control system, lighting equipment transmits control data by forwarding control data from the control equipment.
[0003] In related technologies, lighting equipment can forward control data through a zero-code data forwarding method, or by forwarding data through a preset address.
[0004] However, the data forwarding method using return-to-zero codes consumes a lot of bandwidth, requires clock synchronization, has a relatively complex system, requires error detection, and also has requirements for anti-interference capabilities.
[0005] Setting preset addresses for lighting equipment is cumbersome, prone to errors, and lacks scalability. Summary of the Invention
[0006] In view of the above problems, the present invention proposes a data processing method, a lighting device, and a medium.
[0007] In a first aspect, embodiments of this application provide a data processing method applied to a control device in a lighting control system; the lighting control system includes a control device and a plurality of lighting devices connected in series; the control device is connected to one of the plurality of lighting devices; the data processing method includes: generating a plurality of control data based on control instructions; determining a data address according to a preset address setting rule; generating a control data packet based on the data address and the plurality of control data; and sending the control data packet to the lighting device connected to the control device.
[0008] Secondly, this application also provides another data processing method applied to a target lighting device in a lighting control system. The lighting control system includes a control device and multiple lighting devices connected in series. The control device is connected to one of the multiple lighting devices, and the target lighting device is one of the multiple lighting devices. The data processing method includes: receiving a control data packet; determining a data address and multiple control data based on the control data packet; updating the data address in the control data packet based on the data address and a preset update rule to form an updated control data packet; wherein the updated data address is different from the data address before the update; and sending the updated control data packet to the next-level lighting device connected in series with the target lighting device.
[0009] Thirdly, this application also provides another data processing method applied to a lighting control system. The lighting control system includes a control device and multiple lighting devices connected in series. The control device is connected to one of the multiple lighting devices. The method includes: the control device generating multiple control data based on control commands; the control device determining a data address according to a preset address setting rule; the control device generating a control data packet based on the data address and the multiple control data; the control device sending the control data packet to the lighting device connected to the control device; each lighting device receiving the control data packet; determining a data address and multiple control data based on the control data packet; each lighting device receiving the control data packet; and determining a data address and multiple control data based on the received control data packet; each lighting device updating the data address in the received control data packet based on the determined data address and a preset update rule to form an updated control data packet; wherein the updated data address is different from the original data address; and each lighting device sending the updated control data packet to the next-level lighting device connected in series.
[0010] Fourthly, embodiments of this application also provide a lighting device, which includes one or more processors, a memory, and one or more application programs; wherein the one or more application programs are stored in the memory and configured to be executed by the processor to implement the data processing method described in the second aspect above.
[0011] Fifthly, embodiments of this application also provide a computer-readable storage medium storing program code, wherein the program code can be invoked by a processor to execute the data processing method as described in the first or second aspect above.
[0012] The technical solution provided by this invention is applied to a control device in a lighting control system. The lighting control system includes a control device and multiple lighting devices connected in series. The control device is connected to one of the multiple lighting devices. The data processing method includes: generating multiple control data based on control commands; determining a data address according to a preset address setting rule; generating a control data packet based on the data address and the multiple control data; and sending the control data packet to the lighting device connected to the control device. Thus, without the need for pre-setting addresses, real-time configuration and adjustment can be performed according to the needs of the actual application scenario, improving the flexibility of device deployment and enhancing the efficiency and reliability of data processing. Attached Figure Description
[0013] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments and drawings obtained by those skilled in the art without creative effort are within the scope of protection of this invention.
[0014] Figure 1 A schematic diagram of an application environment involved in an embodiment of this application is shown.
[0015] Figure 2 A schematic diagram of another application environment involved in the embodiments of this application is shown.
[0016] Figure 3 A flowchart illustrating a data processing method provided in an embodiment of this application is shown.
[0017] Figure 4 A flowchart illustrating another data processing method provided in an embodiment of this application is shown.
[0018] Figure 5 A flowchart illustrating another data processing method provided in an embodiment of this application is shown.
[0019] Figure 6 A schematic diagram of the structure of a data processing apparatus provided in an embodiment of this application is shown.
[0020] Figure 7 A schematic diagram of another data processing apparatus provided in an embodiment of this application is shown.
[0021] Figure 8 A schematic diagram of the structure of a lighting device provided in an embodiment of this application is shown.
[0022] Figure 9 This illustration shows a schematic diagram of the structure of a computer-readable storage medium provided in an embodiment of this application. Detailed Implementation
[0023] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
[0024] In related technologies, lighting equipment can forward control data through a zero-code data forwarding method, or by forwarding data through a preset address.
[0025] However, the data forwarding method using return-to-zero codes consumes a lot of bandwidth, requires clock synchronization, has a relatively complex system, requires error detection, and also has requirements for anti-interference capabilities.
[0026] The addresses of lighting equipment are typically pre-written with fixed addresses on the production line during the manufacturing process. For example, manually assigning a unique address to each lighting device is cumbersome, prone to errors, and has poor scalability. Setting pre-defined addresses for lighting equipment also suffers from these drawbacks.
[0027] To address the aforementioned issues, the inventors have proposed a data processing method, lighting equipment, and medium as described in this application, applicable to a control device within a lighting control system. The lighting control system includes a control device and multiple lighting devices connected in series. The control device is connected to one of the multiple lighting devices. The data processing method includes: generating multiple control data based on control commands; determining a data address according to a preset address setting rule; generating a control data packet based on the data address and the multiple control data; and sending the control data packet to the lighting device connected to the control device. Thus, without the need for pre-setting addresses, real-time configuration and adjustment are performed according to the requirements of the actual application scenario, improving the flexibility of device deployment and enhancing the efficiency and reliability of data processing.
[0028] The application environment of the data processing method provided in this invention will be described below.
[0029] Please see Figure 1 , Figure 1 This is a schematic diagram of an application scenario of a lighting control system provided by an embodiment of the present invention, such as... Figure 1 As shown, the lighting control system 100 includes: a control device 110 and multiple lighting devices 120.
[0030] Multiple lighting devices 120 are connected in series. Each lighting device 120 has control circuitry and can receive control-related data, such as address setting data or lighting effect control data, through a control port.
[0031] The control device 110 is connected to one of the multiple lighting devices 120. The multiple lighting devices 120 are connected in series. The control circuits of the control device 110 and the multiple lighting devices 120 are connected in series to form a communication link. Control-related data can be transmitted sequentially through the communication link. Each lighting device 120 can directly transmit data with the connected lighting devices 120, and can also transmit data through the communication link.
[0032] It is understandable that lighting equipment can receive data sent by connected upstream lighting equipment and can send data to connected downstream lighting equipment.
[0033] In this context, the next-level lighting device refers to the adjacent lighting device that is connected in series with the current lighting device and sends data to the current lighting device in the communication link. For example, if lighting device A is connected in series with the current lighting device B and lighting device A sends data to the current lighting device B, then lighting device A is the next-level lighting device of lighting device B.
[0034] The next-level lighting device refers to the adjacent lighting device that is connected in series with the current lighting device and is used in the communication link to receive data sent by the current lighting device. For example, if lighting device C is connected in series with the current lighting device B and lighting device C is used to receive data sent by the current lighting device B, then lighting device C is the next-level lighting device of lighting device B.
[0035] Please see Figure 2 , Figure 2 This is a schematic diagram of an application scenario of a lighting control system provided by an embodiment of the present invention, such as... Figure 2 As shown, the first lighting device 120a, the second lighting device 120b, and the third lighting device 120c are connected in series, and the control device 110 is connected to the first lighting device 120a. The control device 110, the first lighting device 120a, the second lighting device 120b, and the third lighting device 120c form a communication link, and the second lighting device 120b can directly transmit data with the first lighting device 120a and the third lighting device 120c.
[0036] In some embodiments, each lighting device includes a first control port and a second control port, that is, the first control port of the first lighting device 120a is connected to a control device, the second control port of the first lighting device 120a is connected to the first control port of the second lighting device 120b, and the second control port of the second lighting device 120b is connected to the first control port of the third lighting device 120c.
[0037] The control device 110 can transmit data through a communication link. The control device 110 can directly transmit data to the first lighting device 120a, the first lighting device 120a can transmit data to the second lighting device 120b, and the second lighting device 120b can transmit data to the third lighting device 120c.
[0038] It is understandable that, taking the second lighting device 120b as an example, the first lighting device 120a is the upper-level lighting device of the second lighting device 120b, and the third lighting device 120c is the lower-level lighting device of the second lighting device 120b.
[0039] The lighting equipment 120 may include a control module and a lighting module. The control module is used to process and operate data, and the lighting module can operate under the drive of the control module.
[0040] The lighting device 120 may include multiple lighting modules, each corresponding to a different light color. For example, it may include red, green, and blue. The lighting modules can operate under the control of the control module, such as adjusting their brightness.
[0041] It is understood that this application is not limited thereto, and the lighting device 120 may also include other components, such as power supply-related structures, which this application does not limit.
[0042] It should be noted that, Figure 1 and Figure 2 These are merely exemplary application scenarios. The methods provided in this application embodiment can also be applied to other application scenarios, and no limitations are imposed here.
[0043] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.
[0044] Please see Figure 3 This application provides a data processing method applied to a control device in a lighting control system. The lighting control system, as described in the above embodiments, includes a control device and multiple lighting devices connected in series; the control device is connected to one of the multiple lighting devices.
[0045] In embodiments of this application, the method includes steps 210 to 250.
[0046] Step 210: Generate multiple control data based on control commands.
[0047] Users can generate control commands via a communication terminal and send them to the control device. These control commands can be used to adjust the lighting effects of the lighting equipment, such as on / off states and color.
[0048] Among them, multiple control data correspond to multiple lighting devices to be controlled, and each lighting device corresponds to one control data. The control data is used to control the lighting effect changes of the corresponding lighting device.
[0049] Step 220: Determine the data address according to the preset address setting rules.
[0050] Each control data has a corresponding data address, and the multiple data addresses corresponding to multiple control data are all different.
[0051] The data address can be used by lighting equipment to determine the corresponding control data. The lighting equipment can find the corresponding control data based on the data address.
[0052] In some implementations, the data address can be the smallest address that the control device can set, such as 0X0001.
[0053] In some implementations, the data address can be determined from a plurality of preset addresses. For example, the data address can be the smallest of the plurality of preset addresses. Alternatively, the data address can be the largest of the plurality of preset addresses.
[0054] Step 230: Generate a control data packet based on the data address and multiple control data.
[0055] In some implementations, a data address is encapsulated with multiple control data to generate a control data packet.
[0056] The data address corresponds to one of the multiple control data.
[0057] In some implementations, the data address corresponds to the control data that is ranked first among multiple control data.
[0058] In other implementations, the data address corresponds to the last control data in the sequence of multiple control data.
[0059] In the embodiments of this application, the data address corresponding to other control data can be obtained according to the preset address setting rules and data address.
[0060] For example, the data address is 0x0001, and the multiple control data include first control data, second control data, and third control data arranged in sequence. The data address corresponds to the first control data, and the preset address setting rule is to increment sequentially according to the preset value. Then the preset address of the second control data is: 0x0001 + preset value, and the preset address of the second control data is 0x0001 + preset value * 2.
[0061] In some methods, the preset value can be set as needed, for example, it can be 1 or other values.
[0062] Step 240: Send the control data packet to the lighting device connected to the control device.
[0063] The control device is connected to one of the lighting devices. The control device sends control data packets to the lighting device connected to the control device, and the lighting device that receives the control data packets continues to transmit the control data packets in the communication link.
[0064] Please see Figure 4This application also provides a data processing method applied to a target lighting device in a lighting control system. The lighting control system includes a control device and multiple lighting devices connected in series; the control device is connected to one of the multiple lighting devices, as detailed in the above embodiments.
[0065] In the embodiments of this application, the target lighting device is one of a plurality of lighting devices.
[0066] like Figure 4 As shown, the data processing method provided in this application embodiment includes steps 310 to 340.
[0067] Step 310: Receive control data packets.
[0068] The target lighting device can receive control data packets. Based on the position of the target lighting device in the communication link, the source of the control data packets can be sent directly by the control device or sent by the upstream lighting device connected in series.
[0069] In some implementations, step 310 may include: receiving a control data packet sent by a control device; the control data packet is obtained by the control device according to the data processing method described above. Alternatively, it may include receiving a control data packet sent by a higher-level lighting device connected in series with the target lighting device.
[0070] In some implementations, the target lighting device is connected to the control device, and the target lighting device receives control data packets sent by the control device.
[0071] In other implementations, if the target lighting device is connected to other lighting devices, the target lighting device receives control data packets sent by the upstream lighting device connected in series with the target lighting device.
[0072] Step 320: Determine the data address and multiple control data based on the control data packet.
[0073] The target lighting device can parse the received control data packets to determine the data addresses and multiple control data included.
[0074] Step 330: Based on the data address and preset update rules, update the data address in the control data packet to form an updated control data packet; wherein the updated data address is different from the data address before the update.
[0075] In some implementations, the target lighting device can obtain the corresponding control data from multiple control data through the data address. Thus, the target lighting device can obtain the control data through the data address in the control data packet without the need to pre-set the address of the lighting device.
[0076] In order for other lighting devices to also obtain the corresponding control data, the target lighting device needs to update the control data packet. Specifically, the data address in the control data packet needs to be updated so that subsequent receiving lighting devices can obtain the corresponding control data based on the updated data address.
[0077] In some implementations, step 330 includes the following steps.
[0078] (1) Adjust the data address based on the preset offset to obtain the updated data address.
[0079] (2) The updated control data packet is formed based on the updated data address and multiple control data.
[0080] In some implementations, adjusting the data address based on a preset offset can be achieved by either increasing the data address by the preset offset or decreasing the data address by the preset offset.
[0081] For example, if the data address is OX0001, adding a preset offset to the data address will result in the updated data address being OX0001 + preset offset. Similarly, if the data address is OX0010, subtracting a preset offset from the data address will result in the updated data address being OX0010 - preset offset.
[0082] In some implementations, multiple control data correspond to multiple preset addresses. The data address in the control data packet sent by the control device can be the smallest preset address among the multiple preset addresses, the largest preset address, or any preset address.
[0083] If the first data address is not the smallest or largest address among multiple data addresses, an address overflow may occur during the processing of the lighting equipment, meaning that the updated address exceeds the range of multiple preset addresses.
[0084] To overcome this technical problem, in some embodiments, the step of generating an updated control data packet based on the updated data address and multiple control data may also include the following steps.
[0085] (1) If the updated data address is greater than the maximum address among multiple preset addresses, then the updated control data packet is generated based on the minimum address among multiple preset addresses and multiple control data.
[0086] (2) If the updated data address is less than the minimum address among multiple preset addresses, then an updated control data packet is generated based on the maximum address among multiple preset addresses and multiple control data.
[0087] In some implementations, step 330 includes the following steps.
[0088] (1) Update the data address according to the preset update rules to obtain the updated data address; the updated data address is different from the data address before the update.
[0089] For details, please refer to the foregoing embodiments for a detailed description, which will not be repeated here.
[0090] (2) Shape multiple control data to obtain multiple control data after shaping.
[0091] (3) The updated control data packet is formed by combining the updated data address with the multiple control data after reshaping.
[0092] In some implementations, shaping the control data packets can improve signal quality waveforms.
[0093] Optionally, hardware circuitry can be configured to shape the control data. This hardware circuitry may include, but is not limited to, filtering circuits, comparison circuits, etc.
[0094] Step 340: Send the updated control data packet to the next-level lighting device connected in series with the target lighting device.
[0095] In some implementations, the target lighting device is connected between two lighting devices. The target lighting device receives a control data packet sent by one of the lighting devices (the upper-level lighting device) and sends the control data packet to the other lighting device (the lower-level lighting device) to ensure that the control data packet is transmitted sequentially in the communication link.
[0096] In some embodiments, the data processing method provided in this application further includes the following steps.
[0097] (1) Among multiple control data, obtain the control data corresponding to the data address as the target control data.
[0098] (2) Execute target control data.
[0099] In some implementations, the target lighting device does not need to be pre-set with an address. Instead, it directly obtains the control data corresponding to the data address as the target control data and executes the control data to display the corresponding lighting effect.
[0100] In some implementations, the target lighting device first shapes multiple control data and then acquires the corresponding target control data.
[0101] In some implementations, the step of obtaining the control data corresponding to the data address as the target control data from multiple control data includes the following steps.
[0102] (1) Obtain the preset mapping relationship, which represents the correspondence between data address and control data.
[0103] (2) Based on the preset mapping relationship, among multiple control data, the control data corresponding to the data address is determined as the target control data.
[0104] In some implementations, the correspondence between data addresses and control data can be pre-set, so that the order of control data does not need to be restricted when forming control data packets.
[0105] In some implementations, the preset mapping relationship can be stored in the form of tables, databases, function relationships, configuration files, etc.
[0106] The preset mapping relationship can be pre-stored in the target lighting device and can be recalled when needed. Alternatively, the preset mapping relationship can also be transmitted with the control data packet; this application does not impose any restrictions on this.
[0107] In some embodiments, the lighting device includes multiple lighting modules, each corresponding to a different light color. The steps for executing target control data include the following steps.
[0108] (1) The target control data is parsed to obtain the adjustment data of multiple lighting modules.
[0109] (2) Convert the adjustment data of each lighting module into the corresponding dimming signal.
[0110] (3) Drive the corresponding lighting module to work according to the dimming signal of each lighting module.
[0111] The control data includes adjustment data for multiple lighting modules in the target lighting equipment. For example, if the target lighting equipment includes three lighting modules: a red lighting module, a green lighting module, and a blue lighting module, then the control data includes the first adjustment data corresponding to the red lighting module, the second adjustment data corresponding to the green lighting module, and the third adjustment data corresponding to the blue lighting module. The specific placement order of the different adjustment data can be preset, for example, the preset placement order of the adjustment data is: first adjustment data + second adjustment data + third adjustment data, thereby determining the lighting module corresponding to each adjustment data according to the preset placement order.
[0112] It is understandable that the size of each adjustment data is different, and the length of the control data is different.
[0113] For example, if the lighting device is an 8-bit lighting device, it means that the data length of the adjustment data for controlling one color is 8 bits, and RGB colors require 24 bits.
[0114] Then the target lighting device extracts the control data corresponding to the data address from the control data packet.
[0115] For example, suppose a lighting control system includes 10 lighting devices. The control data for the 2nd, 4th, 6th, 8th, and 10th lighting devices is written according to the brightest white light, i.e., OXFF; and the control data for the 1st, 3rd, 5th, 7th, and 9th lighting devices is written according to the off light, i.e., OX00. If the data address is OX0001, then the control data packet is: "OX000100FF00FF00FF00FF00FF".
[0116] The target lighting device increments the data address by 1, updating it to OX0002. The updated control data packet is then "OX000200FF00FF00FF00FF00FF". The lighting device that receives this updated control data packet finds the corresponding control data according to the address OX0002.
[0117] In some implementations, the dimming signal can be a PWM signal.
[0118] Please see Figure 5 This application also provides a data processing method applied to a lighting control system. The lighting control system includes a control device and a plurality of lighting devices connected in series. The control device is connected to one of the plurality of lighting devices. The method includes steps 401 to 409.
[0119] Step 401: The control device generates multiple control data based on the control commands.
[0120] Step 402: The control device determines the data address according to the preset address setting rules.
[0121] Step 403: The control device generates a control data packet based on the data address and multiple control data.
[0122] Step 404: The control device sends the control data packet to the lighting device connected to the control device.
[0123] Step 405: Each lighting device receives a control data packet and determines the data address and multiple control data based on the received control data packet.
[0124] Step 406: Each lighting device updates the data address in the received control data packet based on the determined data address and preset update rules to form an updated control data packet; wherein the updated data address is different from the data address before the update.
[0125] Step 407: Each lighting device sends the updated control data packet to the next level lighting device connected in series.
[0126] For detailed implementation methods, please refer to the above embodiments, which will not be repeated here.
[0127] Please see Figure 6 This application provides a data processing device 500, which is applied to a control device in a lighting control system. The lighting control system includes a control device and a plurality of lighting devices connected in series. The control device is connected to one of the plurality of lighting devices. The device includes: a control data generation module 510, a data address determination module 520, a data packet generation module 530, and a data packet sending module 540.
[0128] The control data generation module 510 is used to generate multiple control data based on control commands.
[0129] The data address determination module 520 is used to determine the data address according to the preset address setting rules.
[0130] The data packet generation module 530 is used to generate control data packets based on data addresses and multiple control data.
[0131] The data packet sending module 540 is used to send control data packets to the lighting equipment connected to the control device.
[0132] Please see Figure 7 This application provides another data processing device 600, which is applied to a target lighting device in a lighting control system. The lighting control system includes a control device and a plurality of lighting devices connected in series. The control device is connected to one of the plurality of lighting devices, and the target lighting device is one of the plurality of lighting devices. The device includes: a data receiving module 610, a data determining module 620, a data updating module 630, and a data sending module 640.
[0133] The data receiving module 610 is used to receive control data packets.
[0134] The data determination module 620 is used to determine the data address and multiple control data based on the control data packet.
[0135] The data update module 630 is used to update the data address in the control data packet based on the data address and preset update rules to form an updated control data packet; wherein the updated data address is different from the data address before the update and is one of multiple preset addresses.
[0136] The data transmission module 640 is used to send the updated control data packet to the next-level lighting device connected in series with the target lighting device.
[0137] It should be noted that, for the device-type embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and relevant details can be found in the descriptions of the method embodiments. Any processing method described in the method embodiments can be implemented in the device embodiments through corresponding processing modules, and will not be elaborated upon further in the device embodiments.
[0138] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0139] Please see Figure 8 Based on the above data processing method, this application embodiment also provides a lighting device 700 that can perform the aforementioned data processing method.
[0140] In embodiments of this application, the lighting device 700 includes one or more processors 710, a memory 720, and one or more application programs. The one or more application programs are stored in the memory 720, which stores programs capable of executing the contents of the foregoing embodiments, and the processor 710 can execute the programs stored in the memory.
[0141] The processor 710 may include one or more cores for data processing and message matrix units. The processor 710 connects to various parts of the electronic device using various interfaces and lines, and performs various functions of the cooking device and processes data by running or executing instructions, programs, code sets, or instruction sets stored in memory, and by calling data stored in memory. Optionally, the processor 710 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 710 may integrate one or more of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 710 and may be implemented separately through a communication chip.
[0142] The memory 720 may include random access memory (RAM) or read-only memory (ROM). The memory 720 can be used to store instructions, programs, code, code sets, or instruction sets. The memory may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing the various method embodiments described below, etc. The data storage area may also store data created by the terminal during use.
[0143] Please refer to Figure 9 This diagram illustrates a structural block diagram of a computer-readable storage medium 800 provided in an embodiment of this application. The computer-readable storage medium 800 stores program code 810, which can be called by a processor to execute the data processing method described in the above method embodiments.
[0144] The computer-readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium includes a non-transitory computer-readable storage medium. The computer-readable storage medium 800 has storage space for program code that performs any of the method steps of the data processing method described above. This program code 810 can be read from or written to one or more computer program products. The program code may, for example, be compressed in a suitable form.
[0145] In summary, the data processing method, lighting device, and medium provided in this application embodiment are applied to the control device in a lighting control system. The lighting control system includes the control device and multiple lighting devices connected in series. The control device is connected to one of the multiple lighting devices. The data processing method includes: generating multiple control data based on control commands; determining a data address according to a preset address setting rule; generating a control data packet based on the data address and the multiple control data; and sending the control data packet to the lighting device connected to the control device. Thus, without the need for pre-setting addresses, real-time configuration and adjustment can be performed according to the needs of the actual application scenario, improving the flexibility of device deployment and enhancing the efficiency and reliability of data processing.
[0146] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A data processing method, characterized in that, A control device used in a lighting control system; the lighting control system includes the control device and multiple lighting devices connected in series; the control device is connected to one of the multiple lighting devices; the multiple lighting devices do not have pre-set addresses; the data processing method includes: Multiple control data are generated based on control commands; among them, multiple control data correspond to multiple lighting devices, and each lighting device corresponds to one control data. The data address is determined according to the preset address setting rules; wherein, the preset address setting rules include: the data address is the minimum address that the control device can set; or, the data address is one of a plurality of preset addresses; A control data packet is generated based on the data address and the plurality of control data; The control data packet is sent to a lighting device connected to the control device; so that the connected lighting device receives the control data packet, determines a data address and multiple control data based on the received control data packet, obtains the control data corresponding to the determined data address as the target control data; and executes the target control data; and updates the data address in the received control data packet based on the determined data address and a preset update rule to form an updated control data packet; wherein the updated data address is different from the data address before the update; and the updated control data packet is sent to the next-level lighting device connected in series; so that the next-level lighting device connected in series with the lighting device determines the corresponding control data through the updated data address.
2. A data processing method, characterized in that, A target lighting device used in a lighting control system; the lighting control system includes a control device and a plurality of lighting devices connected in series; the control device is connected to one of the plurality of lighting devices, and the target lighting device is one of the plurality of lighting devices. The data processing method includes: The system receives control data packets sent by the control device; the control data packets are generated by the control device based on a data address and multiple control data; the data address is determined by the control device according to a preset address setting rule; the multiple control data are generated by the control device based on control commands; wherein, the multiple control data correspond to the multiple lighting devices, and each lighting device corresponds to one control data; the preset address setting rule includes: the data address is the smallest address that the control device can set; or, the data address is one of multiple preset addresses; or, the system receives control data packets sent by a higher-level lighting device connected in series with the target lighting device. The data address and multiple control data are determined based on the control data packet; Based on the data address and the preset update rule, the data address in the control data packet is updated to form an updated control data packet; wherein the updated data address is different from the data address before the update; The updated control data packet is sent to the next-level lighting device connected in series with the target lighting device, so that the next-level lighting device connected in series with the target lighting device can confirm the corresponding control data through the updated data address; Among the plurality of control data, the control data corresponding to the data address is selected as the target control data; Execute the target control data.
3. The data processing method according to claim 2, characterized in that, The step of obtaining the control data corresponding to the data address from the plurality of control data as the target control data includes: Obtain a preset mapping relationship, which represents the correspondence between data addresses and control data; Based on the preset mapping relationship, among the multiple control data, the control data corresponding to the data address is determined as the target control data.
4. The data processing method according to claim 2, characterized in that, The lighting equipment includes multiple lighting modules, and different lighting modules correspond to different light colors; The execution of the target control data includes: The target control data is parsed to obtain the adjustment data for the multiple lighting modules; The adjustment data of each of the lighting modules is converted into a corresponding dimming signal; Each lighting module is driven to operate according to its dimming signal.
5. The data processing method according to claim 2, characterized in that, The step of updating the data address in the control data packet based on the data address and a preset update rule to form an updated control data packet includes: The data address is updated according to a preset update rule to obtain the updated data address; the updated data address is different from the data address before the update. Multiple control data are shaped to obtain multiple control data after shaping. An updated control data packet is formed based on the updated data address and the multiple control data after the reshaping process.
6. The data processing method according to claim 2, characterized in that, The step of updating the data address in the control data packet based on the data address and a preset update rule to form an updated control data packet includes: The data address is adjusted based on a preset offset to obtain the updated data address; An updated control data packet is formed based on the updated data address and the multiple control data.
7. A data processing method, characterized in that, The method is applied to a lighting control system, which includes a control device and a plurality of lighting devices connected in series; the control device is connected to one of the plurality of lighting devices; the plurality of lighting devices are not pre-set with addresses; the method includes: The control device generates multiple control data based on control commands; wherein, the multiple control data correspond to multiple lighting devices, and each lighting device corresponds to one control data. The control device determines the data address according to a preset address setting rule; wherein, the preset address setting rule includes: the data address is the smallest address that the control device can set; or, the data address is one of a plurality of preset addresses; The control device generates a control data packet based on the data address and the plurality of control data; The control device sends the control data packet to the lighting device connected to the control device; Each of the lighting devices receives a control data packet; and determines a data address and multiple control data based on the received control data packet; Each of the lighting devices updates the data address in the received control data packet based on a determined data address and a preset update rule to form an updated control data packet; wherein the updated data address is different from the data address before the update; Each of the lighting devices sends the updated control data packet to the next-level lighting device connected in series, so that the next-level lighting device connected in series with the lighting device can confirm the corresponding control data through the updated data address; Each of the lighting devices acquires the control data corresponding to the data address from the plurality of control data as target control data; and executes the target control data.
8. A lighting device, characterized in that, include: One or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications being configured to perform the data processing method as described in any one of claims 1-7.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium contains program code that can be invoked by a processor to execute the data processing method as described in any one of claims 1-7.
Citation Information
Patent Citations
LED lamp string and LED lamp string communication control method and device
CN118865876A
LED driving data transmission method and system
CN119967661A