Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Mar 2008 13:35:40 +0200
From:      "eng. Anatoli Marinov" <tolisoft@gmail.com>
To:        freebsd-bluetooth@freebsd.org
Subject:   DUN over bluethoot
Message-ID:  <335adcd30803050335k162b5014kac786a2442f06e10@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
I am trying to connect my n800 internet tablet (it runs Linux). I
would like to use IP over bluethoot or ppp over it.

I've tried the following:

I. on the freebsd 7.0 stable host:
#kldload ng_ubt
#ng_ubt_load="YES"
---plug the dongle

/etc/rc.bluetooth start ubt0
in /etc/bluetooth/hcsecd.conf I have
device {
bdaddr 00:80:n800addr;
name "Toli";
key nokey;
pin "333";
}

At this stage I managed to make a pair link between freebsd box and n800.
At the next stage I will use user land ppp daemon to make a DUN.

in /etc/ppp/ppp.conf I have:
default:
set timeout 0
set lqrperiod 10
set ifaddr 10.0.0.1 10.0.0.2 255.255.255.0
enable lqr
accept lqr
accept dns
# Do not use PPP authentication. Assume that
# Bluetooth connection was authenticated already
disable pap
deny pap
disable chap
deny chap


I start the deamon with:
rfcomm_pppd -s -d -C 7 -l default

II. after that I used previously created pair link and try to connect
from n800 but I never succeed. Every time I get "Connection failed to
phone blabla(ubt0). Try again?

Do you have any idea what could be wrong? At n800 i do not have any logs.

I prepared dump for a time when i tried to connect:
#/usr/local/bin/hcidump
HCIDump - HCI packet analyzer ver 1.5
device: any snap_len: 65535 filter: 0xffffffff
> HCI Event: Connect Request(0x04) plen 10
< HCI Command: Accept Connection Request(0x01|0x0009) plen 7
> HCI Event: Command Status(0x0f) plen 4
> HCI Event: Role Change(0x12) plen 8
> HCI Event: Connect Complete(0x03) plen 11
< HCI Command: Write Link Policy Settings(0x02|0x000d) plen 4
> HCI Event: Command Complete(0x0e) plen 6
> HCI Event: Max Slots Change(0x1b) plen 3
> ACL data: handle 0x0011 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 1 scid 0x0040
< ACL data: handle 0x0011 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0051 scid 0x0040 result 0 status 0
> HCI Event: Number of Completed Packets(0x13) plen 5
> ACL data: handle 0x0011 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0051 flags 0x0000 clen 0
< ACL data: handle 0x0011 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
< ACL data: handle 0x0011 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
> HCI Event: Number of Completed Packets(0x13) plen 5
> HCI Event: Number of Completed Packets(0x13) plen 5
> ACL data: handle 0x0011 flags 0x02 dlen 18
L2CAP(s): Config rsp: scid 0x0051 flags 0x0000 result 0 clen 4
MTU 672
> ACL data: handle 0x0011 flags 0x02 dlen 17
L2CAP(d): cid 0x51 len 13 [psm 1]
SDP SS Req: tid 0x0 len 0x8
pat uuid-16 0x1103 (DUN)
max 0x40
cont 00
< ACL data: handle 0x0011 flags 0x02 dlen 14
L2CAP(d): cid 0x40 len 10 [psm 1]
SDP SS Rsp: tid 0x0 len 0x5
tot 0x0 cur 0x0
cont 00
> HCI Event: Number of Completed Packets(0x13) plen 5
> ACL data: handle 0x0011 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0051 scid 0x0040
< ACL data: handle 0x0011 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0051 scid 0x0040
> HCI Event: Number of Completed Packets(0x13) plen 5
> HCI Event: Disconn Complete(0x05) plen 4
device: any snap_len: 65535 filter: 0xffffffff
> HCI Event: Connect Request(0x04) plen 10
< HCI Command: Accept Connection Request(0x01|0x0009) plen 7
> HCI Event: Command Status(0x0f) plen 4
> HCI Event: Role Change(0x12) plen 8
> HCI Event: Connect Complete(0x03) plen 11
< HCI Command: Write Link Policy Settings(0x02|0x000d) plen 4
> HCI Event: Command Complete(0x0e) plen 6
> HCI Event: Max Slots Change(0x1b) plen 3
> ACL data: handle 0x0011 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 1 scid 0x0040
< ACL data: handle 0x0011 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0051 scid 0x0040 result 0 status 0
> HCI Event: Number of Completed Packets(0x13) plen 5
> ACL data: handle 0x0011 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0051 flags 0x0000 clen 0
< ACL data: handle 0x0011 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
< ACL data: handle 0x0011 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
> HCI Event: Number of Completed Packets(0x13) plen 5
> HCI Event: Number of Completed Packets(0x13) plen 5
> ACL data: handle 0x0011 flags 0x02 dlen 18
L2CAP(s): Config rsp: scid 0x0051 flags 0x0000 result 0 clen 4
MTU 672
> ACL data: handle 0x0011 flags 0x02 dlen 17
L2CAP(d): cid 0x51 len 13 [psm 1]
SDP SS Req: tid 0x0 len 0x8
pat uuid-16 0x1103 (DUN)
max 0x40
cont 00
< ACL data: handle 0x0011 flags 0x02 dlen 14
L2CAP(d): cid 0x40 len 10 [psm 1]
SDP SS Rsp: tid 0x0 len 0x5
tot 0x0 cur 0x0
cont 00
> HCI Event: Number of Completed Packets(0x13) plen 5
> ACL data: handle 0x0011 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0051 scid 0x0040
< ACL data: handle 0x0011 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0051 scid 0x0040
> HCI Event: Number of Completed Packets(0x13) plen 5
> HCI Event: Disconn Complete(0x05) plen 4

I hope it will help ...

-- 
Best Regards
eng. Anatoli Marinov



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