Page 1 of 1

bluetooth on x86

Posted: Mon Oct 29, 2018 7:49 am
by kerravon
Hi. I would like to drive the bluetooth on my x86 laptop. I couldn't find any mention of bluetooth programming in the Wiki. Could someone get me started please?

Also, I'm expecting to be running under qemu under Windows 10. qemu has a "-bt" parameter, but I'm not sure what to set it to.

To start with what I would like to do is have qemu pass my requests on to Windows so that under my operating system I can get a list of bluetooth devices in my physical vicinity.

Thanks. Paul.

Re: bluetooth on x86

Posted: Tue Oct 30, 2018 6:01 am
by Combuster
Bluetooth is not a starter subject - not in friendly environments such as arduino, so not even remotely in OS development. As the wiki states:
Beginner mistakes wrote: Is there a tutorial on...?

Because this place can not and does not cater for beginner developers, the question for some other place that does provide a tutorial, good explanations or easy to understand reading is often requested. However, they do not exist. Difficult subjects can not be described with light prose, just like there are enough things that are too complicated for a monkey to properly learn. If you have trouble reading official documentation, this would be a good time to practice.
You might find yourself lucky if a bluetooth initiate happens to be around here, but otherwise practising getting all that information on your own would be the best course of action from here on.

Re: bluetooth on x86

Posted: Tue Oct 30, 2018 1:50 pm
by SpyderTL
You can find the complete Bluetooth specifications here: https://www.bluetooth.com/specification ... cification

Depending on your configuration, you may also have to implement a complete USB host controller implementation to be able to communicate with a Bluetooth host controller.

But if you do happen to get it working, feel free to come back and create a wiki page that explains how everything works. :P

Re: bluetooth on x86

Posted: Tue Oct 30, 2018 2:15 pm
by pvc
@SpyderTL Nice one. I've tried to download it before but their downloads were so slow that I thought that they were offline long ago. But… they are just slow.

Re: bluetooth on x86

Posted: Tue Oct 30, 2018 3:14 pm
by SpyderTL
As far as I can tell, other than the USB Bluetooth Adapter class (Base Class 0xE0, Subclass 0x01, Protocol 0x01 and 0x04), I can't find any mention of a "reference" design or hardware API for Bluetooth, which means that each Bluetooth Host Controller will probably have it's own API (Memory/IO registers), and will require it's own driver implementation.