Discussion:
Ethernet Address On WinCE Startup
(too old to reply)
mgOn10To100
2010-03-31 23:01:49 UTC
Permalink
Hi,

The situation:

I have multiple devices on an Ethernet network that on application
startup read an address (from another device) that then gets converted
into a corresponding IP address which the application assigns to the
Ethernet adapter. These devices are all communicated to by a master
computer on the same network and can be rearranged from day to day, so
when starting up the next day, may end up having a different address.
Also, these devices just get power turned off as there is no shutdown
process.

My problem:

Wince when it starts up naturally assumes the last set IP address
until the application reads the actual address and then resets the
Ethernet adapter. If one device starts the application first, another
starting up later may clash with the IP address until it's own
application gets around to overriding the IP address last used when
turned off. This causes a 'duplicate IP address' message to be
displayed on the already started up device.

Any suggestions on a strategy to overcome this?

Many thanks in advance for any comments.

Mark.
Bruce Eitman [eMVP]
2010-04-01 01:40:21 UTC
Permalink
You are a little vague on both the situation and the problem, but it seems
to me that you need a good DNS server and maybe set up your DHCP server to
assign static addresses based on MAC address.
--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT Eurotech DOT com
My BLOG http://geekswithblogs.net/bruceeitman

Eurotech Inc.
www.Eurotech.com
Post by mgOn10To100
Hi,
I have multiple devices on an Ethernet network that on application
startup read an address (from another device) that then gets converted
into a corresponding IP address which the application assigns to the
Ethernet adapter. These devices are all communicated to by a master
computer on the same network and can be rearranged from day to day, so
when starting up the next day, may end up having a different address.
Also, these devices just get power turned off as there is no shutdown
process.
Wince when it starts up naturally assumes the last set IP address
until the application reads the actual address and then resets the
Ethernet adapter. If one device starts the application first, another
starting up later may clash with the IP address until it's own
application gets around to overriding the IP address last used when
turned off. This causes a 'duplicate IP address' message to be
displayed on the already started up device.
Any suggestions on a strategy to overcome this?
Many thanks in advance for any comments.
Mark.
mg
2010-04-07 23:58:16 UTC
Permalink
Thanks Bruce.

I cannot use static addresses based on MAC because the devices can be
located in a different position every day, but must know which 'lane'
they are in so the main computer can control them properly. The
specifics are not important, but the situation is:

1) One main controlling computer (iMac) with static IP.
2) Multiple sub-devices (PC104 - WinCE) that connect in to different
positions each day, but need to read an address on application startup
from the physical connection point and use that address to communicate
with main computer.
3) Until the main application starts up on the sub-device, the WinCE
uses the previous days IP address (last saved), so one device that
starts up first may have the IP address used by another that has yet
to startup (power on can happen at different times). This causes WinCE
error message (clash of IP address) before my application has even
started up on the second device.

Mark.

On Apr 1, 11:40 am, "Bruce Eitman [eMVP]"
Post by Bruce Eitman [eMVP]
You are a little vague on both the situation and the problem, but it seems
to me that you need a good DNS server and maybe set up your DHCP server to
assign static addresses based on MAC address.
--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT Eurotech DOT com
My BLOGhttp://geekswithblogs.net/bruceeitman
Eurotech Inc.www.Eurotech.com
Post by mgOn10To100
Hi,
I have multiple devices on an Ethernet network that on application
startup read an address (from another device) that then gets converted
into a corresponding IP address which the application assigns to the
Ethernet adapter. These devices are all communicated to by a master
computer on the same network and can be rearranged from day to day, so
when starting up the next day, may end up having a different address.
Also, these devices just get power turned off as there is no shutdown
process.
Wince when it starts up naturally assumes the last set IP address
until the application reads the actual address and then resets the
Ethernet adapter. If one device starts the application first, another
starting up later may clash with the IP address until it's own
application gets around to overriding the IP address last used when
turned off. This causes a 'duplicate IP address' message to be
displayed on the already started up device.
Any suggestions on a strategy to overcome this?
Many thanks in advance for any comments.
Mark.
Loading...