
12
7.
Communication-Ethernet Module
7-A. EM module (DS - Device Server) commands
EM contains a lot of commands, but just only 4 of EM commands are needed to utilize the WEC200
terminal. The default protocol that WEC200 uses is TCP. Below are the details.
Get available IP of connected WEC200 on LAN command
Command format:
A. X
Possible replies (network):
A
nnn.nnn.nnn.nnn.nnn.nnn/ppppp/mseic/ES/oo...o/dd...d
,
where
nnn.nnn.nnn.nnn.nnn.nnn
- MAC-address of the DS
ppppp
- data port number of the DS
m
- fixed to 'N' (means that the application firmware, not the
NetLoader is running)
s
- programming mode: '*' (none), 'S' (serial), 'U'
(out-of-band UDP), 'T' (inband TCP or command-phase
TCP);
e
- error status: '*' (no errors detected), 'E' (running in the
error mode);
i
- IP-address status: '*' (not obtained yet), 'I' (obtained via
DHCP), 'M' (fixed, set manually);
c
- data connection status: '*' (closed), 'A' (sending ARP), 'O'
(being established), 'C' (TCP connection established or
being closed), 'U' (UDP connection established), 'R' (reset
by remote host);
E
- Ethernet-to-serial buffer overflow: '*' (no overflow), 'E'
(overflow detected);
S
- serial-to-Ethernet buffer overflow: '*' (no overflow), 'S'
(overflow detected);
oo...o
- owner name;
dd...d
- device name.
Example (VB6 Code)
Winsock1.RemoteHost =
“255.255.255.255”
Winsock1.SendData =
“X”
Note:
1. This is a broadcasts command, so the remote host IP needs to be set to
“255.255.255.255”.
2. For more details, please refer to the on-line help file of DS Manager tibbo_docs.chm on
[Echo (X) command] section.