Knowledge base

Troubleshooting Deko RS232 Automation

Posted in Pro Tools

 
This is a basic Test for Deko automation I.I.I. control using HyperTerminal on external PC and RS232 null modem cable utilizing 3 of 9 pins. 
The pin connection is:
     2 to 3
     3 to 2
     5 to 5
 
Use the null modem (crossover) cable to connect Deko to your automation test computer running Hyper Terminal.
 
Config. Hyper Terminal on Comm Port, 9600 Baud 8N1 No Flow Control.
 
On Deko, check Deko Config for Automation on com1.  (From Deko Style Edit window, View>Automation)

In Automation window set:

Type: I.I.I
ID:1  (or higher depending on how many Dekos are used)
Default Doc Program (If set to preview, will display on preview which may be a software only window)
Port: com1  (Lower case no spaces.  There is normally only one RS232 port on the Deko)
 
On the Deko:
Make .dko file.  A graphic with a few layers.   In the example there are four layers.  You can do less if you don't want to type that much.  Two layers would be a minimum.  Layers MUST be REPLACEABLE. 
Turn off word wrap.  Set layer ID to match layer number to reduce confusion. 
Layers and Layer ID numbers must be consecutive, NO GAPS!
 
Save the Deko file to your test folder D:\Graphics\AutTest. 
Use a number as the file name.  100.dko
 
There are 3 Types of Automation Commands that the Deko uses
 
M  selects directory      When Command letters are UPPER CASE it is not machine ID specific.


                                      When Command letters are lower case letters the Deko ID number must be included in
                                      command as in example where 2 is Id of Deko \500 is .aut file \One\Two\Three\Four is text
                                      that appears in the text layers of the Deko graphic 100.dko
 
W  writes to file       Example with lower case   w\2\500\100\One\Two\Three\Four\\ (OA*)
                                 Example with Upper Case     W\500\100\One\Two\Three\Four\\ (OA*)

Y   runs the automation file that calls up the file from the Deko and inserts the text in the layers.
 
Tested Example:

M\D/AutTest\\ (OA*)
The M command selects the D drive AutTest folder
 
W\500\100\Text for First Layer\Text For Second Layer \Text For Third Layer\Text For Fourth Layer\\
This will make a file named 500.aut that calls up Deko template 100 and inserts the text in each layer.
 
Y\500<F8>**\\ (OA*)
            Runs file 500.aut
 
Note .aut files are binary files. They can be opened by the Deko to see that they actually work.
 
* Carriage Return Line Feed.  Must have carriage return line feed at end of line.
** F8 Must be included.  It is the Hex display of binary 1111 1000  This translates to an ASCII code of Alt+0248 on a standard keyboard number pad.  Enable Num lock on keyboard.  You must use the number keypad for typing this number. Alt + 0248
 
 
When Deko understands the command it will respond in the Automation window with; Sent *
If it doesn’t understand it will respond with a four digit error code; Sent nnnn.
 
 
Error Codes
Deko Only Error Codes
 
400B   Checksum Error
40B2   Change Message Directory Failed
4190    Missing Terminator.  Command not terminated with \\
4191    Incorrect Format
4192    Invalid Command.  Command not supported
4193    Invalid Machine ID
5000   Open Failed.  Couldn't open the requested file
5001    Write Failed   Write error on requested file
5002   Auto Command Failed.  Couldn't perform requested command
 

Read Full Article