Data Connection to PC via Bluetooth

I need to exchange data between a NETMF device and a Laptop with builtin Bluetooth.
The customer wants to use Bluetooth because Laptop computers usually have Bluetooth and it should be wireless.
According to the description of the Bluetooth module in catalog
https://www.ghielectronics.com/catalog/product/312
this should not be a problem.

But how do I implement the PC side?
Is there something like a generic WinUSB driver for Bluetooth?

Or can I optionally use some ptp wifi connection? AdHoc network or similar?

As controller I might use a G120, but if anyone says there is a cheaper option like Carb which would work as well I would look into this as well.

In fact the device needs to measure 8 Analog inputs and send a snapshot of this data to the Laptop.

I found the code at http://32feet.codeplex.com/ to be quite helpful. I installed their package and selected the example SdpBrowserDesktop.sln and it worked. It was a good starting point for communications with a FEZ Raptor and bluetooth module.
Be aware that the module will not work with iOS systems, but works well with my PC, older Sony laptop, and with several Android devices I have tried.

1 Like

The Bluetooth module used by GHI is very inexpensive comparatively speaking, but is 2.1 and not supported by all devices.

If you want to go 4.0BLE - hereā€™s an option: https://www.ghielectronics.com/community/creations/entry/20

If you want to go WiFi ā€“ which I imagine would be more globally supported (just not the most inexpensive solution):

https://www.ghielectronics.com/catalog/product/444

1 Like

@ mhectorgato,rockybooth - Thank youo both.
I think both Bluetooth and Wifi would work.

@ GHI: is it possible to use WiFi RN171 module with an external antenna?

What range to you need?
Simple to do via a BLE module which would work on laptops, tablets etc.

@ Justin - I need a range of only 10 or 15 meter, but I might put the module and SoM in a robust mettal housing.

I have BLE modules with UFL connectorsā€¦

@ Reinhard Ostermeier -
But be aware that the build in Bluetooth of elder Windows Notebooks does not support BT 4.0 and you need a special dongle that supports BT 4.0.
If you donā€™t want to use iOS Devices i think that still BT 2.0 and the 32feet.net library on the PC is the right choice.

What I read here confirms my bad feeleng I have for Bluetooth for years now. I try to avoid it when ever possible.
I think I try to coinvice our customer that WiFi is way better.
And with RN171 no additional router or complicated Setup is needed.
Just connect to WiFi Network and go for it.
The higher Price is compensated by the easier programming on PC side, just simple Socketinig and no bluetooth Driver thingy with 3rd Party Software, ā€¦

thanks too all for the suggestions.

i donā€™t use the bluetooth fore a long time now, so maybe the problems are coming laterā€¦
I agree to you the problem with 3rd Party Software. This is the reason why i use the bluetooth module in host mode. So its possible to use on PC side an a virtual com port for bluetooth.
Easy programming a com - no 3rd party softwareā€¦

1 Like

Thank you for the info. Good to know that this is possible.
But still, Bluetooth is a bunch of incompatible ā€˜standardsā€™.
I remember when I wanted to connect my WiiMote to my PC.
ā€œOh you can use this BT dongle, but donā€™t use the original BT stack, MS BT stack also does not work. You can use this BT Stack, but the latest version is bound to their hardware, so try to get an older installer for it, ā€¦ā€ :wall:
Finally it worked, but I donā€™t think that this was in the mind of the BT inventor originally.

Starting with 8.1 windows has inbuilt ble apiā€™s
So does IOS and 4.3 android, so no 3rd code is needed for ble.

The BZ/WiFi module is an add on for a device thatā€™s already on the market with several hundred pieces. (not sure if all of them should get updated)
Also the Laptop computers are already existing.
I wouldnā€™t wonder if some of them are still running WinXP ::slight_smile:

A working solution for most of the devices/Laptops out there with a minimum configuration effort goes before low price.
So WiFI RN171 is currently ahead of BT.
I know you just want to sell you BT module Justin, but currently youā€™re behind :whistle:

Actually i donā€™t mind either way and you need to pick the right tool for the job, and as it stands i have far too many pots on the stove to have time to sell modules and make any money :smiley:

do you have a link for 8.1?

Windows help & learning ::slight_smile:

Or if you meant some codeā€¦here is a simple app from a Windows 8.1 app to a Cerbot

http://www.ingenuitymicro.com/media/1097/Cerbot.zip

GATT API

@ Justin - wohā€¦ Windows 8.1 , still running windows 3.5 ;D

Tanks for the rest

I think Bluetooth is not so bad. The 32feed.net library is known to work on all Windows Desktop Versions from XP to 8.1 with the normal Windows BT Stack. The Code of the 32feet.net library is open source.
If you take my Codeshare Entry FEZ/PC Bluetooth File Transfer Seerver/Client as a basis you can have a working solution in few hours.

last year i had a project of two card communicating through bluetooth. I made a .net simulator running on a PC which shared the same code. I think the simplest way is to have a bluethooth wich can emulate a virtual COM port. The bluetooth driver of my laptop was able to do it. Then you just have to figure the name of the COM port (COM5 for instance) and use it like a COM port in .Net. this is the same way in Āµ.Net.

You can check our COM class used by both .NET on computer and FEZ Panda here :

http://mlrobotic.codeplex.com/SourceControl/latest#MLRobotic2013/Simulateur/MLRobotic.Simulateur.2013/Form1.cs