LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-21-2007, 01:36 PM   #1
adriaan.klue
LQ Newbie
 
Registered: Apr 2007
Posts: 2

Rep: Reputation: 0
Issue with BlueZ pin (I think)


(using MDV2007.0, bluetooth works, phone gprs works)

I'm trying to set up my mobile as a modem (bluetooth & gprs). Using KPPP, I've configured the modem and account, and got to the point where the phone asks if it should bond to "BlueZ (0)" after I click on "connect" in the KPPP interface. On saying "yes" to this, it asks for the passkey, but then keeps returning "Invalid PIN".

My /etc/bluetooth/hcid.conf looks like this (default after bluez installation from MDV2007.0 package archive, though I've changed the passskey):

Code:
options {
	autoinit yes;
	security auto;
	pairing multi;
	passkey "1234";
}

device {
	name "BlueZ (%d)";
	class 0x3e0100;
	iscan enable; pscan enable;
	lm accept;
	lp rswitch,hold,sniff,park;
}
At some point I removed the 'passkey "1234";' line and put 'pin_helper /etc/bluetooth/bluepin;', with the bluepin file containing:
!/sh echo "PIN:1234"
but this did not seem to solve anything.

My /etc/bluetooth/rfcomm.conf looks like this:

Code:
rfcomm0 {
	bind yes;
	device 00:1a:db:bb:78:6b;
	channel 1;
	comment "Motorola Phone";
}
(The "channel 1" I got from running 'sdptool browse 00:1a:db:bb:78:6b')

The MDV2007.0 Errata contains the following, and I include this because I don't know if it's relevant to my issue:

Quote:
See also Image:bug_small.png Bug #24359 and update advisory MDKA-2007:008. Mandriva Linux 2007 includes the latest version (3.2) of bluez, the Linux Bluetooth support layer. This changed caused problems with the system for running an application to ask for PIN codes when pairing or authenticating with another bluetooth device, rendering this operation difficult. An updated bluez-utils package, bluez-utils-3.4-4.1mdv2007.0, was released through the official update channels on January 11th, 2007 that resolves this issue by ensuring the PIN code will be requested when necessary. Use MandrivaUpdate to fetch and install this update. You may still experience your system not being discoverable by other bluetooth devices: refer to Issues with Bluetooth discoverability, below, for a workaround for this problem.
Any help would be very much appreciated.
 
Old 05-17-2007, 07:50 AM   #2
adriaan.klue
LQ Newbie
 
Registered: Apr 2007
Posts: 2

Original Poster
Rep: Reputation: 0
sorted

I installed MDV2007.1 (MDV Spring) and it took me no more than five minutes to set up my phone as a gprs modem using bluetooth. It seemed the problem had everything to do with the bug in the MDV2007.0 release. The page at the link below was sufficient in guiding me to set up my mobile as specified...

http://www.integrasoftware.it/index....d=84&Itemid=28
 
Old 01-15-2009, 08:25 AM   #3
simopal6
Member
 
Registered: Jun 2006
Location: Italy
Distribution: Slackware 13.1
Posts: 230

Rep: Reputation: 30
I've just had a similar problem, using bluez 3.26 from Slackware 12.1 packages.
When I tried to send a file with obexftp, on my mobile a pin input screen appeared, but whatever I wrote was wrong.
I found out I had to put the pin in /etc/bluetooth/passkeys/default .
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Motorola Razr Bluetooth PIN issue nikolayds Linux - Hardware 6 02-08-2008 07:50 PM
Have anyone set up Bluez 3.0? i_joh Linux - Software 1 06-14-2006 12:36 AM
dbus and bluez chopp Slackware 3 02-20-2006 12:49 AM
missing Bluez triona Fedora 1 05-05-2005 04:36 AM
Bluez????? abhay7182 Linux - Laptop and Netbook 0 08-20-2004 05:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:11 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration