Linux bluetooth development
 help / color / mirror / Atom feed
From: Sebastiano Vigna <vigna@dsi.unimi.it>
To: "bluez-users@lists.sourceforge.net" <bluez-users@lists.sourceforge.net>
Subject: [Bluez-users] Connecting to a Nokia 6021
Date: Thu, 23 Jun 2005 13:21:28 +0200	[thread overview]
Message-ID: <1119525688.17872.4.camel@sliver.usr.dsi.unimi.it> (raw)

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

I hope someone can help me. I have a brand new Nokia 6021 and I've been
able to set up everything--I can ping the phone, etc. However, when I
try to register the phone with my PC, everything hangs. The last output
of hcidump is

< ACL data: handle 40 flags 0x02 dlen 18
    L2CAP(d): cid 0x0040 len 14 [psm 3]
      RFCOMM(s): PN CMD: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8
      dlci 2 frame_type 0 credit_flow 15 pri 7 ack_timer 0
      frame_size 1019 max_retrans 0 credits 7
> HCI Event: Number of Completed Packets (0x13) plen 5
  0000: 01 28 00 01 00                                    .(...
> ACL data: handle 40 flags 0x02 dlen 18
    L2CAP(d): cid 0x0040 len 14 [psm 3]
      RFCOMM(s): PN RSP: cr 0 dlci 0 pf 0 ilen 10 fcs 0xaa mcc_len 8
      dlci 2 frame_type 0 credit_flow 14 pri 7 ack_timer 0
      frame_size 329 max_retrans 0 credits 0
< ACL data: handle 40 flags 0x02 dlen 8
    L2CAP(d): cid 0x0040 len 4 [psm 3]
      RFCOMM(s): SABM: cr 1 dlci 2 pf 1 ilen 0 fcs 0x59
> HCI Event: Number of Completed Packets (0x13) plen 5
  0000: 01 28 00 01 00                                    .(...
> HCI Event: PIN Code Request (0x16) plen 6
  0000: 10 26 00 70 13 00                                 .&.p..


And them the phone times out. The interesting point is that if you look at the included hcid.conf,
I have a pin helper of my own, containing:

#!/bin/bash
echo "Request $(date)" >>/tmp/req
echo "PIN:112358"

This is never called by the stack.

I couldn't find any log anywhere to find out what's happening, so I'm
really stuck.
-- 
Ciao,

                                        seba

[-- Attachment #2: hcid.conf --]
[-- Type: text/plain, Size: 1484 bytes --]

#
# 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 user;

	# 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/local/bin/bluepin;

	# 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 0x120104;
	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;

	# 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;
}

             reply	other threads:[~2005-06-23 11:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-23 11:21 Sebastiano Vigna [this message]
2005-06-24 15:50 ` [Bluez-users] Re: Connecting to a Nokia 6021 andreas knuth

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=1119525688.17872.4.camel@sliver.usr.dsi.unimi.it \
    --to=vigna@dsi.unimi.it \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox