CN113900981A - DALI-based interactive interface - Google Patents

DALI-based interactive interface Download PDF

Info

Publication number
CN113900981A
CN113900981A CN202111255783.4A CN202111255783A CN113900981A CN 113900981 A CN113900981 A CN 113900981A CN 202111255783 A CN202111255783 A CN 202111255783A CN 113900981 A CN113900981 A CN 113900981A
Authority
CN
China
Prior art keywords
dali
interactive interface
interface
host
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
CN202111255783.4A
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 CN202111255783.4A priority Critical patent/CN113900981A/en
Publication of CN113900981A publication Critical patent/CN113900981A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • 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]
    • 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/175Controlling the light source by remote control
    • H05B47/18Controlling the light source by remote control via data-bus transmission
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

A DALI-based interactive interface, comprising: the method comprises the following steps: the system comprises a DALI host A1, a DALI device C1 and a remote interactive interface client B10, wherein the DALI host A1 and the DALI device C1 are connected through a DALI bus; the remote interactive interface client B10 communicates via DALI host a1 and DALI device C1. The present invention implements an interface protocol between a DALI host and DALI devices similar to a computer console command line by using a DALI bus, where a user can interact with the DALI devices on the bus using textual command lines over an input-output interface provided by the DALI host. The method can avoid the defect that the functions are limited in a graphical interface form and the data input by a user and returned by the display equipment cannot be flexibly received, also solves the problem that when the DALI bottom layer original command and the DALI equipment are completely used for communication interaction, the input information and the return information are binary transmission data on the bus, and is extremely unfriendly to people, and is simple to operate, convenient and fast.

Description

DALI-based interactive interface
Technical Field
The invention relates to the technical field of intelligent lighting control, in particular to an interactive interface based on DALI.
Background
DALI (Digital Addressable Lighting Interface) is a Lighting standard defined by IEC62386, 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 be used for both supplying power to devices on the bus (the bus power supply current is 250mA at most) and for transmission of communication signals, and the wiring distance of the farthest device on the same DALI bus is not more than 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 control devices or control equipment defined in the IEC62386 standard, while also supporting the general requirements of control devices or control equipment 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 typically taken when testing, debugging or deploying DALI products, or specific commands are sent to the DALI bus by a host, gateway, Controller or protocol interface (e.g., USB to DALI) device with Application Controller (Application Controller) capability on the bus, to let the device perform some action, set or read variable values, read or write memory areas, etc. 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, in the current DALI standard, new functional characteristics are not evolved synchronously in different types of products applied to the DALI system during the continuous evolution and iteration. For example, when DALI LED lamps supporting color temperature adjustment are on the market, hosts and gateways of many 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 hosts and gateways actually control the color temperature of the lamps without configuring color temperature range parameters of the lamps (such as physical color temperatures of LED cold and warm beads) during the operation of the final project, these lamp light sources and LED drivers still need to be properly configured for parameter matching, and the color temperature displayed by the lamps is not consistent with the color temperature controlled by the hosts.
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, 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 each other across manufacturers.
Disclosure of Invention
The technical scheme adopted by the invention is as follows: a DALI-based interactive interface, comprising: a DALI-based interactive interface, comprising: the method comprises the following steps: a DALI host a1, a DALI device C1 and a remote interactive interface client B10, the DALI host a1 and the DALI device C1 being connected via a DALI bus, the remote interactive interface client B10 being run in an external device B1 connected to a 1; the remote interactive interface client B10 communicates via DALI host a1 and DALI device C1.
The device B1 may be capable of communication connectivity, such as a computer, mobile device or any other device capable of communication connectivity.
Further, the DALI host a1 is an application controller or control interface that complies with DALI standards IEC 62386-101 and IEC 62386-103.
The application controller is any one of a central control host, a protocol gateway and a controller, or the combination of the three; the control interface is any one or the combination of more than one of a USB-to-DALI interface, a TCP-to-DALI interface, an RS 485-to-DALI interface, an RS 232-to-DALI interface and a UART-to-DALI interface. 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.
Further, the DALI equipment C1 is a control device meeting the DALI standards IEC 62386-101, IEC 62386-102 and IEC62386-2xx or a control device meeting the DALI standards IEC 62386-101, IEC 62386-103 and IEC62386-3 xx.
The control device comprises an LED driving power supply, a relay module and a signal converter; the control device comprises an input switch coupler, a light intensity sensor and a presence sensor.
Furthermore, a DALI bus power supply is also arranged on the DALI bus.
Further, the DALI host a1 includes at least one of a DALI interface a10, a DALI application controller protocol a20, a local interactive interface client a30, and a "protocol gateway translation or interface forwarding service" a40, and other service logic functions a 50.
The DALI interface a10 is a transceiver circuit that conforms to the DALI physical layer and data link layer requirements of the DALI standard.
The DALI application controller protocol a20 implements data frame detection, command encoding and decoding of application controller device types required by the DALI standard over the DALI interface a10, and also supports command transceiving and variable, storage area data reading and writing in general and extended requirements on control devices and control devices in the DALI standard. The DALI application controller protocol a20 provides service interfaces for upper layer service and application requirements, such as local interactive interface service a30, protocol gateway translation or interface forwarding service a40, and other service logic functions a 50.
The local interaction client a30 can interact directly using the DALI application controller protocol a20 of a1 and the more underlying DALI interface a10 and device C1 on the DALI bus.
The protocol gateway conversion or interface forwarding service a40 provides a service interface for the remote interactive interface client B10, the specific protocol or interface supported by the protocol gateway conversion or interface forwarding service a40 is defined by the product specification of the DALI host a1, the common protocols include KNX, BACnet, MODBUS, zigbee, LonMark, etc., the common interfaces include TCP/IP, USB, RS485, RS232, UART, etc., the protocol and interface differences mainly lie in that the protocol generally includes more upper layer function definitions than the interface, and the interface only implements basic data forwarding. The "protocol gateway translation or interface forwarding service" a40 may support multiple protocols or interfaces simultaneously. The remote interactive interface client B10 calls DALI application controller protocol a20 and DALI interface a10 through "protocol gateway translation or interface forwarding service" a40 to interact with device C1 on the DALI bus.
Further, the DALI device C1 includes a DALI interface C10, a DALI control apparatus or DALI control device protocol C20, an interactive interface server C30, and other service logic functions C40.
The DALI interface C10 is a transceiver circuit that conforms to the DALI physical layer and data link layer requirements of the DALI standard, as does the DALI interface a 10.
The DALI control apparatus or DALI control device protocol C20 implements data frame detection, command encoding and decoding of control apparatuses or control devices required by the DALI standard over the DALI interface C10, and also supports commands, variables and memory areas defined in the general and extended requirements of the control apparatuses or control devices. The DALI control apparatus or DALI control device protocol C20 specifically supports which device type is determined by the product type and specification requirements, and the present invention is not limited. The DALI control apparatus or DALI control device protocol C20 provides an interface for upper layer services, at least two storage areas MB-RX and MB-TX required for interactive interfaces, to be supported for text data exchange between the interactive interface server C30 and the interactive interface client (local interactive client a30 or remote interactive interface client B10).
The interactive interface server C30 calls the service interface of the underlying DALI control apparatus or control device protocol C20 to obtain the text data sent by the interactive interface client (local interactive client a30 or remote interactive interface client B10) to C1, and returns the processed return data to the interactive interface client (local interactive client a30 or remote interactive interface client B10) through the service of the DALI control apparatus or control device protocol C20.
The other service logic function C40 implements other service logic functions of the DALI device C1, specifically defined by the product type and the functional specification of the DALI device C1, to which the invention is not limited.
Further, the interactive interface adopts a storage area (Memory Bank) and a standard command for reading and writing the storage area, which are defined in DALI standards IEC 62386-102 and IEC 62386-103 of the control device and the control equipment.
This standard command is employed to enable DALI device C1 to receive consecutive multi-byte data for DALI host a1 and return consecutive multi-byte data waiting for a DALI host a1 read.
Further, the standard command includes: "READ MEMORY LOCATION (DTR1, DTR 0)", "WRITE MEMORY LOCATION (DTR1, DTR0, data)", "WRITE MEMORY LOCATION-NO REPLY (DTR1, DTR0, data)" and "ENABLE WRITE MEMORY".
The "READ MEMORY LOCATION (DTR1, DTR 0)" refers to reading data at a specified LOCATION in a MEMORY Bank, the DTR1 stores a MEMORY Bank number, the DTR0 stores a data LOCATION in the MEMORY Bank, and the DALI control apparatus or the control device should return data.
The "WRITE MEMORY LOCATION (DTR1, DTR0, data)" means that data is written to a MEMORY Bank specified LOCATION, DTR1 specifies a MEMORY Bank number, DTR0 specifies a data LOCATION in the MEMORY Bank, data is the data to be written, and the DALI control apparatus or control device should return the data to be written as confirmation after the writing is successful.
The "WRITE MEMORY LOCATION-NO REPLY (DTR1, DTR0, data)" means that data is written to a MEMORY Bank specified LOCATION, but does not require a REPLY.
The "ENABLE WRITE MEMORY": it means that the control means and the control device are required to allow the memory area to be written.
Further, the DALI host a1 and the DALI device C1 exchange text data through the storage area MB-RX and the storage area MB-TX selected in the vendor-defined area.
Specifically, the interactive interface client (local interactive client a30 or remote interactive interface client B10) calls "READ MEMORY LOCATION (DTR1, DTR 0)" to query whether DALI control device protocol C20 supports the interactive interface, and WRITEs the MEMORY LOCATION (DTR1, DTR0, data) "continuously to the MB-RX of the interactive interface server C30, and then uses" READ MEMORY LOCATION (DTR1, DTR0) "to query the return data status of the MB-RX of the interactive interface server C30, and further continuously calls" READ MEMORY LOCATION (DTR1, DTR0) "to obtain the MB-data of the TX 30 of the interactive interface server C30 if the status bit.
Further, the text data is ASCII encoded.
The text data length limit is agreed by both parties, and is typically 127 according to general practical application requirements. Since DALI transmission rates are low, excessively long data will result in transmission times of up to several seconds and become impractical, although theoretical length limits can be set to over 1024.
Has the advantages that: compared with the prior art, the invention realizes an interface protocol similar to a command line of a computer console between the host and other DALI devices by utilizing the DALI bus, and a user can interact with the DALI devices on the bus by using a text-type command line on an input-output interface provided by the host. The method can avoid the defect that the functions are limited in a graphical interface form and the data input by a user and returned by the display equipment cannot be flexibly received, also solves the problem that when the DALI bottom layer original command and the DALI equipment are completely used for communication interaction, the input information and the return information are binary transmission data on the bus, and is extremely unfriendly to people, and is simple to operate, convenient and fast.
Drawings
FIG. 1 is a schematic diagram of an application of a DALI master and a DALI device according to the present invention;
FIG. 2 is a schematic diagram of the service connections of a DALI host, a DALI device and a remote interactive client in accordance with the present invention;
fig. 3 is a schematic diagram of the connection between a remote interactive interface client and a protocol gateway or interface forwarding service according to the present invention.
Detailed Description
In order that the invention may be more fully understood, reference will now be made 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.
The interactive interface proposed by the present invention is independent of the number of DALI hosts a1, DALI devices C1 or DALI bus power supplies, and therefore only one DALI host a1 and one DALI device C1 are exemplified below without specific mention.
When the interactive interface is realized, a local interactive interface client A30 (or a remote interactive interface client B10) and an interactive interface server C30 are added based on the existing compliant DALI host A1 and DALI device C1, and an appropriate data receiving and sending storage area interface is selected in a DALI control device protocol C20 to realize text data exchange according to the following flow.
As shown in the accompanying drawings, a DALI-based interactive interface comprises: the system comprises a DALI host A1, a DALI device C1 and a remote interactive interface client B10, wherein the DALI host A1 and the DALI device C1 are connected through a DALI bus, and a DALI bus power supply is further arranged on the DALI bus. The remote interactive interface client B10 is running in an external device B1 connected to a 1; the remote interactive interface client B10 communicates via DALI host a1 and DALI device C1. The external device B1 has a communication connection function, such as a computer, a mobile device or any other device with communication connection capability.
The DALI host A1 is an application controller or control interface which conforms to the DALI standards IEC 62386-101 and IEC 62386-103. The application controller is any one of a central control host, a protocol gateway and a controller, or the combination of the three; the control interface is any one of a USB-to-DALI interface, a TCP-to-DALI interface, an RS 485-to-DALI interface, an RS 232-to-DALI interface and a UART-to-DALI interface.
The DALI equipment C1 is a control device which conforms to the DALI standards IEC 62386-101, IEC 62386-102 and IEC62386-2xx or a control device which conforms to the DALI standards IEC 62386-101, IEC 62386-103 and IEC62386-3 xx. The product form of the control device comprises an LED driving power supply, a relay module, a signal converter and the like; the control device includes an input switch coupler, a light level sensor, a presence sensor, and the like in a product form.
The DALI host a1 includes at least one of a DALI interface a10, a DALI application controller protocol a20, a local interactive interface client a30, and a "protocol gateway translation or interface forwarding service" a40, and other service logic functions a 50.
The DALI device C1 includes a DALI interface C10, a DALI control apparatus or DALI control device protocol C20, an interactive interface server C30, and other service logic functions C40.
The interactive interface adopts the storage area (Memory Bank) and the standard command of the read-write of the storage area defined by DALI standards IEC 62386-102 and IEC 62386-103 in the control device and the control equipment to realize that the C1 receives the continuous multi-byte data of the a1 and returns the continuous multi-byte data to wait for the a1 to read, and according to the implementation requirement, a typical mode is to select 2 storage areas as the receiving and sending data buffers of the DALI equipment C1. The Memory area used by the interactive interface provided by the invention is defined in a manufacturer-defined area Memory Bank 2-199 specified by a DALI standard, typically, the Memory Bank 137 in a DALI control equipment protocol C20 protocol is selected as a receiving Memory area MB-RX of an interactive interface server C30, and the Memory Bank 138 in a DALI control equipment protocol C20 protocol is selected as a sending Memory area MB-TX of an interactive interface server C30.
The standard commands include: "READ MEMORY LOCATION (DTR1, DTR 0)", "WRITE MEMORY LOCATION (DTR1, DTR0, data)", "WRITE MEMORY LOCATION-NO REPLY (DTR1, DTR0, data)" and "ENABLE WRITE MEMORY".
The DALI host a1 and DALI device C1 exchange text data through the storage area MB-RX and the storage area MB-TX selected in the vendor-defined area.
Specifically, the local interaction client a30 (or the combination of the remote interaction interface clients B10 and a 40) calls "READ MEMORY LOCATION (DTR1, DTR 0)" through the DALI application controller protocol a20 to inquire whether the DALI control device protocol C20 supports the interaction interface, and WRITEs the MEMORY LOCATION (DTR1, DTR0, data) "with" WRITE MEMORY LOCATION "to continuously WRITE data to the MB-RX of the interaction interface server C30, and then further continuously calls" READ MEMORY LOCATION (DTR1, DTR0) "to inquire the return data status of the MB-TX of the interaction interface server C30, and if the status bit is ready, further continuously calls" READ MEMORY LOCATION (DTR1, DTR0) "to acquire the MB-TX data of the interaction interface server C30.
The text data is ASCII encoded. The interactive interface proposed by the present invention does not limit the type of text data transmitted between a30 (or remote interactive interface client B10) and the interactive interface server C30 and the interpretation of the meaning of the text data content by the sending and receiving parties, which can typically be used for control, status query and parameter setting of DALI devices C1.
In the exemplary embodiment shown in fig. 2, Memory Bank 137 of C20 is selected as receive Memory MB-RX of C30, and Memory Bank 138 of C20 is selected as transmit Memory MB-TX of C30.
The flow of sending text data by the local interaction client a30 (or the combination of the remote interaction interface clients B10 and a 40) to C1 via DALI application controller protocol a20 is as follows:
p400: using the command "READ MEORY LOCATION (DTR1, DTR 0)" to try to READ whether the MB-RX storage area DASH-MAGIC data of C1 exists, which indicates whether C1 supports the interactive interface proposed by the present invention, typically the DASH-MAGIC is 4 byte character ═ DASH, and the LOCATION is at [0x03,0x06 ]. If C1 supports the interactive interface proposed by the present invention, the next step is performed, otherwise the user or the remote interactive interface client is prompted for an error.
P401: a command "ENABLE WRITE MEMORY" is sent to C1 to cause it to open a MEMORY WRITE.
P402: a command "WRITE MEMORY LOCATION (DTR1, DTR0, data)" is sent to C1 to WRITE the text data input by the user to the MB-RX-BUF area of the MB-RX storage area, which is located at [0x07,0xFE ], and 248 bytes in length, so that the maximum length MB-RX-LEN-MAX for a single continuous WRITE is 248 bytes. A1 should add an ASCII control character EOT (0x04) at the end of all text transmissions, indicating the end of all text transmissions, informing C1 to process the text content.
P403: if a1 needs to transmit more than MB-RX-LEN-MAX, a1 should divide the transmit DATA into multiple transmit DATA BLOCKs MB-RX-DATA-BLOCK that do not exceed MB-RX-LEN-MAX, and insert an ASCII control character ETB (0x17) at the end of the non-last MB-RX-DATA-BLOCK to indicate that the transmission of one DATA BLOCK is over but there is other DATA, requiring C1 to copy the MB-RX-BUF region valid DATA to an internal other buffer to wait for the next MB-RX-DATA-BLOCK to be received. A1 will repeat the process of P402 until all text data has been sent.
P404: after the A1 finishes sending the data, the step of checking the return state and data of the receiving C1 can be transferred.
In the above flow, a1 may be executed only once for partial steps such as P400 to cache the state result for efficiency.
Although the above flow takes a single C1 device as an example, the practical application may also send text data to a plurality of C1 devices simultaneously in a multicast or broadcast manner according to the addressing manner of the DALI system, but in order to ensure the correct sending, the following changes need to be made to the flow:
p500: the multicast or broadcast object should be supported by the device for the interactive interface in a unicast manner in advance according to the P400 step, and if none of the target devices supports the DASH interface, the subsequent steps may be terminated and an error prompt may be returned to the user.
P501: and P401.
P502: instead of writing data to the MB-RX MEMORY areas of the plurality of C1 devices with "WRITE MEMORY LOCATION-NO REPLY (DTR1, DTR0, data)", it is not necessary to check the return results of the commands, because the return results of the commands of the plurality of devices may collide on the bus and become meaningless.
The flow of the local interaction client a30 (or the combination of the remote interaction interface clients B10 and a 40) querying and receiving text data from C1 via DALI application controller protocol a20 is as follows:
p600: an attempt is made to READ the MB-TX MEMORY area MB-TX-STATUS data of C1, which indicates the return data STATUS of the current C1, using "READ MEMORY LOCATION (DTR1, DTR 0)". Typically, the MB-TX-STATUS is 1 byte in length and is located at [0x03] of MB-TX, a value of 0x00 indicates that the returned data is null (MB-TX-EMPTY), 0xFF indicates that the returned data is READY (MB-TX-READY), and other values may also be used to indicate that the returned data is waiting (MB-TX-PENDING), that the returned data is erroneous (MB-TX-ERROR), and so on. If MB-TX-STATUS is ready, execution P601 reads more return data. If MB-TX-STATUS is empty, the local interaction client A30 (or the combination of remote interaction interface clients B10 and A40) may decide to re-execute sending text data or continue retrying P600 on its own as needed. If MB-TX-STATUS is pending, the local interaction client A30 (or the combination of remote interaction interface clients B10 and A40) should continue to retry P600. The present invention is not limited to the way the coded meanings of MB-TX-STATUS listed above have been processed accordingly.
P601: if a command "READ MEMORY LOCATION (DTR1, DTR 0)" is sent to C1 to READ user-entered text data from the MB-TX-BUF area of the MB-TX bank, the LOCATION of the area is typically [0x04,0xFE ], and the length is 251 bytes, so that the maximum length MB-TX-LEN-MAX for a single continuous READ is 251 bytes. C1 should add an ASCII control character EOT (0x04) at the end of all text transmissions, indicating the end of all text transmissions, informing the local interaction client a30 (or the combination of remote interaction interface clients B10 and a 40) to process the text content.
P602: if a1 needs to transmit more than MB-RX-LEN-MAX, a1 should divide the transmission DATA into a number of transmission DATA BLOCKs MB-RX-DATA-BLOCK not exceeding MB-RX-LEN-MAX, and insert an ASCII control character ETB (0x17) at the end of the non-last MB-RX-DATA-BLOCK to indicate the end of transmission of one DATA BLOCK, requiring C1 to copy the MB-RX-BUF region valid DATA to an internal other buffer to wait for the next DATA BLOCK to be received. A1 will repeat the process of P402 until all text data has been sent.
P603: after the A1 finishes sending the data, the step of checking the return state and data of the receiving C1 can be transferred.
The local interaction client A30 (or the combination of the remote interaction interface clients B10 and A40) may define text commands as follows:
"ON": opening device
OFF: closing device
"UP": raising and brightening the output level or brightness of C1
"DOWN": dimming, dimming the output level or brightness of C1
The following text commands may also be defined to query for status:
"STATUS? ": inquiring about the state of C1, C1 returns "OK" indicating that the state is normal.
"LEVEL? ": the output level or brightness level of C1 is queried, and C1 returns a "100" indicating an output level or brightness level of 100.
The following text commands may also be defined for setting parameters:
"MINLEVEL ═ 86": the minimum output level or brightness level of C1 is set to 86, and C1 should return "OK" after the setting is successful.
"powerneway ═ 350": the power-on delay of the C1 is set to 350ms, and the C1 should return OK after the setting is successful.
The format and meaning of the text command are defined by the product, and the product only needs to provide a description to a user, referring to a general design mode of a computer console command or a common terminal interaction interface AT command.
Therefore, the interactive interface provided by the invention is a man-machine-friendly universal interactive interface, has wide application flexibility, and has the possibility of forming a new industry standard by matching with upper layer specific command definitions.
The man-machine friendly interactive mode greatly liberates the productivity of research and development, production test and engineering deployment, establishes a new text data exchange path based on clear semantics on the basis of DALI binary data exchange, and has great innovation and application value.
In the above embodiments, all functions may be implemented, 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 (10)

1. A DALI-based interactive interface, comprising: the method comprises the following steps: a DALI host a1, a DALI device C1 and a remote interactive interface client B10, the DALI host a1 and the DALI device C1 being connected via a DALI bus, the remote interactive interface client B10 being run in an external device B1 connected to a 1; the remote interactive interface client B10 communicates via DALI host a1 and DALI device C1.
2. The DALI-based interactive interface as claimed in claim 1, wherein: the DALI host A1 is an application controller or control interface which conforms to the DALI standards IEC 62386-101 and IEC 62386-103.
3. The DALI-based interactive interface as claimed in claim 1, wherein: the DALI equipment C1 is a control device which conforms to the DALI standards IEC 62386-101, IEC 62386-102 and IEC62386-2xx or a control device which conforms to the DALI standards IEC 62386-101, IEC 62386-103 and IEC62386-3 xx.
4. The DALI-based interactive interface as claimed in claim 1, wherein: and a DALI bus power supply is also arranged on the DALI bus.
5. A DALI-based interactive interface as claimed in claim 1 or 2, wherein: the DALI host a1 includes at least one of a DALI interface a10, a DALI application controller protocol a20, a local interactive interface client a30, and a "protocol gateway translation or interface forwarding service" a40, and other service logic functions a 50.
6. A DALI-based interactive interface as claimed in claim 1 or 3, wherein: the DALI device C1 includes a DALI interface C10, a DALI control apparatus or DALI control device protocol C20, an interactive interface server C30, and other service logic functions C40.
7. The DALI-based interactive interface as claimed in claim 1, wherein: the interactive interface adopts the control device and the control equipment DALI standards IEC 62386-102 and IEC 62386-103 to define the Memory area (Memory Bank) and the standard commands of Memory area read-write.
8. The DALI-based interactive interface as claimed in claim 7, wherein: the standard commands include: "READ MEMORY LOCATION (DTR1, DTR 0)", "WRITE MEMORY LOCATION (DTR1, DTR0, data)", "WRITE MEMORY LOCATION-NO REPLY (DTR1, DTR0, data)" and "ENABLE WRITE MEMORY".
9. The DALI-based interactive interface as claimed in claim 1, wherein: the DALI host a1 and DALI device C1 exchange text data through the storage area MB-RX and the storage area MB-TX selected in the vendor-defined area.
10. The DALI-based interactive interface as claimed in claim 9, wherein: the text data is ASCII encoded.
CN202111255783.4A 2021-10-27 2021-10-27 DALI-based interactive interface Pending CN113900981A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111255783.4A CN113900981A (en) 2021-10-27 2021-10-27 DALI-based interactive interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111255783.4A CN113900981A (en) 2021-10-27 2021-10-27 DALI-based interactive interface

Publications (1)

Publication Number Publication Date
CN113900981A true CN113900981A (en) 2022-01-07

Family

ID=79026604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111255783.4A Pending CN113900981A (en) 2021-10-27 2021-10-27 DALI-based interactive interface

Country Status (1)

Country Link
CN (1) CN113900981A (en)

Similar Documents

Publication Publication Date Title
US5519878A (en) System for installing and configuring (grouping and node address assignment) household devices in an automated environment
CA2330693C (en) Control system, display, host computer for control, and data transmitting method
US20160205066A1 (en) Unique device address assignment technique for bidirectional daisy chain system
US11146425B2 (en) IO-link device
US20110238188A1 (en) Engineering tool
JPH1083375A (en) Scsi system
US10484198B2 (en) Function connection unit comprising a parameter memory
CN108254125A (en) The batch Full-automatic temperature compensation system of pressure transmitter
CN113900981A (en) DALI-based interactive interface
CN108512907B (en) Semi-transparent transmission equipment communication method
US8922349B2 (en) Control circuit, system for operating a device and device for programming such a control circuit
US20080222404A1 (en) In-system programming system and method for motherboard
CN107748669B (en) Software upgrading device
CN202035188U (en) LED (Light-Emitting Diode) intelligent control system
CN205810090U (en) A kind of spatial light modulator device of controlled in wireless
CN108449117B (en) Internet of things system based on PLC and network access method
CN102098837A (en) Lighting control system
US7349996B2 (en) Method and system for remote management of data over a wireless link
EP4080298A1 (en) Plc analog module comprising hart pass-through interface
CN115695516A (en) Simple equipment configuration interface based on DALI protocol
CN106603399B (en) BACnet/IP-DALI gateway communication method
CN103491686B (en) A kind of LED lamp Control on Communication bridger and debugging collocation method thereof
CN114039993B (en) System and method for establishing a data connection between a main unit and at least one device unit
US20090312886A1 (en) Temperature controller system
CN208654570U (en) One kind controlling smart home system based on PLC

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