Skip to contentSkip to conversation

Accessing HCI on Windows

Bluez-devel Stefan Mischke 4 participants 8 messages Mar 23, 2004 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hello folks,

I'm quite new to this "professional developer stuff" and mailing lists (so far only used to forums), so sorry if I do something wrong here.

I'm writing a little "Location Awareness using Bluetooth"-thing for my Bachelor of CS degree. On Linux, everything is fine and I just have to look into the BlueZ code. But it would be nice if there was a possibility to port my work to Windows. Unfortunately I have found no documentation about how to access the HCI on Windows. All I need would be a simple "SendHCICommand()" or something. My Question: Does anyone know how to do this? Do I have to deal with the Widcomm drivers (seem to be monopolists) or is there a common way?

I know that this is not a Windows mailing list, but I just don't know where else to ask. I'd really appreciate any help or hint. Thanks in advance!

Kind regards
Stefan

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#1 lore raw

Hi Stefan,

Quoted 8 lines

I'm writing a little "Location Awareness using Bluetooth"-thing for my Bachelor of CS degree. On Linux, everything is fine and I just have to look into the BlueZ code. But it would be nice if there was a possibility to port my work to Windows. Unfortunately I have found no documentation about how to access the HCI on Windows. All I need would be a simple "SendHCICommand()" or something. My Question: Does anyone know how to do this? Do I have to deal with the Widcomm drivers (seem to be monopolists) or is there a common way?

as I know there is no Windows stack that provides full access to the HCI layer as BlueZ do. Actually it must be possible in some kind of way, but in most cases you have to pay for their development kit.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#2 lore raw
Quoted 3 lines

as I know there is no Windows stack that provides full access to the HCI layer as BlueZ do. Actually it must be possible in some kind of way, but in most cases you have to pay for their development kit.

The COM1 stack used to allow direct HCI access (H4 interface) if opening as a serial port the special file declared in HKLM\SYSTEM\CurrentControlSet\Enum\USB\Vid_xxxx&Pid_xxxx\something_goes_here \Device Parameters\SymbolicName
(replace Vid_xxxx&Pid_xxxx with the ones from your device)

You can download their drivers from their website et make it work with your dongle by editing the .inf file to add YOUR dongle vid&pid.

Just kill their btstack and write your own...

It's surely not usable for commercial products but it works for testing/development purposes ... I used it to create some demos but am now working with widcomm SDK which gives acces to all levels of the stack beginning from l2cap (or HCI vendor commands)

Hope it helps.

I did reply to the list because there are often questions about bluetooth/windows here ...

BR,

Signature · 3 lines
Xavier Garreau <[email protected]>
Prim'Time Technology
http://www.prim-time.fr/
#3 lore raw

Hello Xavier!

Xavier Garreau schrieb:
as I know there is no Windows stack that provides full access to the HCI layer as BlueZ do. Actually it must be possible in some kind of way, but in most cases you have to pay for their development kit.

#4 lore raw
Quoted 1 line

Do I understand correctly that an USB Bluetooth dongle can be treated as

if it was connected to the serial port of the pc? In this case calling > the Windows API Function CreateFile(SymbolicName) and doing ReadFile() and WriteFile() according to H4 would do the job, wouldn't it?

Yes ! That's it ! But Widcomm drivers do not work this way.

Quoted 1 line
Quoted 1 line

You can download their drivers from their website et make it work with

your

Quoted 2 lines
Quoted 1 line

dongle by editing the .inf file to add YOUR dongle vid&pid.

By "their" you mean Widcomm? Ok, my Dongles are shipped with Widcomm

drivers, so I don't have to change the .inf file, correct?

No those from Com1 (http://www.com1.fr)

BTW, Widcomm documentation is very very good !

BR,

Signature · 3 lines
Xavier Garreau <[email protected]>
Prim'Time Technology
http://www.prim-time.fr/
#5 lore raw
Quoted 7 lines · Xavier Garreau

Yes ! That's it ! But Widcomm drivers do not work this way.

No those from Com1 (http://www.com1.fr)

But the Com One drivers ARE Widcomm drivers. So where is the difference?

Anyway I tried to install the Com One drivers by outcommenting the "ExcludeFromSelect" in the .inf file. As a result, the driver installation doesn't recognize the fake, but when I try to start the Bluetooth Software it says "Your Bluetooth license does not include use with this Bluetooth device". After clickeng "Ok" it asks for a license file. The license file from my original drivers does not work (version differs?). So how can I do it?

Kind regards
Stefan

#6 lore raw
Quoted 1 line

But the Com One drivers ARE Widcomm drivers. So where is the difference?

Ouch, i've been to their website and saw the new drivers ... What i did worked with tech0776 and they were not from widcomm ...

Quoted 7 lines

Anyway I tried to install the Com One drivers by outcommenting the "ExcludeFromSelect" in the .inf file. As a result, the driver installation doesn't recognize the fake, but when I try to start the Bluetooth Software it says "Your Bluetooth license does not include use with this Bluetooth device". After clickeng "Ok" it asks for a license file. The license file from my original drivers does not work (version differs?). So how can I do it?

Well, it looks like you'll have to code the usb to H4 driver yourself ...

Regards

Signature · 2 lines
Xavier Garreau <[email protected]>
http://www.xgarreau.org/
maintainer
#7 lore raw

Hi,

Quoted 4 lines
Quoted 1 line

But the Com One drivers ARE Widcomm drivers. So where is the difference?

Ouch, i've been to their website and saw the new drivers ... What i did worked with tech0776 and they were not from widcomm ...

lets stop this thread now, because this mailing list is for Linux and Bluetooth ;)

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel