User's Manual

Elatec GmbH
Page 2 of 44
Content
1. Introduction..................................................................................................................... 4
2. Functional Overview....................................................................................................... 4
3. Modes of Operation......................................................................................................... 5
3.1
USB-Device .............................................................................................................................. 6
3.1.1
Keyboard Emulation (USB HID Device).........................................................................................6
3.1.2
Emulating a Virtual Serial Port ........................................................................................................6
3.2
V24-Device............................................................................................................................... 6
3.2.1
Serial Communication Parameters ...................................................................................................6
3.2.2
Pin Assignment ................................................................................................................................7
4. Installation ...................................................................................................................... 7
4.1
V24-Device............................................................................................................................... 7
4.2
USB-Device (Keyboard Emulation) ...................................................................................... 7
4.3
USB-Device (Virtual Serial Port) .......................................................................................... 8
5. Configuration ................................................................................................................ 10
5.1
Starting Configuration Mode .............................................................................................. 10
5.2
Writing Configuration to a TWN3 Device ......................................................................... 11
5.3
Resuming Normal Operation............................................................................................... 12
5.4
Selecting Mode of Operation ............................................................................................... 13
5.5
Setting Up the Keyboard Emulation................................................................................... 14
5.5.1
Table of Scan Codes ......................................................................................................................14
5.5.2
Key Repeat Rate ............................................................................................................................15
5.6
Installing Scripts ................................................................................................................... 16
5.7
Miscellaneous Settings.......................................................................................................... 17
5.8
Updating the Firmware........................................................................................................ 18
5.9
Export and Import of Configurations................................................................................. 19
5.10
Installing USB-Drivers for Configuration ...................................................................... 20
6. Transparent Mode......................................................................................................... 21
6.1
HID Prox Transparent Protocol.......................................................................................... 22
7. Scripting ........................................................................................................................ 22
7.1
Language Description........................................................................................................... 22
7.1.1
Source Code...................................................................................................................................22
7.1.2
Comments ......................................................................................................................................23
7.1.3
Case Sensitivity..............................................................................................................................23
7.1.4
Preprocessor Directives .................................................................................................................23
7.1.4.1
#include Directive......................................................................................................................23
7.1.5
Functions........................................................................................................................................23
7.1.5.1
Return Values.............................................................................................................................23
7.1.5.2
Arguments..................................................................................................................................24
7.1.5.3
System Functions .......................................................................................................................24
7.1.5.4
Function main ............................................................................................................................24
7.1.6
Statements......................................................................................................................................24
7.1.6.1
if Statement ................................................................................................................................24
7.1.6.2
if else Statement.........................................................................................................................25
7.1.6.3
while Statement..........................................................................................................................25