CN117336917A - Implementation method of automatic lamp detection channel and automatic address writing and application thereof - Google Patents

Implementation method of automatic lamp detection channel and automatic address writing and application thereof Download PDF

Info

Publication number
CN117336917A
CN117336917A CN202311329947.2A CN202311329947A CN117336917A CN 117336917 A CN117336917 A CN 117336917A CN 202311329947 A CN202311329947 A CN 202311329947A CN 117336917 A CN117336917 A CN 117336917A
Authority
CN
China
Prior art keywords
decoder
signal
lamp
writing
automatic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311329947.2A
Other languages
Chinese (zh)
Inventor
王忠泉
请求不公布姓名
邓晓航
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Roledith Technology Co ltd
Original Assignee
Hangzhou Roledith Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Roledith Technology Co ltd filed Critical Hangzhou Roledith Technology Co ltd
Priority to CN202311329947.2A priority Critical patent/CN117336917A/en
Publication of CN117336917A publication Critical patent/CN117336917A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/30Driver circuits
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/50Circuit arrangements for operating light-emitting diodes [LED] responsive to malfunctions or undesirable behaviour of LEDs; responsive to LED life; Protective circuits
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/165Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The application provides a lamp automatic detection channel, an automatic address writing implementation method and application thereof, wherein the implementation method comprises the steps that when S00 is powered on for the first time and no external signal exists, a decoder outputs DO to an LED driving unit. S10: after passing through each driving unit, DI is returned to take DI as the residual signal. S20: and calculating the number of channels of the decoder, comparing the stored data, and updating if the stored data are inconsistent. S30: the controller sends out a mute canceling signal, and the PO signal is set low after the decoder receives the mute canceling signal. S40-S50: if the levels of the PO end and the PI end are different, the number of the return channels is high in parallel and enters a mute state; the same holds silence. S60-S100: and circularly acquiring all channel number data, generating a code writing instruction according to the ordering, judging the level of the PO end and the level of the PI end, waiting if the level is the same, writing the address code if the level is different, setting the PO end to be high, and finishing code writing. The method and the device can automatically acquire the number of channels and write addresses, remarkably reduce the production cost and improve the production efficiency.

Description

Implementation method of automatic lamp detection channel and automatic address writing and application thereof
Technical Field
The application relates to the technical field of lamp control, in particular to a lamp automatic detection channel, an automatic address writing realization method and application thereof.
Background
With the development of technology, RDM (remote management) -based luminaires are increasingly being used in landscape lighting and quantization engineering. Due to construction and environmental requirements, more lamps with different channels are mixed, and the corresponding configuration and address writing of the lamps are more and more complex. The traditional lamp generally adopts a special instrument to manually write the channel number when leaving the factory, and is not very flexible to use and maintain.
Therefore, a method for realizing automatic detection channel and automatic address writing of a lamp and application thereof are needed to solve the problems in the prior art.
Disclosure of Invention
The embodiment of the application provides a lamp automatic detection channel, an automatic address writing realization method and application thereof, and aims at solving the problems that the prior art needs a special machine to manually write the number of channels, and the use and maintenance cost is high and inflexible.
The core technology of the invention mainly realizes automatic address writing by using an address writing line on the basis of detecting the number of self-channels.
In a first aspect, the present application provides a method for implementing automatic detection channel and automatic address writing of a lamp, where the method includes the following steps:
s00, outputting DO signals to the LED driver through the decoder when external lamp control signals are not available after the lamp is electrified for the first time;
each lamp is electrically connected with a controller for emitting an external lamp control signal, a decoder is arranged in each lamp, each decoder is connected with a plurality of LED drivers in series, each LED driver is connected with one or a plurality of LED lamps, and decoders of two adjacent lamps are connected through PI-PO lines, so that each lamp is sequentially connected;
s10, after passing through each LED driver in turn, returning a DI signal to the decoder, and taking the DI signal as a residual signal;
s20, according to the DO signal and the channel number of the signal, calculating to obtain the self channel number of the decoder, comparing the channel number data stored in the decoder, and if the channel number data are inconsistent, updating the channel number data stored in the decoder based on the calculated self channel number of the decoder;
s30, transmitting a mute canceling state signal to each decoder through the controller, and setting the PO signal of each decoder to be low after each decoder receives the mute canceling state signal;
the PO end of the upper-level decoder is connected with the PI end of the lower-level decoder, and the PI end of the first-level decoder has no input;
s40, judging whether the levels of the PO end and the PI end of each decoder are the same or not based on the Get instruction of the controller;
s50, if not, returning the current channel number data of the decoder to the controller, and setting the PO end and the PI end high and entering a mute state at the same time; if yes, keeping the decoder silent;
s60, circulating the steps S40-S50 until all channel number data are acquired and ordered, so as to generate a code writing instruction for writing addresses according to the ordering result;
s70, transmitting a mute canceling state signal to each decoder through the controller, and setting the PO signal of each decoder to be low after each decoder receives the mute canceling state signal;
s80, judging whether the levels of a PO end and a PI end of each decoder are the same or not based on a code writing instruction of the controller;
s90, if not, writing the corresponding address code into a storage area of the decoder and setting the PO end to be the same as the PI end so that the PO end level of the decoder is high; if yes, the decoder waits;
s100, the steps S80-S90 are circulated until the PO end level of all the decoders is high, and the code writing is completed.
Further, in the step S00, the external lamp control signal is an RS485 signal or a DMX512 signal.
Further, in step S30, a pull-up resistor is built in the first stage decoder, so that the PI terminal level of the first stage decoder is high.
Further, in step S60, based on the sorting result, the number of channels is sequentially added according to the given starting address to perform encoding, so as to obtain a code writing instruction.
Further, in step S20, the number of channels of the decoder is n=n DO -N DI Wherein N is DO Channel number, N, of DO signal for decoder DI The number of channels of the remaining signal output for the last LED driver.
Further, in step S20, after the DO signal passes through the LED drivers, each LED driver receives the DO signal of the decoder through the DI port, so as to drive the LED lamp and eliminate the portion used by the LED driver in the DO signal, and then outputs the DO signal from the DI port of the LED driver to the next LED driver or returns to the DI port of the decoder.
In a second aspect, the present application provides a system for implementing automatic detection channel and automatic address writing of a lamp, where the implementing method for implementing automatic detection channel and automatic address writing of a lamp includes:
the controller is electrically connected with each decoder and is used for sending out external lamp control signals;
the lamp comprises a decoder, an LED driver and an LED lamp; each decoder is connected with a plurality of LED drivers in series, each LED driver is connected with one or a plurality of LED lamps, and decoders of two adjacent lamps are connected through PI-PO lines, so that each lamp is connected in sequence; the PO end of the upper-stage decoder is connected with the PI end of the lower-stage decoder, and the PI end of the first-stage decoder has no input.
In a third aspect, the present application provides an electronic device, including a memory, in which a computer program is stored, and a processor configured to run the computer program to perform the above-described implementation method of automatic light fixture detection channel and automatic address writing.
In a fourth aspect, the present application provides a readable storage medium having stored therein a computer program comprising program code for controlling a process to execute a process comprising an implementation of an automatic light fixture detection channel and automatic address writing according to the above.
The main contributions and innovation points of the invention are as follows: 1. compared with the prior art, after the power-on for the first time, the method can automatically detect and update the channel number, and then the controller can be used for searching and sequencing the channel number, so that automatic addressing (address writing) is convenient, and all decoders are completely written with address by using the automatic addressing, so that a special instrument is not needed to manually write the channel number, and the flexibility of use and maintenance is greatly improved;
2. compared with the prior art, the lamp management system can be used for uniformly managing lamps of the same type but different lengths, namely, the lamp management system can be used for automatically detecting and automatically addressing the number of channels and identifying the lengths (the number of self-channels) of different lamps, so that uniform management is facilitated.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the other features, objects, and advantages of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
FIG. 1 is a flow chart of a method for implementing automatic detection channels and automatic address writing of a luminaire according to an embodiment of the present application;
FIG. 2 is a lamp connection circuit diagram according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a signal change process according to an embodiment of the present application;
fig. 4 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of the present specification. Rather, they are merely examples of apparatus and methods consistent with aspects of one or more embodiments of the present description as detailed in the accompanying claims.
It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the method may include more or fewer steps than described in this specification. Furthermore, individual steps described in this specification, in other embodiments, may be described as being split into multiple steps; while various steps described in this specification may be combined into a single step in other embodiments.
Example 1
The application aims at providing a method for realizing automatic detection channel and automatic address writing of a lamp, and specifically, referring to fig. 1-3, the method comprises the following steps:
s00, after the lamp is powered on for the first time, outputting DO signals to the LED driver through the decoder when no external lamp control signals (no RS485 signals or no DMX512 signals) exist;
as shown in fig. 2, each lamp is electrically connected with a controller for emitting an external lamp control signal (RS 485 is used as a physical layer standard, the controller is connected with the lamp by using an RS485 bus), a decoder is arranged in each lamp, each decoder is connected with a plurality of LED drivers in series, each LED driver is connected with one or a plurality of LED lamps, and decoders of two adjacent lamps are connected with each lamp in turn by PI-PO lines;
the DO signal refers to a digital output signal (Digital Output Signal) which is a type of signal used to transmit discrete states or switching signals in a digital electronic system. The DO signal typically has only two possible states, typically denoted 0 and 1, corresponding to a low level (typically 0 volts) and a high level (typically 5 volts or 3.3 volts, depending on the system voltage standard), respectively. The DO port refers to the signal output.
While DI signals refer to digital input signals (Digital Input Signal), a type of signal used to transmit discrete state or switching signals in digital electronic systems. The DI signal typically has only two possible states, typically denoted 0 and 1, corresponding to a low level (typically 0 volts) and a high level (typically 5 volts or 3.3 volts, depending on the system voltage standard), respectively. DI port refers to a signal input.
In this embodiment, after the first power-on, the decoder generates a DO signal according to the RS 485-free default state configured by factory and loads the DO signal to the LED driver.
S10, after passing through each LED driver in turn, returning a DI signal to the decoder, and taking the DI signal as a residual signal;
in this embodiment, the decoder DO side is connected in series with each LED driver in a fixture, and returns to the DI port of the decoder itself through the final LED driver. The decoder is separated from the driver, and the decoder mainly receives an external lamp control (DMX 512) signal and converts the external lamp control signal into a DO signal to control the LED driver. The LED driver is mainly used for receiving signals of the decoder to generate PWM signals for driving the control lamp, the driver is not the content protected by the application, and the existing driver chip can receive signals conforming to rules from the DI port of the driver to drive the LED lamp and forward the DI signal to the DO port of the driver after eliminating the used part of the DI signal.
S20, according to the DO signal and the channel number of the signal, calculating to obtain the self channel number of the decoder, comparing the channel number data stored in the decoder, and if the channel number data are inconsistent, updating the channel number data stored in the decoder based on the calculated self channel number of the decoder;
in this embodiment, as shown in fig. 3, since the DI port of the LED driver receives the signal from the front decoder or the front LED driver, the data of the number of self-matched channels is output and driven (as shown in fig. 3, the data of one Byte1 is less in the lower DO) through the driving conversion, and then the remaining signal is output through the DO port of the driver, and then the signal returned to the DI port of the decoder after passing through a plurality of drivers is the remaining signal. The comparison is received by the decoder and, the self-calculation can be performed number of body passages n=n=n DO -N DI Wherein N is DO Channel number, N, of DO signal for decoder DI The number of channels of the remaining signal (which is input to the DI port of the decoder) output for the last LED driving unit.
Thus, the channel number generated by the comparison is stored in the storage unit of the decoder, and if the channel number is inconsistent according to the real-time comparison condition, the channel number is updated.
Wherein Rst in fig. 3 is a low level reset signal or a low level reset code.
S30, transmitting a mute canceling state signal to each decoder through the controller, and setting the PO signal of each decoder to be low after each decoder receives the mute canceling state signal; the PO end of the upper-level decoder is connected with the PI end of the lower-level decoder, and the PI end of the first-level decoder has no input;
in this embodiment, the controller first sends a "disc_un_mute" disable flag (disable MUTE state signal), and the decoder sets its own PO signal low after receiving the "disc_un_mute". Here, "disc_un_mute" is a command in the RDM protocol, which means to cancel the MUTE flag of the device. In the RDM protocol, the device may be set to a mute state, meaning that the device does not respond to a query command or configuration request from the controller. By sending the DISC _ UN _ MUTE command, the controller may request the device to cancel the MUTE state, causing the device to resume responding and communicating with the controller.
Therefore, since the PO port of the upper decoder is connected to the PI port of the lower decoder, the DI input signal of the corresponding lower decoder becomes low, and since the PI port of the first decoder has no input, and the pull-up resistor is built in the PI port of the decoder, the input PI of the first decoder is high.
S40, judging whether the levels of the PO end and the PI end of each decoder are the same or not based on the Get instruction of the controller;
where the "Get" command typically includes an identifier of a parameter or attribute that specifies the type of information that the controller wishes to obtain. After receiving the "Get" command, the device searches for the corresponding parameter or attribute and returns its value to the controller as a response. This allows the controller to query the various status, configuration and performance information of the device for device management and monitoring.
S50, if not, returning the current channel number data of the decoder to the controller, and setting the PO end and the PI end high and entering a mute state at the same time; if yes, keeping the decoder silent;
in this embodiment, after the controller sends the "Get" command containing the broadcast, the decoder performs exclusive-or (pi≡po) calculation on its own input PI and output PO, and if the result is "0" (input and output are unequal), the decoder submits its own channel number to the controller. The decoder with exclusive or value "1" remains silent. After the answer is finished, the answer decoder sets the output PO of the answer decoder to be the same as the input PO (set to be high), and enters a mute state.
S60, circulating the steps S40-S50 until all channel number data are acquired and ordered, so as to generate a code writing instruction for writing addresses according to the ordering result;
in this embodiment, the controller sorts the received channels according to the number of channels and provides a basis for address writing. And judging that the query is finished only by no broadcast response channel number.
The code writing instruction for writing address is generated by sequentially adding the read channel number according to the given initial address.
For example, the controller firstly sends a broadcast acquire DEVICE COMMAND "get_command+device_info", and the first unmuted DEVICE replies "ack+get_command_response+pd", wherein PD (Parameter Data) contains DMX512 Footprint information, which is the number of channels of the current DEVICE, and is recorded as N0, and the controller circularly sends the acquire DEVICE information COMMAND, and records the RESPONSEs received each time as N0, N1, N2 … Nn. And when no response occurs twice, the equipment acquiring information is considered to be acquired.
Repeating the steps again, re-acquiring the channel numbers M0, M1, M2 … Mn, and carrying out corresponding comparison checking with N0, N1, N2 … NN, wherein the checking is successful if all the channel numbers are the same, otherwise, the re-acquisition is failed.
After the channel number sequence is successfully acquired, the controller sets the starting address to be A0, and calculates A1=A0+N0, A2=A1+N … An=A (N-1) -N (N-1) (remark: nn ignores the follow-up no device).
Finally, the DM512 address command 'RstA+0x00+A0', 'RstA+0x00+A1' … 'RstA+0x00+an' (RstA is a low level mark exceeding 2s and is an address resetting code) is adopted for writing codes. And after the lamp receives the address resetting code for the first time, PO is set low, and Po and Pi are compared. If not, storing the corresponding address into the address space of the device, setting high PO and entering the default state. And so on until all lamps are addressed.
The above general process of generating a code-writing instruction is by way of example only.
S70, transmitting a mute canceling state signal to each decoder through the controller, and setting the PO signal of each decoder to be low after each decoder receives the mute canceling state signal;
in this embodiment, the controller first sends a "disc_un_mute" disable flag, and the decoder sets its own PO signal low after receiving the "disc_un_mute".
S80, judging whether the levels of a PO end and a PI end of each decoder are the same or not based on a code writing instruction of the controller;
s90, if not, writing the corresponding address code into a storage area of the decoder and setting the PO end to be the same as the PI end so that the PO end level of the decoder is high; if yes, the decoder waits;
in this embodiment, when the controller sends a code writing instruction that finishes encoding according to the ordering, the decoder performs exclusive or (pi≡po) on its own input PI and output PO, and if it is "0" (the input and output are different), writes the corresponding address code into its own storage area, and sets its own output PO to be the same as the input PO. The decoder with the exclusive or value "1" waits.
S100, the steps S80-S90 are circulated until the PO end level of all the decoders is high, and the code writing is completed.
In this embodiment, since the first stage exclusive-or is "0" first, writing is performed. Then outputting a high level results in the second stage exclusive or being "0", the second stage begins to receive and store the second address code, and then outputting PO high results in the third stage exclusive or being "0". And so on, until all the PO of the decoder becomes high, the code writing is finished.
Example two
Based on the same conception, the application provides a system for realizing automatic lamp detection channel and automatic address writing, which is used for realizing the automatic lamp detection channel and automatic address writing in the first embodiment, and comprises the following steps:
the controller is electrically connected with each decoder and is used for sending out external lamp control signals;
the lamp comprises a decoder, an LED driver and an LED lamp; each decoder is connected with a plurality of LED drivers in series, each LED driver is connected with one or a plurality of LED lamps, and decoders of two adjacent lamps are connected through PI-PO lines, so that each lamp is connected in sequence; the PO end of the upper-stage decoder is connected with the PI end of the lower-stage decoder, and the PI end of the first-stage decoder has no input.
Example III
This embodiment also provides an electronic device, referring to fig. 4, comprising a memory 404 and a processor 402, the memory 404 having stored therein a computer program, the processor 402 being arranged to run the computer program to perform the steps of any of the method embodiments described above.
In particular, the processor 402 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured to implement one or more integrated circuits of embodiments of the present application.
The memory 404 may include, among other things, mass storage 404 for data or instructions. By way of example, and not limitation, memory 404 may comprise a Hard Disk Drive (HDD), floppy disk drive, solid State Drive (SSD), flash memory, optical disk, magneto-optical disk, tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Memory 404 may include removable or non-removable (or fixed) media, where appropriate. Memory 404 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 404 is a Non-Volatile (Non-Volatile) memory. In particular embodiments, memory 404 includes Read-only memory (ROM) and Random Access Memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), an electrically rewritable ROM (EAROM) or FLASH memory (FLASH) or a combination of two or more of these. The RAM may be Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM) where appropriate, and the DRAM may be fast page mode dynamic random access memory 404 (FPMDRAM), extended Data Output Dynamic Random Access Memory (EDODRAM), synchronous Dynamic Random Access Memory (SDRAM), or the like.
Memory 404 may be used to store or cache various data files that need to be processed and/or used for communication, as well as possible computer program instructions for execution by processor 402.
The processor 402 reads and executes the computer program instructions stored in the memory 404 to implement the implementation of the automatic light fixture detection channel and automatic address writing method of any of the above embodiments.
Optionally, the electronic apparatus may further include a transmission device 406 and an input/output device 408, where the transmission device 406 is connected to the processor 402 and the input/output device 408 is connected to the processor 402.
The transmission device 406 may be used to receive or transmit data via a network. Specific examples of the network described above may include a wired or wireless network provided by a communication provider of the electronic device. In one example, the transmission device includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through the base station to communicate with the internet. In one example, the transmission device 406 may be a Radio Frequency (RF) module, which is configured to communicate with the internet wirelessly.
The input-output device 408 is used to input or output information.
Example IV
The present embodiment also provides a readable storage medium having stored therein a computer program including program code for controlling a process to execute the process including the lamp auto-detection channel and the auto-address implementation method according to the first embodiment.
It should be noted that, specific examples in this embodiment may refer to examples described in the foregoing embodiments and alternative implementations, and this embodiment is not repeated herein.
In general, the various embodiments may be implemented in hardware or special purpose circuits, software, logic or any combination thereof. Some aspects of the invention may be implemented in hardware, while other aspects may be implemented in firmware or software which may be executed by a controller, microprocessor or other computing device, although the invention is not limited thereto. While various aspects of the invention may be illustrated and described as block diagrams, flow charts, or using some other pictorial representation, it is well understood that these blocks, apparatus, systems, techniques or methods described herein may be implemented in, as non-limiting examples, hardware, software, firmware, special purpose circuits or logic, general purpose hardware or controller or other computing devices, or some combination thereof.
Embodiments of the invention may be implemented by computer software executable by a data processor of a mobile device, such as in a processor entity, or by hardware, or by a combination of software and hardware. Computer software or programs (also referred to as program products) including software routines, applets, and/or macros can be stored in any apparatus-readable data storage medium and they include program instructions for performing particular tasks. The computer program product may include one or more computer-executable components configured to perform embodiments when the program is run. The one or more computer-executable components may be at least one software code or a portion thereof. In addition, in this regard, it should be noted that any blocks of the logic flows as illustrated may represent program steps, or interconnected logic circuits, blocks and functions, or a combination of program steps and logic circuits, blocks and functions. The software may be stored on physical media such as memory chips or memory blocks implemented within the processor, magnetic media such as hard or floppy disks, and optical media such as, for example, DVDs and data variants thereof, CDs, etc. The physical medium is a non-transitory medium.
It should be understood by those skilled in the art that the technical features of the above embodiments may be combined in any manner, and for brevity, all of the possible combinations of the technical features of the above embodiments are not described, however, they should be considered as being within the scope of the description provided herein, as long as there is no contradiction between the combinations of the technical features.
The foregoing examples merely represent several embodiments of the present application, the description of which is more specific and detailed and which should not be construed as limiting the scope of the present application in any way. It should be noted that variations and modifications can be made by those skilled in the art without departing from the spirit of the present application, which falls within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (9)

1. The method for realizing the automatic detection channel and automatic address writing of the lamp is characterized by comprising the following steps:
s00, outputting DO signals to the LED driver through the decoder when external lamp control signals are not available after the lamp is electrified for the first time;
each lamp is electrically connected with a controller for emitting an external lamp control signal, a decoder is arranged in each lamp, each decoder is connected with a plurality of LED drivers in series, each LED driver is connected with one or a plurality of LED lamps, and decoders of two adjacent lamps are connected through PI-PO lines, so that each lamp is sequentially connected;
s10, after passing through each LED driver in turn, returning a DI signal to the decoder, and taking the DI signal as a residual signal;
s20, according to the DO signal and the channel number of the signal, calculating to obtain the self channel number of the decoder, comparing the channel number data stored in the decoder, and if the channel number data are inconsistent, updating the channel number data stored in the decoder based on the calculated self channel number of the decoder;
s30, transmitting a mute canceling state signal to each decoder through the controller, and setting the PO signal of each decoder to be low after each decoder receives the mute canceling state signal;
the PO end of the upper-level decoder is connected with the PI end of the lower-level decoder, and the PI end of the first-level decoder has no input;
s40, judging whether the levels of the PO end and the PI end of each decoder are the same or not based on the Get instruction of the controller;
s50, if not, returning the current channel number data of the decoder to the controller, and setting the PO end and the PI end high and entering a mute state at the same time; if yes, keeping the decoder silent;
s60, circulating the steps S40-S50 until all channel number data are acquired and ordered, so as to generate a code writing instruction for writing addresses according to the ordering result;
s70, transmitting a mute canceling state signal to each decoder through the controller, and setting the PO signal of each decoder to be low after each decoder receives the mute canceling state signal;
s80, judging whether the levels of a PO end and a PI end of each decoder are the same or not based on a code writing instruction of the controller;
s90, if not, writing the corresponding address code into a storage area of the decoder and setting the PO end to be the same as the PI end so that the PO end level of the decoder is high; if yes, the decoder waits;
s100, the steps S80-S90 are circulated until the PO end level of all the decoders is high, and the code writing is completed.
2. The method for implementing automatic lamp inspection and automatic address writing according to claim 1, wherein in step S00, the external lamp control signal is an RS485 signal or a DMX512 signal.
3. The method of claim 1, wherein in step S30, a pull-up resistor is built in the first stage decoder to make the PI level of the first stage decoder be high.
4. The method of claim 1, wherein in step S60, the number of channels is sequentially added to the given starting address based on the sorting result to obtain the code writing instruction.
5. The method for implementing automatic lamp detection channel and automatic address writing as claimed in any one of claims 1 to 4, wherein in step S20, the number of channels of the decoder is n=n DO -N DI Wherein N is DO Channel number, N, of DO signal for decoder DI The number of channels of the remaining signal output for the last LED driver.
6. The method of claim 5, wherein in step S20, after the DO signal passes through the LED drivers, each LED driver receives the DO signal of the decoder through the DI port to drive the LED lamp and eliminate the portion of the DO signal used by the LED driver, and outputs the DO signal from the DI port of the LED driver to the next LED driver or back to the DI port of the decoder.
7. The system for realizing the automatic lamp detection channel and the automatic address writing is characterized by comprising the following components:
the controller is electrically connected with each decoder and is used for sending out external lamp control signals;
the lamp comprises a decoder, an LED driver and an LED lamp; each decoder is connected with a plurality of LED drivers in series, each LED driver is connected with one or a plurality of LED lamps, and decoders of two adjacent lamps are connected through PI-PO lines, so that each lamp is connected in sequence; the PO end of the upper-stage decoder is connected with the PI end of the lower-stage decoder, and the PI end of the first-stage decoder has no input.
8. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the method of implementing an automatic detection channel and automatic address writing of a luminaire as claimed in any one of claims 1 to 6.
9. A readable storage medium, characterized in that the readable storage medium has stored therein a computer program comprising program code for controlling a process to execute a process comprising the implementation of the luminaire auto-detection channel and auto-addressing according to any one of claims 1 to 6.
CN202311329947.2A 2023-10-16 2023-10-16 Implementation method of automatic lamp detection channel and automatic address writing and application thereof Pending CN117336917A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311329947.2A CN117336917A (en) 2023-10-16 2023-10-16 Implementation method of automatic lamp detection channel and automatic address writing and application thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311329947.2A CN117336917A (en) 2023-10-16 2023-10-16 Implementation method of automatic lamp detection channel and automatic address writing and application thereof

Publications (1)

Publication Number Publication Date
CN117336917A true CN117336917A (en) 2024-01-02

Family

ID=89278952

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311329947.2A Pending CN117336917A (en) 2023-10-16 2023-10-16 Implementation method of automatic lamp detection channel and automatic address writing and application thereof

Country Status (1)

Country Link
CN (1) CN117336917A (en)

Similar Documents

Publication Publication Date Title
CN107622091B (en) Database query method and device
US11582821B2 (en) Data transmission method, data transmission apparatus, processor, and mobile terminal
CN110379357B (en) Control method and device for parallel LED drive circuit
WO2019015592A1 (en) Method and device for polar code encoding
CN112291387A (en) Method, device and equipment for automatically addressing master and slave machines and storage medium
KR20190033041A (en) Linear motor system and driving method thereof
CN117336917A (en) Implementation method of automatic lamp detection channel and automatic address writing and application thereof
CN110717050A (en) Method and device for accessing knowledge map database
CN114241984B (en) LED driving device, multi-stage LED driving system and driving method
CN108920175B (en) Method and system for realizing BMC (baseboard management controller) code logic
CN111831341A (en) Configuration file loading method, device and system and computer readable medium
CN111930417A (en) Method, device, terminal and medium for identifying Flash by GPU firmware
CN116055381A (en) Routing table updating method and device based on many-core system and electronic equipment
CN110750534A (en) Method and apparatus for deploying Redis clusters
JP2021533655A (en) Data scheduling and data transmission methods, network equipment, terminals and computer storage media
CN116450163B (en) Driving circuit, lamp string burning control method and device and electronic equipment
CN113883691B (en) Air conditioner parameter reading method and device, air conditioner and storage medium
KR101728864B1 (en) Method, Apparatus and Computer Program for Management of Flash Memory
CN113596791B (en) Bluetooth device control method and device, storage medium and electronic device
CN117075824B (en) Control method and device of storage device, storage device and hard disk array card
CN115118712A (en) File transmission method and device
US10620601B2 (en) Control device, control system, and search method
KR100434340B1 (en) message processing equipment of the message queue of operation system and controlling method therefore
CN116113013A (en) Method, device, gateway device, system and storage medium for controlling network access of equipment
CN113630126A (en) Polar code decoding processing method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination