IrDA DiscoverDevices

M

Mark Johnson

Using VS NET 2003 C#
O2 XDA (Pocket PC 2002)
Nokia 6150 (6100)

The InfaRed Function of Pocket PC can find the Nokia 6150 Mobile Telefon.

When I run a program with :

IrDAClient irdaClient = new IrDAClient();
IrDADeviceInfo[] irdaDevices;
irdaDevices = irdaClient.DiscoverDevices(10);

irdaDevices.Length is allways 0. (No Exceptions)

If the PDA can find the Nokia then why can't IrDAClient find it?
Has any body tried this on a O2 XDA with different results?
For that matter has anybody had the same results, but has found it to be
Machine specific ?

I have tried a c++ Sample (IrdaMobil) that looks for a Nokia 5300 with a AT
Command. Connection to (IrDA Port) COM2 and COM3 works but the AT Commands
recieves a Timeout.

So the main questions are :
- is it the O2 XDA Maschine ?
- or am I doing something wrong ?

Mark Johnson, (e-mail address removed)
 
M

Mark Johnson

I have worked trough you sample (for which I thank you for) and I think I
understand everything except one point:
DeviceID is supposed to return the found Device ID but none are correct and
each time is diffent.
This DeviceID is needed to create an IrDAEndPoint and this the Connection,
correct?
What references do you have for data structure as for example length of :
const int DEVNAMELEN = 22;
const int DEVINFOPADDING = 2;
const int DEVINFOSIZE = 28;
From what I can see nothing special is being picked out for the DeviceID. Am
I reading this correctly ?

Thank you for your efforts.

Mark Johnson, (e-mail address removed)





Alex Feinman said:
There seems to be an issue with DiscoverDevices in CF (at least up to SP1 ).
It was recommended to use GetSocketOption manually instead.
I have a sample here which shows how to do that. It was not completed, but
the device discovery part should work.
http://www.alexfeinman.com/download.asp?doc=IRDABeamer.zip

The reference to the bug in DiscoverDevices is here:
http://groups.google.com/[email protected]&rnum=1


Mark Johnson said:
Using VS NET 2003 C#
O2 XDA (Pocket PC 2002)
Nokia 6150 (6100)

The InfaRed Function of Pocket PC can find the Nokia 6150 Mobile Telefon.

When I run a program with :

IrDAClient irdaClient = new IrDAClient();
IrDADeviceInfo[] irdaDevices;
irdaDevices = irdaClient.DiscoverDevices(10);

irdaDevices.Length is allways 0. (No Exceptions)

If the PDA can find the Nokia then why can't IrDAClient find it?
Has any body tried this on a O2 XDA with different results?
For that matter has anybody had the same results, but has found it to be
Machine specific ?

I have tried a c++ Sample (IrdaMobil) that looks for a Nokia 5300 with a AT
Command. Connection to (IrDA Port) COM2 and COM3 works but the AT Commands
recieves a Timeout.

So the main questions are :
- is it the O2 XDA Maschine ?
- or am I doing something wrong ?

Mark Johnson, (e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top