2004-08-14 22:56:58

by Paul Ionescu

[permalink] [raw]
Subject: [Bluez-users] Need help with PAND between 2 linux boxes

Hi,

I have two linux boxes with FedoraCore 2 installed on both.
Both of them have USB bluetooth adapters.
I have tried to connect them in a NAP - PANU config, as indicated in
http://bluez.sourceforge.net/contrib/HOWTO-PAN, but something is not
working and I can't figure out what.
Here are the details:
service bluetooth start
Then I check with hciconfig that both BT are UP.
Then, on both computers I modprobe bnep.
(one note here, ifconfig -a does not show any bnep0 at this moment)
On both of them launch
hcidump in separate windows to see what is going on.

On one I launch
pand --listen --role NAP -n --master
and on the other
pand -c 00:20:E0:73:EB:F7 -n --role PANU

and after some messages in hcidump on both sides, I receive:
pand[1431]: Bluetooth PAN daemon
pand[1431]: Connecting to 00:20:E0:73:EB:F7
pand[1431]: Connect to 00:20:E0:73:EB:F7 failed. Function not implemented(38)

I tried both ways, but the behavior is the same.
Then I tried on one side:
strace pand --listen --role NAP -n --master
but when I try to connect from the other side, nothing happens here.

Do I miss something here ?

Thanks,
Paul




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2004-08-16 12:32:38

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] Need help with PAND between 2 linux boxes

Hi Paul,

> Here is the info:
> hciconfig -a
> hci0: Type: USB
> BD Address: 00:20:E0:75:21:DA ACL MTU: 192:8
> SCO MTU: 64:8
> UP RUNNING PSCAN ISCAN
> RX bytes:200 acl:0 sco:0 events:26 errors:0
> TX bytes:621 acl:0 sco:0 commands:22 errors:0
> Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00
> 0x00
> Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2
> HV3
> Link policy: RSWITCH HOLD SNIFF PARK
> Link mode: ACCEPT MASTER
> Name: 't41-0'
> Class: 0x120104
> Service Classes: Networking, Object Transfer
> Device Class: Computer, Desktop workstation
> HCI Ver: 1.1 (0x1) HCI Rev: 0x222 LMP Ver: 1.1
> (0x1) LMP Subver: 0x222
> Manufacturer: Cambridge Silicon Radio (10)

leave "security auto;" and use "lm accept;" in hcid.conf. After that you
should read the comment in hcid.conf:

# master - become master on incoming connections,
# deny role switch on outgoing connections

How can it work if you set "master" on both sides ;)

Regards

Marcel




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-08-16 12:21:11

by Paul Ionescu

[permalink] [raw]
Subject: Re: [Bluez-users] Need help with PAND between 2 linux boxes

--- Marcel Holtmann <[email protected]> wrote:
> show us the content of /etc/bluetooth/hcid.conf and
> the output of
> "hciconfig -a".
>

And from the other side:
hciconfig -a
hci0: Type: USB
BD Address: 00:20:E0:73:EB:F7 ACL MTU: 192:8
SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:224 acl:0 sco:0 events:28 errors:0
TX bytes:609 acl:0 sco:0 commands:22 errors:0
Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00
0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2
HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: ACCEPT MASTER
Name: 'r50p-0'
Class: 0x120104
Service Classes: Networking, Object Transfer
Device Class: Computer, Desktop workstation
HCI Ver: 1.1 (0x1) HCI Rev: 0x222 LMP Ver: 1.1
(0x1) LMP Subver: 0x222
Manufacturer: Cambridge Silicon Radio (10)





__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail


Attachments:
hcid.conf (1.50 kB)
hcid.conf

2004-08-16 11:57:54

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] Need help with PAND between 2 linux boxes

Hi Paul,

> I tried without --role and --master parameters and the
> same result (pand -s -n on one side and pand -n -c
> MAC)
> And in /etc/bluetooth/hcid.conf I have
> lp hold,sniff,park,rswitch;

show us the content of /etc/bluetooth/hcid.conf and the output of
"hciconfig -a".

Regards

Marcel




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-08-16 12:14:11

by Paul Ionescu

[permalink] [raw]
Subject: Re: [Bluez-users] Need help with PAND between 2 linux boxes

--- Marcel Holtmann <[email protected]> wrote:
> show us the content of /etc/bluetooth/hcid.conf and
> the output of
> "hciconfig -a".

Hi Marcel,

Here is the info:
hciconfig -a
hci0: Type: USB
BD Address: 00:20:E0:75:21:DA ACL MTU: 192:8
SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:200 acl:0 sco:0 events:26 errors:0
TX bytes:621 acl:0 sco:0 commands:22 errors:0
Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00
0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2
HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: ACCEPT MASTER
Name: 't41-0'
Class: 0x120104
Service Classes: Networking, Object Transfer
Device Class: Computer, Desktop workstation
HCI Ver: 1.1 (0x1) HCI Rev: 0x222 LMP Ver: 1.1
(0x1) LMP Subver: 0x222
Manufacturer: Cambridge Silicon Radio (10)






__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail


Attachments:
hcid.conf (1.50 kB)
hcid.conf

2004-08-16 11:53:40

by Paul Ionescu

[permalink] [raw]
Subject: Re: [Bluez-users] Need help with PAND between 2 linux boxes

Hi Marcel,

I tried without --role and --master parameters and the
same result (pand -s -n on one side and pand -n -c
MAC)
And in /etc/bluetooth/hcid.conf I have
lp hold,sniff,park,rswitch;


--- Marcel Holtmann <[email protected]> wrote:
> > On one I launch
> > pand --listen --role NAP -n --master
> > and on the other
> > pand -c 00:20:E0:73:EB:F7 -n --role PANU
> >
> > and after some messages in hcidump on both sides,
> I receive:
> > pand[1431]: Bluetooth PAN daemon
> > pand[1431]: Connecting to 00:20:E0:73:EB:F7
> > pand[1431]: Connect to 00:20:E0:73:EB:F7 failed.
> Function not implemented(38)
>
> try it without the --master and --role parameters. I
> think you forgot to
> enable the role switch (rswitch) on both sides.
>
> Regards
>
> Marcel




__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

2004-08-16 10:08:43

by Wolfgang Mües

[permalink] [raw]
Subject: Re: [Bluez-users] Need help with PAND between 2 linux boxes

Hello,

On Monday 16 August 2004 10:34, Marcel Holtmann wrote:
> Hi Paul,
>
> > I have two linux boxes with FedoraCore 2 installed on both.
> > Both of them have USB bluetooth adapters.
> > I have tried to connect them in a NAP - PANU config, as indicated
> > in http://bluez.sourceforge.net/contrib/HOWTO-PAN, but something is
> > not working and I can't figure out what.

> > pand[1431]: Connect to 00:20:E0:73:EB:F7 failed. Function not
> > implemented(38)

I have seen this too... Master = Suse 9.1, Slave = Zaurus C 750.
I have managed to get it working by disabling authentication on the
master box....

best regards
Wolfgang


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-08-16 08:34:07

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] Need help with PAND between 2 linux boxes

Hi Paul,

> I have two linux boxes with FedoraCore 2 installed on both.
> Both of them have USB bluetooth adapters.
> I have tried to connect them in a NAP - PANU config, as indicated in
> http://bluez.sourceforge.net/contrib/HOWTO-PAN, but something is not
> working and I can't figure out what.
> Here are the details:
> service bluetooth start
> Then I check with hciconfig that both BT are UP.
> Then, on both computers I modprobe bnep.
> (one note here, ifconfig -a does not show any bnep0 at this moment)
> On both of them launch
> hcidump in separate windows to see what is going on.
>
> On one I launch
> pand --listen --role NAP -n --master
> and on the other
> pand -c 00:20:E0:73:EB:F7 -n --role PANU
>
> and after some messages in hcidump on both sides, I receive:
> pand[1431]: Bluetooth PAN daemon
> pand[1431]: Connecting to 00:20:E0:73:EB:F7
> pand[1431]: Connect to 00:20:E0:73:EB:F7 failed. Function not implemented(38)

try it without the --master and --role parameters. I think you forgot to
enable the role switch (rswitch) on both sides.

Regards

Marcel




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users