LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 11-27-2008, 06:56 AM   #1
deadlinx
Member
 
Registered: Feb 2006
Location: Italy
Distribution: Ubuntu FreeBSD
Posts: 92

Rep: Reputation: 15
bluetooth pairing


Hi,

I rarely use bluetooth, anyway,
in the past, I've used it, successfully,
via command-line.

How can I do the pairing, via command line,
on a Kubuntu Intrepid Ibex?

In the past I did the pairing with:
passkey-agent --default /etc/bluetooth/bluepin

Nowaday it is not possible to act in this way yet.


I read here:
https://help.ubuntu.com/community/BluetoothDialup

In this tutorial the new procedure seems to be the following:

sudo hcitool cc your-phone-mac-address

then:

sudo hcitool cc your-phone-mac-address

Unfortunately the first command seems to be successfull
(gives no output), but the second command told me the device is not connected


So how can I do the pairing, via command line,
on a Kubuntu Intrepid Ibex?


If I had more RAM I could use kbluetooth or some GUI,
but unfortunately I need to do the pairing via command line,
because of the low RAM machine I'm on.


Please help,


deadlinx
 
Old 11-28-2008, 12:56 PM   #2
deadlinx
Member
 
Registered: Feb 2006
Location: Italy
Distribution: Ubuntu FreeBSD
Posts: 92

Original Poster
Rep: Reputation: 15
JUuuuuuuuuuuh,

is there anybody reading?

Don't say me there's nobody pairing bluetooth,
via command line in Intrepid Ibex,

so, please, help.


deadlinx
 
Old 11-28-2008, 12:56 PM   #3
deadlinx
Member
 
Registered: Feb 2006
Location: Italy
Distribution: Ubuntu FreeBSD
Posts: 92

Original Poster
Rep: Reputation: 15
Don't say me everybody uses only GUI tools,
I can't belive it,

so please, give an idea and so on,


deadlinx
 
Old 12-02-2008, 10:18 AM   #4
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Rep: Reputation: 30
This forum is not like the Slackware forum. Over there you would have about a dozen answers in a given hour.
 
Old 12-02-2008, 10:19 AM   #5
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Rep: Reputation: 30
When you figure out the command line for Bluetooth, can you post it here. I have a headset and mouse that constantly need reconnecting

thanks
 
Old 12-03-2008, 10:40 AM   #6
deadlinx
Member
 
Registered: Feb 2006
Location: Italy
Distribution: Ubuntu FreeBSD
Posts: 92

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by perry View Post
When you figure out the command line for Bluetooth, can you post it here. I have a headset and mouse that constantly need reconnecting

thanks


hcitool scan (to find out bt devices)

This command to do the pairing using a pre-edited file in /etc/bluetooth:

passkey-agent --default /etc/bluetooth/bluepin



Now consider that passkey-agent command does not exist in Intrepid anymore
and I've written something about what I've read online that, anyway, doesn't work.


In the past, after pairing, I've no problem of sort in transferring files and so on. I used obexftp etc but I think it has no importance 'cause the problem is "how to pair nowaday" and nothing more.


deadlinx
 
Old 12-03-2008, 05:10 PM   #7
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466

Rep: Reputation: 51
I wonder if that's why the right click on file Send to with bluettoth no longer works. I've found that right clickinging the bluetooth applet icon offers a send to that does work. I upgraded from 8.04 and all my pared buetooth devices were carried forward.
 
Old 12-04-2008, 01:04 PM   #8
deadlinx
Member
 
Registered: Feb 2006
Location: Italy
Distribution: Ubuntu FreeBSD
Posts: 92

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by fragos View Post
I wonder if that's why the right click on file Send to with bluettoth no longer works.
Uhm,
ok, I know GUI is cool,
but what about answering my question?

deadlinx
 
Old 12-04-2008, 02:50 PM   #9
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466

Rep: Reputation: 51
I gave some insite that might help you find an answer. Bluetooth is somehow different in 8.10. Nasty people don't get help.
 
Old 12-06-2008, 04:06 AM   #10
deadlinx
Member
 
Registered: Feb 2006
Location: Italy
Distribution: Ubuntu FreeBSD
Posts: 92

Original Poster
Rep: Reputation: 15
Hi,


---Maybe something I've written is not so clear, so:---


-1- In the past I've used bluetooth successfully;

-2- I've used bluetooth, via command line, successfully.




---In the end the reason I'm writing here is the following:---


On Intrepid Ibex, the procedure I was used to use, (passkey-agent...)
seems to be *no more available* these leads us, obviuosly,
to the conclusion something have been changed.






----> @ Perry <--------------------------

Quote:
Originally Posted by perry View Post
When you figure out the command line for Bluetooth, can you post it here.

Going back to the text of my first post:
I said, I've surfed the web looking for
answers and I've found people using:

sudo hcitool cc myPhoneMacAddress

to pair, now, their devices,
but when I use it there's *no output*,
so, everything seems to be succefull and,
I go forward with the command:

sudo hcitool auth myPhoneMacAddress


unfortunately this gives me the output:
"Device not connected"...so, probably,
the first command *was not* successfull.




-----> @ Fragos <-------------------


I knew Intrepid Ibex is different,
in BT usage,
than previous Ubuntu releases,
this is the reason of my first post,
the question is:"how about solution..?"





---The problem is:---

"How can I do the BT pairing,
via-CLI, successfully,
on Intrepid Ibex?"



---The problem is not:---

-1- how it works via GUI (I know, but low ram...)

-2- how it worked, in the past (I know, I've used it...)

-3- everything not mentioned in "The problem is" section






deadlinx




P.S.
If there's something to clear,
please ask me about it
 
Old 12-10-2008, 12:09 PM   #11
deadlinx
Member
 
Registered: Feb 2006
Location: Italy
Distribution: Ubuntu FreeBSD
Posts: 92

Original Poster
Rep: Reputation: 15
Hi,


it seems to be
a known problem
with no solution
...uff...
too many bugs
in this release.
 
Old 12-16-2008, 01:11 PM   #12
jpwigan
LQ Newbie
 
Registered: Jun 2008
Distribution: RHEL, Fedora, Gentoo, Slackware
Posts: 27

Rep: Reputation: 15
I've been trying to do the same thing via fedora 9, and now fedora 10. Same basic problems... the 'hcitool cc' is working, though, the connection just fails immediately. Try this and you'll see:

hcitool cc <bdaddr>; hcitool con

(wait 3 seconds)

hcitool con


It looks like the connection gets established, but then immediately dies. I've been playing with dbus-send and the bluetoothd dbus interface, but I haven't been able to work out a better solution.

Gnome's bluetooth-applet seems to work, which means they must be doing things differently than hcitool. Maybe if we can work out how bluetooth-applet does it, we can craft a CLI script that uses dbus-send to achieve the same result.
 
Old 12-17-2008, 09:35 AM   #13
deadlinx
Member
 
Registered: Feb 2006
Location: Italy
Distribution: Ubuntu FreeBSD
Posts: 92

Original Poster
Rep: Reputation: 15
Hi,


before replying,
I'd like to thank you
for your competent post!




Quote:
Originally Posted by jpwigan View Post
I've been trying to do the same thing via fedora 9, and now fedora 10. Same basic problems... the 'hcitool cc' is working, though, the connection just fails immediately.




This induces me to suppose
it's a BlueZ bug.





Quote:
Originally Posted by jpwigan View Post
Gnome's bluetooth-applet seems to work, which means they must be doing things differently than hcitool.



I don't use, now, Gnome, anyway
I totally agree with you.

I tried kbtobexclient and
it seems to bypass the problem
binding rfcomm on channel 5,
so it works (without asking
for a pairing password!!).

Unfortunately if I try to,
manually, bind rfcomm on
channel 5, it asks for
a password, but it doesn't
use nor the default one, nor
the one in pin or bluepin
file in /etc/bluetooth,
so, in the end, it isn't
able to do the pairing.

:-(



deadlinx
 
Old 12-17-2008, 09:40 AM   #14
deadlinx
Member
 
Registered: Feb 2006
Location: Italy
Distribution: Ubuntu FreeBSD
Posts: 92

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by deadlinx View Post
Hi,
I tried kbtobexclient and
it seems to bypass the problem
binding rfcomm on channel 5,
so it works (without asking
for a pairing password!!).

kbtobexclient overrides
password requirement,
but I don't, exactely,
know how it does,
anyway I'm sure the
solution is
"behind the corner"
 
Old 12-17-2008, 09:42 AM   #15
jpwigan
LQ Newbie
 
Registered: Jun 2008
Distribution: RHEL, Fedora, Gentoo, Slackware
Posts: 27

Rep: Reputation: 15
On further inspection, bluez-4.x is just *weird*... /etc/bluetooth/main.conf is a completely different configuration file, and if there's a place for a default pin, it doesn't seem to be documented.

In addition, gnome's bluetooth-applet *doesn't* work in f10. I jumped the gun on that one. So now, no bluetooth at all for me, even with the gui (and I agree with your approach - I would far prefer to stick with the command line).

I'll continue experimenting with it as time allows. If I discover anything, I'll post it here.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bluetooth pairing jmike72 Linux - Hardware 2 01-06-2008 09:08 AM
Bluetooth pairing problems kkmic Slackware 19 12-03-2007 05:22 AM
bluetooth LG CU500 pairing problems txmedic03 Linux - Wireless Networking 0 01-22-2007 10:52 PM
Bluetooth pairing Dj Blaze Linux - Laptop and Netbook 0 01-28-2006 05:46 AM
bluetooth pairing meknb Linux - Hardware 0 01-05-2006 05:06 PM


All times are GMT -5. The time now is 08:16 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration