LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Bluetooth Pairing (https://www.linuxquestions.org/questions/linux-networking-3/bluetooth-pairing-876873/)

geller6980 04-24-2011 09:59 PM

Bluetooth Pairing
 
Please, if I am in the wrong place for a bluetooth question, point me to the correct location. Thanks

I'm on lubuntu and all packages are fully updated, including blueman and all bluez

I'm using RFCOMM to connect to my Nokia 6102i phone.

I can get it to connect with rfcomm, but it requires a passcode or a pin for each time I make a connection. is there a way to make this persistent once they are paired?

Steps I have taken to rectify:
  • I have the phone MAC address flagged in blueman as a trusted device
  • I have the pairing profile on the phone set to "Auto connect without confirmation"
  • I have deleted the pairing profile on the phone many times
  • I have tried other Lunix OS's (PCLinuxOS presents the EXACT same problem)
  • I have rebooted phone
  • I tried this on my blackberry, and get different prompts, but still get an accept / deny popup, asking to validate a pin

Here's my RFCOMM.conf:

Quote:

#
# RFCOMM configuration file.
#
rfcomm0 {
bind yes;
device 00:18:C5:94:23:F6;
channel 3;
}
rfcomm1 {
bind yes;
device 40:5F:BE:30:36:C7;
channel 3;
}
I posted this question on freenode #bluez-users and got the response
Quote:

Define workstation as trusted device on mobile network terminal
Unfortunately I do not know what a mobile network terminal is, but I thought I have the device flagged as trusted in all possible locations

Details on exactly what I'm doing:
in a root terminal I run: rfcomm connect 0

Phone prompts me to input a passcode. After I enter passcode, I get a popup on my machine called pairing request, asking me to put in a PIN code. They match, great and I'm good to go for that session.

Unfortunately, I need to go through this passcode process every time. I'm looking to automate the connection, so there is no need to input a PIN/Passcode everytime.
I have scrubbed the net looking for someone who has this problem, and cannot find any documentation.

Help me, Obi-Wan Kenobi (aka LinuxQuestions.org), you're my only hope...

Thanks

Scott

geller6980 04-30-2011 07:41 PM

Is there no response from the community because I didn't provide enough information, or is it because no-one has encountered this issue?

Just looking for some help since it's driving me crazy!

Thanks

Scott

geller6980 05-29-2011 10:23 AM

Not sure what the protocol is here, but I'll offer $100 transferred via paypal to the person who gets this resolved for me

Thanks

Scott

tredegar 05-29-2011 01:16 PM

Quote:

Is there no response from the community because I didn't provide enough information, or is it because no-one has encountered this issue?
Maybe they read "lubuntu" and just moved on, as I nearly did. Possibly they are just not interested in BT. No matter.

I just tested it (it took me a while to find a BT device, but): pairing works fine with ubuntu 10.04.2LTS (Yes, I am not "cutting edge", but which version of lubuntu are you using?).

I use gnome. Add to top panel Indicator Applet.
It has a BT icon. Fire it up, Set up new device, connect to it, enter the ubuntu-generated PIN on the device, they are paired. They stay paired. I just sent a JPG to my ancient palm T2, even after both devices were rebooted. It "just works".

So my GUI does all the dirty work for me.

Here is a link that may help you discover what is going wrong at the CLI or the config-files levels:http://www.linuxquestions.org/linux/...s_under_Ubuntu

It's also worth taking a look at /var/lib/bluetooth/* and in particular /var/lib/bluetooth/some:MAC:address(of your phone)/trusts
Maybe give it an edit and make your PC trust the BT MAC address of your phone?

Remember that restarting services on recent ubuntus has changed (with the introduction of upstart instead of SysV init) but /etc/init.d/whateverservice restart may have been replaced with service whateverservice restart. If in doubt, or it doesn't work, reboot. (Off-topic:"Services" used to be called "daemons". I never had to reboot. Is ubuntu getting more and more like windows?).

Not a definitive answer, I know, but I am not asking for money, just trying to help. Perhaps I have given you a few pointers.

I'm quite busy, but will keep an eye on this thread. It's probably something simple, and fixable. Good luck.

geller6980 05-29-2011 09:07 PM

Thank you!

I will be in front of my server on Thursday (traveling for business now) and I'll be sure to post my progress.

Scott


All times are GMT -5. The time now is 08:00 PM.