Bluetooth Module Driver discussion thread (contributors)

Thanx a lot Marco Minerva…thanx again and wish u all the best for your future works…

I bought a bluetooth module recently but couldn’t find a driver that I liked, so I decided to write my own. Thought I’d release it on here and get some feedback from other developers that may be interested in using it. Keep in mind this is highly beta right now, but it seems stable enough for an alpha release.

Things I still need to do:

  1. Expose the stream to read and write data from the bluetooth module. This is the big one, the data being sent from the caller will need to be merged into the outgoing stream, will definitely take some work. Right now I’m expecting to add a method like GetStream() which returns a stream that can be read from and written to.
  2. Put some events in place for when the module gets disconnected.

Any feedback would be great, I’ve included a Gadgeteer solution with the driver project, along with a Windows Forms application which is the app I was running on my PC to which the Gadgeteer client was connecting.

Things I’ve noticed:

  1. The initial pairing will report a connection failure, even though the pairing was successful. This is because the serial ports which the PC would be using do not have a serial port attached to them. Once pairing has completed, the host app can be executed, and the ports that were created during pairing can be connected to. Once the ports are connected, pressing the button once again should report connection success.

Links:
Gadgeteer Client: http://sdrv.ms/Qlf4mr
WinForms Host: http://sdrv.ms/Qlf5qr

We just finished the drivers for the module but we will check yours as well. Thanks for sharing.

Oh, I was under the impression that the drivers wouldn’t be developed unless someone from the community did it. I wouldn’t waste time checking mine Gus unless you really want to. If you’re planning on releasing an official set, more than likely I’ll be using them. Wish I had known about that before I spent 2 weeks writing my own!

Thanks for the info though! Any idea on when they’ll be released?

Hello Gus,
when do you purpose to release the new drivers for the Bluetooth-Module?
We need them urgently for our bachelor-thesis.

with kind regards

Viktor

This week

Thank you! Great news!

I have another question:
Is it possible, that there is a problem to connect to Bluetooth-Devices
with 6-digits pin ?

Bluetooth modules, almost everything on the market, only supports SPP. If your device is SPP then you are fine List of Bluetooth profiles - Wikipedia

Thank you for your answer, but I’ve ment something different.

We want to connect to an OBD-Bluetooth-Adapter, which is secured with a 6-Digit PIN (personal identification number).
The PIN on the OBD-Adapter cannot be changed.

We tried successfully to connect to another device which is secured with a 4-Digit PIN.
So we think that the problem is the number of digits in the PIN.

with kind regards

Viktor

I am near sure your device is SPP. The authentication is something else, which is standard and should be supported.

Hello guys,

is the new bluetooth driver out now?

Should be

Hi.

Where can the GHI implementation be downloaded? It seems not to be located at gadgeteer.codeplex.com repository.

Regards.

@ Ninja - https://gadgeteerbluetooth.codeplex.com/
http://gadgeteer.codeplex.com/SourceControl/changeset/view/24200#256555

Actually, won’t it just be in the SDK? The source for the GHI specific one should make it to the main codeplex gadgeteeer site (not gadgeteerbluetooth.codeplex.com) eventually.

Just a word of warning, so far my experience has been that the GHI code in the gadgeteer codeplex repository is out of date with the shipping code. I now have a rule to always double check using reflector or something similar. This is the case for both the Motor Driver module and the IO60P16 for example.

HI GUS can I connect my windows phone 7 using fez spider and Bluetooth module… i need to know how to transfer data between spider and windows phone 7 using the Bluetooth module any suggestions?

can’t be done on WP7. Need WP8.

For WP8 check this thread

http://www.tinyclr.com/forum/topic?id=9790&page=3

Windows Phone 8 added Bluetooth to their StreamSocket (StreamSocket Class (Windows.Networking.Sockets) - Windows UWP applications | Microsoft Learn) stack, Windows Phone 7 does not have this capability.