[ENGLISH] KMobileTools and Bluetooth Phones

iManc's picture

Installation of the tools necessary to use Bluetooth phones with KMobileTools.


In the lastest 2.4.x and 2.6.x kernels Bluetooth support is already included, so we don't have to patch anything.
You only need to install some packages.

From the website www.bluez.org, Downloads section, get all the avaliable archives and install them in this order:


bluez-libs-2.9.tar.gz

bluez-utils-2.9.tar.gz

bluez-pin-0.23.tar.gz

bluez-firmware-1.0.tar.gz

bluez-hcidump-1.10.tar.gz

bluez-hciemu-1.0.tar.gz

in the usual way:


./configure

make

(this as root) make install



or you can go to http://www.bluez.org/packages.html to find some precompiled deb e rpm packages.
Now we need to launch two little daemons:



hcid

sdpd

>


When connecting our USB Bluetooth key, or any other adapter, check dmesg output to verify if your device is recognized.

The next step is to view your phone address.
Open bluetooth connection on your phone and type on your terminal:



hcitool scan

>


after a bit you'll read something similar to:


00:0E:07:CF:C2:C9 iManc T630



The first string is the phone address (depending from your model), the second is his name.

Now we need to create a device /dev/rfcomm0 that will associate with that address.
With:



mknod /dev/rfcomm0 c 216 0



create /dev/rfcomm0 if it's not present, and with:



rfcomm bind 0 1


associate it with your phone address..

To use qtmobiletools you should now only link /dev/mobile to /dev/rfcomm0:



ln -s /dev/rfcomm0 /dev/mobile



Or you can overwrite /dev/mobile if it exists with:



ln -sf /dev/rfcomm0 /dev/mobile


That's all, now your BlueTooth phone and KMobileTools can communicate!

rfcomm bind

First,

hcitool scan

to get your bluetooth adress.

rfcomm bind 0 00:0E:07:39:E4:BF 4

0 = /dev/rfcomm0
00:0E:07:39:E4:BF = bluetooth address
4 = a serial chat channel of your phone

4 and 5 are serial chat channels on SonyEricsson T610

------

After

mknod /dev/rfcomm0 c 216 0

you need to "chmod 666 /dev/rfcomm0" to get access as user...