Help - Search - Members - Calendar
Full Version: Bluetooth Under Debian Eabi
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > Debian
jpmatrix
Bluetooth Dialup Networking How To after a fresh install of Debian Eabi

1) apt-get install bluez-utils

2) customize /etc/bluetooth/hcid.conf :

some tips:

security auto;
pairing multi;
passkey "1234"; (this is where you set the bt PIN code)
lm accept;

3) customize /etc/bluetooth/rfcomm.conf :

example :

rfcomm0 {
bind yes;
device xx:xx:xx:xx:xx:xx; fill with gsm bt address
channel 1;
comment "nokia6630";
}


rfcomm1 {
bind no;
device yy:yy:yy:yy:yy:yy;
fill with GPS bt address
channel 1;
comment "GPSlim236";
}



4) customize /etc/ppp/peers/provider

then reboot

5) plug usb bt dongle dongle
you should have the dongle up,
if not verify that ohci-hcd module is loaded

5) hciconfig should say
hci0: type: usb
up running pscan iscan

6) pon provider

et voila
Chero
QUOTE(jpmatrix @ Sep 24 2007, 12:30 PM)
hi

can someone report about having bluetooth work under debian titchy ?
i mean having a CF Bluetooth recognized (for example a belkin ft0820!), having file transfers done, and having gsm (nokia?) dialup networking up&working ?

it is my first&last question before jumping into debianzaurus !
*


Using the kernel that came with titchy, I couldn't get bluetooth working. There was a problem with loading the serial_cs module.
Using the pdaX-kernel, I can get bluetooth working, but ATM I have no X.

Chero.
tux
QUOTE(Chero @ Sep 24 2007, 02:02 PM)
Using the kernel that came with titchy, I couldn't get bluetooth working. There was a problem with loading the serial_cs module.
Using the pdaX-kernel, I can get bluetooth working, but ATM I have no X.

Chero.
*


cool.gif
I inserted my Socket G bluetooth card. This is what I have so far.

The Socket bluetooth card was recognised and various initialisation messages appeared in dmesg.

Message 1: ..HCI device and connection manager installed
Message 2: ..HCI socket layer initialised
Message 3: ..similar to wifi messages, driver needs updating...IRQ..
Message 4: ..Nokia control data = 0f 00

My ignorance of bluetooth from the command line is deep! rolleyes.gif

So I'll do some research and get back to this thread. I hope some clever type will beat me to the punch. biggrin.gif
Cheers
jpmatrix
ok
if someone could try a bluetooth usb dongle too that could be great smile.gif
perhaps this one would work
jpmatrix
QUOTE(jpmatrix @ Sep 24 2007, 09:30 PM)
ok
if someone could try a bluetooth usb dongle too that could be great smile.gif
perhaps this one would work
*


well
1) i've just tried my Belkin FT0820 Bluetooth CF and :
it has 4 lines of complains about serial_cs: unknown symbol serial8250_xxxx sad.gif

2) tried my MSI BT USB dongle and it seems to be well recognized! i'm trying bt dialup

apt-get install bluez-utils

all seems to work but it seems i've a PIN problem which is described here:
http://www.zedd.nl/?p=8

so we need to compile passkey_agent
jpmatrix
QUOTE(jpmatrix @ Sep 25 2007, 11:11 PM) *
so we need to compile passkey_agent


could someone quickly compile it and share the binary ?
otherwise i'll have to wait until tonight smile.gif
jpmatrix
gotcha!
thanks to oesf i found that with that line, the zaurus become bluetooth discoverable:

dbus-send --system --dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.SetMode string:discoverable

then i find it on the phone, entered my pin and pon provider

and it works !!!!!!
tux
QUOTE(jpmatrix @ Sep 26 2007, 11:01 AM) *
gotcha!
thanks to oesf i found that with that line, the zaurus become bluetooth discoverable:

dbus-send --system --dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.SetMode string:discoverable

then i find it on the phone, entered my pin and pon provider

and it works !!!!!!

cool.gif Help, where do I set the pin on the Z, or what is the default?

The phone can discover the Z, it calls it deb0. I'm using Socket F Bluetooth card. I installed bluez.
smile.gif

But I suppose I do need to compike passkey-agent anyway! sad.gif Later for that.
jpmatrix
no need for passkey-agent !

here are some tips:

-/etc/bluetooth/hcid.conf:
security auto;
pairing multi;
passkey "1234"; (this is where you set the PIN)
lm accept;

-/etc/bluetooth/rfcomm.conf:
uncomment and fill with your bt gsm address

-/etc/ppp/peers/provider
i think you've customised it

then

rfcomm bind rfcomm0
pon provider (or pppd call provider)

then your zaurus should reach the phone via bt and dial

if something goes wrong, please post your latest messages in /var/log/messages
tux
QUOTE(jpmatrix @ Sep 26 2007, 07:44 PM) *
no need for passkey-agent !

here are some tips:

-/etc/bluetooth/hcid.conf:
security auto;
pairing multi;
passkey "1234"; (this is where you set the PIN)
lm accept;

-/etc/bluetooth/rfcomm.conf:
uncomment and fill with your bt gsm address

-/etc/ppp/peers/provider
i think you've customised it

then

rfcomm bind rfcomm0
pon provider (or pppd call provider)

then your zaurus should reach the phone via bt and dial

if something goes wrong, please post your latest messages in /var/log/messages

cool.gif Cheers I should have been able to find all this with a forum search shouldn'tI! sad.gif Thanks for the tips. biggrin.gif
jpmatrix
good surprise for me:

i'm using my msi bt dongle to download from my umts provider and i now have better download bandwith compared to my Belkin CF BT (used in angstrom or pdaxii13) ! i'm near 40 Kb/s with USB BT whereas i was at 9 Kb/s with my CF BT!!! (data given by apt-get)

do you think this come from the kernel or the usb bus ???
jpmatrix
you know what ? i'm happy: i succeed in having my bluetooth dialup AND my bluetooth GPS to work at the same time!!
for those interested, you just have to add an rfcomm1 device in rfcomm.conf,
then rfcomm bind rfcomm1
and it works!!!
tux
cool.gif Ping jpmatrix Ping jpmatrix Ping jpmatrix Ping jpmatrix ....

Thanks for you contribution to the TitchyLinux peripheral page. biggrin.gif Have you not been able to register with the Wiki? If there is a problem, please respond in the OESF Wiki thread. I'll put a new topic there for any such problems. smile.gif

It helps in the fight against spam and gibber bots if you do register.

It helps in editing and discussions about the Wiki, on the Wiki, if you also put something, at least your id, onto your User page. You can also click on the Discuss this page link and explain why you have altered something.

Cheers
biggrin.gif
Chero
QUOTE(jpmatrix @ Sep 25 2007, 11:11 PM) *
1) i've just tried my Belkin FT0820 Bluetooth CF and :
it has 4 lines of complains about serial_cs: unknown symbol serial8250_xxxx sad.gif


I had the same with my billionton xars so
I switched to kernel 2.6.22 . Now the messages are gone !
(symbol spectrum wifi also works like a charm)

Now I'll have to figure out what's next, cause the usual "setserial" doesn't seem to work ... sad.gif

Any hints ?

Chero.
jpmatrix
QUOTE(Chero @ Oct 2 2007, 09:41 PM) *
QUOTE(jpmatrix @ Sep 25 2007, 11:11 PM) *
1) i've just tried my Belkin FT0820 Bluetooth CF and :
it has 4 lines of complains about serial_cs: unknown symbol serial8250_xxxx sad.gif


I had the same with my billionton xars so
I switched to kernel 2.6.22 . Now the messages are gone !
(symbol spectrum wifi also works like a charm)

Now I'll have to figure out what's next, cause the usual "setserial" doesn't seem to work ... sad.gif

Any hints ?

Chero.


kernel 2.6.22 ??? where is it ? where is it ??? smile.gif

to have my belkin work under angstrom, i had to type:
hciattach /dev/ttyS4 bcsp

hope this helps!
Chero
QUOTE(jpmatrix @ Oct 2 2007, 10:31 PM) *
QUOTE(Chero @ Oct 2 2007, 09:41 PM) *
QUOTE(jpmatrix @ Sep 25 2007, 11:11 PM) *
1) i've just tried my Belkin FT0820 Bluetooth CF and :
it has 4 lines of complains about serial_cs: unknown symbol serial8250_xxxx sad.gif


I had the same with my billionton card so
I switched to kernel 2.6.22 . Now the messages are gone !
(symbol spectrum wifi also works like a charm)

Now I'll have to figure out what's next, cause the usual "setserial" doesn't seem to work ... sad.gif

Any hints ?

Chero.


kernel 2.6.22 ??? where is it ? where is it ??? smile.gif

to have my belkin work under angstrom, i had to type:
hciattach /dev/ttyS4 bcsp

hope this helps!


I'll check it out this evening. (my bluetooth card is at home)

Where is the kernel :
I downloaded the latest spitz images from the angstrom site.
Then I first copied the modules from the hdimage1.tgz to the correct place.
I put updater.sh together with ZImage.bin on an SD card and flashed the new kernel.
(don't put the hdimage on the card !!!!)

Chero.
ZDevil
Off topic:

How is the 2.6.22 kernel running in general? What are the major improvements over 2.6.20 (like sound, speed, etc)?
I am trying the older 2.6.17 kernel with fastfpe and cpufreq, and I now find the way to force the system to load my Ambicom WL1100C. Generally I find the system with the 2.6.17 kernel more responsive than the 2.6.20 in titchy, at least when running xfce4 (so many gnome stuff) and iceweasel.
Chero
QUOTE(ZDevil @ Oct 3 2007, 12:21 PM) *
Off topic:

How is the 2.6.22 kernel running in general? What are the major improvements over 2.6.20 (like sound, speed, etc)?
I am trying the older 2.6.17 kernel with fastfpe and cpufreq, and I now find the way to force the system to load my Ambicom WL1100C. Generally I find the system with the 2.6.17 kernel more responsive than the 2.6.20 in titchy, at least when running xfce4 (so many gnome stuff) and iceweasel.


- Not sure whether speed is different - I haven't been testing this.
- The mouse is still "rotated".
- both my wifi cards are recognized out of the box, without having two interfaces (wlan0 and wifi0)
- my bluetooth-CF forces the serial_cs module to load without errors
- sound : I'll check that one

so in general I think it has some benefits.

Chero.
ZDevil
Where is the download location? I tried to find it but get lost ...

The only place I can find is here http://www.angstrom-distribution.org/unsta...spitz/20070917/, but which one?

[ ] Angstrom-x11-image-glibc-ipk-2007.9-test-20070917-spitz-installkit.tgz 17-Sep-2007 09:48 17M
[ ] Angstrom-x11-image-glibc-ipk-2007.9-test-20070917-spitz-installkit.tgz.md5 17-Sep-2007 09:48 170
[ ] Angstrom-x11-office-image-glibc-ipk-2007.9-test-20070917-spitz-installkit.tgz 17-Sep-2007 10:29 45M
[ ] Angstrom-x11-office-image-glibc-ipk-2007.9-test-20070917-spitz-installkit.tgz.md5 17-Sep-2007 10:29 177
[ ] Angstrom-x11-pimlico-image-glibc-ipk-2007.9-test-20070917-spitz-installkit.tgz 17-Sep-2007 09:53 20M
[ ] Angstrom-x11-pimlico-image-glibc-ipk-2007.9-test-20070917-spitz-installkit.tgz.md5

Also does hwclock work in 2.6.22? I cannot access the system clock after switching to 2.6.17 (complaint about missing /etc/rtc ).
Chero
QUOTE(ZDevil @ Oct 3 2007, 02:09 PM) *
Where is the download location? I tried to find it but get lost ...

The only place I can find is here http://www.angstrom-distribution.org/unsta...spitz/20070917/, but which one?

[ ] Angstrom-x11-image-glibc-ipk-2007.9-test-20070917-spitz-installkit.tgz 17-Sep-2007 09:48 17M
[ ] Angstrom-x11-image-glibc-ipk-2007.9-test-20070917-spitz-installkit.tgz.md5 17-Sep-2007 09:48 170
[x] Angstrom-x11-office-image-glibc-ipk-2007.9-test-20070917-spitz-installkit.tgz 17-Sep-2007 10:29 45M
[ ] Angstrom-x11-office-image-glibc-ipk-2007.9-test-20070917-spitz-installkit.tgz.md5 17-Sep-2007 10:29 177
[ ] Angstrom-x11-pimlico-image-glibc-ipk-2007.9-test-20070917-spitz-installkit.tgz 17-Sep-2007 09:53 20M
[ ] Angstrom-x11-pimlico-image-glibc-ipk-2007.9-test-20070917-spitz-installkit.tgz.md5

Also does hwclock work in 2.6.22? I cannot access the system clock after switching to 2.6.17 (complaint about missing /etc/rtc ).


I used the big one. Not sure if it's any different for the others, I suppose the only difference are the included apps.

I suppose it does : I didn't loose time-settings on reboot and I can use it to query the clock. (I use "date" to change settings, not sure what is called by it but it works)

Chero.
ZDevil
Thank. I just choose the small one. Will start over again.
The 2.6.22 kernel seems to have the cpufreq patch. Can you play with dvfm? smile.gif

dvfm 16 4 1 2 1 # 416 mhz
dvfm 16 5 1 2 1 # 520 mhz
dvfm 16 6 1 2 1 # 624 mhz
Chero
dvfm: command not found sad.gif
jpmatrix
QUOTE(Chero @ Oct 3 2007, 05:19 PM) *
dvfm: command not found sad.gif


same for me!

i've just upgraded titchy to kernel 2.6.22
tried my belkin bt CF card and ... it works!
though i had to hciattach /dev/ttyS4 bcsp


bad news: i've broker my X server
i wanted to disable auto X login on boot
so i update-rd.c -f remove xdm
then apt-get remove xdm

now /opt/kdrive/Xfbdev complains about libXfont.so.1 that it cannot found............
any help please???????
ZDevil
QUOTE(jpmatrix @ Oct 3 2007, 05:32 PM) *
QUOTE(Chero @ Oct 3 2007, 05:19 PM) *
dvfm: command not found sad.gif


bad news: i've broker my X server
i wanted to disable auto X login on boot
so i update-rd.c -f remove xdm
then apt-get remove xdm

now /opt/kdrive/Xfbdev complains about libXfont.so.1 that it cannot found............
any help please???????


How about reinstalling the libxfont1 package?
Chero
QUOTE(ZDevil @ Oct 3 2007, 05:37 PM) *
QUOTE(jpmatrix @ Oct 3 2007, 05:32 PM) *
QUOTE(Chero @ Oct 3 2007, 05:19 PM) *
dvfm: command not found sad.gif


bad news: i've broker my X server
i wanted to disable auto X login on boot
so i update-rd.c -f remove xdm
then apt-get remove xdm

now /opt/kdrive/Xfbdev complains about libXfont.so.1 that it cannot found............
any help please???????


How about reinstalling the libxfont1 package?


Did you only remove xdm or also the so-called not longer needed packages ?
Maybe just apt-get install xdm again and only remove it from rc.d.

At least your BT card works .... wink.gif

Chero.
ZDevil
QUOTE(Chero @ Oct 3 2007, 01:59 PM) *
- Not sure whether speed is different - I haven't been testing this.
- The mouse is still "rotated".
- both my wifi cards are recognized out of the box, without having two interfaces (wlan0 and wifi0)
- my bluetooth-CF forces the serial_cs module to load without errors
- sound : I'll check that one


My ambicom wifi card cannot work again after switching to 2.6.22. Falling back to 2.6.20 it works just fine. Why? wacko.gif
jpmatrix
QUOTE(Chero @ Oct 3 2007, 05:54 PM) *
QUOTE(ZDevil @ Oct 3 2007, 05:37 PM) *
QUOTE(jpmatrix @ Oct 3 2007, 05:32 PM) *
QUOTE(Chero @ Oct 3 2007, 05:19 PM) *
dvfm: command not found sad.gif


bad news: i've broker my X server
i wanted to disable auto X login on boot
so i update-rd.c -f remove xdm
then apt-get remove xdm

now /opt/kdrive/Xfbdev complains about libXfont.so.1 that it cannot found............
any help please???????


How about reinstalling the libxfont1 package?


Did you only remove xdm or also the so-called not longer needed packages ?
Maybe just apt-get install xdm again and only remove it from rc.d.

At least your BT card works .... wink.gif

Chero.


playing with apt-get i succeed in reinstalling things... but now i can only log to X as root... it says my usual user is forbidden...
i guess i'd find the answer on google but feel free to help me wink.gif

guys we're trashing this bluetooth thread! what about opening a new kernel 2.6.22 thread?

and using wifi thread for wifi related problems ? wink.gif i'll try my asus wl110 with kernel 2.6.22 to see if it continues to work though smile.gif
Chero
Good suggestion about a new thread - you took the words right out of my mouth ...
Can't test anything now - I'm creating a rootfs tarball
My kids are using both my home-boxes and all I have left is my second Zaurus, so feel free to start the thread already.

Edit : new thread created

Chero.
jpmatrix
tested download speed with my belkin FT0820: speed seems limited to 9342 B/s .... (that was the same with angstrom)
with my MSI 6970 USB BT dongle, speed limit was about 43 Kb/s !
little bit disappointed....where is the bottleneck ? CF bus ? belkin limit ??
jpmatrix
each time i plug my belkin cf bt card or when i resume from suspend, i've to type
hciattach /dev/ttyS4 bcsp
for it to work

do you know a way to do that automaticaly ?
Chero
QUOTE(jpmatrix @ Oct 7 2007, 02:32 PM) *
each time i plug my belkin cf bt card or when i resume from suspend, i've to type
hciattach /dev/ttyS4 bcsp
for it to work

do you know a way to do that automaticaly ?


http://lkrauss.de/zaurus/billionton-cfbt02-b2.php

Check the site above (it's in german), especially the /etc/bluetooth/uart file. My guess is you have to do something like that to make it work.

Chero.
jpmatrix
argh!
i've just tried again my belkin cf under debian eabi kernel 2.6.23 and it no longer works !!!
the card is discovered but when i hciattach it, it keeps on sending error messages that fill the screen without any chance to type something:

bcsp_recv: Error in BCSP hdr checksum
bcsp_recv: Short BCSP packet

i'll google to find out but anyone succeed in ? i'll try my msi bt dongle too
jpmatrix
my MSI usb BT dongle is working under debian eabi.
so i could have a bt dialup networking with my nokia gsm.
i update the top thread for now; i don't know what is happening about my Belkin CF BT...
zeigerpuppy
I am having a bit of trouble getting my (Socket Rev G I think) bluetooth card working
would like to use PPP via GPRS, had this working OK in pdaXrom

yonggon kernel 2.6.23.9
I have installed bluez-utils

pccardctl ident:
Socket 1
product info: "Socket", "CF+ Personal Network Card Rev 2.5", "."
manfid: 0x0104 0x0096
function: 2 (serial)

hciattach: returns nothing

dmesg:
pccard: PCMCIA card inserted into slot 1
pcmcia: registering new device pcmcia1.0
pcmcia: request for exclusive IRQ could not be fulfilled.
pcmcia: the driver needs updating to supported shared IRQ lines.
ttyS0: detected caps 00000700 should be 00000100
1.0: ttyS4 at I/O 0xc48403f8 (irq = 169) is a 16C950/954

hciattach /dev/ttyS4 bcsp
BCSP initialization timed out

any ideas?
Vitel
QUOTE(zeigerpuppy @ Dec 17 2007, 03:29 AM) *
any ideas?

Try this:
QUOTE
#setserial /dev/ttyS4 baud-base 921600
#hciattach -s 921600 /dev/ttyS4 bcsp
jpmatrix
QUOTE(Vitel @ Dec 17 2007, 02:57 PM) *
QUOTE(zeigerpuppy @ Dec 17 2007, 03:29 AM) *
any ideas?

Try this:
QUOTE
#setserial /dev/ttyS4 baud-base 921600
#hciattach -s 921600 /dev/ttyS4 bcsp



i'm just trying with my (working) Belkin CF BT and i have a "command not found" with the setserial command. I guess you've to install some package to have it working wink.gif

which download speed do you have with your CF BT ? mine seems stuck to 9.28kb/s but i can reach more than 40 kb/s when using my USB BT dongle... i wonder if the setserial command would give better results.
Vitel
QUOTE(jpmatrix @ Dec 17 2007, 08:31 AM) *
i'm just trying with my (working) Belkin CF BT and i have a "command not found" with the setserial command. I guess you've to install some package to have it working wink.gif
apt-get install setserial smile.gif

QUOTE(jpmatrix @ Dec 17 2007, 08:31 AM) *
which download speed do you have with your CF BT ? mine seems stuck to 9.28kb/s but i can reach more than 40 kb/s when using my USB BT dongle... i wonder if the setserial command would give better results.
I have approximately the same limit for CF BlueTooth (Billionton).
zeigerpuppy
QUOTE(Vitel @ Dec 17 2007, 05:57 AM) *
QUOTE(zeigerpuppy @ Dec 17 2007, 03:29 AM) *
any ideas?

Try this:
QUOTE
#setserial /dev/ttyS4 baud-base 921600
#hciattach -s 921600 /dev/ttyS4 bcsp




No joy blink.gif

with
setserial /dev/ttyS4 baud_base 921600
hciattach -s 921600 /dev/ttyS4 bcsp

I still get BCSP initialization timed out
laan
QUOTE(zeigerpuppy @ Dec 17 2007, 10:22 PM) *
QUOTE(Vitel @ Dec 17 2007, 05:57 AM) *
QUOTE(zeigerpuppy @ Dec 17 2007, 03:29 AM) *
any ideas?

Try this:
QUOTE
#setserial /dev/ttyS4 baud-base 921600
#hciattach -s 921600 /dev/ttyS4 bcsp




No joy blink.gif

with
setserial /dev/ttyS4 baud_base 921600
hciattach -s 921600 /dev/ttyS4 bcsp

I still get BCSP initialization timed out


After updating to last Angstrom kernel my Belkin CF BT is working perfectly, no need to change nothing, detected and attached at first, dial-up networking working fine with a V3x

happy.gif
jpmatrix
QUOTE(laan @ Jan 17 2008, 10:04 PM) *
QUOTE(zeigerpuppy @ Dec 17 2007, 10:22 PM) *
QUOTE(Vitel @ Dec 17 2007, 05:57 AM) *
QUOTE(zeigerpuppy @ Dec 17 2007, 03:29 AM) *
any ideas?

Try this:
QUOTE
#setserial /dev/ttyS4 baud-base 921600
#hciattach -s 921600 /dev/ttyS4 bcsp




No joy blink.gif

with
setserial /dev/ttyS4 baud_base 921600
hciattach -s 921600 /dev/ttyS4 bcsp

I still get BCSP initialization timed out


After updating to last Angstrom kernel my Belkin CF BT is working perfectly, no need to change nothing, detected and attached at first, dial-up networking working fine with a V3x

happy.gif


great! are you talkin about this kernel ?
zImage-2.6.23-spitz-20080106233423.bin

nickk9
I cant get BT worked in eabi. I did all the steps from the first post and when i do 'pon provider' my phone (nokia 6310) asks about passkey, i enter the same passkey from hci.conf and then my nokia displays 'Connecting' progress bar forever. I use BT USB dongle. The very same hardware (phone, usb bt, zaurus) works fine in cacko, so i suppose its not hw problem.

hciconfig hci0 prints 'UP RUNNING PSCAN ISCAN' as it should. RX, TX error counters both zero.

The same BT binding problem i got immediate if i do 'rfcomm connect' instead of rfcomm 'bind', so i believe it is the problem with BT connection itself, not gprs/ppp issue.

Any suggestions ?
nickk9
Seems i solved the problem with http://www.zedd.nl/?p=8
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.