Network Configuration Using UDP
Byte Command
Parameters
Notes
FC
Set IP Address First 8 bytes must be
set to the string IP-
SETUP (Hex 49 50 2D
53 45 54 55 50).
Next 2 bytes have to
be set to 00.
Next 2 bytes must
contain the serial
number.
Next 4 bytes have to
be the new IP address.
This block can be sent as a broadcast, because
the serial number is unique. It provides one
method to set the IP address of the Device
Server if is on the local network and the serial
number is known. Remember, broadcasts are
only ‘heard’ on the subnet on which they are
generated. No reply is sent by the Device
Server, which restarts using the new IP address
after the block is received.
Example (all in Hex):
49 50 2D 63 45 54 55 50 00 00 2A 12 81 00 01
02
IP address of the node with serial number 42-18
set to 129.0.1.2
FD Set
Configuration
and IP Address
Same as FA, but
changes IP address as
well (bytes 0-3).
n/a
9.2 Configuring Multiple Devices
When configuring a number of Device Servers identically, it is useful to create a template
setup record. The setup record can then be sent to the “target” Device Servers from a
“master” Device Server via “cut and paste” or UDP (see
Network Configuration using UDP
Device Servers use a 120-byte setup record in Intel Hex format. This format facilitates the
transfer of binary data using ASCII characters. See Setup Records on page E-7and The
Intel Hex Format on page E-5 for information about setup records and converting them to
Intel Hex format.
:20000010AC10C81D0000100000000000AC10010B4C0200001127000000000000C000000011
:200020100000000000000000000000000000000000000000000000000000000000000000B0
:200040104C0200001227000000000000C00000000000000000000000000000000000000049
:1800601000000000000000000000000000000000000000000000000078
:00000001FF
Figure 9-1 - Sample Setup Record in Intel Hex Format
9.2.1 Acquiring a Valid Setup Record
There are a number of ways to acquire a valid setup record:
Copy the setup record of a properly configured Device Server via Monitor Mode (easiest
method).
Request the setup record of a properly configured Device Server via another Device Server
on the network.
Build the setup record in software.
From a host PC, request the setup record of a properly configured Device Server via UDP.
To copy the setup record of a properly configured Device Server:
1. Configure a “master” Device Server with the desired parameters.
2. Enter Monitor Mode on the master Device Server (see Monitor Mode on page B-1).
9-2
XPort™
User Manual and Development Kit