Address setting method, data processing method, lighting equipment and medium

Dynamically configure the lighting device address by receiving and updating addressed data packets, solving the problems of cumbersome address settings and high error rates in the prior art, and improving the scalability of the system.

CN120512420APending Publication Date: 2025-08-19SHENZHEN INTELLIROCKS TECH CO LTD +1

Patent Information

Application Number
CN202511004517.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-21
Publication Date
2025-08-19

AI Technical Summary

Technical Problem

In the existing lighting control system, the address setting method of lighting equipment is complicated, the probability of error is high, and the scalability is poor.

Method used

By receiving the addressed data packet, determining the target address and removing it from the addressed data packet, an updated addressed data packet is formed and sent to the next level of lighting equipment connected in series to realize the dynamic configuration of the lighting equipment address.

Benefits of technology

Simplifies the address setting method, reduces the probability of errors, and improves the scalability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120512420A_ABST
    Figure CN120512420A_ABST
Patent Text Reader

Abstract

The invention discloses an address setting method, a data processing method, lighting equipment and a medium, which are applied to target lighting equipment in a lighting control system. The method comprises the steps that an addressing data packet is received, the addressing data packet is generated by control equipment, and the addressing data packet comprises a candidate address set; determining one candidate address from the candidate address set as a target address; removing the target address from the addressing data packet to form an updated addressing data packet; and sending the updated addressing data packet to the next-level lighting equipment connected in series with the target lighting equipment to trigger the next-level lighting equipment connected in series to perform address setting, thereby realizing dynamic configuration of the lighting equipment address, simplifying the address setting mode, reducing the error probability and improving the expansibility of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of lighting control technology, and more specifically, to an address setting method, a data processing method, a lighting device, and a medium. Background Art

[0002] In a lighting control system, lighting equipment can be controlled through its address.

[0003] The addresses of lighting devices are usually pre-programmed into each device during the production process. For example, manually assigning a unique address to each device is cumbersome, error-prone, and poorly scalable. Summary of the Invention

[0004] In view of the above problems, the present invention proposes an address setting method, a data processing method, a lighting device and a medium.

[0005] In a first aspect, an embodiment of the present application provides an address setting method, 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 in sequence; 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, and the method includes: receiving an addressing data packet, the addressing data packet is generated by the control device, and the addressing data packet includes a set of candidate addresses; determining one of the candidate addresses from the set of candidate addresses as the target address; removing the target address from the addressing data packet to form an updated addressing data packet; and sending the updated addressing data packet to the next-level lighting device connected in series with the target lighting device to trigger the next-level lighting device connected in series to perform address setting.

[0006] In a second aspect, an embodiment of the present application further provides a data processing method, which is applied to a target lighting device in a lighting control system; wherein the target lighting device adopts the address setting method described in the first aspect above to set the address; the method includes: receiving a control data packet; obtaining control data corresponding to the target address in the control data packet; and executing the control data.

[0007] In a third aspect, an embodiment of the present application further provides a lighting device comprising one or more processors, a memory, and one or more applications; wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the above-mentioned address setting method and / or data processing method.

[0008] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, in which program code is stored, wherein the program code can be called by a processor to execute the address setting method and / or data processing method as described above.

[0009] The technical solution provided by the present invention 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 method includes: receiving an addressing data packet, the addressing data packet being generated by the control device, the addressing data packet including a set of candidate addresses; determining one of the candidate addresses from the set of candidate addresses as a target address; removing the target address from the addressing data packet to form an updated addressing data packet; and sending the updated addressing data packet to a next-level lighting device connected in series with the target lighting device to trigger the next-level lighting device connected in series to perform address setting. Thus, dynamic configuration of the lighting device address can be achieved, the address setting method can be simplified, the error probability can be reduced, and the scalability of the system can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the technical solutions in the embodiments of this application, the following is a brief introduction to the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments and drawings obtained by ordinary technicians in this field without creative work are within the scope of protection of this invention.

[0011] Figure 1 A schematic diagram of an application environment involved in an embodiment of the present application is shown.

[0012] Figure 2 A schematic diagram showing another application environment involved in an embodiment of the present application is shown.

[0013] Figure 3 A flow chart of an address setting method provided in an embodiment of the present application is shown.

[0014] Figure 4 A flow chart of a data processing method provided in an embodiment of the present application is shown.

[0015] Figure 5 A schematic structural diagram of an address setting device provided in an embodiment of the present application is shown.

[0016] Figure 6 A structural diagram of a data processing device provided in an embodiment of the present application is shown.

[0017] Figure 7 A structural schematic diagram of a lighting device provided in an embodiment of the present application is shown.

[0018] Figure 8 A schematic structural diagram of a computer-readable storage medium provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0019] In order to enable people skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0020] In a lighting control system, lighting equipment can be controlled through its address.

[0021] The addresses of lighting devices are usually pre-programmed into each device during the production process. For example, manually assigning a unique address to each device is cumbersome, error-prone, and poorly scalable.

[0022] In order to improve the above-mentioned problems, the inventors proposed the address setting method, data processing method, lighting device and medium provided in the present application, which is applied to the target lighting device in the lighting control system; the lighting control system includes a control device and a plurality of lighting devices connected in series in sequence; 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 method includes: receiving an addressing data packet, the addressing data packet is generated by the control device, and the addressing data packet includes a set of candidate addresses; determining one of the candidate addresses from the set of candidate addresses as the target address of the target lighting device; removing the target address from the addressing data packet to form an updated addressing data packet; sending the updated addressing data packet to the next-level lighting device connected in series with the target lighting device to trigger the next-level lighting device connected in series to perform address setting, thereby realizing dynamic configuration of the lighting device address, simplifying the address setting method, reducing the error probability, and improving the scalability of the system.

[0023] The following describes the application environment of the address setting method provided by the present invention.

[0024] See also 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. Figure 1 As shown, the lighting control system 100 includes a control device 110 and a plurality of lighting devices 120 .

[0025] The plurality of lighting devices 120 are connected in series. The lighting devices 120 have control circuits, such as control ports, that can receive control-related data, such as address setting data or lighting effect control data.

[0026] The control device 110 is connected to one of the lighting devices 120. The lighting devices 120 are connected in series. The control circuits of the control device 110 and the lighting devices 120 are connected in series to form a communication link. Control-related data can be transmitted sequentially over this communication link. Each lighting device 120 can directly transmit data to the lighting devices 120 connected in series, and data can be transmitted via the communication link.

[0027] It is understandable that the lighting device can receive data sent by the lighting device at the previous stage connected in series, and can send data to the lighting device at the next stage connected in series.

[0028] Among them, the upper-level lighting device of a lighting device refers to an adjacent lighting device that is connected in series with the lighting device and sends data to the current lighting device in the communication link. For example, 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 upper-level lighting device of lighting device B.

[0029] The next-level lighting device of a lighting device refers to an adjacent lighting device that is connected in series with the lighting device and is used to receive data sent by the current lighting device in the communication link. 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.

[0030] See also 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. Figure 2 As shown, a first lighting device 120a, a second lighting device 120b, and a third lighting device 120c are connected in series, with a control device 110 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, allowing the second lighting device 120b to directly transmit data to the first lighting device 120a and the third lighting device 120c.

[0031] 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 the 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.

[0032] The control device 110 may transmit data via a communication link. The control device 110 may directly transmit data to the first lighting device 120a. The first lighting device 120a may transmit data to the second lighting device 120b. The second lighting device 120b may transmit data to the third lighting device 120c.

[0033] The lighting device 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 work under the drive of the control module.

[0034] 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.

[0035] The lighting device 120 may include multiple lighting modules. The lighting colors corresponding to different lighting modules may be the same or different. For example, they may include red, green, and blue. The lighting modules may operate under the control of the control module, for example, to adjust the brightness.

[0036] It is understandable that the present application is not limited thereto, and the lighting device 120 may also include other components, such as structures related to a power supply, which is not limited in the present application.

[0037] It should be noted that Figure 1 and Figure 2 This is only an exemplary application scenario. The method provided in the embodiments of the present application can also be run in other application scenarios and is not limited here.

[0038] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application.

[0039] See also Figure 3 The present invention provides an address setting method that can be applied to a target lighting device in a lighting control system. The lighting control system can refer to the above-described embodiments. 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.

[0040] In an embodiment of the present application, the target lighting device is one of the multiple lighting devices.

[0041] like Figure 1 As shown, the address setting method provided in the embodiment of the present application includes: steps 210 to 240.

[0042] Step 210: Receive an addressed data packet.

[0043] In some implementations, the addressing instruction may be generated when the control device enters a power-on state.

[0044] The addressing data packet is generated by the control device, and the addressing data packet includes a candidate address set. The candidate address set includes multiple candidate addresses.

[0045] For example, the addressing data packet may include: candidate address 1, candidate address 2, candidate address 3, and ... candidate address n. A specific data example may include: "0X00010002000300040005.......FFFF," where the data length of the candidate address can be predefined, and different candidate addresses can be distinguished according to the preset data length. For example, in "0X00010002000300040005.......FFFF," each candidate address has a data length of 16 bits, resulting in candidate address 1: 0001; candidate address 2: 0001, and so on. The specific configuration can be based on actual needs and is not limited by this application.

[0046] In some implementations, when the target lighting device meets the addressing conditions, it may enter the addressing state.

[0047] In some implementations, the addressing conditions may include, but are not limited to: a power-on state, a target address being empty, and receiving an addressing instruction sent by a control device.

[0048] In some implementations, when the target lighting device enters a power-on state, it may automatically enter an addressing state.

[0049] In some implementations, when the target lighting device detects that the target address is empty, that is, the target address is not set, it may enter the addressing state.

[0050] In some implementations, when the target lighting device receives an addressing instruction sent by the control device, it enters an addressing state.

[0051] The control device can generate an addressing instruction and transmit it in the communication link. When the target lighting device receives the addressing instruction, it is triggered to enter the addressing state.

[0052] Step 220: Determine one of the candidate addresses from the candidate address set as the target address.

[0053] In some implementations, the target lighting device may select any one of the candidate addresses in the candidate address set as the target address of the target lighting device.

[0054] In some implementations, the target lighting device may select one of the candidate addresses in the candidate address set according to a preset rule as the target address of the target lighting device.

[0055] In some implementations, step 210 includes: using a candidate address in a preset order in the candidate address set as the target address of the target lighting device.

[0056] Optionally, the preset order may be the first, that is, the first candidate address in the candidate address set is used as the target address of the target lighting device.

[0057] Optionally, the preset order may be the last one, that is, the last candidate address in the candidate address set is used as the target address of the target lighting device.

[0058] Optionally, the preset order may be the Nth (N>1, and is a positive integer), that is, the Nth candidate address in the candidate address set is used as the target address of the target lighting device.

[0059] In some embodiments, the target address is the address of the target lighting device used for communication. The target address can be stored in the address register of the lighting device. The target address of the target lighting device does not need to be pre-set on the production line, but can be dynamically set in actual use when the addressing status is met.

[0060] In some embodiments, the target address of a target lighting device can be reset when the target lighting device is powered off and reset when it is powered on again. Thus, the target address of a target lighting device can be flexibly set based on actual application scenarios, which has a wider range of applications compared to the fixed target address setting method in related technologies.

[0061] Step 230: Remove the target address from the addressed data packet to form an updated addressed data packet.

[0062] Step 240: Send the updated addressing data packet to the next lighting device connected in series with the target lighting device, so as to trigger the next lighting device in series to perform address setting.

[0063] Addressing data packets need to be transmitted in the communication link for other lighting devices to set addresses. To avoid address duplication and conflicts, the target lighting device can remove the target address from the addressing data packet after determining the target address, forming an updated addressing data packet. The updated addressing data packet is then transmitted to the next connected lighting device, thereby avoiding address conflicts with other lighting devices.

[0064] For example: the addressing data packet is: "0X00010002000300040005.......FFFF", the target lighting device selects the candidate address "0001" as the target address, and the updated addressing data includes: "0X0002000300040005.......FFFF".

[0065] In some implementations, the target lighting device is connected to the control device, and the target lighting device transmits the addressed data packet to the connected lighting device.

[0066] In some embodiments, a target lighting device is connected between two lighting devices. The target lighting device receives an addressed data packet sent by one of the lighting devices (the upper-level lighting device) and sends the updated lighting device address to the other lighting device (the lower-level lighting device) to ensure that the addressed data packets are transmitted sequentially in the communication link.

[0067] In some implementations, each lighting device has a corresponding device identifier, and different lighting devices have different corresponding device identifiers. The address setting method provided in the embodiment of the present application may further include the following steps.

[0068] (1) Generate address binding information based on the target address and the device identifier of the target lighting device.

[0069] (2) Generate an address feedback data packet based on the address binding information.

[0070] (3) Feedback the address feedback data packet to the control device.

[0071] The device identifier is a unique identifier of the lighting device and may be a MAC (Media Access Control address).

[0072] The target lighting device can generate address binding information according to the device identification and target address of the target device, and feedback the address binding information to the control device through the address feedback data packet to feedback the target lighting device bound to the address of the data device.

[0073] It is understandable that if the target lighting device is directly connected to the control device, the target lighting device can directly send the address feedback data packet to the control device.

[0074] If the target lighting device is connected to other lighting devices, the target lighting device can transmit the address feedback data packet to the control device through the communication link via the other lighting devices.

[0075] Since the lighting devices are connected in series in sequence, in order to allow the control device to clearly understand the connection status of multiple lighting devices, such as the connection order, so as to facilitate the control device to perform further enriched control, in some embodiments, the address setting method provided in the embodiment of the present application may also include the following steps.

[0076] (1) When receiving an address feedback data packet sent by a series of lighting devices, an address binding information sequence in the address feedback data packet is obtained, where the address binding information sequence includes the address binding information of the series of lighting devices, and the address binding information of the series of lighting devices includes the device identification and address of the series of lighting devices.

[0077] (2) Generate the address binding information of the target lighting device according to the target address and the device identification of the target lighting device.

[0078] (3) According to the preset adding order rule, the address binding information of the target lighting device is added to the address binding information sequence to form an updated address binding information sequence.

[0079] (4) Generate an updated address feedback data packet based on the updated address binding information sequence.

[0080] (5) Feedback the updated address feedback data packet to the control device.

[0081] The address feedback data packet received from the serially connected lighting device includes an address binding information sequence, which includes address binding information of multiple lighting devices, for example, address binding information of the lighting device that sent the address feedback data packet.

[0082] The target lighting device may parse the address feedback data packet to obtain an address binding information sequence, and add the address binding information of the target lighting device to the sequence to form an updated address binding information sequence.

[0083] For example, the address binding information sequence includes: (address 1 + device identifier 1) & (address 2 + device identifier 2), and the address binding information corresponding to the target lighting device is: target address + target device identifier. The updated address binding information sequence can then include: target address + target device identifier.

[0084] The preset adding order rule may be pre-set, and may be, for example, added to the first or last position of the address binding information sequence.

[0085] Optionally, the preset adding order rule is to add to the first place of the address binding information sequence, then the updated address binding information sequence is: (target address + target lighting device identifier) & (address 1 + device identifier 1 of lighting device 1) & (address 2 + device identifier 2 of lighting device 2).

[0086] Optionally, the preset adding order rule is to add to the end of the address binding information sequence, then the updated address binding information sequence is: (address 1 + device identification 1 of lighting device 1) & (address 2 + device identification 2 of lighting device 2) & target address + identification of target lighting device.

[0087] A new address feedback data packet is formed according to the updated address binding information sequence.

[0088] The control device may determine the connection order of the lighting devices according to the order of the address binding information in the address binding information set in the address feedback data packet and a preset adding order rule.

[0089] Optionally, the address binding information sequence in the address feedback data packet received by the control device is: target address+identity of target lighting device&address 1+device identification 1 of lighting device 1&address 2+device identification 2 of lighting device 2.

[0090] If the preset adding order rule is to add to the first place in the address binding information sequence, the connection order of multiple lighting devices is: target lighting device → lighting device 1 → lighting device 2.

[0091] If the preset adding order rule is to add to the end of the address binding information sequence, the connection order of multiple lighting devices is: lighting device 2 → lighting device 1 → target lighting device.

[0092] In actual use, the lighting control system can freely add lighting equipment and adjust the connection method of lighting equipment.

[0093] In some implementations, if the target lighting device is a newly added lighting device in the lighting control system, an addition reminder message may be sent to the control device to trigger the control device to re-address multiple lighting devices.

[0094] In other embodiments, the control device stores information of the addressed candidate addresses and can also generate an addressing data packet, remove the addressed candidate addresses from the addressing data packet, and only address the newly added lighting devices according to the addressing data packet without causing address duplication.

[0095] In summary, the address setting method provided in the embodiment of the present application can realize dynamic configuration of the address of the lighting device, simplify the address setting method, reduce the error probability, and improve the scalability of the system.

[0096] See also Figure 4, an embodiment of the present application also provides a data processing method, which is applied to the target lighting device in the lighting control system. The lighting control system can refer to the description of the above embodiment, and the target lighting device uses the address setting method of the above embodiment to set the address. The specific content of the address setting method can refer to the description of the above embodiment.

[0097] like Figure 4 As shown, the data processing method provided in the embodiment of the present application includes: steps 310 to 330.

[0098] Step 310: Receive a control data packet.

[0099] The control device can generate control data packets according to control instructions to control multiple lighting devices.

[0100] The target lighting device can receive the control data packet. Based on the position of the target lighting device in the communication link, the source of the control data packet can be sent directly by the control device or by the upper-level lighting device in series.

[0101] In some embodiments, step 310 may include: receiving a control data packet sent by a control device; the control data packet is sent by the control device, or receiving a control data packet sent by a lighting device that is connected in series with the target lighting device.

[0102] In some implementations, the target lighting device is connected to the control device, and the target lighting device receives a control data packet sent by the control device.

[0103] In other implementations, the target lighting device is connected to other lighting devices, and the target lighting device receives a control data packet sent by an upper-level lighting device connected in series with the target lighting device.

[0104] In some implementations, step 310 includes: when the target lighting device is in a data receiving state, receiving a control data packet.

[0105] In some implementations, the data processing method provided in the embodiments of the present application may further include the step of: entering a data receiving state after sending the updated addressed data packet to the lighting device connected in series with the target lighting device.

[0106] The target lighting device can enter the data receiving state after completing the addressing setting.

[0107] Step 320: Obtain control data corresponding to the target address in the control data packet.

[0108] The control data packet may include multiple control data, each of which corresponds to a plurality of lighting devices. When the target lighting device receives the control data packet, it needs to find the corresponding control data in the control data packet before executing the corresponding control instruction.

[0109] For example, the control data may include: control data 1 & control data 2 & control data 3 & ... & control data n. The data length of the control data may be predefined, and different control data may be distinguished according to the preset data length. For example, in "0X00FF00FF00FF00FF00FF", each control data has a data length of 8 bits, so the first control data may be 00, the second control data may be FF, and so on. The specific setting may be based on actual needs and is not limited by this application.

[0110] Each control data in the control data packet corresponds to a candidate address, for example, control data 1 corresponds to candidate address 1. When the target lighting device finds the control data corresponding to the target address, it can find the corresponding control data.

[0111] Step 330: Execute the control data.

[0112] The target lighting device executes the control data to display the corresponding lighting effect.

[0113] In some implementations, the data processing method provided in the embodiments of the present application may further include the following steps.

[0114] (1) Enter the waiting state.

[0115] (2) When it is determined that the time of entering the waiting state reaches the preset time, the control data is executed.

[0116] In some implementations, when the target lighting device obtains the corresponding control data, it enters a waiting state.

[0117] The introduction of a wait state significantly improves the robustness, collaborative efficiency, and user experience of lighting control systems in complex environments by balancing real-time performance and stability. In actual implementation, the preset duration of the wait state can be set based on specific hardware performance and usage requirements.

[0118] In some embodiments, the lighting device includes multiple lighting modules, and different lighting modules correspond to different lighting colors; step 330 may include the following steps.

[0119] (1) Analyze the control data to obtain the adjustment data of multiple lighting modules.

[0120] (2) Convert the adjustment data of each lighting module into a dimming signal.

[0121] (3) Drive the corresponding lighting module to work according to the dimming signal of each lighting module.

[0122] The control data includes adjustment data for multiple lighting modules in the target lighting device. For example, if the target lighting device includes three lighting modules: a red lighting module, a green lighting module, and a blue lighting module, the control data includes first adjustment data corresponding to the red lighting module, second adjustment data corresponding to the green lighting module, and third adjustment data corresponding to the blue lighting module. The specific order in which the different adjustment data are placed can be pre-set. For example, the order of the adjustment data can be pre-set as: first adjustment data + second adjustment data + third adjustment data. The lighting module corresponding to each adjustment data is determined based on the pre-set order.

[0123] It is understandable that if the size of the adjustment data is different, the data length of the corresponding control data will be different.

[0124] 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 the three RGB colors require 24 bits. Then the first lighting device extracts the first 24-bit control data in the control data set; the second lighting device takes the second 24-bit control data; the third lighting device takes the third 24-bit control data, and so on, the nth lighting device takes the nth 24-bit control data.

[0125] For example, suppose a lighting control system includes 10 lighting devices. The control data for the 2nd, 4th, 6th, 8th, and 10th lighting devices are written as if white light is the brightest, i.e., OXFF. The control data for the 1st, 3rd, 5th, 7th, and 9th lighting devices are written as if light is off, i.e., OX00. The control data packet is: "0X00FF00FF00FF00FF00FF". For example, if the lighting device is a 16-bit lighting device, it means that the data length of the adjustment data for controlling one color is 16 bits, and the three RGB colors require 48 bits. Then the first lighting device extracts the first 48-bit control data in the control data set; the second lighting device takes the second 48-bit control data; the third lighting device takes the third 48-bit control data, and so on, the nth lighting device takes the nth 48-bit control data.

[0126] For example, suppose a lighting control system includes 10 lighting devices. The control data for the 2nd, 4th, 6th, 8th, and 10th lighting devices are written with white light being the brightest, i.e., OXFFFF. The control data for the 1st, 3rd, 5th, 7th, and 9th lighting devices are written with light off, i.e., OX0000. The control data packet is: "0X0000FFFF0000FFFF0000FFFF0000FFFF0000FFFF" In some embodiments, the dimming signal may be a PWM signal.

[0127] In some implementations, the address setting method provided in the embodiments of the present application may further include the step of sending a control data packet to a lighting device connected to the target lighting device.

[0128] In some embodiments, 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 and sends the control data packet to the other lighting device, thereby ensuring that the control data packets are transmitted sequentially in the communication link.

[0129] In some embodiments, the step of sending the control data to the lighting device connected to the target lighting device may include the following steps.

[0130] (1) Shape the control data packet.

[0131] (2) Send the shaped control data packet to the lighting device connected in series with the target lighting device.

[0132] In some implementations, shaping the control data packet can improve the signal quality waveform.

[0133] In some implementations, the control data packet may be shaped first, and then the corresponding control data in the shaped control data packet may be obtained.

[0134] Optionally, a hardware circuit may be provided to perform shaping processing on the control data packet. The hardware circuit may include but is not limited to a filtering circuit, a comparison circuit, etc., which are not limited here.

[0135] It is understandable that the two steps of the target lighting device obtaining the control data corresponding to the target address in the control data packet and sending the control data packet to other lighting devices can be performed simultaneously or in a different order, which is not limited here.

[0136] See also Figure 5An embodiment of the present application provides an address setting device 400, 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: an addressing data receiving module 410, a target address determining module 420, an addressing data updating module 430, and an addressing data sending module 440.

[0137] The addressing data receiving module 410 is used to receive an addressing data packet. The addressing data packet is generated by the control device, and the addressing data packet includes a candidate address set.

[0138] The target address determination module 420 is configured to determine one of the candidate addresses from the candidate address set as the target address.

[0139] The addressing data updating module 430 is configured to remove the target address from the addressing data packet to form an updated addressing data packet.

[0140] The addressing data sending module 440 is used to send the updated addressing data packet to the next lighting device connected in series with the target lighting device, so as to trigger the next lighting device connected in series to perform address setting.

[0141] See also Figure 6 This embodiment of the present application provides a data processing device 500 for use with target lighting devices in a lighting control system. The target lighting devices are addressed using the address setting method described in the above embodiment. The device includes a control data receiving module 510, a control data acquisition module 520, and a control data execution module 530.

[0142] The control data receiving module 510 is used to receive control data packets.

[0143] The control data acquisition module 520 is used to acquire control data corresponding to the target address in the control data packet.

[0144] The control data execution module 530 is used to execute the control data.

[0145] It should be noted that, for the apparatus embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments. Any processing method described in the method embodiments can be implemented by the corresponding processing module in the apparatus embodiments, and will not be described in detail in the apparatus embodiments.

[0146] In addition, the functional modules in the various embodiments of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The above-mentioned integrated modules may be implemented in the form of hardware or software functional modules.

[0147] See also Figure 7 Based on the above-mentioned address setting method and / or data processing method, an embodiment of the present application further provides a lighting device 600 that can execute the above-mentioned address setting method and / or data processing method.

[0148] In an embodiment of the present application, a lighting device 600 includes one or more processors 610, a memory 620, and one or more application programs. The one or more application programs are stored in the memory 620. The memory 620 stores programs capable of executing the aforementioned embodiments, and the processor 610 can execute the programs stored in the memory.

[0149] The processor 610 may include one or more cores for data processing and a message matrix unit. The processor 610 utilizes various interfaces and circuits to connect various components within the electronic device. It executes instructions, programs, code sets, or instruction sets stored in memory, and accesses data stored in memory to perform various functions of the cooking device and process data. Optionally, the processor 610 may be implemented in hardware using at least one of a digital signal processing (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 610 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU primarily handles the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem handles wireless communications. It is understood that the modem may also be implemented independently of the processor 610 via a separate communications chip.

[0150] Memory 620 may include random access memory (RAM) or read-only memory (ROM). Memory 620 may 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. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function, and instructions for implementing the various method embodiments described below. The data storage area may also store data created during use of the terminal.

[0151] Please refer to Figure 8 , which shows a block diagram of a computer-readable storage medium 700 provided in an embodiment of the present application. The computer-readable storage medium 700 stores program code 710, which can be called by a processor to execute the address setting method and / or data processing method described in the above method embodiment.

[0152] Computer-readable storage medium 700 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Alternatively, the computer-readable storage medium includes a non-transitory computer-readable storage medium. Computer-readable storage medium 700 has storage space for program code that executes any of the steps in the aforementioned address setting method and / or data processing method. This program code 710 can be read from or written to one or more computer program products. The program code may, for example, be compressed in a suitable format.

[0153] In summary, the embodiments of the present application provide an address setting method, a data processing method, a lighting device, and a medium, which are 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 in sequence; 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 method includes: receiving an addressing data packet, the addressing data packet being generated by the control device, the addressing data packet including a set of candidate addresses; determining one of the candidate addresses from the set of candidate addresses as the target address of the target lighting device; removing the target address from the addressing data packet to form an updated addressing data packet; and sending the updated addressing data packet to the next-level lighting device connected in series with the target lighting device to trigger the series-connected lighting devices to perform address setting. Thus, dynamic configuration of the lighting device addresses can be achieved, the address setting method can be simplified, the error probability can be reduced, and the scalability of the system can be improved.

[0154] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements 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 the present application.

Claims

1. A method for setting an address, 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 address setting method includes: receiving an addressed data packet, where the addressed data packet is generated by the control device and includes a set of candidate addresses; Determine one of the candidate addresses from the set of candidate addresses as the target address; removing the target address from the addressed data packet to form an updated addressed data packet; The updated addressing data packet is sent to the next stage lighting device connected in series with the target lighting device, so as to trigger the next stage lighting device connected in series to perform address setting.

2. The address setting method according to claim 1, wherein: The determining one of the candidate addresses from the candidate address set as the target address includes: The candidate address in the candidate address set that is in a preset order is used as the target address.

3. The address setting method according to claim 1, wherein: Each lighting device has a corresponding device identifier, and different lighting devices have different corresponding device identifiers. The address setting method further includes: Generate address binding information according to the target address and the device identification of the target lighting device; generating an address feedback data packet according to the address binding information; Feedback the address feedback data packet to the control device.

4. The address setting method according to claim 1, wherein: Each lighting device has a corresponding device identifier, and different lighting devices have different corresponding device identifiers. The address setting method further includes: Upon receiving an address feedback data packet sent by a lighting device connected in series, acquiring an address binding information sequence in the address feedback data packet, wherein the address binding information sequence includes the address binding information of the lighting device connected in series, and the address binding information of the lighting device connected in series includes the device identifier and address of the lighting device connected in series; generating address binding information of the target lighting device according to the target address and the device identification of the target lighting device; According to a preset adding order rule, the address binding information of the target lighting device is added to the address binding information sequence to form an updated address binding information sequence; generating an updated address feedback data packet according to the updated address binding information sequence; Feedback the updated address feedback data packet to the control device.

5. A data processing method, characterized in that: The method is applied to a target lighting device in a lighting control system; wherein the address of the target lighting device is set using the address setting method according to any one of claims 1 to 4; the data processing method comprises: Receive control data packets; Obtaining control data corresponding to the target address in the control data packet; The control data is executed.

6. The data processing method according to claim 5, characterized in that: The executing the control data includes: Enter waiting state; When it is determined that the time of entering the waiting state reaches a preset time length, the control data is executed.

7. The data processing method according to claim 5, characterized in that: The data processing method further includes: Performing shaping processing on the control data packet; The shaped control data packet is sent to the lighting device connected in series with the target lighting device.

8. The data processing method according to claim 5, further comprising: After sending the updated addressed data packet to the lighting device connected in series with the target lighting device, the data receiving state is entered.

9. The data processing method according to any one of claims 5 to 8, characterized in that: The lighting device includes a plurality of lighting modules, and different lighting modules correspond to different lighting colors; The executing the control data includes: parsing the control data to obtain adjustment data of the plurality of lighting modules; Converting the adjustment data of each lighting module into a dimming signal respectively; The corresponding lighting module is driven to work according to the dimming signal of each lighting module.

10. 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 are configured to be executed by the one or more processors, and the one or more applications are configured to execute the address setting method according to any one of claims 1 to 4, and / or the data processing method according to any one of claims 5 to 9.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, which can be called by a processor to execute the address setting method according to any one of claims 1 to 4 and / or the data processing method according to any one of claims 5 to 9.

Citation Information

Patent Citations

  • Address configuration method and device in parallel display control system

    CN103607481A

  • Method and device for bidirectional address configuration of parallel display control system

    CN103916488A

  • Packaging structure for realizing integration of LED lamp bead and lamp driver

    CN114001286A

  • Lamp addressing method based on RDM protocol

    CN117914828A

  • Address allocation method and device, equipment and storage medium

    CN118368271A

Cited By

  • Control method of light-emitting module and light-emitting module

    CN121001244A

  • Control method of light-emitting module and light-emitting module

    CN121001244B