CN115695516A - Simple equipment configuration interface based on DALI protocol - Google Patents

Simple equipment configuration interface based on DALI protocol Download PDF

Info

Publication number
CN115695516A
CN115695516A CN202211355348.3A CN202211355348A CN115695516A CN 115695516 A CN115695516 A CN 115695516A CN 202211355348 A CN202211355348 A CN 202211355348A CN 115695516 A CN115695516 A CN 115695516A
Authority
CN
China
Prior art keywords
dali
configuration interface
protocol
control device
data
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
CN202211355348.3A
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.)
Nanjing Meijiajie Intelligent Technology Co ltd
Original Assignee
Nanjing Meijiajie Intelligent 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 Nanjing Meijiajie Intelligent Technology Co ltd filed Critical Nanjing Meijiajie Intelligent Technology Co ltd
Priority to CN202211355348.3A priority Critical patent/CN115695516A/en
Publication of CN115695516A publication Critical patent/CN115695516A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

The invention discloses a simple and convenient configuration interface of equipment based on a DALI protocol, which comprises a DALI host A1, a DALI control device CG1, a DALI bus power supply and a DALI bus, wherein the DALI host A1, the DALI control device CG1 and the DALI bus power supply are connected through the DALI bus; the DALI host A1 comprises a DALI interface A10, a DALI application controller protocol A20, a configuration interface client A30 and other service logic functions A50; the DALI control device CG1 comprises a DALI interface CG10, a DALI control device protocol CG20, a configuration interface server CG30 and other service logic functions CG40; the DALI control device CG1 receives consecutive multi-byte data of the DALI host A1. According to the invention, through the configuration interface based on the basic command 'DAPC (level)' of the DALI control device, the host, the gateway, the controller or the protocol interface with the DALI application controller capability can complete complex parameter configuration on the DALI control device realizing the configuration interface provided by the invention without supporting a complete command set of a DALI bottom layer, so that the software design of the host is simplified, and meanwhile, the flexibility is strong.

Description

Simple equipment configuration interface based on DALI protocol
Technical Field
The invention relates to the technical field of intelligent lighting control, in particular to a simple equipment configuration interface based on a DALI protocol.
Background
DALI (Digital Addressable Lighting Interface) is a Lighting standard defined by IEC 62386, and one DALI bus can access up to 64 Control devices (Control Gear, generally referred to as controlled Lighting devices such as LED lamps, relays, etc.) and 64 Control devices (generally referred to as application controllers that issue Control commands or generate trigger events and input devices such as switches, sensors, etc.). The DALI bus can provide power for devices on the bus (the maximum bus power supply current is 250 mA), and is also used for transmission of communication signals, and the wiring distance of the farthest device on the same DALI bus cannot exceed 300 meters. DALI is widely used in large venues, commercial lighting, and office lighting control systems as the mainstream intelligent lighting technology.
DALI control devices and control equipment often require parameter setting, condition monitoring, and instruction execution in research, production testing, and engineering applications. According to the DALI standard, such products typically support the general requirements of a control device or control equipment as defined in the IEC 62386 standard, while also supporting the general requirements of control devices or control equipment as defined in some standards. Vendors can also extend some proprietary commands (Command), variables (Variable) and Memory banks (Memory Bank) to the extent allowed by the standards to implement some non-standardized functional requirements.
Whether standardized or non-standardized commands, variables or memory areas, are generally taken when testing, debugging or deploying DALI products, or specific commands are sent to the DALI bus through a host, gateway, controller or protocol interface (e.g., USB to DALI) device with Application Controller (Application Controller) capability on the bus, so that the device performs certain actions, sets or reads variable values, reads and writes memory areas, and the like. This requires that the user interaction interface (typically an application program on the PC side) provide a corresponding command transmission interface, variable and storage area data setting interface, and display interface for the returned data. The DALI industry does not currently have standardized product configuration tools, and whether a product can be fully configured depends largely on whether the vendor that produces the product has provided a matching configuration tool.
Another reason is that the DALI standard is still evolving continuously, and the newly added functional characteristics are not evolving synchronously in different types of products applied in the DALI system. For example, when DALI LED lamps supporting color temperature adjustment are on the market, many host computers and gateway products of central control system and controller manufacturers cannot support function testing and parameter adjustment of color temperature related functions of such lamps, and even if the host computers and gateways do not need to configure color temperature range parameters of the lamps (such as physical color temperatures of LED cold and warm beads) as long as the color temperatures of the lamps can be actually controlled during the final project operation, these lamp light sources and LED drivers still need to be properly configured and matched, and the color temperatures displayed by the lamps and the color temperatures controlled by the host computers do not coincide with each other.
Generally, although the DALI products (mainly, the control devices and the control equipment) have standard interfaces, the binary standard interface protocol is not friendly to people, and the industry lacks a man-machine interaction friendly method for supporting field testing, debugging and other works of the DALI products for a long time. The private functions based on the graphical application program of each manufacturer are not communicated, so that many functions cannot be updated in time to meet the new standard and the functional characteristics of the private protocol, and part of the functional characteristics cannot be compatible with manufacturers.
Disclosure of Invention
In view of the above technical problems, the present invention aims to provide a simple configuration interface for DALI protocol-based devices, which can implement parameter configuration of a DALI control apparatus by a host only by using a "DAPC (level)", thereby simplifying software design of the host and having great flexibility.
In order to solve the technical problem, the invention adopts the following technical scheme: a simple equipment configuration interface based on a DALI protocol is characterized in that: the DALI control system comprises a DALI host A1, a DALI control device CG1, a DALI bus power supply and a DALI bus, wherein the DALI host A1, the DALI control device CG1 and the DALI bus power supply are connected through the DALI bus;
the DALI master A1 comprises a DALI interface A10, a DALI application controller protocol A20, a configuration interface client A30 and other service logic functions A50;
the DALI control device CG1 comprises a DALI interface CG10, a DALI control device protocol CG20, a configuration interface server CG30 and other service logic functions CG40;
the DALI control device CG1 receives consecutive multi-byte data of the DALI host A1.
Further, the DALI interface a10 is a transceiver circuit, and meets the DALI physical layer and data link layer requirements of the DALI standard; the DALI application controller protocol A20 provides service interfaces for a configuration interface client A30 and other business logic functions A50; the configuration interface client a30 configures the DALI control device CG1 using the DALI application controller protocol a20 and the DALI interface a 10.
Further, the DALI interface CG10 is a transceiver circuit, and conforms to the DALI physical layer and data link layer requirements of the DALI standard; the DALI control device protocol CG20 provides a service interface for a configuration interface server CG30 and other business logic functions CG40; the configuration interface server CG30 calls a service interface of the DALI control device protocol CG20 to receive continuous multi-byte data sent by the configuration interface client a30 to the DALI control device CG1, and performs data parsing and executes a corresponding configuration command.
Further, the DALI control device CG1 receives continuous multi-byte data of the DALI host A1 through its standard command DAPC (level).
Further, the configuration interface server CG30 receives consecutive bytes of data of the configuration interface client a30, where the length of the consecutive bytes of data is set by agreement between the configuration interface server CG30 and the configuration interface client a 30.
Further, the consecutive byte data transmitted between the configuration interface client a30 and the configuration interface server CG30 is F300, where the F300 is formed by level in a sequence of DALI control apparatus standard commands DAPC (level) that are transmitted consecutively.
Further, the standard command DAPC (level) is 16-bit data, wherein the high 8-bit data includes addressing information defined by the DALI standard, and the low 8-bit data is a level value, and the level value ranges from 0 to 255.
Further, setting Preamble (Preamble) F301, defining the length of a payload in a data Frame as F303, the payload as F304, and a Frame Check Sequence (FCS) as F305 for F300; the Preamble F301 includes a signature data sequence of 4 bytes or more; f303 is more than or equal to 1 byte of data; the F305 employs a data verification algorithm, which is typically 1-4 bytes in length.
Further, the continuous byte Data transmitted between the configuration interface client a30 and the configuration interface server CG30 further includes a Protocol Data Unit (PDU) F400, and a format and meaning of the PDU F400 are defined by an application.
Further, the first byte of the Protocol Data Unit (PDU) F400 is a Function Code (Function Code) F401, and the remaining bytes are Data (Data) F402.
Has the beneficial effects that: compared with the prior art, the invention can complete complex parameter configuration on the DALI control device realizing the configuration interface provided by the invention through the configuration interface based on the basic command 'DAPC (level)' of the DALI control device without supporting a complete command set of a DALI bottom layer by a host, a gateway, a controller or a protocol interface with the capability of a DALI application controller. The software design of the host computer is simplified, and the flexibility is strong.
Drawings
Fig. 1 is a schematic view of the overall application of the present invention.
Fig. 2 is a schematic diagram of the connection between the interface server and the client according to the present invention.
FIG. 3 is a diagram illustrating data transmission timing and data frame format of the configuration interface according to the present invention.
FIG. 4 is a diagram of a Protocol Data Unit (PDU) according to the present invention.
Detailed Description
To facilitate an understanding of the invention, the invention will now be described more fully hereinafter with reference to the accompanying drawings. The invention may be embodied in different forms and is not limited to the embodiments described herein. Rather, the embodiments are provided so that this disclosure will be thorough and complete.
As shown in the figure, the equipment simple configuration interface based on the DALI protocol comprises a DALI master A1, a DALI control device CG1, a DALI bus power supply and a DALI bus, wherein the DALI master A1, the DALI control device CG1 and the DALI bus power supply are connected through the DALI bus.
The DALI host A1 is an application controller or a control interface which conforms to DALI standards IEC 62386-101 and IEC 62386-103, the product form of the application controller is a central control host, a protocol gateway, a controller or a combination of the central control host, the protocol gateway and the controller, and the product form of the control interface is a USB-to-DALI interface, a TCP-to-DALI interface, an RS 485-to-DALI interface, an RS 232-to-DALI interface, a UART-to-DALI interface and the like. The control interface usually only completes the forwarding of the underlying bus data, and the central control host, the protocol gateway, the controller, etc. also have the protocol functions of the application layer specified in the DALI standard. The DALI host A1 includes a DALI interface a10, a DALI application controller protocol a20, a configuration interface client a30, and other service logic functions a50. The DALI interface A10 is a transceiver circuit and meets the requirements of a DALI physical layer and a data link layer of a DALI standard; the DALI application controller protocol A20 provides service interfaces for a configuration interface client A30 and other business logic functions A50; the configuration interface client a30 configures the DALI control device CG1 using the DALI application controller protocol a20 and the DALI interface a 10.
The DALI control device CG1 is a control device complying with the DALI standards IEC 62386-101, IEC 62386-102 and IEC 62386-2 xx. The product form of the control device comprises an LED driving power supply, a relay module, a signal converter and the like. The DALI control device CG1 comprises a DALI interface CG10, a DALI control device protocol CG20, a configuration interface server CG30 and other service logic functions CG40. The DALI interface CG10 is a transceiver circuit, and meets the requirements of a DALI physical layer and a data link layer of a DALI standard. The DALI control device protocol CG20 implements data frame detection, command codec of the control device required by the DALI standard, and also supports commands, variables, and memory areas defined in general and extended requirements of the control device, above the DALI interface CG 10. The DALI control device protocol CG20 provides service interfaces for the configuration interface server CG30 and other business logic functions CG40, and supports the reception of "DAPC (level)" commands required by the configuration interface. The configuration interface server CG30 calls a service interface of a DALI control device protocol CG20 to receive an ASCII text string or a binary byte stream which is sent to a DALI control device CG1 by a configuration interface client A30, and performs data analysis and executes a corresponding configuration command; the other service logic function C40 implements other service logic functions of the DALI control apparatus CG1, specifically defined by the product type and the functional specification of the DALI control apparatus CG1, to which the present invention is not limited.
The DALI control device CG1 receives successive multi-byte data of the DALI host A1 by its standard command DAPC (level).
In use, a number of DALI hosts A1 and a number of DALI control devices CG1 are connected via a DALI bus, on which a DALI bus power supply and a DALI control apparatus CD1 may also be present. The forward frames of the communication between the DALI host A1 and the plurality of DALI control devices CD1 are 24-bit, the forward frames of the communication between the DALI host A1 and the plurality of DALI control devices CG1 are 16-bit, the data frame formats of the two are different, and the addressing spaces of the DALI control devices CD1 and the DALI control devices CG1 are independent. The present invention is not particularly limited, and only one DALI master A1 and several DALI control apparatuses CG1 are described as an example.
The configuration interface server CG30 receives the continuous byte data of the configuration interface client a30, the maximum length of the continuous byte data is set by the configuration interface server CG30 and the configuration interface client a30, and the typical value is 127 according to the general practical application requirement. Since the rate of DALI transmission is low, excessively long data will result in transmission times of up to several seconds and become impractical, although the theoretical length is limited only by the size of the internal processor operating RAM of the DALI master A1 and the DALI control devices CG 1.
To implement the configuration interface proposed by the present invention, the configuration interface client a30 should provide the capability to encode ASCII text strings or binary bytes in a suitable form and then convert them into a continuous "DAPC (level)" control command sequence via the underlying service interface to be sent to the configuration interface server CG30.
As shown in fig. 3, consecutive byte data transmitted between the configuration interface client a30 and the configuration interface server CG30 is F300, where the F300 is formed by levels in a consecutive sequence of standard commands DAPC (level). The standard command DAPC (level) is 16-bit data, wherein the high 8-bit comprises addressing information defined by the DALI standard, the low 8-bit data is a level value, and the range of the level value is 0-255. Defining the interval T1 between the continuous transmitted DAPC (level) command sequences on the DALI bus, and the interval T2 between the DAPC (level) command sequences in the data frame. The configuration interface proposed by the present invention requires that T1 be greater than T1_ Min, T2 be less than T2_ Max, the typical value of T1_ Min is 150ms, and the typical value of T2 \/Max is 75ms.
As shown in fig. 3, in order to avoid that a "DAPC (level)" sequence on the DALI bus erroneously triggers the configuration interface of the DALI control apparatus during normal use, a Preamble F301 is set for the F300 byte data stream to identify the start of the configuration interface data stream, where the Preamble F301 includes a characteristic data sequence of 4 bytes or more, such as 6 bytes ASCII code corresponding to the character string "DAPCFG". To distinguish between Preamble F301 and normal data frames, a single byte length Frame Start Delimiter (SFD), such as the 16-ary value 0xAA, is defined inside the F300 byte data stream after the Preamble F301. To identify the data frame length, the length of the payload in the data frame is defined as F303 in F300, where F303 is typically ≧ 1 byte of data, the value of which identifies the length of the payload in the data frame. F304 is defined as the payload, the length of which is identified by F303. F305 is defined as a Frame Check Sequence (FCS), and generally adopts a data checking algorithm such as an exclusive-or checksum or CRC (cyclic redundancy Check), etc. to ensure the integrity of the data Frame, and the length of the data Frame is usually 1 to 4 bytes.
The continuous byte Data transmitted between the configuration interface client a30 and the configuration interface server CG30 further includes a Protocol Data Unit (PDU) F400, where the Protocol Data Unit (PDU) F400 is equivalent to an F304 payload part in a legal F300 byte Data stream, and the format and meaning of the PDU may be defined according to actual applications. For example, a first byte of a Protocol Data Unit (PDU) F400 is defined as a Function Code (Function Code), and 1 byte of Data, and the remaining bytes are Data (Data), and the length of the Data (Data) is related to the value of the Function Code. This makes it possible to form a basic configuration interface for the control and parameter setting of the DALI control apparatus CG1 by the DALI master A1.
The numerical value, function and data format of the function code are defined as follows:
(1) 0x00: reset, reset device to factory setting, data is null at this time.
(2) 0x01: moveToLevel, output brightness adjustment, data is 3 bytes long. Byte0 represents target brightness (TargetLevel), represents target output brightness proportion of 8-bit precision, and has a value range of 0-255, wherein 0-254 corresponds to 0-100%, 0 represents 0% close, 254 represents 100%, and 255 represents output brightness unchanged and is only used for stopping gradual change; byte2 and Byte3 are high and low bytes of 16-bit transition time (TransitionTime), and represent that the value range is 0-65535, and the unit is 100ms.
(3) 0x80: setOEMINfo, sets OEM information, and Data is 14 bytes long. Byte 0-5 are OEM GTIN data of the DALI control device MemoryBank 1, and Byte 6-13 are OEM identification number data defined by the DALI control device MemoryBank 1.
The above functions have described that the method for configuring the interface according to the present invention is used by defining the Data format of the Protocol Data Unit (PDU) F400, and in practical applications, the Protocol Data Unit (PDU) F400 may also be defined to be coded only by ASCII, and at this time, the DALI host A1 may add a human interface, provide a text command input mode friendly to manual operation, and send the text command to the configuration interface server CG30 through the configuration interface client a 30. The configuration interface server CG30 parses the text command and performs the corresponding operation.
All functions may be implemented in the above embodiments, or a part of the functions may be implemented as necessary.
It should be noted that the various features described in the above embodiments may be combined in any suitable manner without departing from the scope of the invention. The invention is not described in detail in order to avoid unnecessary repetition.

Claims (9)

1. A simple equipment configuration interface based on a DALI protocol is characterized in that: the DALI control system comprises a DALI host A1, a DALI control device CG1, a DALI bus power supply and a DALI bus, wherein the DALI host A1, the DALI control device CG1 and the DALI bus power supply are connected through the DALI bus;
the DALI host A1 comprises a DALI interface A10, a DALI application controller protocol A20, a configuration interface client A30 and other service logic functions A50;
the DALI control device CG1 comprises a DALI interface CG10, a DALI control device protocol CG20, a configuration interface server CG30 and other service logic functions CG40;
the DALI control device CG1 receives consecutive multi-byte data of the DALI host A1.
2. The DALI protocol-based device easy configuration interface of claim 1, wherein: the DALI interface A10 is a transceiver circuit and meets the requirements of a DALI physical layer and a data link layer of a DALI standard; the DALI application controller protocol A20 provides service interfaces for a configuration interface client A30 and other business logic functions A50; the configuration interface client a30 configures the DALI control device CG1 using the DALI application controller protocol a20 and the DALI interface a 10.
3. The DALI protocol-based device easy configuration interface of claim 1, wherein: the DALI interface CG10 is a transceiver circuit, and meets the requirements of a DALI physical layer and a data link layer of a DALI standard; the DALI control device protocol CG20 provides service interfaces for a configuration interface server CG30 and other business logic functions CG40; the configuration interface server CG30 calls a service interface of the DALI control device protocol CG20 to receive continuous multi-byte data sent by the configuration interface client a30 to the DALI control device CG1, and performs data parsing and executes a corresponding configuration command.
4. The DALI protocol-based device easy configuration interface of claim 1, wherein: the DALI control device CG1 receives successive multi-byte data of the DALI host A1 by its standard command DAPC (level).
5. The DALI protocol-based device easy configuration interface of claim 4, wherein: the configuration interface server CG30 receives the continuous byte data of the configuration interface client a30, and the length of the continuous byte data is set by the configuration interface server CG30 and the configuration interface client a 30.
6. A DALI protocol based device easy configuration interface as claimed in any one of claims 4 or 5, wherein: the continuous byte data transmitted between the configuration interface client a30 and the configuration interface server CG30 is F300, where the F300 is formed by continuously transmitting levels in a DALI control apparatus standard command DAPC (level) sequence.
7. The DALI protocol-based device easy configuration interface of claim 6, wherein: the standard command DAPC (level) is 16-bit data, wherein the high 8-bit comprises addressing information defined by DALI standard, the low 8-bit data is a level value, and the range of the level value is 0-255.
8. The DALI protocol-based device easy configuration interface of claim 6, wherein: setting Preamble (Preamble) F301, defining the length of an effective data load in a data Frame as F303, the effective data load as F304, and a Frame Check Sequence (FCS) as F305 for the F300; the Preamble F301 includes a signature data sequence of 4 bytes or more; f303 is more than or equal to 1 byte of data; the F305 employs a data verification algorithm, which is typically 1 to 4 bytes in length.
9. A DALI protocol based device easy configuration interface as claimed in any one of claims 4 or 5, wherein: the continuous byte Data transmitted between the configuration interface client a30 and the configuration interface server CG30 further includes a Protocol Data Unit (PDU) F400, and the format and meaning of the PDU F400 are defined by application.
CN202211355348.3A 2022-11-01 2022-11-01 Simple equipment configuration interface based on DALI protocol Pending CN115695516A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211355348.3A CN115695516A (en) 2022-11-01 2022-11-01 Simple equipment configuration interface based on DALI protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211355348.3A CN115695516A (en) 2022-11-01 2022-11-01 Simple equipment configuration interface based on DALI protocol

Publications (1)

Publication Number Publication Date
CN115695516A true CN115695516A (en) 2023-02-03

Family

ID=85048304

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211355348.3A Pending CN115695516A (en) 2022-11-01 2022-11-01 Simple equipment configuration interface based on DALI protocol

Country Status (1)

Country Link
CN (1) CN115695516A (en)

Similar Documents

Publication Publication Date Title
US7233745B2 (en) Field device configured for wireless data communication
US20040225811A1 (en) Digital addressable lighting interface bridge
US10098205B2 (en) Configurable lighting devices under broadcast control
US11146425B2 (en) IO-link device
CN100383544C (en) Method and apparatus for real-time monitoring level signal
CN115695516A (en) Simple equipment configuration interface based on DALI protocol
JP2003151780A (en) Lighting-control receiving device, lighting-control transmitting device, and lighting control system
US11397693B2 (en) Peripheral device, system including the peripheral device and method
CN113115500A (en) Indicator lamp with position information
CN102118899B (en) Method for controlling lamp by using LED light control bus
CN108983740A (en) A kind of wireless telecommunication system
Kung et al. Lighting Detection System using Standard Interface with Power and Communication Separation Technology
CN111818699B (en) Control method and control circuit of RGB-LED light source
CN209643046U (en) A kind of DALI controller for supporting scene to extend
US11889607B2 (en) Lighting control system using pulsed power and single pair ethernet
RU216186U1 (en) TELEMETRY AND STREET LIGHT CONTROL DEVICE
CN218213857U (en) Multifunctional intelligent device for internet of things
CN219305078U (en) Light source control system, light source controller and main controller
US20240130026A1 (en) Load Power Control System Using Fault Managed Power and Single Pair Ethernet
KR100657468B1 (en) Home Network System
KR100353880B1 (en) Serial lamp drive method in mosaic system
CN115695517A (en) High-speed digital dimming interface compatible with DALI transceiver
CN117591461A (en) Method for realizing RDM protocol by USB (universal serial bus) to serial port
CN117500106A (en) Electronic ballast with IIC digital interface
CN103491686B (en) A kind of LED lamp Control on Communication bridger and debugging collocation method thereof

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