[GSoC] Week 8 (Native Bluetooth support)

Claudiu Olteanu olteanu.vasilica.claudiu at gmail.com
Mon Jul 20 14:46:07 PDT 2015


Hello,

Here is a summary about what I did last week:
- tested and fixed some issues for Android platform
- implemented a combobox which can be used to choose the local Bluetooth
adapter
- continue the documentation and developing the sample for Windows platform
- created a new environment with Windows 7
- implemented the device discovery functionality and tested for Windows 7
and 8.1 (using MS stack)
- implemented a service discovery functionality and tested for Windows 7
and 8.1 (using MS stack)

Below you can find some things that I discovered and you should know:
- there are 4 stacks for Bluetooth on Windows ( Microsoft, Widcomm,
 Stonestreet One Bluetopia Bluetooth and BlueSoleil)
- not all devices work with the MS stack
- Bluetooth functionalities like connection to serial devices was
introduced in Windows XP SP2
- more details about Bluetooth support on Windows platforms [1]
- I didn't find an API which can be used to control the local adapter (turn
on/off, get/set device information)
- I didn't find an API which can be used to pair/unpair devices

Now I don't know exactly which version of Windows our users use.
If it is  greater than 8 then I am not sure if we should put effort on
adding support for Window platforms. As you probably know from
Thiago, on Qt 5.6 they are planning to add Bluetooth support for
Windows 8.X and Windows 10. This will be released by the end
of this year.

What I know is that programming with Win32/Winsock2 API is
quite tricky (at least for me..:) ).

Also, after I installed the driver (BlueSoleil) for my dongle
something went wrong and my sample with device discovery
didn't work anymore.  The only way to make it work again was
to remove the BlueSoleil driver.
To be honest I didn't expect to be harder to work on Windows :).

Next I am planning to try to connect the devices and to do
some data transfer.

Claudiu

[1] -
https://msdn.microsoft.com/en-us/library/windows/hardware/dn133849%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150721/7a844496/attachment.html>


More information about the subsurface mailing list