ENTTEC Pty/Ltd Tel ACN Fax DMX USB Pro Widget API Specification 1.44

Similar documents
ENTTEC Pixie Driver API Specification

dmxusbpro External for Max/MSP

Robe Universal Interface API

FUTURELIGHT RDM PC DIRECTOR

MBP_MSTR: Modbus Plus Master 12

Programming Flash Microcontrollers through the Controller Area Network (CAN) Interface

USER GUIDE EDBG. Description

Modbus Protocol. PDF format version of the MODBUS Protocol. The original was found at:

The Answer to the 14 Most Frequently Asked Modbus Questions

Modbus and ION Technology

Transport Layer Protocols

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

HOST Embedded System. SLAVE EasyMDB interface. Reference Manual EasyMDB RS232-TTL. 1 Introduction

MeshBee Open Source ZigBee RF Module CookBook

DMX USB PRO. User Manual.

SMS Alarm Messenger. Setup Software Guide. SMSPro_Setup. Revision [Version 2.2]

TCP/IP MODULE CA-ETHR-A INSTALLATION MANUAL

ROC Protocol Specifications Manual

Configuration of Kepware OPC Server in PanelMate Configuration Editor

FREQUENTLY ASKED QUESTIONS (FAQs) 123Scan 2 Scanner Configuration Utility 19 April 2011

1.Eastron SDM220Modbus Smart Meter Modbus Protocol Implementation V1.0

User Manual Revision English Converter / Adapter Ethernet to RS232 / RS485 (Order Code: HD HD M HD HD M)

Application Note. Introduction AN2471/D 3/2003. PC Master Software Communication Protocol Specification

Vehicle data acquisition using CAN By Henning Olsson, OptimumG

Software Manual LSeries Manager V1.2 Software Manual June 18, LSeries Manager 1.2. Software Manual

Modbus and ION Technology

4511 MODBUS RTU. Configuration Manual. HART transparent driver. No. 9107MCM100(1328)

BLUETOOTH SERIAL PORT PROFILE. iwrap APPLICATION NOTE

Modicon Modbus Protocol Reference Guide. PI MBUS 300 Rev. J

LED light control using DMX512 control method

IP Link Device Interface Communication Sheet

Module USB-DMX512 and DMX PIPE

DNP Points List and Implementation

Introducing the Adafruit Bluefruit LE Sniffer

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 TUTORIAL OUTCOME 2 Part 1

PMAfob Home Automation Demo

Communications Protocol for Akai APC40 Controller

PM1122 INT DIGITAL INTERFACE REMOTE

MANUAL FOR RX700 LR and NR

Advantech WebAccess Device Driver Guide. BwSNMP Advantech WebAccess to SNMP Agent (Simple Network Management Protocol) Device Driver Guide

Software User Guide UG-461

User Manual For software version 1.00

Virtual Integrated Design Getting started with RS232 Hex Com Tool v6.0

SPROG DCC Decoder Programmer

PC2400 EEPROM PROGRAMMER INSTRUCTION MANUAL

DeviceMaster UP Modbus Controller to Controller Communication

The Secrets of RS-485 Half-duplex Communication

Appendix B RCS11 Remote Communications

1. Introduction Fixture exterior view Connecting the Robe Universal Interface Software update of the fixture...

MiniPlex-41USB NMEA-0183 multiplexer Manual

PROLOGIX GPIB-USB CONTROLLER USER MANUAL VERSION May 14, 2013 PROLOGIX.BIZ

CNC Transfer. Operating Manual

IP Link Device Interface Communication Sheet

2011, The McGraw-Hill Companies, Inc. Chapter 3

PFB366 Profibus-DP Gateway User Manual

xpico User Guide Part Number Revision A April 2012

EtherNet/IP Modbus XPort, NET232, and NET485

UDS1100 User Guide Part Number Revision B June 2006

OVERVIEW Playbacks: Shortcuts: Memories: Data Entry Wheels: Touchpad: Master and Blackout:

USB Card Reader Interface User Manual

BNI IOL K006 BNI IOL K006. IO-Link Sensor-Hub analog User s Guide

Software Manual RS232 Laser Merge Module. Document # SU Rev A

User Manual. AS-Interface Programmer

L Firmware And FPGA Configuration Upgrade

RFID MODULE Mifare Reader / Writer SL025B User Manual Version 1.4 Nov 2012 StrongLink

Modbus ASCII Driver Kepware, Inc.

Part Number Description Packages available

USB232CONV Installation. Version Copyright IFTOOLS GbR

RN-XV-RD2 Evaluation Board

ethernet connection For more information about the printer's ethernet feature, click the topic below: ethernet lights network configuration page

Possum HC2006 SERO! Telephone. Firmware Upgrade and Software Manual firmware version 2.00+

Configuring Switch Ports and VLAN Interfaces for the Cisco ASA 5505 Adaptive Security Appliance

Local Interconnect Network Training. Local Interconnect Network Training. Overview

Software user s manual

IP Link Device Interface Ethernet Communication Sheet

TOE2-IP FTP Server Demo Reference Design Manual Rev1.0 9-Jan-15

APPLICATION NOTE. Atmel AT02985: User s Guide for USB-CAN Demo on SAM4E-EK. Atmel AVR 32-bit Microcontroller. Features. Description.

Configuration of the DHCP server

B&K Precision 1785B, 1786B, 1787B, 1788 Power supply Python Library

Question: 3 When using Application Intelligence, Server Time may be defined as.

CONTROL MICROSYSTEMS DNP3. User and Reference Manual

DAKTON µ BOX MANUAL µbox User Manual 1

Remote Access Server - Dial-Out User s Guide

Future Technology Devices International Ltd. Windows CE Installation Guide

Communication Protocol

[WIR-1186] 865MHz-869MHz Wireless Module(version 3.0) (3.3V)

CANUSB. Manual. November 2011 CANUSB Manual Version 1.0D

To perform Ethernet setup and communication verification, first perform RS232 setup and communication verification:

eztcp Technical Document Modbus/TCP of eztcp Caution: Specifications of this document may be changed without prior notice for improvement.

XPort Device Server User Guide

DVCrypt Conditional Access System

Art-Net 3. Specification for the Art-Net 3 Ethernet Communication Protocol.

Configuration Variables For Digital Command Control, All Scales

Radio Interface Setup

Keystation Pro 88 Advanced Guide. Contents: 1 Getting Started. 2 Terminology. 3 Performance Operations of the Keystation Pro 88

How to setup a serial Bluetooth adapter Master Guide

ACR122 NFC Contactless Smart Card Reader

Technical Support Bulletin Nr.18 Modbus Tips

MODBUS TCP to RTU/ASCII Gateway

Follow these steps to prepare the module and evaluation board for testing.

Transcription:

ENTTEC Pty/Ltd Tel +6 3989 2433 ACN 089 252 79 Fax +63 989 2733 Kew, Vic, 30 DMX USB Pro Widget API Specification.44 Purpose This document specifies the interface requirements for PC based application programs to use the DMX USB Pro Widget to send or receive DMX52 packets. PC Setup Install the VCOM FT245BM device driver on the PC. Since the driver is a virtual COM port, the baudrate setting used to open this COM port is a dummy value, and does not control the USB communication speed. Application Message Format The PC based application program communicates with the Widget via the FTDI driver. The table below specifies the general format of the messages between the application program and the FTDI driver. Start of message delimiter, hex 7E. Label to identify type of message. See below for value. Data length LSB. Valid range for data length is 0 to 600. Data length MSB. data_length Data bytes. End of message delimiter, hex E7. Firmware Varieties The Widget firmware version identifies the set of application messages that are supported by the firmware. The Widget will ignore any unsupported application messages. The following table shows the available firmware varieties. File:dmx_usb_pro_api_spec.odt CDI : nil Date:6 Oct 07 Page

ENTTEC Pty/Ltd Tel +6 3989 2433 ACN 089 252 79 Fax +63 989 2733 Kew, Vic, 30 Firmware Version MSB Normal DMX firmware. Supports all messages except Send RDM (label=7), Send RDM Discovery Request(label=) and receive RDM. 2 RDM firmware.this enables the Widget to act as an RDM Controller or RDM responder. Supports all messages except Receive DMX On Change (label=8) and Change Of State Receive (label=9). 3 RDM Sniffer firmware. This is for use with the Enttec RDM packet monitoring application. Widget LED The Widget firmware will blink the LED at 8Hz rate for one cycle, each time a DMX or RDM packet is received, and will blink the LED at 2Hz rate for one cycle, each time a DMX or RDM packet is transmitted. Application Messages. Reprogram Firmware Request (Label =, no data) This message requests the Widget firmware to run the Widget bootstrap to enable reprogramming of the Widget firmware. 2. Program Flash Page Request (Label=2) This message programs one Flash page of the Widget firmware. The Flash pages must be programmed in order from first to last Flash page, with the contents of the firmware binary file. 64 One page of firmware binary file. 3. Program Flash Page Reply (Label=2) The Widget sends this message to the PC on completion of the Program Flash Page request. File:dmx_usb_pro_api_spec.odt CDI : nil Date:6 Oct 07 Page 2

ENTTEC Pty/Ltd Tel +6 3989 2433 ACN 089 252 79 Fax +63 989 2733 Kew, Vic, 30 4 Success character array, set to 'TRUE' if firmware page was programmed successfully, set to 'FALS' if firmware page programming failed. 4. Get Widget Parameters Request (Label=3) This message requests the Widget configuration. LSB of user configuration size in bytes. Valid range for user configuration size is 0 to 508. MSB of user configuration size in bytes. 5. Get Widget Parameters Reply (Label=3) The Widget sends this message to the PC in response to the Get Widget Parameters request. Firmware version LSB. Valid range is 0 to 255. Firmware version MSB. Valid range is 0 to 255. user_configuration_size DMX output break time in 0.67 microsecond units. Valid range is 9 to 27. DMX output Mark After Break time in 0.67 microsecond units. Valid range is to 27. DMX output rate in packets per second. Valid range is to 40. User defined configuration data. See Set Widget Parameters request. File:dmx_usb_pro_api_spec.odt CDI : nil Date:6 Oct 07 Page 3

ENTTEC Pty/Ltd Tel +6 3989 2433 ACN 089 252 79 Fax +63 989 2733 Kew, Vic, 30 6. Set Widget Parameters Request (Label=4) This message sets the Widget configuration. The Widget configuration is preserved when the Widget loses power. LSB of user configuration size in bytes. Valid range for user configuration size is 0 to 508. MSB of user configuration size in bytes. DMX output break time in 0.67 microsecond units. Valid range is 9 to 27. DMX output Mark After Break time in 0.67 microsecond units. Valid range is to 27. DMX output rate in packets per second. Valid range is to 40, or 0 for fastest rate possible (this will make the most difference when the output universe size is smallest). user_configuration_size User defined configuration data. File:dmx_usb_pro_api_spec.odt CDI : nil Date:6 Oct 07 Page 4

ENTTEC Pty/Ltd Tel +6 3989 2433 ACN 089 252 79 Fax +63 989 2733 Kew, Vic, 30 7. Received DMX Packet (Label=5) The Widget sends this message to the PC unsolicited, whenever the Widget receives a DMX or RDM packet from the DMX port, and the Receive DMX on Change mode is 'Send always'. DMX receive status. When this is 0, the DMX data in this message is valid. When this is nonzero, the DMX data in this message is corrupted. Bit 0: 0=No error,=widget receive queue overflowed. Bit : 0=No error,=widget receive overrun occurred. to 53 Received DMX data beginning with the start code. The size of the received DMX data can be determined from the overall message size. 8. Output Only Send DMX Packet Request (Label=6) This message requests the Widget to periodically send a DMX packet out of the Widget DMX port at the configured DMX output rate. This message causes the widget to leave the DMX port direction as output after each DMX packet is sent, so no DMX packets will be received as a result of this request. The periodic DMX packet output will stop and the Widget DMX port direction will change to input when the Widget receives any request message other than the Output Only Send DMX Packet request, or the Get Widget Parameters request. 25 to 53 DMX data to send, beginning with the start code. The overall message size specifies the size of the DMX data to send, and also sets the universe size (the number of DMX channels which are output). File:dmx_usb_pro_api_spec.odt CDI : nil Date:6 Oct 07 Page 5

ENTTEC Pty/Ltd Tel +6 3989 2433 ACN 089 252 79 Fax +63 989 2733 Kew, Vic, 30 9. Send RDM Packet Request (Label=7) This message requests the Widget to send an RDM packet out of the Widget DMX port, and then change the DMX port direction to input, so that RDM or DMX packets can be received. to 53 RDM data to send, beginning with the start code. The overall message size specifies the size of the RDM data to send. 0.Receive DMX on Change (label = 8) This message requests the Widget send a DMX packet to the PC only when the DMX values change on the input port. By default the widget will always send, if you want to send on change it must be enabled by sending this message. This message also reinitializes the DMX receive processing, so that if change of state reception is selected, the initial received DMX data is cleared to all zeros. 0: Send always : Send on data change only File:dmx_usb_pro_api_spec.odt CDI : nil Date:6 Oct 07 Page 6

ENTTEC Pty/Ltd Tel +6 3989 2433 ACN 089 252 79 Fax +63 989 2733 Kew, Vic, 30.Received DMX Change Of State Packet (Label=9) The Widget sends one or more instances of this message to the PC unsolicited, whenever the Widget receives a changed DMX packet from the DMX port, and the Receive DMX on Change mode is 'Send on data change only'. Start changed byte number. 5 Changed bit array, where array bit 0 is bit 0 of first byte and array bit 39 is bit 7 of last byte. to 40 Changed DMX data byte array. One byte is present for each set bit in the Changed bit array. The user program can decode the message into a 53 byte received DMX data array, beginning with the start code. The algorithm to do this is shown below: On startup, zero out the 53 byte received_dmx_array For each Change Of State packet received changed_byte_index = 0 For bit_array_index = 0 to 39 If changed_bit_array[bit_array_index] is then received_dmx_array[start_changed_byte_number * 8 + bit_array_index] = changed_dmx_data_array[changed_byte_index] Increment changed_byte_index Endif Endfor Endfor 2.Get Widget Serial Number Request (Label = 0, no data) This message requests the Widget serial number, which should be the same as that printed on the Widget case. 3.Get Widget Serial Number Reply (Label = 0) The Widget sends this message to the PC in response to the Get Widget Serial Number request. File:dmx_usb_pro_api_spec.odt CDI : nil Date:6 Oct 07 Page 7

ENTTEC Pty/Ltd Tel +6 3989 2433 ACN 089 252 79 Fax +63 989 2733 Kew, Vic, 30 4 BCD serial number, with LSB stored at lowest address. On old Widgets, the serial number was not programmed, and the value would be hex 0FFFFFFFF. 4. Send RDM Discovery Request (Label=) This message requests the Widget to send an RDM Discovery Request packet out of the Widget DMX port, and then receive an RDM Discovery Response (see Received DMX Packet). 38 DISC_UNIQUE_BRANCH RDM request packet to send. RDM Implementation Details Enttec has an RDM protocol PC library that works with the Widget, for creating RDM capable PC applications. The RDM protocol is a half duplex request/response protocol. To comply with the RDM protocol, the RDM Responder must send only a single response message in reply to each request message from the RDM Controller. The Widget UID consists of the Enttec manufacturer ID concatenated with the Widget Serial Number, as follows: UID[0]=hex 45, UID[]=hex 4E, UID[2]=SN[3], UID[3]=SN[2], UID[4]=SN[], UID[5]=SN[0]. There is a special message with its own label for sending the RDM Discovery request, to enable the Widget to receive the discovery response, which has no break unlike all other types of RDM packet. The Send RDM request should be used to send any RDM packet other than the RDM discovery request. The behaviour of the RDM Responder Widget is specified in the following table. File:dmx_usb_pro_api_spec.odt CDI : nil Date:6 Oct 07 Page 8

ENTTEC Pty/Ltd Tel +6 3989 2433 ACN 089 252 79 Fax +63 989 2733 Kew, Vic, 30 Request Received By RDM Responder Widget CC=DISCOVERY_COMMAN D PID=DISC_UNIQUE_BRANC H CC=DISCOVERY_COMMAN D PID=DISC_MUTE CC=DISCOVERY_COMMAN D PID=DISC_UN_MUTE CC=GET_COMMAND or CC=SET_COMMAND CC=GET_COMMAND PID=QUEUED_MESSAGE Any unrecognised message or message with bad RDM checksum. Reply Sent By RDM Responder Widget Discovery response when Widget UID is inside range of UIDs in request message and RDM discovery has not been muted. DISC_MUTE response when request message was not broadcast. DISC_UN_MUTE response when request message was not broadcast. ACK_TIMER response with time of 0. seconds. Queued message (see ACK_TIMER). None Request Message Passed To PC No No No Yes. PC should respond with Queued message. No Yes The RDM Responder Widget has space to store a single queued RDM message only. The ACK_TIMER and queued message mechanism ensure that the timing requirements of the RDM specification can be met, even though the PC application is slow to respond due to USB latency or scheduling delays for example. File:dmx_usb_pro_api_spec.odt CDI : nil Date:6 Oct 07 Page 9