* [Bluez-users] Connecting to a Nokia 6021
@ 2005-06-23 11:21 Sebastiano Vigna
2005-06-24 15:50 ` [Bluez-users] " andreas knuth
0 siblings, 1 reply; 2+ messages in thread
From: Sebastiano Vigna @ 2005-06-23 11:21 UTC (permalink / raw)
To: bluez-users@lists.sourceforge.net
[-- 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;
}
^ permalink raw reply [flat|nested] 2+ messages in thread* [Bluez-users] Re: Connecting to a Nokia 6021
2005-06-23 11:21 [Bluez-users] Connecting to a Nokia 6021 Sebastiano Vigna
@ 2005-06-24 15:50 ` andreas knuth
0 siblings, 0 replies; 2+ messages in thread
From: andreas knuth @ 2005-06-24 15:50 UTC (permalink / raw)
To: bluez-users
Hi Sebastian,
Sebastiano Vigna <vigna <at> dsi.unimi.it> writes:
>
...
> 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.
In your hcid.conf there are two "PIN-HELPER"s active at the same time! You
should have active only one at the same time. Try it out (deactivate
dbus_pin_helper -> #dbus_pin_helper.
regards,
Andreas
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-06-24 15:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-23 11:21 [Bluez-users] Connecting to a Nokia 6021 Sebastiano Vigna
2005-06-24 15:50 ` [Bluez-users] " andreas knuth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox