PortStore5 Manual
HW group
www.HW-group.com
34
NVT control examples
Most NVT commands have a fixed length. So, for example, if a value has a 4-byte format, and the
current setting can be read by “setting” a value of 0, this zero needs to be sent as 00 00 00 00 hex.
Setting the output byte
This command sets the output port to AA (10101010 bin).
<
IAC
><
SB
><
COM_PORT_OPTION
><
CAS_SET_GPIO
><byte to output)><
IAC
><
SE
>
FF FA 2C 33 AA FF F0
As a response, the following sequence confirms the port settings:
<
IAC
><
SB
><
COM_PORT_OPTION
><
ACS_SET_GPIO
><byte to output)><
IAC
><
SE
>
FF FA 2C 97 AA FF F0
Changing the RS-232 / RS-485 serial port baudrate
Request to change the serial port communication speed.
The current port speed can be retrieved by sending the value of
00 00 00 00
(the response contains
the current speed). If any other value is sent, the server uses it to set the serial port speed. When
converted to a decimal value, the value directly indicates the communication speed in Bauds.
Outgoing
sequence:
FF FA 2C 01 00 00 00 00 FF F0
PortStore5
returns:
FF FA 2C 65 00 00 25 80 FF F0
Converting
00 00 25 80
to decimal, the current speed of
9600 Bd
is obtained.
Keep Connection
To keep the connection alive and avoid the 50 second inactivity timeout, use the “
K: Keep
connection
” option in the device setup. NVT must be enabled for this to work. The connection is
kept alive by sending a NOP command (
FF F1
)
from the PortStore5 approximately every 5s
.
If port sampling is enabled with the #T: Trigger AND mask, the device sends the I/O keep command
(“FF FA 2C 37 ZZ FF F0”) instead of the NOP command (see #K, #L, #M, #N).
Are You There?
The Telnet standard supports an “Are you there” request to determine if there is a live device at the
other side. Standard Unix devices usually reply with “Yes”.
Outgoing
sequence:
FF F6
PortStore5
returns:
<WEB51 HW XXX SW XXX SN XXX #0F *OvErr *ParErr *FlErr>
Individual XXX values are often proprietary or can be left out in case of error messages. Sample
reply:
<WEB51 HW 4.5 SW 2.3 SN 01A03B #01>
Содержание PortStore5
Страница 1: ...PortStore5 Manual HW group www HW group com 1 PortStore5 MANUAL...
Страница 5: ...PortStore5 Manual HW group www HW group com 5...
Страница 14: ...PortStore5 Manual HW group www HW group com 14 Network parameters...
Страница 17: ...PortStore5 Manual HW group www HW group com 17 TCP mode settings...