views:

399

answers:

1

I am trying to get two windows mobile devices to communicate with each other.

The API I am using (EMDK) says:

Any Microsoft API can be used for serial communication after the pairing is completed.

So, can anyone point me to an example of serial communications using C# .NET (Preferably Compact Framework).

+2  A: 

Something like this MSDN article? Or this one? (a favorite of mine). Or maybe an example of it in use for printing? Or maybe a card reader example? Or posibly Bluetooth via VB?

The web has loads of examples. Generally speaking any example (desktop or device) that uses the SerialPort class will be completely applicable.

ctacke
You've appeared to have forgotten that while the .NET CF SerialPort class is okay for simple use it is good at being slightly curious when used in anger (did they fix the curious 1 thread per read pattern in 3.5?). In my experience i've found the OpenNETCF one is more reliable (http://serial.codeplex.com/).
Quibblesome
Nope, not forgotten at all - I still use the OpenNETCF implementation for just about everything I do.
ctacke
Thanks for the great info. I am digging into it... Thanks also for the link to OpenNetCF serial stuff.
Vaccano