Network Configuration Using UDP
9. Network Configuration using UDP
9.1 UDP Datagrams
The Device Server can also be configured or queried over the network using UDP
datagrams. The Device Server has a UDP listener set for port 30718 (77FE Hex).
Responses from the Device Server are returned to the source port of the UDP packet.
The first three bytes of the UDP data block should be set to zero. The fourth byte selects the
function as described in the following table:
Table 24 - UDP Configuration
Byte Command
Parameters
Notes
03
Node Reset
2 bytes, software type
These 2 bytes are used to prevent accidental
reset of the Device Server. (Value for standard
XPort™ firmware: 58 31 [Hex], X1)
F6 Query
for
Firmware
Version
None
The Device Server responds with the F7 block
below.
F7 Firmware
Information
First 16 bytes of the
firmware image, 4
bytes device
information and serial
number, 6 bytes of
MAC address
The first 16 bytes of the firmware image contain
the software type (offset 4,5) and checksum
(offset 14,15). The last two bytes of the device
information contain the serial number. The last
six bytes are the MAC address.
F8 Query
for
Setup Record
None
The Device Server responds with the F9 block
below.
F9 Configuration
Readback
120 byte setup record
(see Setup Records on
page E-7)
n/a
FA Set
Configuration
120 byte setup record
(see Setup Records on
page E-7)
The IP address (byte 0-3) will not be overridden
using FA. See FD for this functionality.
FB Configuration
Change
Acknowledge
None
This block is sent back to the host requesting a
configuration change (FB). After sending out this
block, the Device Server resets and uses the
new configuration sent with the FA command.
XPort™ User Manual and Development Kit
9-1