
© 2009 Cypress Solutions PAD Operation (Revision 1.0)
5 Commands for PAD operation
x = 2 start up UDP PAD client mode - one session. The modem
will revert to command mode once the connection is closed.
x = 3 start up TCP PAD client mode - one session. The modem will
revert to command mode once the connection is closed.
x = 4 start up persistent UDP PAD client mode
x = 5 start up persistent TCP PAD client mode
cmd padip iii.iii.iii.iii For server mode use 0.0.0.0 (this is the modem’s default). For
client mode use the IP address of the server modem, or if the
host device will initiate the connection keep this as 0.0.0.0
cmd padport xxxxx For PAD mode 0 or 1 (server modes), xxxxx is equal to the
modem’s PAD listening port. For all other PAD modes (client
modes), xxxxx is equal to the port of the server modem. In PAD
mode 0 or 1, when used as a client the modem will transmit to
this port and then listen on this port when it reverts to server
mode.
cmd padfwdc x This is the PAD forwarding character. It defines which Hex value
or ASCII character (in decimal) will initiate the encapsulation and
transmission process. The default is ASCII character 13 (carriage
return). If your protocol always ends a “sentence” with the same
terminating character then it can be set here. If no forwarding
character is required set this to x = 0. If x = 0, padfwdt or padfwdl
will invoke sending the packet.
cmd padfwdl x This is the PAD forwarding length (default x = 40). It defines how
many characters will initiate the encapsulation and transmission
process. Generally this parameter is set to a value greater than
the longest “sentence” in your protocol. If no forwarding length
is required set this to maximum (1000). If x = 0 is specified then
every character is sent immediately.
cmd padfwdt x This is the PAD forwarding time in 50 ms increments. It defines
the time after receiving the last character in a “sentence” that
the encapsulation and transmission process will be initiated. If
every character is required to be sent immediately then set n = 0.
cmd padecho x If the connected device requires every character it sends to the
modem to be echoed back on the serial port then set n = 1.
Otherwise, set n = 0 to disable the echo feature.
cmd padsvct n [c] The n parameter sets the server connect timeout in seconds
(default n = 15). The c parameter (optional) sets the maximum
PAD connection timer in seconds (default c = 0, disabled). If the
modem is configured using cmd padmode 0/1, it starts as a client
Comentarios a estos manuales