Re: Unique Hostname in production
- From: "Dean Ramsier" <ramsiernospam@xxxxxxxxxx>
- Date: Mon, 29 Oct 2007 10:46:18 -0400
There is no "standard" way of implementing UUID, nor is it a required
feature in CE. Not all platforms have network connectivity, and thus no MAC
address. The point is the IOCTL, if implemented (not required) should
already return a unique value, however it is implemented. Your application
shouldn't need to do anything other than read it.
Note that MAC address programming is something that needs to be done at a
system wide level at manufacturing, generally not by an application running
on the device. Same thing goes for any UUID algorithm. Sometimes you can
use guaranteed unique values that are present in ID chips, flash roms, etc.
No programming necessary...
Bottom line, you never *set* the UUID. It should already be set at mfg or
by hardware design, and you just read it.
--
Dean Ramsier - eMVP
BSQUARE Corporation
"Pat O" <pdohara@xxxxxxxxx> wrote in message
news:1193663525.825232.318740@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Oct 25, 7:24 pm, Wes B [MSFT] <WesBM...@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
You should use a kernel IOCTL to call into the OAL to return a string
that is
a combination of MAC and host ID. The OAL function is typically called
OALIoCtlHalGetUUID(), all the BSP's I have played with have this feature.
--
Wes B [MSFT]
- Show quoted text -
So you are suggesting that I set it to some know value and change it
on first boot? I do know how to get the MAC address, my question was
what technique should I use to know if it has been set? I was hoping
that Platform Builder or the standard APIs might have a call back
method for the initial boot. I will go ahead and implement this in
our Shell replacement.
Pat O
Cognex, Corp.
.
- References:
- Unique Hostname in production
- From: Pat O
- Re: Unique Hostname in production
- From: Pat O
- Unique Hostname in production
- Prev by Date: Re: Hard coding touch calibration
- Next by Date: Re: SC_CreateMutex
- Previous by thread: Re: Unique Hostname in production
- Next by thread: Re: Unique Hostname in production
- Index(es):
Relevant Pages
|