Changes between Initial Version and Version 1 of HowTo/Bluetooth/Enabling


Ignore:
Timestamp:
May 9, 2007, 10:40:23 AM (17 years ago)
Author:
harisk
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • HowTo/Bluetooth/Enabling

    v1 v1  
     1This page explains how to create an image with enabled Bluetooth.
     2
     3== Current images with BT enabled ==
     4
     5 * bluetooth-0.1.0.ndz built on baseline-1.0.9.nzd with old madwifi and kernel 2.6.12
     6 * bluetooth-0.1.1.ndz built on baseline-1.0.9.nzd with old madwifi and kernel 2.6.12
     7
     8The reason to keep this is that madwifi allows to change transmit power. Version 0.1.1 contains old madwifi with ability to fix transmission rate using iwconfig, but does not support libmac
     9To Do: USB Bluetooth key chain has to be reinserted in order to be recognized.
     10
     11 * bluetooth-0.2.0.ndz built on baseline-2.0.ndz with hacked nodeAgent to support new madwifi
     12
     13== Making Bluetooth work ==
     14
     15The kernel must have USB and Bluetooth support enabled. If that is not the case:
     16
     17{{{
     18/usr/src/<path to your kernel source># make menuconfig
     19}}}
     20
     21Compile the kernel and reboot. There should be /proc/bus/usb directory created.
     22
     23{{{
     24apt-get install bluetooth
     25/etc/init.d/bluetooth start
     26}}}
     27
     28After that you should be able to see something like:
     29{{{
     30node1-1:~# hciconfig
     31hci0:   Type: USB
     32        BD Address: 00:0A:3A:53:D4:82 ACL MTU: 192:8 SCO MTU: 64:8
     33        UP RUNNING PSCAN ISCAN
     34        RX bytes:395 acl:0 sco:0 events:17 errors:0
     35        TX bytes:313 acl:0 sco:0 commands:16 errors:0
     36}}}
     37
     38In order to save the image, and be able to login to the node by means other than the serial console delete the following file if exists:
     39
     40{{{
     41node1-1:/etc/udev/rules.d# rm z25_persistent-net.rules
     42}}}
     43
     44Otherwise, saving an image causes the interfaces to "shift" from eth0 and eth1 to eth2 and eth3, and the node is after imaging accessible only through the serial console.
     45
     46== Some usefull links ==
     47
     48http://www.gentoo.org/doc/en/bluetooth-guide.xml
     49
     50http://wiki.debian.org/Bluetooth
     51
     52http://www.linux-usb.org/USB-guide/book1.html