Sample Patch File
This sample patch3.txt file can be copied and pasted as needed.
; DecaBox Protocol Converter
; Engineering Solutions Inc
; www.response-box.com
;
; Firmware for converting DMX512 input
; into RS232 output in a user configurable way
;
; This file is called patch3.txt and should be edited
; in either TextEdit (OS X) or Notepad (windows). Other programs,
; such as Word, may introduce unwanted garbage characters in the file.
;
; Note that lines which begin with a semicolon are comments, and
; are ignored by the firmware. A line can contain a comment or a command,
; but not both.
;
;Also, lines which contain commands MUST have the command begin in column 1.
;No leading spaces allowed.
;
;This is fine
; But this will throw an error. Make sense?
;
; Set the global baud rate. Default here is 8N1, no handshaking
; Regular options are 9600 19200 38400 57600 115200
; no commas are needed
;
baud 115200
;
; This document is processed at startup.
;
;
; Up to 512 characters may be assigned to a single DMX channel:value combination
;
; Commands are divided up into several columns as follows:
; and columns are separated by the space character ' ' in the table below.
;
; All data after the '|' character is considered part of the string
; to be transmitted
;
; Channel_Number Lower_Limit Upper_Limit |Data to Transmit
;
; Channel number is a 1-3 digit DMX channel value, range is [1 512]
; The serial commands are tied to this channel.
;
; Lower and upper limit refer to the range of DMX channel values to which
; an RS232 string will respond. Often users like to have a range (say, 5% - 10%)
; or only trigger above a specific value. Value valid range is [1 255]
; Each command needs a valid lower and upper range
;
; Finally, add the desired serial string:
; Characters which aren't human readable and editable in a
; text editor (such as carriage return, line feed, STX,
; ETX and so forth, are defined by the escape sequence $AB, where AB is a two digit
; hex representation of a single byte to be transmitted. Valid range of AB is [00 FF]
; Leading zeroes may be required, depending on desired value.
;
;
; The protocol is not case sensitive. $AB == $ab == $Ab == $aB
;
; Strings made entirely of hex characters can also be built using the abovementioned
; escape sequences. Here's how to send the five bytes $02 $04 $10 $22 $38:
;
; $02$04$10$22$38
;
; If the $ character itself needs to be transmitted as part of a serial
; string, it must be encoded as the hex character $24.
;
; $02$04$10$24$38$2F
;
;The actual DMX to RS232 Patch Chart begins here:
;
;
; Send 'Hello World' and a carriage return one time,
; when channel 3 is between 225 and 255:
;3 10 128|Hello World$0D
;3 129 255|Second String Here!$0D
;
; Send 'Projector Off" when channel 4 is at any value greater than 5:
;4 5 127|ProjectorOff$0D
;4 128 255|Projector On$0D
;
; Send six hex bytes when channel 5 is between 100 and 200
;
;5 100 200|$00$01$02$03$23$24$25$26$27
;
; etc etc etc
; Sample files for Barco:
;
;; power on off
;15 96 127|{"jsonrpc":"2.0","method":"system.poweron","params":{}}
;15 128 159|{"jsonrpc":"2.0","method":"system.poweroff","params":{}}
;
;Zoom in/out
6 1 255|{"jsonrpc":"2.0","method":"optics.zoom.stepforward","params":{"steps":200}}
1 71 80|{"jsonrpc":"2.0","method":"optics.zoom.stepreverse","params":{"steps":200}}
;
;Laser projector - Test Commands
;Assign DMX channels 10 and 11 at 95%+ to trigger on and off
10 250 255|*power = 0$0D
11 250 255|*power = 1$0D
; Assign DMX channel 12 to trigger on and off throughout the range:
12 10 127|*power = 0$0D
12 128 255|*power = 1$0D