[iPAQ] About bluetooth

From: Nicolas George <nicolas.george_at_ens.fr>
Date: Sun, 23 Jan 2005 19:04:00 +0100

I have managed to get bluetooth network between my iPaq and my PC. I must
say that the information in the wiki did not help me as much as I hoped: I
wanted to do everything by hand, but the wiki explained the automatic
scripts. What I did was:

On the PC side:

modprobe hci-usb
pand --listen --role NAP

On the iPaq side:

hciattach /dev/ttySB0 bcsp 230400
hciconfig hci0 up
pand --role PANU --connect 00:0C:76:48:EC:F6

After a few seconds, I get a pair of ethernet interfaces on which I can do
whatever I want using iproute2. There must be some options to add
cryptography, but I did not explore that yet.

Now, I'm not quite sure about the hciattach line. My interpretation is that
it's the link between the low-level ttySB0 device and the high-level hci0
interface. A bit like pppd is the link between the low-level ttyS0 modem and
the high-level ppp0 network interface. Am I right?

I have still two problems with bluetooth.

First, speed: a few tests show a TCP speed of at most 14.5ko/s, that is,
with TCP overhead, and in bits, 120kb/s. I read on Wikipedia that bluetooth
1.1 can do up to 720kb/s, and 2.0 2.1Mb/s. Is there any chance to achieve
better transfer rates? For what it's worth, hcitool lq gives about 211 on
the PC side, and a constant 255 on the iPaq side.

Second, if I suspend then resume the iPaq, the pand link half dies, half
stays. Is there something to do about that, or am I to reset the link after
each resume?

Received on Sun Jan 23 2005 - 13:05:18 EST

This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 18:33:26 EDT