How can I use Blue Tooth via code (C#) to send files between Pocket PCs

  • Thread starter Thread starter Ginny Caughey [MVP]
  • Start date Start date
G

Ginny Caughey [MVP]

Kelly,

If the Bluetooth driver on your devices emulates a virtual serial port, you
can use the IO.Serial class on opennetcf.org to access it.
 
Hi,

I need to send files/data between 2 or more Pocket PCs using Blue Tooth and
C# CF code.

Is there a Microsoft API for utilizing Blue Tooth? I know POOM allows me to
select blue tooth to send contacts and files but the POOM API is not
flexible and I want to use my own forms and code for selecting devices to
connect to. I need access to blue tooth settings and other blue tooth
features that are not available through POOM (pimstore.dll)

Thanks
 
Thanks

That will work but any idea how i can get a list of BT devices that are
nearby so i can select the device i wish to connect to?

Thanks for the fast reply ;)

Fast is good :)
 
The main problem is that different Bluetooth stacks require different
approaches. I'll be posting an update to the OpenNETCF source which can do
device discovery shortly - this is limited to devices using the Microsoft
stack only and it works well on SPV E200 and is able to return a list of
device names and addresses (48bit integers) which are within range. Its our
intention to get this to a stage where you can attach to a virtual COM port
and use our Serial class to do serial comms over Bluetooth - the device
discovery is just the first stage of this mind you. I don't know when this
will be complete, the device discovery code is on my other machine and I'll
upload it to the online source browser
(http://www.opennetcf.org/sourcebrow...Pub/wwwroot/Source/OpenNETCF.Net/Bluetooth.cs)
soon.

Peter
 
Peter,

That is great news. I 'am using an Intermec device (similar to symbol's). I
know the Intermec devices uses the Socket BT Stack. I hope your the
OpenNETCF BT code will work on this device.

If I could at least control BT settings and maybe use some kind of callback
function to get a list of nearby BT devices I think I could have something
working pretty quickly. In the past I have used named system events to force
my registry changes to take affect. With the event name (such as
"BacklightSettingsEvent") I can change registry settings then use the event
to get the OS to use the new settings. The problem is that I don't know the
names of the system events that intermec (or Socket) is using for their BT
stack.

Does anyone know what these system event names are? Depending on how the
platform was developed the event names could have been created by Microsoft,
Socket or Intermec.

Thanks ;)
 
Hi peter
The link is broken, could you post the example again
I would be very pleased

Thanks
 
Back
Top