LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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, 02: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, 08: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, 09:25 AM   #3
simopal6
Member
 
Registered: Jun 2006
Location: Italy
Distribution: Slackware 13.1
Posts: 218

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


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 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 08:50 PM
Have anyone set up Bluez 3.0? i_joh Linux - Software 1 06-14-2006 01:36 AM
dbus and bluez chopp Slackware 3 02-20-2006 01:49 AM
missing Bluez triona Fedora 1 05-05-2005 05:36 AM
Bluez????? abhay7182 Linux - Laptop and Netbook 0 08-20-2004 06:00 AM


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

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration