Changing from v3 to v4 api commands – Thinklogical Router - ASCII-API User Manual

Page 29

Advertising
background image

Changing from V3 to V4 API commands

The basic V3 commands (connect, disconnect, status) still exist in V4 of the API. The V3 connect command automatically
creates an active keyboard (backchannel) connection. This no longer happens in V4. The user must send the second connect
command to create this connection. Because the user must explicitly create the active keyboard connection, the XMVKYBD
command is no longer necessary. In its place, use the 'c' connect command.

The port numbers used below are for these examples only and they may not be valid for all VxRouter models. In the V4
API, the 'I' and 'O' in the commands may be either upper or lower case, except in the XPUT command. In XPUT, the case
of the letter 'I' determines the direction of the connection. A lower case 'i' would correspond to a lower case 'c', and an upper
case 'I' to an upper case 'C'.

Command(s)

V3

V4

connect video input 7 to output 12

Ci0007o0012

Ci0007o0012

connect data input 9 to output 15 and the
active keyboard is on port 15

Ci0009o0015

Ci0009o0015

ci0015o0009

broadcast video input 66

Bi0066

Ci0066o9999

broadcast data input 66 and have the
active keyboard on port 13

Bi0066o0013

Ci0066o9999
ci0013o0066

disconnect output 54

Do0054

Do0054

disconnect input 18

Di0018

Di0018

save switch settings

XSAVE

xget

load switch settings

XLOAD.......

xput.......

connect data input 3 to data outputs 4 & 5
(active keyboard is at output 4)

then move the keyboard to output 5
(from the example on page 6) *

Ci0003o0004o0005

XMVKYBDI0005O0003

CI0003o0004o0005

ci0004o0003

di0004

di0005
ci0005o0003

connect input 54 to outputs 1,2,3,4

Ci0054o0001o0002o0003o0

004

Ci0054o0001o0002o0003o0004

disconnect all outputs

Do9999

do9999 (breaks lower paths)
Do9999 (breaks upper paths)
or you may use
xput

Table 3: V3 vs. V4 commands

* the 'di' commands will break any back-channel connections that might be in place from the keyboards at

0004

and

0005. This is done to prevent the accidental connection of a keyboard to more than one CPU.

Jun 12, 2014

Router ASCII API: V4.5-1

28/33

Advertising