Network Configuration Using UDP
5. Send the setup record to the target Device Server.
Note:
For example, using Hyperterminal, copy the setup record and select “Paste to Host” to
send it to the Device Server. The Device Server reboots with the new configuration.
To send a previously saved setup record to a Device Server via UDP, from a host PC, send
the
FA
(or
FD
) datagram to the “target” Device Server. (See
Note:
The Device Server responds with the
FB
datagram. Refer to the table.
9.2.3 The Intel Hex Format
With this format, 8-bit binary data can be sent and received as ASCII text. The transmission
is blocked in records, and every record has its own checksum.
The record begins with a colon (:) and consists of a block length (2-character Hex), a 16-bit
address (4-character Hex), and a block type (2-character Hex). It is built by adding all binary
8-bit values and taking the complement, so adding all byte values (including length, address,
and type) should yield zero.
Example:
00000001FF
End record, type 01, length 00, address 00 00, checksum FF.
01002000805F
Data record consisting of one byte (value 80 Hex) for address 0020 (32 decimal).
For communication with the node, the following block types are defined:
Table 25 - Block Types
Option
Hex
Data block program memory (firmware)
00
End record
01
Data block configuration memory
10
To get and set the node configuration, 120 bytes should be exchanged at once in 32-Byte
records. The IP address in the record (bytes 0 to 3) will be ignored (unless the UDP FD
command is being used).
9.2.4 Calculating the Checksum
above, the last two characters of an Intel Hex setup
record represent a checksum of the data in the line. Since the checksum is a two-digit
hexadecimal value, it can represent a value from 0 to 255.
The checksum is calculated by summing the value of the data on the line and taking the
two’s complement of the sum.
Note:
Do not include the leading colon or the checksum byte in the sum.
Example:
0300300002337A1E
Record length: 03 (3 bytes of data)
Address: 0030 (the 3 bytes will be stored at 0030, 0031, and 0032)
Record Type: 00 (normal data)
9-4
XPort™
User Manual and Development Kit