User`s manual

C
C
Appendix CIP Report Protocol
There are several ways to configure the IP address of the NPort device server. One of them is
DHCP Client. When you set up the device server to use DHCP Client for IP address configuration,
it will automatically send a DHCP request over the network to find the DHCP server. The DHCP
server will then send an available IP address to the NPort with an expiration time. The NPort will
use this IP address until the expiration time has been reached. When the expiration time has been
reached, the process will repeat, and NPort will send another DHCP request to the DHCP server.
Therefore, an NPort may end up using more than one IP address while it is connected to the
network.
The NPort has a built-in IP address report function that will send its IP data to a specific IP address
and port number when it is configured with a dynamic IP address. In the web console, the IP report
parameters may be configured under Network Settings. Enter the IP address and the port number
of the PC that is to receive this information, as well as the reporting interval
To interpret the IP address report, the destination PC needs to have NPort Administrator installed
with the IP Address Report function activated. You may also use develop your own application to
receive the IP address report by referring to the IP report protocol described here. An example
program is provided on the MOXA website at
www.moxa.com.
IP Address Report Structure
The first 4 bytes of the module’s IP address report are the characters “MOXA”. The rest of the
report is composed of 9 items, with each item preceded by a 2-byte header indicating the item ID
and item length.
Header
(Item ID)
Header
(Item Length)
Item
(none) (none) “MOXA” (text string)
1 (varies) server name (text string)
2 2 hardware ID (little endian, see table below)
3 6
MAC address (00-90-E8-01-02-03 would be sent in sequence as
0x00, 0x90, 0xE8, 0x01, 0x02, 0x03)
4 4 serial number (little endian DWORD)
5 4 IP address
6 4 netmask
7 4 default gateway
8 4
firmware version (little endian DWORD, Version 4.3.1would be
0x04030100)
9 4 AP ID (little endian DWORD, see table below)