Kramer Electronics Ltd.
KDS-SW2-EN7
– Protocol 3000
67
Function
Description
Syntax
Response
Parameters/Attributes
Example
NET-CONFIG
Set a network
configuration.
NOTE:
Parameters [DNS1]
and [DNS2]are
optional.
NOTE:
For
Backward
compatibility, the id
parameter can be
omitted. In this case,
the Network ID, by
default, is 0, which is
the Ethernet control
port.
NOTE:
If the
gateway address is
not compliant to the
subnet mask used
for the host IP, the
command will return
an error. Subnet and
gateway compliancy
specified by
RFC950.
#NET-CONFIG
netw_id,net_ip,net_mask,gateway,[d
ns1],[dns2]
<CR>
~nn@NET-CONFIG
netw_id,net_ip,net_mask,gate
way
<CR><LF>
netw_id
– Network ID–the device
network interface (if there are more
than one). Counting is 0 based,
meaning the control port is ‘0’,
additional ports are 1,2,3….
net_ip
– Network IP
net_mask
– Network mask
gateway
– Network gateway
Set the device network
parameters to IP address
192.168.113.10, net mask
255.255.0.0, and gateway
192.168.0.1:
#NET-CONFIG
0,192.168.113.10,255.255.0.
0,192.168.0.1
<CR>
NET-
CONFIG?
Get a network
configuration.
#NET-CONFIG? netw_id
<CR>
~nn@NET-CONFIG
netw_id,net_ip,net_mask,gate
way
<CR><LF>
netw_id
– Network ID–the device
network interface (if there are more
than one). Counting is 0 based,
meaning the control port is ‘0’,
additional ports are 1,2,3….
net_ip
– Network IP
net_mask
– Network mask
gateway
– Network gateway
Get network configuration:
#NET-CONFIG? id
<CR>
NET-DHCP
Set DHCP
mode.
NOTE:
Only 1
is relevant for the
mode value. To
disable DHCP, the
user must configure
a static IP address
for the device.
Connecting Ethernet
to devices with
DHCP may take
more time in some
networks.
To connect with a
randomly assigned
IP by DHCP, specify
the device DNS
name (if available)
using the NAME
command. You can
also get an assigned
IP by direct
connection to USB or
RS-232 protocol
port, if available.
For proper settings
consult your network
administrator.
NOTE:
For
Backward
compatibility, the id
parameter can be
omitted. In this case,
the Network ID, by
default, is 0, which is
the Ethernet control
port.
#NET-DHCP
netw_id,dhcp_state
<CR>
~nn@NET-DHCP
netw_id,dhcp_state
<CR><LF>
netw_id
– Network ID–the device
network interface (if there are more
than one). Counting is 0 based,
meaning the control port is ‘0’,
additional ports are 1,2,3….
dhcp_state
–
1
– Try to use DHCP. (If
unavailable, use the IP address set
by the factory or the net-ip
command).
Enable DHCP mode for port
1, if available:
#NET-DHCP 1,1
<CR>
NET-DHCP?
Get DHCP mode
NOTE:
For
Backward
compatibility, the id
parameter can be
omitted. In this case,
the Network ID, by
default, is 0, which is
the Ethernet control
port.
#NET-DHCP? netw_id
<CR>
~nn@NET-DHCP
netw_id,dhcp_state
<CR><LF>
netw_id
– Network ID–the device
network interface (if there are more
than one). Counting is 0 based,
meaning the control port is ‘0’,
additional ports are 1,2,3….
dhcp_state
–
1
– Try to use DHCP. (If
unavailable, use the IP address set
by the factory or the net-ip
command).
Get DHCP mode for port 1, if
available:
#NET-DHCP? 1
<CR>
NET-MAC?
Get MAC address.
NOTE:
For backward
compatibility, the id
parameter can be
omitted. In this case,
the Network ID, by
default, is 0, which is
the Ethernet control
port.
#NET-MAC? id
<CR>
~nn@NET-MAC
id,mac_address
<CR><LF>
id
– Network ID–the device network
interface (if there are more than
one). Counting is 0 based, meaning
the control port is ‘0’, additional
ports are 1,2,3….
mac_address
– Unique MAC
address. Format: XX-XX-XX-XX-XX-
XX where X is hex digit
#NET-MAC? id
<CR>
NET-STAT?
Get net connection
list of this machine.
NOTE:
The
response is returned
in one line and
terminated
with
<CR><LF>
.
The response format
lists signal IDs
separated by
commas.
This is an Extended
Protocol 3000
command.
#NET-STAT?
<CR>
~nn@NET-STAT
[(<port_type>: <port_index>,
<client_ip>:<client_port>),state
],..,
<CR><LF>
port_type
– TCP/UDP
0
– TCP
1
– UDP
port_index - Device port
client_ip
– Dot-separated
representation of the IP address
client_port - Client port
state
– listen or established
Get net connection list of this
machine:
#NET-STATE?
<CR>
~01@NETSTAT
[(TCP:80,0.0.0.0:0),LISTEN],[
(TCP:5000,0.0.0.0:0),
LISTEN],
[(TCP:80,192.168.114.3:5240
0),ESTABLISHED],[(TCP:500
0,192.168.1.100:51647)
,ESTABLISHED]
<CR><LF>