Script File Examples |
Top Previous Next |
The following TNC script file examples illustrate the use of the scripts and commands as outlined in the paragraph on the TNC Script File.
The first example organizes the handshake between TurboLog 4 and TNCs of the TNC2xx family.
TNC_NAME = TNC2C,TNC21S,TNC2H,TNC3S ; TNC_INIT = >[s1|> <CONNECTED *< ;>[I|> <* I|< ;
TNC_GETCALL = >[I|> <* I|< ; TNC_SETCALL = >[I~#|> ; TNC_EOL = | ;
TNC_DATEFORM = dd.mm.yy ; TNC_TIMEFORM = hh:mm:ss ; TNC_SETDATE = >[k #|>_<* k< ; TNC_SETTIME = >[k #|>_<* k #|< ;
TNC_ENTERCONV = >[|><* |< ; TNC_ENTERCMD = >[><* < ; TNC_DISCONNECT = >[D|>_<DISCONNECTED< ;
TNC_STREAMSW = 0 ; TNC_STREAMSELECT = S#; TNC_STREAMCH = NUMBERS ; NUMBERS or LETTERS
PACKET CLUSTER LOGIN = ;
TNC_FLOW_CONTROL = NO ; TNC_AUTOSWITCH2conv = YES ; TNC PACKET PROMPT = '* ' ; TNC DUMPBYTES = 0 ; TNC MultiConnect = YES ; ;***************************************************************;
The second example demonstrates the string and command structure for a TNC of the PK-xxx family:
TNC_NAME = PK-232 ; TNC_INIT=>*~~*~~*~~^X^C><cmd:<_>MONITOR 0|><cmd:<_>D|><cmd:<_>ECHO OFF|><cmd:<_>FLOW ON|><cmd:<_>NEWMODE ON|><cmd:<_>ACRDISP 0|><cmd:<_>CANPAC $00|><cmd:<_>CHS 126|><cmd:<_>MFI 126|><cmd:<_>\~1|><cmd:< ;
TNC_GETCALL = >^X~^C>_<cmd:<_>my|>_<MYcall< ; TNC_SETCALL = >^X^C>_<cmd:<_>MYCALL #|>_<cmd:< ;
TNC_DATEFORM = yymmdd ; TNC_TIMEFORM = hhmm ; TNC_SETDATE = >DA # ; !! attention don't set a 2nd '>' after '#' TNC_SETTIME = #|>_<cmd:< ; !! attention don't set a '>' before '#'
TNC_ENTERCONV = >^C~~CONV|> ; TNC_ENTERCMD = >^C~> ; TNC_DISCONNECT = >^X^C>_<CMD:<_>D|>_<CMD:<_>D|>_<CMD:< ; TNC_EOL = | ; TNC_STREAMSW = ~ ; TNC_STREAMSELECT = ~# ; TNC_STREAMCH = NUMBERS ; NUMBERS or LETTERS
PACKET CLUSTER LOGIN = >SET/PAGE 10000|> ;
TNC_FLOW_CONTROL = YES ; TNC_AUTOSWITCH2conv = NO ;
TNC_DUMPBYTES = 2 ; TNC_MULTICONNECT = YES ;
TNC PACKET PROMPT = 'cmd:' ; ;******************************************************;
This topic was last edited on Monday, 03-Jul-2023, at 23:57
|