LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 10-02-2005, 09:36 PM   #1
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Lenny/Squeeze/Wheezy/Sid
Posts: 4,053

Rep: Reputation: 484Reputation: 484Reputation: 484Reputation: 484Reputation: 484
Can connect only ONCE to Bluetooth device


Ok, I give up. I have been struggling with this for 5 consequtive hours, and my eyesight starts to get blurred. But maybe someone here has a solution.

I try to connect my laptop to my Nokia 6310 mobile phone using Bluetooth. The Bluez stack is up and runs fine. I can use every tools including hcidump, hcitool, rfcomm and gnokii.

I initiate a session with rfcomm, enter the password on the phone, and the devices are paired. Then I leave rfcomm (ctrl-c). When I try to use rfcomm again, connection is refused. The phone asks whether I want to connect to the laptop. I say "yes", no password is asked, and the connection is terminated immediately.

Only when I delete the paired devices on the phone I am able to reconnect.

I am sure that I am using the correct hcid.conf: if I set pairing = none, I really cannot connect. But it seems like pairing = multi is not allowed, just paring = once.

This is the version of hcid:

Code:
hcid - HCI daemon ver 2.19
This is the output of
Code:
gnokii --identify

Received model NPL-1
IMEI         : 351457203985889
Manufacturer : Nokia
Model        : NPL-1
Revision     : V 5.22
Serial device: closing device
Finally, this is the hcid.conf file:

Code:
#
# HCI daemon configuration file.
#
# $Id: hcid.conf,v 1.7 2004/12/13 14:16:03 holtmann Exp $
#

# HCId options
options {
        # Automatically initialize new devices
        autoinit yes;

        # Security Manager mode
        #   none - Security manager disabled
        #   auto - Use local PIN for incoming connections
        #   user - Always ask user for a PIN
        #
        security auto;

        # Pairing mode
        #   none  - Pairing disabled
        #   multi - Allow pairing with already paired devices
        #   once  - Pair once and deny successive attempts
        pairing multi;

        # PIN helper
        pin_helper /usr/bin/bluez-pin-fixed;


        # D-Bus PIN helper
        #dbus_pin_helper;
}

# Default settings for HCI devices
device {
        # Local device name
        #   %d - device id
        #   %h - host name
        name "%h-%d";

        # Local device class
        class 0x3e0100;

        # Default packet type
        #pkt_type DH1,DM1,HV1;

        # Inquiry and Page scan
        iscan enable; pscan enable;

        # Default link mode
        #   none   - no specific policy
        #   accept - always accept incoming connections
        #   master - become master on incoming connections,
        #            deny role switch on outgoing connections
       lm accept;

        # Default link policy
        #   none    - no specific policy
        #   rswitch - allow role switch
        #   hold    - allow hold mode
        #   sniff   - allow sniff mode
        #   park    - allow park mode
        lp rswitch,hold,sniff,park;

        # Authentication and Encryption (Security Mode 3)
        #auth enable;
        #encrypt enable;
}
 
Old 10-04-2005, 09:27 AM   #2
Nigel_Tufnel
Member
 
Registered: Jul 2002
Location: Easton, PA
Distribution: Debian, Kubuntu, Arch
Posts: 116

Rep: Reputation: 15
I'm not sure about your particular phone. I have a Motorola V551. Have you tried using the KDEBluetooth framework? I've been able to transfer files back and forth between my phone and workstation:
http://pdavila.homelinux.org/blog/?p=39
 
Old 10-04-2005, 03:26 PM   #3
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Lenny/Squeeze/Wheezy/Sid
Posts: 4,053

Original Poster
Rep: Reputation: 484Reputation: 484Reputation: 484Reputation: 484Reputation: 484
I found it!

It is a bug in the phone's firmware. I tried it with another phone with firmware version 5.52, and I can connect multiple times. I did not test it in full, but I hope I can assume Nokia has not added more bugs.

The Nokia is a consumer device after all -- first put it on the market, and fix the bugs later. Isn't it a shame?

Nigel, thanks for your reply anyway.

jlinkels
 
Old 12-10-2007, 03:02 PM   #4
corrosivemisery
LQ Newbie
 
Registered: Jul 2007
Posts: 19

Rep: Reputation: 9
Quote:
Originally Posted by jlinkels View Post
I found it!

It is a bug in the phone's firmware. I tried it with another phone with firmware version 5.52, and I can connect multiple times. I did not test it in full, but I hope I can assume Nokia has not added more bugs.

The Nokia is a consumer device after all -- first put it on the market, and fix the bugs later. Isn't it a shame?

Nigel, thanks for your reply anyway.

jlinkels

I know this is kinda late, but I was posting a Bluetooth question and saw yours.

My Razr 2 has an option to allow a device (my lappy) to be trusted in a sense, so I can connect it up whenever it is in range. I even setup a little shortcut on my desktop too...kinda nifty. Dunno if your phone has that option or not, perhaps that might help a little.
 
Old 12-10-2007, 05:58 PM   #5
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Lenny/Squeeze/Wheezy/Sid
Posts: 4,053

Original Poster
Rep: Reputation: 484Reputation: 484Reputation: 484Reputation: 484Reputation: 484
corrosivemisery: Thanks for the reply. I didn't have that option though. In the mean time I inadvertently broke this phone and got another one of the same type. This one had the new software version, and was connecting all right. For some time we lived happily together.

However, the phone really got old and gave more and more problems. Then I received a new one, a Nokia 6021. This software was SO crappy that there was no Bluetooth menu at at all! No kidding! Anyway, this phone developed another problem and back it went to Nokia. When it came back, it suddenly had a Bluetooth menu. The greatest surprise was that it was working together with Gnokii. Not all functions worked, like file up and download did not work. But mainly it did.

Then I broke my Bluetooth stack on the laptop and I haven't had time to fix it.

The lesson of this story: If you buy a Nokia, check the functionality IN THE STORE before you purchase it. I can't remember having seen such crap Beta sofware in a device.

jlinkels
 
  


Reply

Tags
bluetooth


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
Dialing internet with a bluetooth device from kde arunbabu Linux - Hardware 2 11-06-2005 07:05 PM
bluetooth - which modem device? cubax Linux - Networking 1 08-09-2005 02:09 PM
Bluetooth Device not showing up? kpsr Linux - Newbie 1 06-27-2005 03:37 PM
Driver for USB to Bluetooth device I_Wanna_Kno Linux - Hardware 1 03-09-2005 05:57 PM
how to install a usb bluetooth device anjiie Linux - Hardware 1 03-12-2004 05:52 PM


All times are GMT -5. The time now is 01:55 PM.

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