Retrieving macaddress from iPAQ

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anyone know how to retrieve the macaddress and computer name from and
iPAQ, preferably using the compact framework?

Thanks...Dan
 
The SDF has the OpenNETCF.Net.Adapter.MacAddress. Here you are steps how
to retrieve it:

1. OpenNETCF.Net.Networking.GetAdapters()
2. check that a collection has at least one record
3. retrieve Mac Address from adaptersCollection[0].MacAddress
 
I tried that. It returns a collection of 1 adapter (even though there are
two on the device), and the macaddress is all zeroes.

There's a bug list a mile long on that method, so unless I'm missing
something, it's just not very reliable, which is too bad.

Dan

Sergey Bogdanov said:
The SDF has the OpenNETCF.Net.Adapter.MacAddress. Here you are steps how
to retrieve it:

1. OpenNETCF.Net.Networking.GetAdapters()
2. check that a collection has at least one record
3. retrieve Mac Address from adaptersCollection[0].MacAddress

--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com

Does anyone know how to retrieve the macaddress and computer name from and
iPAQ, preferably using the compact framework?

Thanks...Dan
 
The latest SDF should be able to retrieve any NDIS adapter MAC information
that exists. It's not a requirement that every NDIS driver return a MAC
address. What are the two adapters that you have?

Paul T.

Dan said:
I tried that. It returns a collection of 1 adapter (even though there are
two on the device), and the macaddress is all zeroes.

There's a bug list a mile long on that method, so unless I'm missing
something, it's just not very reliable, which is too bad.

Dan

Sergey Bogdanov said:
The SDF has the OpenNETCF.Net.Adapter.MacAddress. Here you are steps how
to retrieve it:

1. OpenNETCF.Net.Networking.GetAdapters()
2. check that a collection has at least one record
3. retrieve Mac Address from adaptersCollection[0].MacAddress

--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com

Does anyone know how to retrieve the macaddress and computer name from
and
iPAQ, preferably using the compact framework?

Thanks...Dan
 
Hi Paul. When I look at the asset viewer on my iPAQ, it shows a Wi-Fi tab
with a legitimate MAC address and a Bluetooth tab with a different legitimate
MAC address. So there appear to be two adapters on the device, each
reporting a MAC address. However, SDF 1.4 doesn't appear to report either of
them.

Paul G. Tobey said:
The latest SDF should be able to retrieve any NDIS adapter MAC information
that exists. It's not a requirement that every NDIS driver return a MAC
address. What are the two adapters that you have?

Paul T.

Dan said:
I tried that. It returns a collection of 1 adapter (even though there are
two on the device), and the macaddress is all zeroes.

There's a bug list a mile long on that method, so unless I'm missing
something, it's just not very reliable, which is too bad.

Dan

Sergey Bogdanov said:
The SDF has the OpenNETCF.Net.Adapter.MacAddress. Here you are steps how
to retrieve it:

1. OpenNETCF.Net.Networking.GetAdapters()
2. check that a collection has at least one record
3. retrieve Mac Address from adaptersCollection[0].MacAddress

--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com


Dan wrote:
Does anyone know how to retrieve the macaddress and computer name from
and
iPAQ, preferably using the compact framework?

Thanks...Dan
 
Bluetooth devices do not show up in that way. If the WiFi device doesn't
show a MAC address, the most likely reason is that the driver doesn't return
it. Since the asset viewer is specific to your device, not a
general-purpose program that would work on other devices, it may be getting
the MAC address in another way that the OpenNETCF code does not. I just ran
a quick test on the built-in Ethernet on one of our devices and it properly
retrieves the MAC address there, as well as on a plug-in WiFi card.

Paul T.

Dan said:
Hi Paul. When I look at the asset viewer on my iPAQ, it shows a Wi-Fi tab
with a legitimate MAC address and a Bluetooth tab with a different
legitimate
MAC address. So there appear to be two adapters on the device, each
reporting a MAC address. However, SDF 1.4 doesn't appear to report either
of
them.

Paul G. Tobey said:
The latest SDF should be able to retrieve any NDIS adapter MAC
information
that exists. It's not a requirement that every NDIS driver return a MAC
address. What are the two adapters that you have?

Paul T.

Dan said:
I tried that. It returns a collection of 1 adapter (even though there
are
two on the device), and the macaddress is all zeroes.

There's a bug list a mile long on that method, so unless I'm missing
something, it's just not very reliable, which is too bad.

Dan

:

The SDF has the OpenNETCF.Net.Adapter.MacAddress. Here you are steps
how
to retrieve it:

1. OpenNETCF.Net.Networking.GetAdapters()
2. check that a collection has at least one record
3. retrieve Mac Address from adaptersCollection[0].MacAddress

--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com


Dan wrote:
Does anyone know how to retrieve the macaddress and computer name
from
and
iPAQ, preferably using the compact framework?

Thanks...Dan
 
Back
Top