All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Magdalinski <smagdali@gmail.com>
To: bluez-users@lists.sourceforge.net
Subject: [Bluez-users] Bluez + 6630 rfcomm was working, suddenly died.
Date: Wed, 20 Apr 2005 15:42:10 +0100	[thread overview]
Message-ID: <e9a6e82b050420074245382ddd@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2427 bytes --]

Hi,

I had bluez + ubuntu hoary making a ppp connection over bluetooth to
my 6630, just fine for a few days, by following the instructions here:

http://www.teaparty.net/technotes/blue-gprs.html

and then suddenly it broke.

now, when I do
'pppd call gprs', it just returns, the phone never prompts me to
accept the connection, and no connection is made.

it seems to be communicating:

 rfcomm show
rfcomm0: 00:12:62:DC:EA:63 channel 1 clean
root@stefvaio:~ # pppd call gprs
root@stefvaio:~ # rfcomm show
rfcomm0: 00:12:62:DC:EA:63 channel 1 config [tty-attached]
root@stefvaio:~ # rfcomm show
rfcomm0: 00:12:62:DC:EA:63 channel 1 config [tty-attached]
root@stefvaio:~ # rfcomm show
rfcomm0: 00:12:62:DC:EA:63 channel 1 config [tty-attached]
root@stefvaio:~ # rfcomm show
rfcomm0: 00:12:62:DC:EA:63 channel 1 config [tty-attached]
root@stefvaio:~ # rfcomm show
rfcomm0: 00:12:62:DC:EA:63 channel 1 config [tty-attached]
root@stefvaio:~ # rfcomm show
rfcomm0: 00:12:62:DC:EA:63 channel 1 config [tty-attached]
root@stefvaio:~ # rfcomm show
rfcomm0: 00:12:62:DC:EA:63 channel 1 config [tty-attached]
root@stefvaio:~ # rfcomm show
rfcomm0: 00:12:62:DC:EA:63 channel 1 disconnecting [tty-attached]
root@stefvaio:~ # rfcomm show
rfcomm0: 00:12:62:DC:EA:63 channel 1 closed
root@stefvaio:~ #

but it doesn't seem able to make the connection anymore

I did a couple of things (overexcited by the ease with which I got it
working), that might have caused this.

I tried to re-pair the phone with the laptop, because I wanted to
change the name of the phone.  So I deleted the pairing on the phone,
and then the /etc/bluetooth/link_key . Now when I re-pair, it finds
the device, but just hangs with 'waiting for stefvaio-0', and then
'says unable to pair' . The phone still works fine with another
machine running OSX (and I realise you can change the name without
re-pairing. woe is me)

so it looks like pairing is the cause of the problem.

How do I re-pair the phone with my laptop, short of reinstalling everything? 

where should I  be looking for further diagnostics?

I also changed my hcid.conf to try and get my palm sync working too,
so that may have caused the problem.

I have attached the hcid.conf in case it's glaringly obvious.

This is a shame. I've waited *years* for my phone to become a decent
access device, and then after a weekend I've broken it.

[-- Attachment #2: hcid.conf --]
[-- Type: application/octet-stream, Size: 1466 bytes --]

#
# HCI daemon configuration file.
#
# $Id: hcid.conf,v 1.4 2004/04/29 20:14:21 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;
	pin_helper /usr/local/bin/pinhelper.sh;
	# 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 0x100;

	# 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,master;
	#
	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 hold,sniff;
	#
	lp rswitch,hold,sniff,park;

	# Authentication and Encryption
	auth enable;
	#encrypt enable;
}

             reply	other threads:[~2005-04-20 14:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-20 14:42 Stefan Magdalinski [this message]
2005-04-20 14:51 ` [Bluez-users] Bluez + 6630 rfcomm was working, suddenly died Marcel Holtmann
2005-04-20 16:15   ` Stefan Magdalinski
2005-04-20 16:19     ` Marcel Holtmann
2005-04-21 11:58       ` Stefan Magdalinski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e9a6e82b050420074245382ddd@mail.gmail.com \
    --to=smagdali@gmail.com \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.