Status (U) command
|Top Previous Next|
Description (see command description format info here)
ddd.ddd.ddd.ddd- IP-address of the network host with which the data connection is (was/ to be) established;
ppppp- data port number on the network host with which the data connection is (was/ to be) established;
eee- total number of characters in the Ethernet-to-serial buffer;
ttt- capacity of the Ethernet-to-serial buffer;
sss- total number of characters in the serial-to-Ethernet buffer;
fff- capacity of the serial-to-Ethernet buffer;
r- current baudrate (same numbering is used as in the Baudrate (BR) setting);
s- serial port state: '*' (closed), 'O' (opened);
d- serial port mode: 'F' (full-duplex), 'H' (half-duplex);
f- flow control: '*' (disabled), 'R' (RTS/CTS flow control);
p- parity: '*' (none), 'E' (even), 'O' (odd), 'M' (mark), 'S' (space);
b- bits per byte: '7' (7 bits), '8' (8 bits);
R- current state of the RTS (output) line: '*' (LOW*), 'R' (HIGH*);
C- current state of the CTS (input) line: '*' (LOW*), 'C' (HIGH*);
T- current state of the DTR (output) line: '*' (LOW*), 'T' (HIGH*);
S- current state of the DSR (input) line: '*' (LOW*), 'S' (HIGH*);
[V3.54+] iii.iii.iii.iii- only returned when command version parameter of >1 is supplied- IP-address of the DS on the PPPoE link.
Status command returns additional information about the status of the DS. In conjunction with the Echo (X) command it can be used to obtain extensive information about the state of the DS.
The following data is returned:
Optional command version parameter has been introduced in firmware V3.54. Command version is a decimal number (up to 255). When command version is omitted it is assumed to be 1. Earlier firmware releases do not support this parameter and will simply ignore it (result will be the same as having command version set to 1). When command version of 2 or higher is supplied Status command returns an additional iii.iii.iii.iii field.
Example #1: supposing U command returns the following reply**:
This means that the data connection is (was/ to be) established with the network host at 192.168.100.90, port number 37150. No data is currently in the Ethernet-to-serial buffer, buffer capacity is 8192 bytes. No committed data is in the serial-to-Ethernet buffer, there are 3 bytes of (uncommitted) data there, and the total capacity is 8192 bytes. The baudrate is 38400, serial port is opened, uses full-duplex mode. RTS/CTS flow control is enabled, parity is set to none, data is 8 bits/byte. RTS, DTR, and DSR lines are in the HIGH* state, CTS line is LOW*.
Example #2: here is a command with version parameter**:
In this reply an additional field is present. This field shows that current IP-address on the PPPoE link is 220.127.116.11
When issued through the serial port, the Status command returns less data. The primary use of the serial Status command is to let the attached serial device inquire the IP-address and port number of the network host with which the connection is (was/ to be) established (as well as current "PPPoE" IP-address). This may be used by the serial device, in conjunction with the modem commands (serial-side parameters and instructions) to control and monitor data connection establishment and termination by the DS.
* HI and LOW states are described with respect to the serial ports of DS100R, DS100B, DS203. For EM100, EM120, EM200, EM203(A) the signaling is exactly opposite.
** Encapsulation characters such as IEC, STX, CR, and the command ID field are not shown.