lunes, 28 de abril de 2008

Haiku Bluetooth Stack Release

I promised Andrea a Xmas gift and I have already delayed it enough. So let's zip all we showed in the last posts and give some instructions on how to deal with it. Now the kit has some functionality implemented so it makes more sense a release for people that wants to play a bit with it, As some application as a Preference could be actually written.

Before proceeding please, read this other article about the possible risks.

[инструкция на русском]
[Auf Deutsch]
Installation steps for R5(not tested under Haiku or ZETA):

Install the driver (/h2/h2generic) :

Place the driver in:
/boot/home/config/add-ons/kernel/drivers/bin

And make a link to it, placing it in:
/boot/home/config/add-ons/kernel/drivers/dev/bluetooth

Most likely you dont have the folder, just create it. Ensure your dongle is recognized by the USB stack. Use usb_dev_info command. After this, make sure the device is published correctly by:

$ find /dev/bluetooth/
/dev/bluetooth/
/dev/bluetooth/h2generic
/dev/bluetooth/h2generic/0

If not, a restart or $ rescan h2generic might help.


Intall the library (/lib/libbluetooth.so) :


Place the lib in :
/boot/home/config/lib/

Run the bluetooth_server (/server/bluetooth_server) :

You can place this component in any place.
E.G: /boot/beos/system/servers/

Run any of the provided apps (/apps/*) :

These are command line applications. You can place this component in any place, just ensure you run them from terminal to see the results

Functionlity available:

    Everything used by command lines applications under:
/haiku/trunk/src/bt_*.cpp

    LocalDevice::SetDiscovery();
Which is not used by any of the applications in point 1


Download Bluetooth for Haiku (Arce.4.1)


note: If anybody creates any nice script or "Drop me here link folders", with pleasure, I will publish it here.

sábado, 19 de abril de 2008

Milestone 3, Discovering Remote devices

Being discovered was the second milestone, but the capability of discovering another device (a bit more complicated) is what I had proposed as the third milestone.

Some may have seen the commits, all methods to perform a basic inquiry process are implemented. So nothing more, I have just got all mobile phones with bluetooth capabilities around at home:



Activated its visibility, and:



At the end you can see the names of the 3 phones and its addresses :)


As note I could not make the WiiMote getting discovered, I guess it has to be handled some other way...

miércoles, 9 de abril de 2008

First post for a new writer


Hello !

I am Adrien Destugues ("PulkoMandy"), and this year I am willing to participate into Google Summer of Code for Haiku. One of my projects proposals is writing a preference application for the bluetooth stack.

I started by adding the stack to the default haiku.image to test it under Haiku, and it seems to be working well. I tested everything under qemu so I was just able to check if the program runs... can't connect to a bluetooth dongle from inside qemu.

Next step is getting haiku to boot on real hardware and with a bluetooth dongle attached to it...

Here is a picture of the bluetooth stack running under haiku :). Nothing very exceptional, but it's a good start to build the prefs window around it :)