Hello Mark,
I did not do the test with Wireshark yet. I will do that later today when I'm back home.
These are my current IP settings (I hope this is what you asked for...):
// The application is responsible for defining the IP configuration - here are the default settings
static const NETWORK_PARAMETERS network_default = {
(LAN_100M /*| FULL_DUPLEX*/ | RX_FLOW_CONTROL), // usNetworkOptions - see driver.h for other possibilities
{0x00, 0xcf, 0x4d, 0x56, 0x30, 0xff}, // ucOurMAC - when no other value can be read from parameters this will be used
{ 192, 168, 1, 101 }, // ucOurIP - our default IP address
{ 255, 255, 255, 0 }, // ucNetMask - Our default network mask
{ 192, 168, 1, 1 }, // ucDefGW - Our default gateway
{ 192, 168, 1, 1 }, // ucDNS_server - Our default DNS server
};
// The default user settings (factory settings)
const PARS cParameters = {
PARAMETER_BLOCK_VERSION, // version number for parameter validity control
(unsigned short)(2*60), // default telnet_timeout - 2 minutes
(CHAR_8 + NO_PARITY + ONE_STOP + USE_XON_OFF + CHAR_MODE + DCE_MODE),// serial interface settings
23, // TELNET port number
(ACTIVE_DHCP + ACTIVE_LOGIN + ACTIVE_FTP_SERVER /*+ ACTIVE_FTP_LOGIN*/ + ACTIVE_WEB_SERVER + ACTIVE_TELNET_SERVER + SMTP_LOGIN), // active servers (ACTIVE_DHCP and ACTIVE_FTP_LOGIN disabled)
SERIAL_BAUD_19200, // baud rate of serial interface
{0,0,0,0}, // trusted dial out IP address (null IP means no checking)
{'A', 'D', 'M', 'I', 'N', '&', ' ', ' '}, // default user name - & closes sequence
{'u', 'T', 'a', 's', 'k', 'e', 'r', '&'}, // default user password - & closes sequence
The connection always starts at IP address 192.168.1.101 at power up when the LAN cable is connected, and then switches to the DHCP assigned address. When the cable is not connected at power up, I get a connection at IP 192.168.1.101 when the LAN cable is plugged in, but after a while the connection is lost...