home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
hamradio
/
nosvw137.arj
/
PARAM
< prev
next >
Wrap
Text File
|
1991-09-18
|
4KB
|
109 lines
===== NOSview [137]
param
=====
The 'param' command allows device-specific control parameters to
be sent to an interface, and the status to be read back from an
interface.
On a KISS TNC interface, 'param' control packets to the TNC.
Argument to the 'param' command are always decimal.
On a SLIP interface, the 'param' command allows the baud rate to
be read (without arguments) or set.
The implementation of this command for the various interface
drivers is incomplete and subject to change.
_________________________________________________________________
param <interface>
_________________________________________________________________
The 'param' command displays interface characteristics. The
actual data displayed depends on the interface type.
>> Example of the output from 'param tnc0':
...............
: DTR: 1 :
: RTS: 1 :
: Speed: 4800 :
:.............:
_________________________________________________________________
param <interface> <param> [<param> ...]
_________________________________________________________________
General command to send parameters to the interface. Specific
commands for a KISS interface are shown below.
_________________________________________________________________
param <KISS_interface> 0 <data frame>
_________________________________________________________________
[This command is not used to send data to the TNC, but is
included here for completeness].
_________________________________________________________________
param <KISS_interface> 1 <TX_delay> (10mS units)
_________________________________________________________________
Set the TNC TXDELAY parameter.
>> Example: param tnc0 1 20 (TXDELAY = 200mS)
_________________________________________________________________
param <KISS_interface> 2 <persistence> (0-255)
_________________________________________________________________
Set the p-persistence parameter. This parameter contributes
towards collision avoidance on a busy channel. When the channel
is free, a random number between 0 and 255 is generated. If this
number is not greater than the <persistence> value, the packet is
transmitted. Otherwise the TNC waits for another slot time
before trying again (see 'param 3' below).
>> Example: param tnc0 2 63
_________________________________________________________________
param <KISS_interface> 3 <slot_time> (10mS units)
_________________________________________________________________
Set the duration of the p-persistence slot time.
>> Example: param tnc0 3 10 (Slot time = 100mS)
_________________________________________________________________
param <KISS_interface> 4 <TX_tail> (10mS units)
_________________________________________________________________
Set the TXTAIL parameter.
>> Example: param tnc0 4 10 (TXTAIL = 100mS)
_________________________________________________________________
param <KISS_interface> 5 <n>
_________________________________________________________________
Set the interface to half duplex or full duplex working.
n=0: half duplex
n>0: full duplex
Most packet radio links are half duplex.
>> Example: param tnc0 5 0 (Half duplex)
_________________________________________________________________
param <KISS_interface> 255
_________________________________________________________________
Terminate TNC KISS mode and switch it back to native mode. This
is necessary if you wish to use the TNC in its traditional dumb-
terminal mode (i.e. with the "cmd:" prompt).
This command returns the message "Return: 0" if it was
successful.
>> Example: param tnc0 255