2004-04-14 08:05:48

by David West

[permalink] [raw]
Subject: [Bluez-users] Connecting from pocket PC iPaq to linux box using LAN access profile (DUND)

Hi there,

I'm trying to connect a Pocket PC iPaq to the network through a linux
machine using the LAP. I've had some success with the personal area
network profile (using PAND), but not with the LAN access profile (using
DUND). For other devices I will be using I need to get the LAP (not PAN
profile) working.

I've been trying to follow the HOWTO on
http://www.grinta.net/howto/bluez-ipaq.html and I believe I've done most
of the steps mentioned there. I am a little confused by it though: part
of it discusses starting the pand. Is this really required?

In my /etc/ppp/peers/dun file, I've given the IP addresses as the ip
address of eth0 on my linux box, and the IP address I want my iPaq to
have, is this correct?

I've run sdptool browse on another machine and verified that after
starting dund (dund --listen --msdun -n call dun) the LAN Access profile
is seen.

When I search using my iPAQ, it successfully finds the linux box and its
sets up a connection. But when I try to actually connect, the
connection fails. There does not appear to be any output at all from
dund: I use the -n switch to keep it in the foreground and nothing shows
up. The following is the trace from hcidump -a on the connection
attempt:

> HCI Event: Connect Request(0x04) plen 10
J 5 . . . . . . 2 .
< HCI Command: Accept Connection Request(0x01|0x0009) plen 7
J 5 . . . . .
> HCI Event: Command Status(0x0f) plen 4
. . . .
> HCI Event: Link Key Request(0x17) plen 6
J 5 . . . .
< HCI Command: Link Key Request Reply(0x01|0x000b) plen 22
J 5 . . . . u . R ; . 4 u . D h . O .
* .
> HCI Event: Role Change(0x12) plen 8
. J 5 . . . . .
> HCI Event: Command Complete(0x0e) plen 10
. . . . J 5 . . . .
> HCI Event: Connect Complete(0x03) plen 11
. ) . J 5 . . . . . .
< HCI Command: Write Link Policy Settings(0x02|0x000d) plen 4
) . . .
> HCI Event: Page Scan Repetition Mode Change(0x20) plen 7
J 5 . . . . .
> HCI Event: Command Complete(0x0e) plen 6
. . . . ) .
< HCI Command: Change Connection Packet Type(0x01|0x000f) plen 4
) . . .
> HCI Event: Command Status(0x0f) plen 4
. . . .
> HCI Event: Connection Packet Type Changed(0x1d) plen 5
. ) . . .
> HCI Event: Max Slots Change(0x1b) plen 3
) . .
> ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 1 scid 0x0043
< ACL data: handle 0x0029 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0043 result 0 status 0
> HCI Event: Number of Completed Packets(0x13) plen 5
. ) . . .
> ACL data: handle 0x0029 flags 0x02 dlen 20
L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 8
MTU 512 FlushTO 65535
< ACL data: handle 0x0029 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0043 flags 0x0000 result 0 clen 0
< ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0043 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 0x0029 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
> ACL data: handle 0x0029 flags 0x02 dlen 17
L2CAP(d): cid 0x40 len 13 [psm 1]
SDP SS Req: tid 0x0 len 0x8
pat uuid-16 0x1102 (LAN)
max 0x14
cont 00
< ACL data: handle 0x0029 flags 0x02 dlen 18
L2CAP(d): cid 0x43 len 14 [psm 1]
SDP SS Rsp: tid 0x0 len 0x9
cur 0x1 tot 0x1 hndl 0x804d688
cont 00
> HCI Event: Number of Completed Packets(0x13) plen 5
. ) . . .
> ACL data: handle 0x0029 flags 0x02 dlen 23
L2CAP(d): cid 0x40 len 19 [psm 1]
SDP SA Req: tid 0x1 len 0xe
hndl 0x804d688
max 0x1f0
aid(s) 0x0000 - 0xffff
cont 00
< ACL data: handle 0x0029 flags 0x02 dlen 89
L2CAP(d): cid 0x43 len 85 [psm 1]
SDP SA Rsp: tid 0x1 len 0x50
cnt 0x4d
aid 0x0000 (SrvRecHndl)
uint 0x804d688
aid 0x0001 (SrvClassIDList)
uuid-16 0x1102 (LAN)
aid 0x0004 (ProtocolDescList)
uuid-16 0x0100 (L2CAP)
uuid-16 0x0003 (RFCOMM) uint 0x1
aid 0x0005 (BrwGrpList)
uuid-16 0x1002 (PubBrwsGrp)
aid 0x0009 (BTProfileDescList)
uuid-16 0x1102 (LAN) uint 0x100
aid 0x0100 (SrvName)
str "LAN Access Point"

cont 00
> HCI Event: Number of Completed Packets(0x13) plen 5
. ) . . .
> ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0040 scid 0x0043
< ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0043
> HCI Event: Number of Completed Packets(0x13) plen 5
. ) . . .
> ACL data: handle 0x0029 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 3 scid 0x0044
< ACL data: handle 0x0029 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0044 result 4 status 0
> HCI Event: Number of Completed Packets(0x13) plen 5
. ) . . .
> HCI Event: Disconn Complete(0x05) plen 4
. ) . .

If anyone can provide any insight to my problem, I'd greatly appreciate
it.

Thanks,
David West




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2004-04-15 01:50:48

by David West

[permalink] [raw]
Subject: RE: [Bluez-users] Connecting from pocket PC iPaq to linux box using LAN access profile (DUND)

I'm still trying to get this working. I can't seem to get as far as
pppd being invoked.

When I look in my syslog (I'm running Debian with kernel 2.6.0-1-686)
and I run "pand --listen --role NAP", and then I connect from my iPaq, I
see:

Apr 15 11:15:58 pteradactyl pand[14522]: PAN daemon ver 1.1
Apr 15 11:16:17 pteradactyl hcid[14408]: link_key_request
(sba=00:0D:88:AC:D1:07 , dba=08:00:17:1E:35:4A) Apr 15 11:16:22
pteradactyl hcid[14408]: link_key_request (sba=00:0D:88:AC:D1:07 ,
dba=08:00:17:1E:35:4A) Apr 15 11:16:23 pteradactyl pand[14527]: New
connection from 08:00:17:1E:35:4A b Nep0

The connection is then working fine.

However, when I kill pand, and run "dund --listen --persist --msdun call
dun" instead (as described in
http://www-jcsu.jesus.cam.ac.uk/~ned21/tech/tungsten_linux.html) I see
after trying to connect:

Apr 15 11:17:29 pteradactyl dund[14718]: DUN daemon ver 1.1
Apr 15 11:17:38 pteradactyl hcid[14408]: link_key_request
(sba=00:0D:88:AC:D1:07 , dba=08:00:17:1E:35:4A)

The connection then fails on the iPaq. Dund doesn't appear to output
any error information, nor does pppd ever seem to be started.

Can anyone offer any insight?

Thanks,
David

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Geoff
Shang
Sent: 15 April 2004 12:26 AM
To: David West
Cc: [email protected]
Subject: Re: [Bluez-users] Connecting from pocket PC iPaq to linux box
using LAN access profile (DUND)


On Wed, 14 Apr 2004, David West wrote:

> In my /etc/ppp/peers/dun file, I've given the IP addresses as the ip
> address of eth0 on my linux box, and the IP address I want my iPaq to
> have, is this correct?

No. Each interface your computer has needs its own address, so using
your
eth0 value is no appropriate here. Use some other address and make
sure
it will route properly.

Disclaimer: I've not yet set this up either, but I plan to soon.

Geoff.




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-04-14 14:26:25

by Geoff Shang

[permalink] [raw]
Subject: Re: [Bluez-users] Connecting from pocket PC iPaq to linux box using LAN access profile (DUND)

On Wed, 14 Apr 2004, David West wrote:

> In my /etc/ppp/peers/dun file, I've given the IP addresses as the ip
> address of eth0 on my linux box, and the IP address I want my iPaq to
> have, is this correct?

No. Each interface your computer has needs its own address, so using your
eth0 value is no appropriate here. Use some other address and make sure
it will route properly.

Disclaimer: I've not yet set this up either, but I plan to soon.

Geoff.




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-04-14 11:19:15

by Aben Siatris

[permalink] [raw]
Subject: Re: [Bluez-users] Connecting from pocket PC iPaq to linux box using LAN access profile (DUND)

D=C5=88a Wednesday 14 April 2004 10:05 David West nap=C3=ADsal:
> Hi there,
>=20
> I'm trying to connect a Pocket PC iPaq to the network through a linux
> machine using the LAP. I've had some success with the personal area
> network profile (using PAND), but not with the LAN access profile (using
> DUND). For other devices I will be using I need to get the LAP (not PAN
> profile) working.=20
>=20
> I've been trying to follow the HOWTO on
> http://www.grinta.net/howto/bluez-ipaq.html and I believe I've done most
> of the steps mentioned there. I am a little confused by it though: part
> of it discusses starting the pand. Is this really required?
>=20
> In my /etc/ppp/peers/dun file, I've given the IP addresses as the ip
> address of eth0 on my linux box, and the IP address I want my iPaq to
> have, is this correct?
>=20
> I've run sdptool browse on another machine and verified that after
> starting dund (dund --listen --msdun -n call dun) the LAN Access profile
> is seen.
>=20
> When I search using my iPAQ, it successfully finds the linux box and its
> sets up a connection. But when I try to actually connect, the
> connection fails. There does not appear to be any output at all from
> dund: I use the -n switch to keep it in the foreground and nothing shows
> up. The following is the trace from hcidump -a on the connection
> attempt:
>=20
> > HCI Event: Connect Request(0x04) plen 10
> J 5 . . . . . . 2 .
> < HCI Command: Accept Connection Request(0x01|0x0009) plen 7
> J 5 . . . . .
> > HCI Event: Command Status(0x0f) plen 4
> . . . .
> > HCI Event: Link Key Request(0x17) plen 6
> J 5 . . . .
> < HCI Command: Link Key Request Reply(0x01|0x000b) plen 22
> J 5 . . . . u . R ; . 4 u . D h . O .
> * .
> > HCI Event: Role Change(0x12) plen 8
> . J 5 . . . . .
> > HCI Event: Command Complete(0x0e) plen 10
> . . . . J 5 . . . .
> > HCI Event: Connect Complete(0x03) plen 11
> . ) . J 5 . . . . . .
> < HCI Command: Write Link Policy Settings(0x02|0x000d) plen 4
> ) . . .
> > HCI Event: Page Scan Repetition Mode Change(0x20) plen 7
> J 5 . . . . .
> > HCI Event: Command Complete(0x0e) plen 6
> . . . . ) .
> < HCI Command: Change Connection Packet Type(0x01|0x000f) plen 4
> ) . . .
> > HCI Event: Command Status(0x0f) plen 4
> . . . .
> > HCI Event: Connection Packet Type Changed(0x1d) plen 5
> . ) . . .
> > HCI Event: Max Slots Change(0x1b) plen 3
> ) . .
> > ACL data: handle 0x0029 flags 0x02 dlen 12
> L2CAP(s): Connect req: psm 1 scid 0x0043
> < ACL data: handle 0x0029 flags 0x02 dlen 16
> L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0043 result 0 status 0
> > HCI Event: Number of Completed Packets(0x13) plen 5
> . ) . . .
> > ACL data: handle 0x0029 flags 0x02 dlen 20
> L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 8
> MTU 512 FlushTO 65535
> < ACL data: handle 0x0029 flags 0x02 dlen 14
> L2CAP(s): Config rsp: scid 0x0043 flags 0x0000 result 0 clen 0
> < ACL data: handle 0x0029 flags 0x02 dlen 12
> L2CAP(s): Config req: dcid 0x0043 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 0x0029 flags 0x02 dlen 14
> L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
> > ACL data: handle 0x0029 flags 0x02 dlen 17
> L2CAP(d): cid 0x40 len 13 [psm 1]
> SDP SS Req: tid 0x0 len 0x8
> pat uuid-16 0x1102 (LAN)
> max 0x14
> cont 00
> < ACL data: handle 0x0029 flags 0x02 dlen 18
> L2CAP(d): cid 0x43 len 14 [psm 1]
> SDP SS Rsp: tid 0x0 len 0x9
> cur 0x1 tot 0x1 hndl 0x804d688
> cont 00
> > HCI Event: Number of Completed Packets(0x13) plen 5
> . ) . . .
> > ACL data: handle 0x0029 flags 0x02 dlen 23
> L2CAP(d): cid 0x40 len 19 [psm 1]
> SDP SA Req: tid 0x1 len 0xe
> hndl 0x804d688
> max 0x1f0
> aid(s) 0x0000 - 0xffff
> cont 00
> < ACL data: handle 0x0029 flags 0x02 dlen 89
> L2CAP(d): cid 0x43 len 85 [psm 1]
> SDP SA Rsp: tid 0x1 len 0x50
> cnt 0x4d
> aid 0x0000 (SrvRecHndl)
> uint 0x804d688
> aid 0x0001 (SrvClassIDList)
> uuid-16 0x1102 (LAN)
> aid 0x0004 (ProtocolDescList)
> uuid-16 0x0100 (L2CAP)
> uuid-16 0x0003 (RFCOMM) uint 0x1
> aid 0x0005 (BrwGrpList)
> uuid-16 0x1002 (PubBrwsGrp)
> aid 0x0009 (BTProfileDescList)
> uuid-16 0x1102 (LAN) uint 0x100
> aid 0x0100 (SrvName)
> str "LAN Access Point"
>=20
> cont 00
> > HCI Event: Number of Completed Packets(0x13) plen 5
> . ) . . .
> > ACL data: handle 0x0029 flags 0x02 dlen 12
> L2CAP(s): Disconn req: dcid 0x0040 scid 0x0043
> < ACL data: handle 0x0029 flags 0x02 dlen 12
> L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0043
> > HCI Event: Number of Completed Packets(0x13) plen 5
> . ) . . .
> > ACL data: handle 0x0029 flags 0x02 dlen 12
> L2CAP(s): Connect req: psm 3 scid 0x0044
> < ACL data: handle 0x0029 flags 0x02 dlen 16
> L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0044 result 4 status 0
> > HCI Event: Number of Completed Packets(0x13) plen 5
> . ) . . .
> > HCI Event: Disconn Complete(0x05) plen 4
> . ) . .
>=20
> If anyone can provide any insight to my problem, I'd greatly appreciate
> it.

first read please this documents:
http://bluez.sourceforge.net/contrib/HOWTO-PAN

and after thread "No more bluez.o in 2.6?"
in my e-mail is all relevant files


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users