* Re: [Bluez-users] Need help with PAND between 2 linux boxes
[not found] <20040816125631.54878.qmail@web50202.mail.yahoo.com>
@ 2004-08-16 14:33 ` Marcel Holtmann
2004-08-16 18:06 ` Paul Ionescu
0 siblings, 1 reply; 10+ messages in thread
From: Marcel Holtmann @ 2004-08-16 14:33 UTC (permalink / raw)
To: Paul Ionescu; +Cc: BlueZ Mailing List
Hi Paul,
> Now it worked just fine.
> Many thanks for the quick help.
you are welcome.
> Now, regarding the docs, I have read the comment in
> hcid.conf, but "master - become master on incoming
> connections, and deny role switch on outgoing
> connections" seemed fine from my point of view.
> I interpreted like "I will be master for all incoming
> conections, and I will deny role switch for all
> outgoing connection" which seemed fine from my point
> of view.
And if both sides do it this way it can't work. Think about it and you
understand it. Remember that the connection initiator is the master in
the first place.
> I could not see what I was wrong from
> http://bluez.sourceforge.net/contrib/HOWTO-PAN.
> and not even from
> http://fedoranews.org/contributors/muhammad_al_ismail/bluetooth/
> which claims to be a FC2 setup.
I don't wrote these two. Contact the authors.
> And now I have another question:
> After using the pand, I finished the transfers, I
> shutted down the bluetooth service, ifconfig bnep0
> down, and I wanted to "rmmod bnep".
> But rmmod bnep gives:
> ERROR: Module bnep is in use
> And indeed is in use by "ps xa|grep bnep" :
> 2660 ? SW< 0:00 [kbnepd bnep0]
>
> Is this normal ?
Yes, because "ifconfig bnep0 down" doesn't kill the BNEP connection
between these two devices. Try to run "pand -K".
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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [Bluez-users] Need help with PAND between 2 linux boxes
2004-08-16 14:33 ` [Bluez-users] Need help with PAND between 2 linux boxes Marcel Holtmann
@ 2004-08-16 18:06 ` Paul Ionescu
0 siblings, 0 replies; 10+ messages in thread
From: Paul Ionescu @ 2004-08-16 18:06 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: BlueZ Mailing List
Hi Marcel,
--- Marcel Holtmann <marcel@holtmann.org> wrote:
> > ifconfig bnep0
> > down, and I wanted to "rmmod bnep".
> > But rmmod bnep gives:
> > ERROR: Module bnep is in use
> > And indeed is in use by "ps xa|grep bnep" :
> > 2660 ? SW< 0:00 [kbnepd bnep0]
> >
> > Is this normal ?
>
> Yes, because "ifconfig bnep0 down" doesn't kill the
> BNEP connection
> between these two devices. Try to run "pand -K".
It worked flawlessly with "pand -K".
And thanks again, your answers were like instant.
Paul,
A happy now pan with bluez user.
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bluez-users] Need help with PAND between 2 linux boxes
@ 2004-08-14 22:56 Paul Ionescu
2004-08-16 8:34 ` Marcel Holtmann
0 siblings, 1 reply; 10+ messages in thread
From: Paul Ionescu @ 2004-08-14 22:56 UTC (permalink / raw)
To: bluez-users
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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-users] Need help with PAND between 2 linux boxes
2004-08-14 22:56 Paul Ionescu
@ 2004-08-16 8:34 ` Marcel Holtmann
2004-08-16 10:08 ` Wolfgang Mües
2004-08-16 11:53 ` Paul Ionescu
0 siblings, 2 replies; 10+ messages in thread
From: Marcel Holtmann @ 2004-08-16 8:34 UTC (permalink / raw)
To: Paul Ionescu; +Cc: BlueZ Mailing List
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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-users] Need help with PAND between 2 linux boxes
2004-08-16 8:34 ` Marcel Holtmann
@ 2004-08-16 10:08 ` Wolfgang Mües
2004-08-16 11:53 ` Paul Ionescu
1 sibling, 0 replies; 10+ messages in thread
From: Wolfgang Mües @ 2004-08-16 10:08 UTC (permalink / raw)
To: bluez-users
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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-users] Need help with PAND between 2 linux boxes
2004-08-16 8:34 ` Marcel Holtmann
2004-08-16 10:08 ` Wolfgang Mües
@ 2004-08-16 11:53 ` Paul Ionescu
2004-08-16 11:57 ` Marcel Holtmann
1 sibling, 1 reply; 10+ messages in thread
From: Paul Ionescu @ 2004-08-16 11:53 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: BlueZ Mailing List
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 <marcel@holtmann.org> 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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-users] Need help with PAND between 2 linux boxes
2004-08-16 11:53 ` Paul Ionescu
@ 2004-08-16 11:57 ` Marcel Holtmann
2004-08-16 12:14 ` Paul Ionescu
2004-08-16 12:21 ` Paul Ionescu
0 siblings, 2 replies; 10+ messages in thread
From: Marcel Holtmann @ 2004-08-16 11:57 UTC (permalink / raw)
To: Paul Ionescu; +Cc: BlueZ Mailing List
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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-users] Need help with PAND between 2 linux boxes
2004-08-16 11:57 ` Marcel Holtmann
@ 2004-08-16 12:14 ` Paul Ionescu
2004-08-16 12:32 ` Marcel Holtmann
2004-08-16 12:21 ` Paul Ionescu
1 sibling, 1 reply; 10+ messages in thread
From: Paul Ionescu @ 2004-08-16 12:14 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: BlueZ Mailing List
[-- Attachment #1: Type: text/plain, Size: 1030 bytes --]
--- Marcel Holtmann <marcel@holtmann.org> 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
[-- Attachment #2: hcid.conf --]
[-- Type: application/octet-stream, Size: 1537 bytes --]
#
# HCI daemon configuration file.
#
# $Id: hcid.conf,v 1.3 2002/07/18 18:12:46 maxk 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 auto;
security none;
# 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/bin/bluepin;
#dbus_pin_helper;
# A dbus PIN daemon can be found at
# ftp://ftp.handhelds.org/pub/projects/gpe/source/bluez-pin-0.20.tar.gz
}
# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "%h-%d";
# Local device class
class 0x120104;
# 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,master;
#
lm accept,master;
# Default link policy
# none - no specific policy
# rswitch - allow role switch
# hold - allow hold mode
# sniff - allow sniff mode
# park - allow park mode
#
#lp hold,sniff;
#
lp hold,sniff,park,rswitch;
# Authentication and Encryption
auth disable;
encrypt disable;
}
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [Bluez-users] Need help with PAND between 2 linux boxes
2004-08-16 12:14 ` Paul Ionescu
@ 2004-08-16 12:32 ` Marcel Holtmann
0 siblings, 0 replies; 10+ messages in thread
From: Marcel Holtmann @ 2004-08-16 12:32 UTC (permalink / raw)
To: Paul Ionescu; +Cc: BlueZ Mailing List
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
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Bluez-users] Need help with PAND between 2 linux boxes
2004-08-16 11:57 ` Marcel Holtmann
2004-08-16 12:14 ` Paul Ionescu
@ 2004-08-16 12:21 ` Paul Ionescu
1 sibling, 0 replies; 10+ messages in thread
From: Paul Ionescu @ 2004-08-16 12:21 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: BlueZ Mailing List
[-- Attachment #1: Type: text/plain, Size: 1023 bytes --]
--- Marcel Holtmann <marcel@holtmann.org> 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
[-- Attachment #2: hcid.conf --]
[-- Type: application/octet-stream, Size: 1538 bytes --]
#
# HCI daemon configuration file.
#
# $Id: hcid.conf,v 1.3 2002/07/18 18:12:46 maxk 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 auto;
security none;
# 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/bin/bluepin;
#dbus_pin_helper;
# A dbus PIN daemon can be found at
# ftp://ftp.handhelds.org/pub/projects/gpe/source/bluez-pin-0.20.tar.gz
}
# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "%h-%d";
# Local device class
class 0x120104;
# 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,master;
#
lm accept,master;
# Default link policy
# none - no specific policy
# rswitch - allow role switch
# hold - allow hold mode
# sniff - allow sniff mode
# park - allow park mode
#
#lp hold,sniff;
#
lp hold,sniff,park,rswitch;
# Authentication and Encryption
auth disable;
encrypt disable;
}
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2004-08-16 18:06 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20040816125631.54878.qmail@web50202.mail.yahoo.com>
2004-08-16 14:33 ` [Bluez-users] Need help with PAND between 2 linux boxes Marcel Holtmann
2004-08-16 18:06 ` Paul Ionescu
2004-08-14 22:56 Paul Ionescu
2004-08-16 8:34 ` Marcel Holtmann
2004-08-16 10:08 ` Wolfgang Mües
2004-08-16 11:53 ` Paul Ionescu
2004-08-16 11:57 ` Marcel Holtmann
2004-08-16 12:14 ` Paul Ionescu
2004-08-16 12:32 ` Marcel Holtmann
2004-08-16 12:21 ` Paul Ionescu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox