Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Feb 2005 09:11:45 -0800
From:      Maksim Yevmenkin <maksim.yevmenkin@savvis.net>
To:        dario-dot-ferroni-at-acantho-com@acantho.com
Cc:        freebsd-mobile@freebsd.org
Subject:   Re: GPRS over bluetooth
Message-ID:  <422350D1.3080906@savvis.net>
In-Reply-To: <20050228160416.GA8452@acantho.com>
References:  <20050228154804.GA8441@acantho.com> <20050228160416.GA8452@acantho.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello Dan,

it seems that you did not start hcsecd(8). according to the dump 
everything stops after "Link Key Request" event. that is your phone is 
trying to authenticate incoming connection. hcsecd(8) must be running as 
it responds to authentication requests.

thanks,
max

p.s. next time please ask bluetooth related questions in 
freebsd-bluetooth mailing list.

dario-dot-ferroni-at-acantho-com@acantho.com wrote:
> Hi folks,
> Following the handbook, I tried to set up GPRS over bluetooth with a Nokia 6310i 
> on my Dell Latitude D505 running FreeBSD 5.3.
> Everything seems working OK by bluetooth, until I try using rfcomm_pppd, where I 
> keep getting this error:
> 
> Feb 20 16:54:45 pc-bsd rfcomm_pppd[766]: Could not connect socket.
> Connection refused (61)
> 
> I made several tries before posting but without results; attached you can find my
> configuration files.
> 
> Any help, suggestion or link is greatly appreciated.
> 
> Many thanks in advance
> 
> Dan
> 
> 
> 
> 
> ----------------------------------------------------------------------
> pc-bsd# dmesg | grep ubt0
> ubt0: Dell BC02 Bluetooth USB Adapter, rev 2.00/12.66, addr 2
> ubt0: Dell BC02 Bluetooth USB Adapter, rev 2.00/12.66, addr 2
> ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82,
> bulk-out=0x2
> ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3; wMaxPacketSize=49; nframes=6, buffer size=294
> 
> pc-bsd# /etc/rc.bluetooth start ubt0
> BD_ADDR: <m:y:l:a:p:t:o:p:>
> Features: 0xff 0xff 0x8f 0x78 0x18 0x18 00 0x80 
> <3-Slot> <5-Slot> <Encryption> <Slot offset>
> <Timing accuracy> <Switch> <Hold mode> <Sniff mode>
> <Park mode> <RSSI> <Channel quality> <SCO link>
> <HV2 packets> <HV3 packets> <u-law log> <A-law log> <CVSD>
> <Paging scheme> <Power control> <Transparent SCO data>
> <Unknown2.7> 
> Max. ACL packet size: 192 bytes
> Number of ACL packets: 8
> Max. SCO packet size: 64 bytes
> Number of SCO packets: 8
> 
> pc-bsd# hccontrol -n ubt0hci inquiry
> Inquiry result, num_responses=1
> Inquiry result #0
> BD_ADDR: <m:y:c:e:l:l:p:h:o:n:e>
> Page Scan Rep. Mode: 0x1
> Page Scan Period Mode: 00
> Page Scan Mode: 00
> Class: 50:02:04
> Clock offset: 0x100b
> Inquiry complete. Status: No error [00]
> 
> pc-bsd# l2ping -a <m:y:c:e:l:l:p:h:o:n:e>
> 0 bytes from <m:y:c:e:l:l:p:h:o:n:e> seq_no=0 time=133.043 ms result=0
> 0 bytes from <m:y:c:e:l:l:p:h:o:n:e> seq_no=0 time=133.043 ms result=0
> 0 bytes from <m:y:c:e:l:l:p:h:o:n:e> seq_no=0 time=133.043 ms result=0
> 0 bytes from <m:y:c:e:l:l:p:h:o:n:e> seq_no=0 time=133.043 ms result=0
> 
> pc-bsd# rfcomm_pppd -a <m:y:c:e:l:l:p:h:o:n:e> -c -C 1 -l
> rfcomm-dialup
> pc-bsd#
> 
> pc-bsd# tail -f /var/log/messages   
> Feb 20 16:54:45 pc-bsd rfcomm_pppd[766]: Could not connect socket.
> Connection refused (61)
> 
> pc-bsd# tail -f /var/log/ppp.log
> 
> pc-bsd# hcidump -x
> HCIDump - HCI packet analyzer ver 1.5
> device: any snap_len: 65535 filter: 0xffffffff
> < HCI Command: Create Connection(0x01|0x0005) plen 13
> 07 05 3C 57 60 00 18 CC 00 00 00 00 00 
> 
>>HCI Event: Command Status(0x0f) plen 4 00 01 05 04 
>>HCI Event: Connect Complete(0x03) plen 11
> 
> 00 2E 00 07 05 3C 57 60 00 01 00 
> < HCI Command: Write Link Policy Settings(0x02|0x000d) plen 4
> 2E 00 0E 00 
> < ACL data: handle 0x002e flags 0x02 dlen 12
> L2CAP(s): Connect req: psm 3 scid 0x0059
> 
>>HCI Event: Number of Completed Packets(0x13) plen 5 01 2E 00 01 00 
>>HCI Event: Max Slots Change(0x1b) plen 3 2E 00 05 
>>HCI Event: Command Complete(0x0e) plen 6 01 0D 08 00 2E 00 
>>ACL data: handle 0x002e flags 0x02 dlen 16
> 
> L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0059 result 0 status 0
> < ACL data: handle 0x002e flags 0x02 dlen 12
> L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
> 
>>HCI Event: QoS Setup Complete(0x0d) plen 21
> 
> 00 2E 00 00 01 00 00 00 00 00 00 00 00 88 13 00 00 FF FF FF 
> FF 
> 
>>HCI Event: Number of Completed Packets(0x13) plen 5 01 2E 00 01 00 
>>ACL data: handle 0x002e flags 0x02 dlen 16
>>ACL data: handle 0x002e flags 0x01 dlen 16
>>ACL data: handle 0x002e flags 0x01 dlen 8
> 
> L2CAP(s): Config req: dcid 0x0059 flags 0x0000 clen 28
> MTU 32772 Unknown (type 03, len 22) 
> < ACL data: handle 0x002e flags 0x02 dlen 14
> L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
> 
>>ACL data: handle 0x002e flags 0x02 dlen 14
> 
> L2CAP(s): Config rsp: scid 0x0059 flags 0x0000 result 0 clen 0
> < ACL data: handle 0x002e flags 0x02 dlen 8
> L2CAP(d): cid 0x40 len 4 [psm 3]
> RFCOMM(s): SABM: cr 1 dlci 0 pf 1 ilen 0 fcs 0x1c 
> 
>>HCI Event: Number of Completed Packets(0x13) plen 5 01 2E 00 01 00 
>>HCI Event: Number of Completed Packets(0x13) plen 5 01 2E 00 01 00 
>>ACL data: handle 0x002e flags 0x02 dlen 8
> 
> L2CAP(d): cid 0x59 len 4 [psm 3]
> RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7 
> < ACL data: handle 0x002e flags 0x02 dlen 18
> L2CAP(d): cid 0x40 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
> 667 max_retrans 0 credits 7
> 
>>HCI Event: Number of Completed Packets(0x13) plen 5 01 2E 00 01 00 
>>ACL data: handle 0x002e flags 0x02 dlen 16
>>ACL data: handle 0x002e flags 0x01 dlen 2
> 
> L2CAP(d): cid 0x59 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
> 324 max_retrans 0 credits 0
> < ACL data: handle 0x002e flags 0x02 dlen 8
> L2CAP(d): cid 0x40 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 01 2E 00 01 00 
>>HCI Event: Link Key Request(0x17) plen 6 07 05 3C 57 60 00 
>>HCI Event: Disconn Complete(0x05) plen 4
> 
> 00 2E 00 08 
> 
> -----------
> hcsecd.conf
> -----------
> device {
>         bdaddr   c:e:l:l:p:h:o:n:e ;
> 	name    "Nokia 6310i" ;
> 	key      nokey ;
> 	pin      "1234" ;
> }
>  
> --------
> ppp.conf
> --------
>  
> default:
>   set log Phase Chat LCP IPCP CCP tun command
>   ident user-ppp VERSION (built COMPILATIONDATE)
>  
>  rfcomm-dialup:
>    enable force-scripts
>    set debug all
>    set speed 115200
>    set authname "test"
>    set authkey "test"
>    set phone "*99#"
>    set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
>              \"\" AT OK-AT-OK \
>              AT+CGDCONT=1,IP,internet.wind \
>              \"\" AT OK-AT-OK ATE1Q0 OK \\dATD\\T TIMEOUT 40 CONNECT"
>    set login
>    set timeout 30
>    enable dns
>  
>    resolv rewrite
>    set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
>    add default HISADDR
> _______________________________________________
> freebsd-mobile@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
> To unsubscribe, send any mail to "freebsd-mobile-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?422350D1.3080906>