Author Topic: Bluetooth Under Debian Eabi  (Read 25871 times)

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Bluetooth Under Debian Eabi
« on: September 24, 2007, 07:30:03 am »
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
« Last Edit: November 01, 2007, 06:55:31 pm by jpmatrix »
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Bluetooth Under Debian Eabi
« Reply #1 on: September 24, 2007, 10:02:11 am »
Quote
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 !
[div align=\"right\"][a href=\"index.php?act=findpost&pid=167865\"][{POST_SNAPBACK}][/a][/div]

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.
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

tux

  • Sr. Member
  • ****
  • Posts: 438
    • View Profile
    • http://
Bluetooth Under Debian Eabi
« Reply #2 on: September 24, 2007, 02:35:22 pm »
Quote
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.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=167869\"][{POST_SNAPBACK}][/a][/div]

 
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!  

So I'll do some research and get back to this thread. I hope some clever type will beat me to the punch.  
Cheers
« Last Edit: September 24, 2007, 03:11:30 pm by tux »
3200 aka BigZ, swapped in 16GB Sandisk Extreme III CF, Cacko 1.23 full,  new SDHC >2GB module,
SL860 Cacko 1.23 full, new SDHC >2GB module,
6000L SharpRom 1.12 + Tetsu kernel,
5500 TKC home on SD x 2 (with SD>1GB),
Archos PMA30 with OPEN PMA (Giraffe),
Nokia 770 (Hackers Edition)
Nokia 800 (ITOS 2008), 4GB SDHC x 2
Asus eeepc 4G (black), with 1GB ram, dual boot Xandros on SSD with Ubuntu Lucid Lynx on 16 GB SDHC,
Tmobile G1 Android (black), with Cyanogen's  Firerat's MTD script and Amon Ra Recovery 1.7.0
Tmobile HTC Wildfire.. rooted and on Cyanogen's 7.3 nightly Rom
Kopi/Kapi on everything bar the phone and the Nokias, there is a beta for the nokias...

All the above are retired

Samsung Note 8 N5110
Samsung Note N7105
FBreader on the lot!

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Bluetooth Under Debian Eabi
« Reply #3 on: September 24, 2007, 03:30:01 pm »
ok
if someone could try a bluetooth usb dongle too that could be great
perhaps this one would work
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Bluetooth Under Debian Eabi
« Reply #4 on: September 25, 2007, 05:11:29 pm »
Quote
ok
if someone could try a bluetooth usb dongle too that could be great
perhaps this one would work
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

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  

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:
[a href=\"http://www.zedd.nl/?p=8]http://www.zedd.nl/?p=8[/url]

so we need to compile passkey_agent
« Last Edit: September 25, 2007, 06:20:16 pm by jpmatrix »
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Bluetooth Under Debian Eabi
« Reply #5 on: September 26, 2007, 04:35:27 am »
Quote from: jpmatrix
so we need to compile passkey_agent

could someone quickly compile it and share the binary ?
otherwise i'll have to wait until tonight
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Bluetooth Under Debian Eabi
« Reply #6 on: September 26, 2007, 06:01:52 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 !!!!!!
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

tux

  • Sr. Member
  • ****
  • Posts: 438
    • View Profile
    • http://
Bluetooth Under Debian Eabi
« Reply #7 on: September 26, 2007, 11:28:24 am »
Quote from: 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 !!!!!!
 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.
 

But I suppose I do need to compike passkey-agent anyway!    Later for that.
« Last Edit: September 26, 2007, 11:38:57 am by tux »
3200 aka BigZ, swapped in 16GB Sandisk Extreme III CF, Cacko 1.23 full,  new SDHC >2GB module,
SL860 Cacko 1.23 full, new SDHC >2GB module,
6000L SharpRom 1.12 + Tetsu kernel,
5500 TKC home on SD x 2 (with SD>1GB),
Archos PMA30 with OPEN PMA (Giraffe),
Nokia 770 (Hackers Edition)
Nokia 800 (ITOS 2008), 4GB SDHC x 2
Asus eeepc 4G (black), with 1GB ram, dual boot Xandros on SSD with Ubuntu Lucid Lynx on 16 GB SDHC,
Tmobile G1 Android (black), with Cyanogen's  Firerat's MTD script and Amon Ra Recovery 1.7.0
Tmobile HTC Wildfire.. rooted and on Cyanogen's 7.3 nightly Rom
Kopi/Kapi on everything bar the phone and the Nokias, there is a beta for the nokias...

All the above are retired

Samsung Note 8 N5110
Samsung Note N7105
FBreader on the lot!

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Bluetooth Under Debian Eabi
« Reply #8 on: September 26, 2007, 02:44:07 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
« Last Edit: September 26, 2007, 02:45:30 pm by jpmatrix »
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

tux

  • Sr. Member
  • ****
  • Posts: 438
    • View Profile
    • http://
Bluetooth Under Debian Eabi
« Reply #9 on: September 26, 2007, 03:05:16 pm »
Quote from: 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
 Cheers I should have been able to find all this with a forum search shouldn'tI!   Thanks for the tips.
3200 aka BigZ, swapped in 16GB Sandisk Extreme III CF, Cacko 1.23 full,  new SDHC >2GB module,
SL860 Cacko 1.23 full, new SDHC >2GB module,
6000L SharpRom 1.12 + Tetsu kernel,
5500 TKC home on SD x 2 (with SD>1GB),
Archos PMA30 with OPEN PMA (Giraffe),
Nokia 770 (Hackers Edition)
Nokia 800 (ITOS 2008), 4GB SDHC x 2
Asus eeepc 4G (black), with 1GB ram, dual boot Xandros on SSD with Ubuntu Lucid Lynx on 16 GB SDHC,
Tmobile G1 Android (black), with Cyanogen's  Firerat's MTD script and Amon Ra Recovery 1.7.0
Tmobile HTC Wildfire.. rooted and on Cyanogen's 7.3 nightly Rom
Kopi/Kapi on everything bar the phone and the Nokias, there is a beta for the nokias...

All the above are retired

Samsung Note 8 N5110
Samsung Note N7105
FBreader on the lot!

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Bluetooth Under Debian Eabi
« Reply #10 on: September 27, 2007, 05:46:09 am »
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 ???
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Bluetooth Under Debian Eabi
« Reply #11 on: September 30, 2007, 01:46:32 pm »
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!!!
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

tux

  • Sr. Member
  • ****
  • Posts: 438
    • View Profile
    • http://
Bluetooth Under Debian Eabi
« Reply #12 on: October 01, 2007, 01:12:03 pm »
 Ping jpmatrix Ping jpmatrix Ping jpmatrix Ping jpmatrix ....

Thanks for you contribution to the TitchyLinux peripheral page.   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.  

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
 
« Last Edit: October 01, 2007, 01:12:56 pm by tux »
3200 aka BigZ, swapped in 16GB Sandisk Extreme III CF, Cacko 1.23 full,  new SDHC >2GB module,
SL860 Cacko 1.23 full, new SDHC >2GB module,
6000L SharpRom 1.12 + Tetsu kernel,
5500 TKC home on SD x 2 (with SD>1GB),
Archos PMA30 with OPEN PMA (Giraffe),
Nokia 770 (Hackers Edition)
Nokia 800 (ITOS 2008), 4GB SDHC x 2
Asus eeepc 4G (black), with 1GB ram, dual boot Xandros on SSD with Ubuntu Lucid Lynx on 16 GB SDHC,
Tmobile G1 Android (black), with Cyanogen's  Firerat's MTD script and Amon Ra Recovery 1.7.0
Tmobile HTC Wildfire.. rooted and on Cyanogen's 7.3 nightly Rom
Kopi/Kapi on everything bar the phone and the Nokias, there is a beta for the nokias...

All the above are retired

Samsung Note 8 N5110
Samsung Note N7105
FBreader on the lot!

Chero

  • Hero Member
  • *****
  • Posts: 1140
    • View Profile
    • http://users.telenet.be/zaurususer/Chero
Bluetooth Under Debian Eabi
« Reply #13 on: October 02, 2007, 03:41:56 pm »
Quote from: jpmatrix
1) i've just tried my Belkin FT0820 Bluetooth CF and :
it has 4 lines of complains about serial_cs: unknown symbol serial8250_xxxx  

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 ...    

Any hints ?

Chero.
HP-95LX -> HP Jornada 680 -> SL-C860 -> SL-C3100 -> Fuji u810 -> SL-C1000 -> HTC uni -> SL-C860 -> SL-C760.
March 12 2009 : Back because the Zaurus is one of a kind.
SL-C760 : pdaXrom
Pandora pre-ordered -> received and tested : great device but not my cup of tea -> sold.

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Bluetooth Under Debian Eabi
« Reply #14 on: October 02, 2007, 04:31:09 pm »
Quote from: Chero
Quote from: jpmatrix
1) i've just tried my Belkin FT0820 Bluetooth CF and :
it has 4 lines of complains about serial_cs: unknown symbol serial8250_xxxx  

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 ...    

Any hints ?

Chero.

kernel 2.6.22 ??? where is it ? where is it ???

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

hope this helps!
« Last Edit: October 02, 2007, 05:48:22 pm by jpmatrix »
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun