I have a Digi Connect ME module that is using DHCP. The module appears to properly negotiate an IP address from a DHCP server.
My Digi code broadcasts periodic UDP ‘discovery’ datagrams. I’m finding my Digi broadcasts two datagrams each time I issue one send command: the IP header in one datagram has the DHCP-assigned address, but the IP header in the second datagram has a (presumably self-generated) IP address of 169.254.244.47.
Building with Net+OS 6.3.
Has anyone experienced this problem before?
Any guidance or insight would be much appreciated!
Ken M
It seems that you module has both the DHCP address and an AUTO_ÌP assigned address.
If you are not using AUTO_IP you can turn it off. Look for APP_ENABLE_AUTO_IP in appconf.h
In the ACE you control the timing of assignment of IP addresses to prevent AUTO IP when DHCP server is active.
Disabling Auto IP in appconf.h will only change the default configuration (i.e. if NVRAM gets erased or you otherwise force the default settings to be written to NVRAM).
Using the ACE functions you will want to go through your eth0, eth0:0, eth0:1, and eth0:2 interfaces and make sure you’ve disabled the auto IP functionality on each (customizeAceGetInterfaceConfig and customizeAceSetInterfaceConfig: autoip_config.isEnabled = FALSE)