PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Bluetooth

I'm trying to write some bluetooth code to give multiplayer capabilities to my upcoming games and the information is really scattered :(

The palm bt library is great, but my problems are coming from pocket pc & smartphone world.

I've read there are two libraries I can use, a widcomm one (which I'd have to pay) and the microsoft one. That's because widcomm did the first bt stack which was used until microsoft released him, isn't it?

so the question are...
a) can I use microsoft library and be able to use it even with devices with widcomm bt stack?
b) if not, is microsoft stack only for use with some wm2003 devices? how can I do to include that library not breaking compatibility with i.e. pocket pc 2000 devices?
c) is there any standar way or easier path to make bluetooth comm work?
d) why do they do my live so hard? :)


just curiosity, are there any bluetooth multiplayer games on pocket pc and smartphones? I tried to find some on handango but I haven't found any (I've found some with infrared and wifi)

TIA
Kak
I did some serious researching into BT on PPC/Smartphone and unfortunately, no existing device use the MS stack. They are all Widcomm based, and there are 3-4 different versions of the stack.

I expect the MS stack to be available on the next version of the OS (WCE 5.0). Until then, don't expect much games with BT support =(.

You could try using BT serial links (virtual COM ports), but the users would have to manually connect the devices before playing. Yes it sucks.
I see, thanks for the info.

Is the situation different for smartphones? Or do I have to manually create a serial connection too? (well, in fact I don't know how to do that with the smartphone)
Thierry wrote:I did some serious researching into BT on PPC/Smartphone and unfortunately, no existing device use the MS stack. They are all Widcomm based, and there are 3-4 different versions of the stack.

What about Imate PocketPC (or XDA2/QTEK2020/MDA2), Imate JAM (MDA Compact). They all use Microsoft BT stack and run PocketPC 2003 SE and non-SE versions.
If you use WinSock to work with bluetooth I think your program would be compatible with both broadcomm and MS stacks.
I wasn't aware that some devices had the MS stack. My own iPAQ 2210 (and othr devices I've tried) all have the Widcomm stack.

Winsock *is* the MS stack. You cannot use sockets with the Widcomm stack. Sockets won't work on the iPAQ 2210 (or 3600 or even the desktop version of the Widcomm stack).
I have a mitac mio558 with MS stack and it's very limited. Widcomm would be much better.
Pejo Software - Per · 08 Feb 2005, 22:53 UTC
Just felt like giving some information about this old topic.

You can use winsock to establish a connection via Bluetooth if the devices support the PAN (and NAP) profile. You just need to establish a connection before connecting with a socket. This works well with my iPAQ 2210.

The game that I am working on has two ways of establish a connection either via TCP (sockets) or via COM port.
This means that you can connect via Ethernet(TCP), WLAN(TCP), Bluetooth(TCP or COM port), IR(COM port).