Illumination equipment detection method and device and illumination system

By sending addressing requests between the host and slave devices and collecting feedback information, a binary search addressing method is used to quickly determine whether the number of devices exceeds the limit. This solves the problem of device over-limit in the DALI protocol, realizes a fast device quantity detection method, and improves the efficiency and accuracy of device over-limit handling.

CN120980756APending Publication Date: 2025-11-18SELF ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511501085.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-20
Publication Date
2025-11-18

AI Technical Summary

Technical Problem

In large lighting systems, the DALI protocol is prone to problems such as the equipment becoming uncontrollable due to the connection of too many slave devices. Existing technologies cannot quickly and accurately identify and handle situations where equipment exceeds limits.

Method used

By sending addressing requests between the master and slave devices and collecting feedback information to determine the number of devices, and by quickly determining whether the limit is exceeded based on the relationship between the number of devices and a threshold, a process is provided. A binary addressing method is used to determine whether the number of each slave device exceeds the limit. A process is adopted to solve the relationship between the number of devices and the first threshold. A process is provided to solve the problem of the number of devices and the first threshold. A process is adopted ...

Benefits of technology

It enables rapid and accurate determination of whether the number of slave devices exceeds the limit, avoids multiple checks, improves the efficiency and accuracy of handling devices exceeding the limit, and solves the problem of devices exceeding the limit.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120980756A_ABST
    Figure CN120980756A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of lighting device control, and discloses a lighting device detection method and device and a lighting system.The method is applied to a host device of the lighting system, the lighting device comprises the host device and a plurality of slave devices, and the host device communicates with the slave devices through digital addressable lighting interfaces. In the process of addressing a plurality of slave devices by a host device, after an addressing request is sent to the plurality of slave devices, when feedback information of the slave devices in response to the addressing request is detected, the number of the slave devices connected with the host device is counted, so that when the addressing request indicates that the host device completes the addressing operation, the host device can complete the addressing operation. And quickly judging whether the quantity of the slave equipment exceeds the limit or not based on the relationship between the counted equipment quantity and a first threshold value. If the number of the slave devices exceeds the limit, the number of the slave devices exceeding the limit can be quickly and accurately calculated according to the number of the slave devices and the first threshold value.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of lighting device control, and in particular to a lighting device detection method and device and a lighting system. BACKGROUND

[0002] DALI (Digital Addressable Lighting Interface) is a two-way digital communication protocol designed for intelligent lighting, and its core function is to realize precise dimming, grouping control and state feedback of a single lamp through standardized signals such as 0-10V voltage values or digital pulses. DALI can precisely control devices on the DALI bus through short addresses, and can also realize overall control of multiple DALI devices through grouping. The DALI protocol opens up the method for the host to allocate addresses to slave devices. The mainstream DALI short address allocation method is binary method, which compares a total of 24-bit random addresses generated by DALI devices, and each addressing needs at most 24 comparisons, which is the fastest random address addressing method in related technologies.

[0003] However, since the DALI protocol is applied to large lighting systems and uses double-byte communication, a host device using the DALI protocol for communication can support at most 64 slave lamp devices, and the slave devices can be lighting lamps and the like. In actual use, the DALI bus is prone to the phenomenon that the slave devices such as DALI lighting lamps are not controlled due to the access of more than 64 slave devices. SUMMARY

[0004] Therefore, the present application provides a lighting device detection method, device and lighting system to solve or at least partially solve the above technical problems.

[0005] In a first aspect, the present application provides a lighting device detection method applied to a host device of a lighting system, the lighting system comprising the host device and a plurality of slave devices, the host device and the slave devices being in communication through a digital addressable lighting interface, the method comprising: sending an addressing request to the plurality of slave devices; when detecting feedback information of the slave devices in response to the addressing request, counting the number of slave devices connected to the host device, wherein the feedback information is used to represent that the device address of the slave device sending the feedback information matches the random address carried by the addressing request; when the addressing request indicates that the host device completes the addressing operation, determining whether the number of slave devices exceeds the limit based on the relationship between the number of devices and a first threshold.

[0006] The application discloses a lighting device detection method. In the process of addressing a plurality of slave devices by a host device, after the host device sends an addressing request to the plurality of slave devices, when feedback information of the slave devices responding to the addressing request is detected, the number of the slave devices connected to the host device is counted, so that when the addressing request indicates that the host device completes the addressing operation, whether the number of the slave devices exceeds the limit is quickly judged based on the relationship between the counted number of devices and a first threshold. If the number of the slave devices exceeds the limit, the number of the slave devices exceeding the limit can be quickly and accurately calculated according to the number of the slave devices and the first threshold. Therefore, when the number of devices exceeds the limit, the slave devices exceeding the limit can be quickly processed based on the number of the slave devices exceeding the limit, so as to quickly solve the device over-limit problem of the lighting system and avoid detecting the number of the slave devices multiple times in the process of solving the device over-limit problem.

[0007] In some optional embodiments, based on the relationship between the number of devices and the first threshold, whether the number of the slave devices exceeds the limit is determined, including: When the number of devices is greater than the first threshold, it is determined that the number of the slave devices connected to the host device exceeds the limit, and the number of the slave devices exceeding the limit is the difference between the number of devices and the first threshold.

[0008] In some optional embodiments, the addressing request is sent to the plurality of slave devices, including: The random address conforming to the communication protocol of the digital addressable lighting interface is broadcasted to the plurality of slave devices by using a binary addressing mode.

[0009] In some optional embodiments, the random address conforming to the communication protocol of the digital addressable lighting interface is broadcasted to the plurality of slave devices, including: The random address conforming to the communication protocol of the digital addressable lighting interface is divided into a set number of random address bytes; Starting from the highest bit of the random address byte, a first command including a first comparison value of the current random address byte is sent to the plurality of slave devices; Based on the first response information of the plurality of slave devices to the first command, the first comparison value is adjusted to update the first command, until only one slave device responds to the updated first command; The only slave device responding to the updated first command is set to a mute state; The first command is iteratively updated until no slave device responds to the first command.

[0010] In some optional embodiments, the feedback information is response information sent by the slave device matching the unique random address sent by the host device and aiming at the unique random address.

[0011] In some optional embodiments, the addressing request carries a unique random address conforming to the communication protocol of the digital addressable lighting interface based on a binary addressing manner. Before the addressing request indicates that the host device completes the addressing operation, the method further comprises: When the host device broadcasts all the random addresses conforming to the communication protocol of the digital addressable lighting interface and no slave device responds to the addressing request, it is determined that the host device completes the addressing operation.

[0012] In some optional embodiments, the method further comprises: When the host device broadcasts not all the random addresses conforming to the communication protocol of the digital addressable lighting interface or there is a slave device responding to the addressing request, it is determined that the host device does not complete the broadcasting of all the random addresses conforming to the communication protocol of the digital addressable lighting interface based on the binary addressing manner, and the method further comprises:

[0013] In some optional embodiments, before the addressing request is sent to the plurality of slave devices, the method further comprises: Controlling the host device and the plurality of slave devices to enter a device number checking mode, and controlling all the devices in the lighting system except the host device and the plurality of slave devices to enter a silent mode.

[0014] In some optional embodiments, controlling the host device and the plurality of slave devices to enter the device number checking mode comprises: Controlling the plurality of slave devices to suspend the execution of the control operation; Controlling the plurality of slave devices to execute an initialization operation; Initializing the random address conforming to the communication protocol of the digital addressable lighting interface.

[0015] In some optional embodiments, counting the number of devices connected to the host device comprises: When the host device and the plurality of slave devices enter the device number checking mode, setting the number of devices to 0, or starting to count the number of devices when the feedback information of the slave device responding to the addressing request is detected for the first time; When the feedback information of the slave device responding to the addressing request is detected, updating the number of devices based on the current number of devices plus one.

[0016] In some optional embodiments, the method further comprises: When the feedback information of the slave device responding to the addressing request is detected, configuring the slave device with a short address for communicating with the host device.

[0017] In some optional embodiments, determining whether the number of slave devices exceeds the limit based on the relationship between the number of devices and the first threshold value comprises: When the addressing request indicates that the host device completes the addressing operation, if the number of devices is less than or equal to the first threshold value, it is determined that the number of slave devices connected to the host device meets the communication protocol of the digitally addressable lighting interface.

[0018] In some optional embodiments, after it is determined that the number of slave devices connected to the host device exceeds the limit, the method comprises: Sending reminder information for indicating that the number of slave devices exceeds the limit and the number of excess.

[0019] In some optional embodiments, after the reminder information for indicating that the number of slave devices exceeds the limit and the number of excess is sent, the method comprises: After adjusting the number of slave devices, performing the lighting device detection method of the first aspect or any of the corresponding embodiments thereof.

[0020] In a second aspect, the present application further provides a lighting device detection apparatus applied to a host device of a lighting system, the lighting system comprising the host device and a plurality of slave devices, the host device and the slave devices communicating through a digitally addressable lighting interface, the apparatus comprising: An addressing module configured to send an addressing request to the plurality of slave devices; A statistical module configured to, when detecting feedback information of a slave device in response to the addressing request, count the number of slave devices connected to the host device, wherein the feedback information is used to represent that the device address of the slave device sending the feedback information matches the random address carried by the addressing request; A detection module configured to, when the addressing request indicates that the host device completes the addressing operation, determine whether the number of slave devices exceeds the limit based on the relationship between the number of devices and the first threshold value.

[0021] In a third aspect, a lighting system comprises a host device and a plurality of slave devices, the host device comprising a host controller, the host controller comprising: A memory and a processor, which are communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to perform the lighting device detection method of the first aspect or any of the corresponding embodiments thereof.

[0022] The application discloses a lighting device detection method, a lighting device detection device and a lighting system. In the process of addressing a plurality of slave devices by a master device, the master device sends an addressing request to the plurality of slave devices, and when feedback information of the slave devices responding to the addressing request is detected, the number of the slave devices connected with the master device is counted. Therefore, when the addressing request indicates that the master device completes the addressing operation, whether the number of the slave devices exceeds the limit is quickly judged based on the relationship between the counted number of devices and a first threshold. If the number of the slave devices exceeds the limit, the number of the slave devices exceeding the limit can be quickly and accurately calculated according to the number of the slave devices and the first threshold. Therefore, when the number of the devices exceeds the limit, the slave devices exceeding the limit can be quickly processed based on the number of the slave devices exceeding the limit, so as to quickly solve the device exceeding limit problem of the lighting system and avoid detecting the number of the slave devices multiple times in the process of solving the device exceeding limit problem. BRIEF DESCRIPTION OF DRAWINGS

[0023] In order to more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the specific embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0024] Figure 1 A structural schematic diagram of a lighting system according to an embodiment of the present application is shown; Figure 2 A flowchart of a detection method of a lighting system adopting a DALI protocol in the related art is shown; Figure 3 A flowchart of a lighting device detection method according to an embodiment of the present application is shown; Figure 4 A flowchart of a lighting device detection method according to another embodiment of the present application is shown; Figure 5 A flowchart of a lighting device detection method according to still another embodiment of the present application is shown; Figure 6 An implementation flowchart of a specific application example of a lighting device detection method according to an embodiment of the present application is shown; Figure 7 A block diagram of a lighting device detection device according to an embodiment of the present application is shown; Figure 8 A structural schematic diagram of a master controller of a master device of a lighting system according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0025] In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.

[0026] In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application. Figure 1 The structure of the lighting system in the embodiments of the present application is shown in a schematic diagram, and reference is made to Figure 1 The lighting device includes a host device 101 and a plurality of slave devices 102. The host device 101 and the slave devices 102 communicate through a digital addressable lighting interface (not shown in the figure) and a DALI bus 103 conforming to the DALI interface protocol.

[0027] Further, in order to illustrate the difference between the embodiments of the present application and the related art, the detection method of the DALI protocol lighting system in the related art is described. Figure 2 The flowchart of the detection method of the DALI protocol lighting system in the related art is shown in FIG. 2. Reference is made to Figure 2 The detection method of the DALI protocol lighting system in the related art can include the following steps. Step S201: Control the host device and the plurality of slave devices to enter a device quantity checking mode and start device quantity detection.

[0028] Step S202: Start a silent mode.

[0029] Specifically, after the silent mode is started, the host device no longer performs other operation steps except the necessary operation steps of device quantity detection, and the host device no longer sends commands to the slave devices that do not conform to the DALI protocol.

[0030] Step S203: Suspend the activity of the DALI device.

[0031] Here, the DALI device is a slave device that communicates with the host device through a DALI protocol-compliant interface. Here and in other descriptions of the present solution, the slave device can be connected to one or a group of lighting fixtures, and the slave device can control the lighting fixtures based on the instructions received from the host device.

[0032] Step S204: Clear the short address.

[0033] Specifically, the DALI device stored short address before the current time is cleared, and it is ensured that the short address allocated by the host device to the slave device after the operation step is completely new and conflict-free.

[0034] Step S205, initializing the DALI device.

[0035] Specifically, the DALI device can be controlled to perform an initialization operation, so that the DALI device is in an initial state in which address allocation and the like can be performed.

[0036] Step S206, initializing a random address.

[0037] Specifically, a random address can be initialized for the DALI device, which is the basis for subsequent binary comparison of the random address, and each device will generate a unique random address.

[0038] Step S207, binary comparison of the random address.

[0039] Specifically, the host device can divide the 24-bit random address into 3 random address bytes using the binary method, and from the highest random address byte, by constantly adjusting the comparison value, the unique random address of each slave device is determined.

[0040] Step S208, determining whether the binary comparison of the random address is completed. If yes, all steps are ended, and the addressing operation of the DALI device is completed. If no, return to step S207.

[0041] Step S209, writing a short address.

[0042] Specifically, in the process of addressing by the host device using the binary method to compare the random address, a short address can be written for the DALI device addressed by the host device, and the DALI device addressed by the host device in each round of addressing process is usually the DALI device with the smallest random number. The individual short address addressing range in the DALI protocol is generally 0-63.

[0043] Step S210, exiting the operation.

[0044] After the short address writing is completed, the corresponding DALI device is controlled to exit the addressing and short address writing operation state.

[0045] Step S211, address checking.

[0046] Specifically, after the host device completes the short address writing for the plurality of DALI devices, the written short address needs to be checked to ensure the correctness and uniqueness of the short address, and to avoid conflicts and the like of the short addresses of multiple DALI devices. After the address checking is completed, return to step S207.

[0047] Since only 64 short addresses are configured in the addressing and short address writing process of the DALI device, the host device in the prior art will exit the addressing operation after completing the addressing of 64 DALI addresses and the address checking. If the number of devices exceeds 64, address conflicts and other problems may occur. At this time, the lighting system fails, but cannot remind the user of the specific fault type, and cannot timely and accurately query the number of devices exceeding the limit. Based on this, the present application provides a lighting device detection method to solve the above technical problems.

[0048] According to the embodiment of the present application, a lighting device detection method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0049] In this embodiment, a lighting device detection method is provided, which can be used in the host device of the lighting system described above. The lighting device includes a host device and a plurality of slave devices, and the host device and the slave devices communicate with each other through a digital addressable lighting interface, Figure 3 is a flowchart of the lighting device detection method according to the embodiment of the present application, as shown in Figure 3 The flowchart includes the following steps: Step S301, sending an addressing request to a plurality of slave devices.

[0050] In some optional embodiments, the addressing request can be an instruction carrying a random address range conforming to the digital addressable lighting interface protocol, so that when the slave device receives the addressing request, it compares its own random address with the address range carried by the addressing request. If the slave device's own random address is in this address range, the slave device returns YES or other information to the host device to indicate that there is a slave device with a random address in this range.

[0051] It can also carry a unique random address conforming to the digital addressable lighting interface protocol, that is, the host device compares a plurality of random addresses conforming to the digital addressable lighting interface one by one with the random address of the slave device itself to determine the random address of the slave device. However, this embodiment consumes a large amount of data storage space and needs to process a large amount of data, which is extremely inefficient. Therefore, the embodiment of the present application also provides a way of broadcasting random addresses using the bisection method to send an addressing request to a plurality of slave devices.

[0052] Step S302, when detecting the feedback information of the slave device responding to the addressing request, counting the number of the slave devices connected with the host device, wherein the feedback information is used to represent that the device address of the slave device sending the feedback information matches the random address carried by the addressing request.

[0053] In some optional embodiments, the essence of the binary addressing is a process of gradually narrowing the range of the random address to determine the unique random address of each slave device. The feedback information can be the response information of the slave device responding to the unique random address sent by the host device, and the feedback information is used to indicate that the unique random address sent by the host device matches the random address of the slave device itself.

[0054] The number of the slave devices can be counted, and after determining the random address of each slave device itself, the number of the slave devices is added by one, so that the number of the slave devices is directly obtained when the addressing request indicates that the host device completes the addressing operation.

[0055] Step S303, when the addressing request indicates that the host device completes the addressing operation, determining whether the number of the slave devices is over limit based on the relationship between the number of the devices and the first threshold.

[0056] Specifically, the first threshold can be 64. If the number of the devices is greater than 64, it can be determined that the number of the slave devices is over limit, and the over limit number is the difference between the number of the devices and the first threshold.

[0057] If the number of the devices is less than or equal to the first threshold, it is determined that the number of the slave devices meets the requirement of the digital addressable lighting interface protocol.

[0058] The lighting device detection method, when the host device sends the addressing request to the plurality of slave devices, the host device counts the number of the slave devices connected with the host device when detecting the feedback information of the slave device responding to the addressing request, so that when the addressing request indicates that the host device completes the addressing operation, the number of the slave devices is quickly determined based on the relationship between the counted number of the devices and the first threshold. If the number of the slave devices is over limit, the over limit number of the slave devices can be quickly and accurately calculated according to the number of the slave devices and the first threshold. Based on this, when the number of the devices is over limit, the over limit slave devices can be quickly processed based on the over limit number of the slave devices, so as to quickly solve the device over limit problem of the lighting system, and avoid detecting the number of the slave devices multiple times in the process of solving the device over limit problem.

[0059] In the embodiment, a lighting device detection method is provided, which can be used for the host device of the above-mentioned lighting system. The lighting device includes a host device and a plurality of slave devices, the host device and the slave devices communicate with each other through a digital addressable lighting interface.Figure 4 is a flowchart of a lighting device detection method according to another embodiment of the present application, as shown in Figure 4 The flowchart includes the following steps: Step S401, control the host device and the plurality of slave devices to enter a device number checking mode.

[0060] In some optional embodiments, step S401 can include: Step S4011, control the plurality of slave devices to suspend performing control operations.

[0061] Specifically, in the DALI protocol, when the host device and the plurality of devices enter the device number checking mode, the host device controls the slave devices to suspend performing control operations, the slave devices will suspend activities related to normal data communication and control, and stop sending instructions. Control other devices in the lighting system in addition to the host device and the slave devices to enter a silent state, for example, control sensors and the like in the lighting system to no longer send data to the host device. When the host device initiates the slave device number checking mode, a specific instruction will be sent to the slave devices, and after the slave devices receive the instruction, they enter a waiting state, stop performing normal control operations such as dimming, switching lights, and the like, and no longer actively send data frames such as state reports, fault information, and the like to the host device. The slave devices will remain silent until the host device completes the slave number detection and sends a new instruction to the slave devices, the new instruction is used to instruct the slave devices to perform control tasks. The slave devices resume normal control operations after receiving the new instruction.

[0062] Step S4012, clear the short addresses of the plurality of slave devices for communication with the host device.

[0063] Specifically, the short addresses stored by the plurality of slave devices before the current time are cleared, to ensure that the short addresses allocated by the host device to the slave devices after this operation step are completely new and conflict-free.

[0064] Step S4013, control the plurality of slave devices to perform initialization operations.

[0065] For details, please refer to step S205 of the embodiment shown in Figure 2 herein.

[0066] Step S4014, initialize random addresses conforming to the communication protocol of the digital addressable lighting interface.

[0067] For details, please refer to step S206 of the embodiment shown in Figure 2 herein.

[0068] Step S402, send an addressing request to the plurality of slave devices.

[0069] In some optional embodiments, a binary addressing method can be adopted to broadcast a random address conforming to the communication protocol of the DALI to the plurality of slave devices to implement step S402.

[0070] Specifically, the random address can be broadcasted by the following operation steps: Step S4021, dividing the random address conforming to the communication protocol of the DALI into a set number of random address bytes.

[0071] Specifically, the random address conforming to the communication protocol of the DALI can be a 24-bit binary number. The set number can be 3. The master device can divide the 24-bit data into 3 random address bytes according to each 8-bit group, and can process from the highest random address byte.

[0072] For example, a 24-bit binary number 101011001111000101010011 can be divided into 3 random address bytes 10101100, 11110001 and 01010011 according to each 8-bit group.

[0073] Step S4022, sending a first command including a first comparison value of the current random address byte to the plurality of slave devices from the highest random address byte.

[0074] In some optional embodiments, in the binary addressing process, the master device adjusts the 3 random address bytes in step S4021 in turn to obtain a 24-bit random address sent to the slave device, which is referred to as a 24-bit random address including the current random address byte as the first comparison value. The master device sends a first command including the first comparison value to the plurality of slave devices.

[0075] For example, the master device divides the 24-bit data into 3 random address bytes and processes from the highest random address byte.

[0076] Step S4023, adjusting the first comparison value to update the first command based on the first response information of the plurality of slave devices to the first command, until a unique slave device responds to the updated first command.

[0077] The slave device compares its own random address with the first comparison value including the current random address byte, and if the corresponding address byte of the random address of the slave device is the same as the current random address byte, the first response information returned by the slave device to the master device is a YES signal.

[0078] According to the reply of the slave device, the host device adjusts the first comparison value from the highest bit of the random address byte until the only slave device responds to the updated first command.

[0079] In step S4024, the only slave device responding to the updated first command is set to be in a mute state.

[0080] When the only slave device responds to the updated first command, the random address of the slave device is determined as the first comparison value corresponding to the updated first command. Thus, after the unique random address of a slave device is determined, the slave device is set to be in a mute state and does not respond to the addressing request in the current round of lighting device detection.

[0081] In step S4025, the first command is iteratively updated until no slave device responds to the first command.

[0082] According to the above operation steps, the host device compares and adjusts the three random address bytes in sequence, and finally determines the 24-bit random address of each unassigned address slave device.

[0083] In step S403, when the feedback information of the slave device responding to the addressing request is detected, the number of slave devices connected to the host device is counted, wherein the feedback information is used to represent that the device address of the slave device sending the feedback information matches the random address carried in the addressing request.

[0084] In some optional embodiments, the feedback information is the response information of the slave device sending the unique random address to the unique random address sent by the host device.

[0085] Specifically, when the slave device receives the unique random address sent by the host device and matching the current random address of the slave device itself, the slave device sends the response information of the unique random address to the host device. The feedback information here is the response information of the unique random address, and the unique random address is a 24-bit random address. Therefore, the feedback information here is essentially different from the response information of the slave device responding to the short address sent by the host device in the related art.

[0086] In some optional embodiments, step S403 can include: In step S4031, when the host device and the plurality of slave devices are controlled to enter the device number checking mode, the number of slave devices is set to 0, or the counting of the number of devices is started when the feedback information of the slave device responding to the addressing request is detected for the first time.

[0087] The two operation modes in step S4031 can be implemented by a count function or the like, and the difference lies in the trigger node of counting and the initial value of counting. In actual application, selection and configuration can be made according to actual requirements, and the present application does not make specific limitation thereto.

[0088] In step S4032, when the feedback information of the slave device responding to the addressing request is detected, the device quantity is updated based on the current device quantity plus one.

[0089] In step S404, when the feedback information of the slave device responding to the addressing request is detected, the slave device is configured with a short address for communication with the master device.

[0090] For details, reference can be made to the above Figure 2 S209 of the embodiment shown in the above

[0091] In step S405, when the addressing request indicates that the master device completes the addressing operation, whether the quantity of the slave devices exceeds the limit is determined based on the relationship between the device quantity and the first threshold.

[0092] If the master device broadcasts the addressing request carrying the smallest random address, and no feedback information of any slave device is received within a set time, it is determined that the master device completes the addressing operation.

[0093] Here, the smallest random address means that the random address needs to be sent to the slave device, so that the slave device compares its own random address with the received random address. When the random address of the slave device is smaller than the received random address, YES is returned to the master device, and when the random address of the slave device is not smaller than the received random address, NO is returned to the master device.

[0094] In some optional embodiments, when the device quantity is greater than the first threshold, it is determined that the device quantity of the slave devices connected with the master device exceeds the limit, and the excess quantity is the difference between the device quantity and the first threshold.

[0095] If the device quantity exceeds the limit, steps S406 and S407 are executed after step S405.

[0096] In some optional embodiments, when the addressing request indicates that the master device completes the addressing operation, if the device quantity is less than or equal to the first threshold, it is determined that the device quantity of the slave devices connected with the master device meets the communication protocol of the digital addressable lighting interface.

[0097] If it is determined that the device quantity of the slave devices connected with the master device meets the communication protocol of the digital addressable lighting interface, the lighting device detection method of the embodiment of the present application can be ended after step S405.

[0098] In the present embodiment, a lighting device detection method is provided, which can be used in the host device of the lighting system as described above, the lighting system comprising a host device and a plurality of slave devices, the host device and the slave devices communicate with each other through a digital addressable lighting interface, Figure 5 is a flow chart of the lighting device detection method according to an embodiment of the present application, as shown in Figure 5 , the flow comprises the following steps: Step S501, sending an addressing request to the plurality of slave devices.

[0099] In some optional embodiments, the addressing request carries a unique random address conforming to the communication protocol of the digital addressable lighting interface based on the dichotomous addressing mode. When receiving the addressing request, the slave device compares its own random address with the received unique random address. Based on the specific configuration of the addressing operation, when the slave device's own address is less than the unique random address, the slave device feeds back first response information corresponding to the addressing request to the host device, when the slave device's own random address is greater than or equal to the unique random address, the slave device feeds back first response information that the slave device's random address does not match the addressing request to the host device.

[0100] The host device adjusts the unique random address broadcast to the slave device through the bus conforming to the digital addressable lighting interface protocol based on the first response information of the slave device, to determine the random address of each slave device.

[0101] For further details, please refer to the above-mentioned step S401, which will not be repeated here.

[0102] Step S502, when detecting the feedback information of the slave device responding to the addressing request, counting the number of slave devices connected to the host device, wherein the feedback information is used to represent that the device address of the slave device sending the feedback information matches the random address carried by the addressing request.

[0103] For further details, please refer to the above-mentioned step S302, which will not be repeated here.

[0104] Step S503, when the host device broadcasts all the random addresses conforming to the communication protocol of the digital addressable lighting interface, and no slave device responds to the addressing request, determining that the host device completes the addressing operation.

[0105] Step S504, when the host device has not broadcast all the random addresses conforming to the communication protocol of the digital addressable lighting interface, or there is a slave device responding to the addressing request, determining that the host device has not completed the broadcast of all the random addresses conforming to the communication protocol of the digital addressable lighting interface, based on the dichotomous addressing mode, sending an addressing request carrying the next unique random address to the plurality of slave devices.

[0106] Further details of steps S503 and S504 can refer to the above description of steps S503 and S504. Figure 4 Further details of steps S4021-S4025 of the illustrated embodiment are not repeated here.

[0107] Step S505, when the addressing request indicates that the host device completes the addressing operation, based on the relationship between the number of devices and the first threshold, determine whether the number of slave devices is over limit.

[0108] Further details of the above description of steps S501-S504 are not repeated here. Figure 3 Further details of step S303 of the illustrated embodiment are not repeated here.

[0109] In this embodiment, a specific application example of a lighting device detection method is provided, which can be used in the host device of the above-mentioned lighting system, the lighting device comprising a host device and a plurality of slave devices, the host device and the slave devices communicate with each other through a digital addressable lighting interface, Figure 6 is a flowchart of the implementation of a specific application example of a lighting device detection method according to an embodiment of the present application, as Figure 6 The flowchart comprises the following steps: Step S601, control the host device and a plurality of slave devices to enter a device number checking mode, and start device number detection.

[0110] Step S602, start the silent mode.

[0111] Specifically, after the silent mode is started, the host device no longer performs other operation steps other than the necessary operation steps of device number detection.

[0112] Step S603, DALI device suspends activity.

[0113] Here, the DALI device is the slave device that communicates with the host device through a DALI protocol compliant interface. Here and in other descriptions of the present solution, the slave device can be connected to one or a group of lighting luminaires, and the slave device can control the lighting luminaires based on instructions received from the host device.

[0114] Step S604, clear short address.

[0115] Specifically, the DALI device clears the short addresses stored by the DALI device before the current time, ensuring that the short address allocated by the host device to the slave device after this operation step is completely new and conflict-free.

[0116] Step S605, initialize the DALI device.

[0117] Specifically, the DALI device can be controlled to perform initialization operations so that the DALI device is in an initial state that can perform address allocation and other operations.

[0118] Step S606, initializing random addresses.

[0119] Specifically, the random addresses of the DALI devices are initialized, which is the basis for subsequent binary comparison of the random addresses, and each device generates a unique random address.

[0120] Step S607, binary comparison of the random addresses.

[0121] Step S608, determining a unique random address of a slave device, counting the number of slave devices connected to the master device, and determining whether the binary comparison of the random addresses is completed.

[0122] If yes, the addressing operation of the DALI devices is completed, the number of slave devices is obtained, and step S612 is performed. If no, step S607 is returned.

[0123] Step S609, writing a short address.

[0124] Specifically, in the process of addressing the DALI devices by the master device using the binary comparison of the random addresses, a short address can be written for the DALI device addressed by the master device, and the DALI device addressed by the master device in each round of addressing process is usually the DALI device with the smallest random number. The individual short address addressing range in the DALI protocol is generally 0-63.

[0125] Step S610, exiting the operation.

[0126] After the short address writing is completed, the corresponding DALI device exits the addressing and short address writing operation state.

[0127] Step S611, address checking.

[0128] Step S612, determining whether the number of devices counted in step S608 is greater than a first threshold. If yes, step S613 is performed. If no, step S614 is performed.

[0129] Step S613, issuing a prompt information of the DALI device out of limit, and the number of the DALI devices out of limit is the difference between the number of devices counted in step S608 and the first threshold.

[0130] Step S614, determining that the number of DALI devices meets the requirement of the number of slave devices of the digital addressable lighting interface.

[0131] There is also provided in the present embodiment a lighting device detection apparatus for implementing the above embodiments and preferred embodiments, which have been described above and will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.

[0132] The present embodiment provides a lighting device detection apparatus applied to a master device of a lighting system, the lighting system comprising the master device and a plurality of slave devices, the master device and the slave devices communicating with each other through a digital addressable lighting interface, as shown in Figure 7 The lighting device detection apparatus comprises: an addressing module 701 configured to send an addressing request to the plurality of slave devices; a counting module 702 configured to count a number of slave devices connected to the master device when detecting feedback information from a slave device in response to the addressing request, wherein the feedback information is used to indicate that the device address of the slave device sending the feedback information matches a random address carried in the addressing request; a judging module 703 configured to determine whether the number of slave devices exceeds a first threshold based on the relationship between the number of slave devices and the first threshold when the addressing request indicates that the master device completes the addressing operation.

[0133] In some optional embodiments, the judging module 703 comprises: an exceeding unit configured to determine that the number of slave devices connected to the master device exceeds when the number of slave devices is greater than the first threshold, and the exceeding number is the difference between the number of slave devices and the first threshold.

[0134] In some optional embodiments, the addressing module 501 comprises: a binary broadcast unit configured to broadcast a random address conforming to a communication protocol of the digital addressable lighting interface to the plurality of slave devices using a binary addressing method.

[0135] In some optional embodiments, the binary broadcast unit comprises: a byte dividing sub-unit configured to divide the random address conforming to the communication protocol of the digital addressable lighting interface into a set number of random address bytes; a byte sending sub-unit configured to send a first command comprising a first comparison value of a current random address byte to the plurality of slave devices from the highest bit of the random address byte; a random address adjusting sub-unit configured to adjust the first comparison value to update the first command based on first response information of the plurality of slave devices to the first command until a unique slave device responds to the updated first command; a slave device silencing subunit, configured to set a unique slave device responding to the updated first command to a silent state; an iteration updating subunit, configured to iteratively update the first command until no slave device responds to the first command.

[0136] In some optional embodiments, the feedback information is response information sent by the slave device matching the unique random address sent by the host device, and directed to the unique random address.

[0137] In some optional embodiments, the addressing request carries the unique random address conforming to the communication protocol of the DALI based on the dichotomy addressing manner. The apparatus further comprises: a completion determining module, configured to determine that the host device completes the addressing operation when the host device broadcasts completion of all random addresses conforming to the communication protocol of the DALI, and no slave device responds to the addressing request.

[0138] In some optional embodiments, the apparatus further comprises: a continuous addressing module, configured to determine that the host device does not complete broadcasting of all random addresses conforming to the communication protocol of the DALI when the host device broadcasts no completion of all random addresses conforming to the communication protocol of the DALI, or there is a slave device responding to the addressing request, and send an addressing request carrying a next unique random address to the plurality of slave devices based on the dichotomy addressing manner.

[0139] In some optional embodiments, the apparatus further comprises: a mode switching module, configured to control the host device and the plurality of slave devices to enter a device quantity checking mode before sending the addressing request to the plurality of slave devices, and control all devices in the lighting system except the host device and the plurality of slave devices to enter a silent mode.

[0140] In some optional embodiments, the mode switching module comprises: a pausing unit, configured to control the plurality of slave devices to pause performing a control operation; a device initializing unit, configured to control the plurality of slave devices to perform an initialization operation; an address initializing unit, configured to initialize the random addresses conforming to the communication protocol of the DALI.

[0141] In some optional embodiments, the statistics module 502 comprises: an initial counting unit, configured to set the device quantity of the slave devices to 0 when controlling the host device and the plurality of slave devices to enter the device quantity checking mode, or start counting the device quantity when the feedback information of the slave device responding to the addressing request is detected for the first time. an accumulating unit, configured to update the device quantity by one based on the current device quantity when detecting the feedback information of the slave device responding to the addressing request.

[0142] In some optional embodiments, the apparatus further comprises: a short address configuring module, configured to configure a short address for the slave device to communicate with the master device when detecting the feedback information of the slave device responding to the addressing request.

[0143] In some optional embodiments, the judging module 703 comprises: a quantity compliance unit, configured to determine that the device quantity of the slave device connected with the master device complies with the communication protocol of the digital addressable lighting interface when the device quantity is less than or equal to the first threshold value if the addressing request indicates that the master device completes the addressing operation.

[0144] In some optional embodiments, the apparatus further comprises: a reminding module, configured to issue reminding information indicating that the device quantity of the slave device exceeds the limit and the exceeding quantity after determining that the device quantity of the slave device connected with the master device exceeds the limit.

[0145] In some optional embodiments, the apparatus further comprises: a verifying module, configured to execute the lighting device detection method of the first aspect or any of the corresponding embodiments thereof after adjusting the device quantity of the slave device after issuing the reminding information indicating that the device quantity of the slave device exceeds the limit and the exceeding quantity.

[0146] Further function descriptions of the above-mentioned various modules and units are the same as those of the corresponding embodiments, which will not be repeated here.

[0147] The lighting device detection apparatus in the embodiments is presented in the form of functional units. Here, the units refer to processors and memories executing one or more software or fixed programs, and / or other devices that can provide the above-mentioned functions.

[0148] The embodiments of the present application further provide a lighting system, which comprises a master device and a plurality of slave devices, and the master device comprises a master controller having the above-mentioned lighting device detection apparatus. Figure 8 is a structural schematic diagram of the master controller of the master device of the lighting system of the embodiments of the present application, please refer to Figure 8 , Figure 8 is a structural schematic diagram of a master controller provided by the optional embodiments of the present application, as Figure 8As shown, the host controller includes one or more processors 10, memory 20, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components communicate over various buses and can be mounted on a common motherboard or in other manners as appropriate. The processor(s) can process instructions for execution within the host controller, including instructions stored in the memory or on the memory to implement routines, methods, or programs, for displaying a graphical user interface (GUI) on an external input / output device, such as a display device coupled to the high-speed interface. In some optional embodiments, multiple processors and / or multiple buses can be employed as appropriate, as well as multiple memories and types of memory. Also, various components can be connected by various interfaces as appropriate. Figure 8 The processor 10 is taken as an example.

[0149] The processor 10 can be a central processing unit, a network processing unit, or a combination thereof. The processor 10 can further include a hardware chip. The hardware chip can be an application specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device can be a complex programmable logic device, a field programmable logic device, a general array logic, or any combination thereof.

[0150] The memory 20 stores instructions executable by the at least one processor 10 to cause the at least one processor 10 to perform the methods shown in the above embodiments.

[0151] The memory 20 can include a program storage area and a data storage area. The program storage area can store an operating system, application programs required by at least one function, and the like. The data storage area can store data created according to the use of the host controller, and the like. In addition, the memory 20 can include a high-speed random access memory, and can further include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid state memory device. In some optional embodiments, the memory 20 can optionally include a memory disposed remotely with respect to the processor 10, and these remote memories can be connected to the host controller through a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0152] The memory 20 can include a volatile memory, such as a random access memory, and can also include a non-volatile memory, such as a flash memory, a hard disk, or a solid state disk. The memory 20 can further include a combination of the above-mentioned kinds of memories.

[0153] The main controller of the host device of the lighting system also comprises an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 can be connected by a bus or other means, Figure 8 The bus connection is taken as an example.

[0154] The input device 30 can receive inputted digital or character information, and generate key signal input related to user settings and function control of the main controller of the host device of the lighting system, such as touch screen, keypad, mouse, trackpad, touchpad, pointing stick, one or more mouse buttons, trackball, joystick, etc. The output device 40 can include display device, auxiliary lighting device (e.g. LED), and tactile feedback device (e.g. vibration motor), etc. The display device includes but is not limited to liquid crystal display, light emitting diode, display and plasma display. In some alternative embodiments, the display device can be a touch screen.

[0155] The embodiments of the present application also provide a computer readable storage medium, the method according to the embodiments of the present application can be implemented in hardware, firmware, or recorded in a storage medium, or stored in a remote storage medium or a non-transitory machine readable storage medium and downloaded from a network and stored in a local storage medium, so that the method described herein can be processed by such software on a storage medium using a general purpose computer, a special purpose processor or programmable or special hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk or a solid state disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that the computer, processor, microprocessor controller or programmable hardware includes a storage component that can store or receive software or computer code, which, when accessed and executed by the computer, processor or hardware, implements the method shown in the above embodiments.

[0156] Part of the present application can be applied as a computer program product, for example, computer program instructions, when executed by a computer, the operation of the computer can invoke or provide the method and / or technical solutions according to the present application. Those skilled in the art should understand that the form of computer program instructions in computer readable medium includes but is not limited to source file, executable file, installation package file, etc., and accordingly, the way of computer program instructions executed by computer includes but is not limited to: the computer directly executes the instructions, or the computer compiles the instructions and then executes the corresponding compiled program, or the computer reads and executes the instructions, or the computer reads and installs the instructions and then executes the corresponding installed program. Here, the computer readable medium can be any available computer readable storage medium or communication medium accessible to the computer.

[0157] While embodiments of the present application have been described in conjunction with the appended drawings, various modifications and changes can be suggested by persons skilled in the art, and all such modifications and changes are believed to fall within the scope of the present application as defined by the appended claims.

Claims

1. A method for testing lighting equipment, characterized in that, A master device for use in a lighting system, the lighting system including a master device and multiple slave devices, the master device and the slave devices communicating via a digitally addressable lighting interface, the method comprising: Send addressing requests to the plurality of slave devices; When a feedback message from a slave device responding to the addressing request is detected, the number of slave devices connected to the master device is counted, wherein the feedback message is used to indicate that the device address of the slave device that issued the feedback message matches the random address carried in the addressing request; When the addressing request instructs the host device to complete the addressing operation, it is determined whether the number of slave devices exceeds the limit based on the relationship between the number of devices and the first threshold.

2. The method according to claim 1, characterized in that, Determining whether the number of slave devices exceeds the limit based on the relationship between the number of devices and the first threshold includes: When the number of devices exceeds a first threshold, it is determined that the number of slave devices connected to the host device exceeds the limit, and the number exceeding the limit is the difference between the number of devices and the first threshold.

3. The method according to claim 1, characterized in that, Sending the addressing request to the plurality of slave devices includes: Using a binary addressing method, a random address conforming to the communication protocol of the digital addressable lighting interface is broadcast to the multiple slave devices.

4. The method according to claim 3, characterized in that, The broadcast of a random address conforming to the communication protocol of the digital addressable lighting interface to the plurality of slave devices includes: The random address conforming to the communication protocol of the digital addressable lighting interface is divided into a set number of random address bytes; Starting from the most significant random address byte, a first command including the first comparison value of the current random address byte is sent to the plurality of slave devices; Based on the first response information of the plurality of slave devices to the first command, the first comparison value is adjusted to update the first command until the only slave device responds to the updated first command; Set the only slave device that responded to the first updated command to a silent state; Iteratively update the first command until no slave device responds to the first command.

5. The method according to claim 4, characterized in that, The feedback information is a response message sent by a slave device to the unique random address that matches the unique random address sent by the host device.

6. The method according to claim 1, characterized in that, The addressing request carries a unique random address that conforms to the communication protocol of the digital addressable lighting interface, based on the binary addressing method; Before the addressing request instructs the host device to complete the addressing operation, the method further includes: When the host device broadcasts all random addresses conforming to the communication protocol of the digital addressable lighting interface, and no slave device responds to the addressing request, it is determined that the host device has completed the addressing operation.

7. The method according to claim 6, characterized in that, The method further includes: If the host device has not broadcast all random addresses conforming to the communication protocol of the digital addressable lighting interface, or if there are slave devices responding to the addressing request, it is determined that the host device has not completed the broadcast of all random addresses conforming to the communication protocol of the digital addressable lighting interface. Based on the binary search addressing method, an addressing request carrying the next unique random address is sent to the multiple slave devices.

8. The method according to claim 1, characterized in that, Before sending the addressing request to the plurality of slave devices, the method further includes: The host device and multiple slave devices are controlled to enter the device quantity check mode, and all devices in the lighting system other than the host device and multiple slave devices are controlled to enter the silent mode.

9. The method according to claim 8, characterized in that, The control of the host device and multiple slave devices to enter the device quantity check mode includes: Control the multiple slave devices to suspend the execution of control operations; Control the multiple slave devices to perform initialization operations; Initialize a random address that conforms to the communication protocol of the digitally addressable lighting interface.

10. The method according to claim 1, characterized in that, The number of slave devices connected to the host device includes: When the host device and multiple slave devices are controlled to enter the device count check mode, the device count of the slave devices is set to 0, or when the feedback information of the slave device responding to the addressing request is detected for the first time, the device count is started. When a feedback message is detected that a slave device has responded to the addressing request, the number of devices is updated by incrementing the current number of devices by one.

11. The method according to claim 1, characterized in that, The method further includes: When a feedback message is detected that the slave device has responded to the addressing request, a short address is configured for the slave device to communicate with the master device.

12. The method according to claim 1, characterized in that, Determining whether the number of slave devices exceeds the limit based on the relationship between the number of devices and the first threshold includes: When the addressing request instructs the host device to complete the addressing operation, if the number of devices is less than or equal to the first threshold, it is determined that the number of slave devices connected to the host device conforms to the communication protocol of the digital addressable lighting interface.

13. The method according to claim 2, characterized in that, After determining that the number of slave devices connected to the host device exceeds the limit, the method includes: Issue alert messages indicating that the number of slave devices has exceeded the limit and the number of devices exceeding the limit.

14. The method according to claim 13, characterized in that, After issuing the alert message indicating that the number of slave devices has exceeded the limit and the number of devices exceeding the limit, the method includes: After adjusting the number of slave devices, perform the method according to any one of claims 1-13.

15. A lighting equipment testing device, characterized in that, A master device for use in a lighting system, the lighting system including a master device and multiple slave devices, the master device and the slave devices communicating via a digitally addressable lighting interface, the device comprising: The addressing module is used to send addressing requests to the plurality of slave devices; The statistics module is used to count the number of slave devices connected to the master device when a feedback information of a slave device responding to the addressing request is detected, wherein the feedback information is used to indicate that the device address of the slave device that issued the feedback information matches the random address carried in the addressing request; The detection module is used to determine whether the number of slave devices exceeds the limit based on the relationship between the number of devices and a first threshold when the addressing request instructs the host device to complete the addressing operation.

16. A lighting system, characterized in that, The lighting system includes a master device and multiple slave devices. The master device includes a master controller, which includes: A memory and a processor are communicatively connected, the memory storing computer instructions, and the processor executing the computer instructions to perform the lighting device detection method according to any one of claims 1 to 15.