1
2
10
2
7
−
=
wanted
CSpeed
I
CSPD
I
The I2C speed cannot be saved in EEPROM.
Easy IP address config (UDP # 7010)
A really useful feature of the UDP port #7010 is the "Easy IP config" one.
The user who wants to design his own software can use this feature to do a
"quick start/install" method. Indeed, since this protocol uses a broadcast UDP
packet, even if the device is not in the same subnet, it should receive its new
IP address and subnet mask.
Procedure:
Send a UDP broadcast message (using a local or direct broadcast IP address)
to your network (inside which the FMod-TCP BOX 2 is connected) with the
following command:
Byte#
Number of bits Example
0x00
Change IP fct (0x002A)
16 bits
0x002A
0x02
TransactionID
16 bits
0x0000
0x04
Length of params (0x000E)
16 bits
0x000E
0x06
Device Mac Address
6 bytes
0x0050C2308101
0x0C Device new IP Address
4 bytes
0xC0A81064
0x10
Device new SubnetMask
4 bytes
0xFFFF0000
0x14
Checksum
16 bits
0x…
If the FMod-TCP BOX 2 recognizes its MAC address, it will answer this
command with a simple acknowledges and change its IP address and subnet
mask IF NO TCP CONNECTION IS ESTABLISHED WITH THE DEVICE.
Byte#
Number of bits Example
0x00
Change IP fct ack (0x002B)
16 bits
0x002B
0x02
TransactionID
16 bits
0x0000
0x04
Length of params (0x0000)
16 bits
0x0000
0x14
Checksum
16 bits
0x…
Checksum calculation
This checksum is the same as the IP checksum.
Definition:
sum of 1’s complement of all 16 bits words of whole message
(FiveCo packet) except checksum bytes.
Note: all values are unsigned!
Содержание FMod-TCP BOX 2
Страница 2: ......
Страница 11: ...EEPROM In this case you do not need to send the Save Parameters command ...