Hi all,
I am experiencing problems with the Linux transparent bridge
implementation combined with BlueZ. Probably it is not BlueZ' fault but
related. Just wanted to know if someone else knows about this problem.
I used a very simple PAN scenario with one master (GN) and two slaves
(PANU). The GN runs a Linux bridge and the individual devices for the
slaves are added to the bridge by using the "/etc/bluetooth/pan/dev-up"
script. All similar to the PAN Howto.
After establishing the two connections everything works fine. But after
disconnecting the first slave (the one that was connected to the master
first) communication between the master and the remaining slave does not
work any more. Closer investigation shows that the failure is found in
the bridge device that does not accept the received frames any more.
Interestingly, when runing tcpdump on the bridged device everything
seems to work fine again. This is probably due to the bridge device
entering promiscuous mode. Probably, the problem is related to the
following message found in /var/log/messages:
"bnep1: attempt to add interface with same source address."
This is due to the fact that all the bnep interfaces own the same MAC
address (= BD_ADDR of the Bluetooth device).
It seems the Linux bridge does not work reliably with duplicate mac
addresses on its interface.
Does anyone of you experienced similar problems? Any ideas on how to
resolve this?
Thanks.
Regards,
Christoph
--
Christoph Scholz <[email protected]>
University of Bonn, Institut of Computer Science IV
R?merstra?e 164,
D-53117 Bonn, Germany
Phone: +49 228 73 4117
Fax: +49 228 73 4571
http://web.informatik.uni-bonn.de/IV/Mitarbeiter/scholz/
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Hi Christoph,
Thank you for your reply.
> Which kind of USB-driver do you use? I also had problems with "uhci".
> These were gone after switching to "usb-uhci".
It's "usb-uhci" on the Fedora box and "usb-ohci" on the other.
As suggested by Laszlo in another post, I've recompiled the Bluetooth
related kernel modules and disabled the "sco" module as well as "BNEP
multicast filter support", "BNEP protocol filter support" and "USB zero
packet support" and other unneeded Bluetooth features. It still appears
unstable, but perhaps differently.
The following "hci_acl_tx_to" messages popped up in /var/log/messages
about the time the connection was lost during a recent test:
divert: not allocating divert_blk for non-ethernet device bnep0
ip_tables: (C) 2000-2002 Netfilter core team
divert: no divert_blk to free, bnep0 not ethernet
divert: not allocating divert_blk for non-ethernet device bnep0
ip_tables: (C) 2000-2002 Netfilter core team
? hci_acl_tx_to: hci0 ACL tx timeout
? hci_acl_tx_to: hci0 killing stalled ACL connection A8:C4:2A:C9:03:00
divert: no divert_blk to free, bnep0 not ethernet
Unplugging and replugging the Bluetooth USB device and reinitialising
with "pand --connect xxx" etc. gave a much more stable connection.
Are your PAN connections always stable? Do they survive temporarily
moving out of range too? (I haven't tested this yet...)
Thanks,
Fredrik
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Hi Fredrik,
Actually, the problems I experienced are different since the PAN
connection works flawlessly. It is only the Linux bridge device that
does not seem to handle multiple interfaces with the same source MAC
address very well.
Which kind of USB-driver do you use? I also had problems with "uhci".
These were gone after switching to "usb-uhci".
Regards,
Christoph
On Sun, 2004-01-11 at 21:31, Fredrik Noring wrote:
> Hi Christoph,
>
> fre 2004-01-09 klockan 14.49 skrev Christoph Scholz:
> > Does anyone of you experienced similar problems? Any ideas on how to
> > resolve this?
>
> I'm trying to use a PAN too. After some initial problems I finally
> had a working bnep0 interface between two Linux computers and it worked
> for about 20 minutes. For some strange reason though, the bnep0
> interface disappeared every few minutes so I had to do "pand --connect
> xxx" to get it back again.
>
> After those 20 minutes, "pand --connect xxx" stopped working too and
> began to crash mostly with "Connection timed out(110)" and sometimes
> "Function not implemented(38)". Some things that worked before for
> example "l2ping" also stopped working at this point.
>
> The "hcitool scan" command still displayed the other device though
> and "hciconfig -a" produced something that looks OK to me:
>
> hci0: Type: USB
> BD Address: 00:03:C9:2A:C4:A8 ACL MTU: 377:10 SCO MTU: 16:0
> UP RUNNING PSCAN ISCAN
> RX bytes:60997 acl:1045 sco:0 events:986 errors:0
> TX bytes:136820 acl:1072 sco:0 commands:154 errors:0
> Features: 0xff 0xfd 0x05 0x00 0x00 0x00 0x00 0x00
> Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
> Link policy: HOLD SNIFF PARK
> Link mode: SLAVE ACCEPT
> Name: '0'
> Class: 0x000100
> Service Classes: Unspecified
> Device Class: Computer, Uncategorized
> HCI Ver: 1.1 (0x1) HCI Rev: 0x2 LMP Ver: 1.1 (0x1) LMP Subver: 0x1007
> Manufacturer: Broadcom Corporation (15)
>
> One of the boxes runs a Fedora kernel and the other is patched with
> patch-2.4.18-mh10 (Dec 15, 2003). The other tools are "bluez-libs-2.5",
> "bluez-utils-2.4", "bluez-sdp-1.5", "bluez-pan-1.1", "bluez-bluefw-1.0".
>
> Is it possible to have a reliable PAN based connection between two Linux
> computers? The Bluez/pand combination appears a bit unstable to me as it
> works for a few minutes at a time and then stops working until reboot.
>
> Thanks,
> Fredrik
>
>
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
Hi Christoph,
fre 2004-01-09 klockan 14.49 skrev Christoph Scholz:
> Does anyone of you experienced similar problems? Any ideas on how to
> resolve this?
I'm trying to use a PAN too. After some initial problems I finally
had a working bnep0 interface between two Linux computers and it worked
for about 20 minutes. For some strange reason though, the bnep0
interface disappeared every few minutes so I had to do "pand --connect
xxx" to get it back again.
After those 20 minutes, "pand --connect xxx" stopped working too and
began to crash mostly with "Connection timed out(110)" and sometimes
"Function not implemented(38)". Some things that worked before for
example "l2ping" also stopped working at this point.
The "hcitool scan" command still displayed the other device though
and "hciconfig -a" produced something that looks OK to me:
hci0: Type: USB
BD Address: 00:03:C9:2A:C4:A8 ACL MTU: 377:10 SCO MTU: 16:0
UP RUNNING PSCAN ISCAN
RX bytes:60997 acl:1045 sco:0 events:986 errors:0
TX bytes:136820 acl:1072 sco:0 commands:154 errors:0
Features: 0xff 0xfd 0x05 0x00 0x00 0x00 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: '0'
Class: 0x000100
Service Classes: Unspecified
Device Class: Computer, Uncategorized
HCI Ver: 1.1 (0x1) HCI Rev: 0x2 LMP Ver: 1.1 (0x1) LMP Subver: 0x1007
Manufacturer: Broadcom Corporation (15)
One of the boxes runs a Fedora kernel and the other is patched with
patch-2.4.18-mh10 (Dec 15, 2003). The other tools are "bluez-libs-2.5",
"bluez-utils-2.4", "bluez-sdp-1.5", "bluez-pan-1.1", "bluez-bluefw-1.0".
Is it possible to have a reliable PAN based connection between two Linux
computers? The Bluez/pand combination appears a bit unstable to me as it
works for a few minutes at a time and then stops working until reboot.
Thanks,
Fredrik
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users