2006-06-02 14:53:25

by Stefan

[permalink] [raw]
Subject: [Bluez-users] PAN over bluetooth - no TCP/IP activity

Hello,

I'm trying to create a PAN between a laptop and a desktop computer.

I carefully followed the instructions for creating a PAN network
(http://bluez.sourceforge.net/contrib/HOWTO-PAN).

Right now I am able to connect, ending up with correct and configured "bnep0"
interfaces on both computers.

The problem is, that I can not even ping them. After a lot of tries, I figured
out, that if I put the bnep0 interface in promiscuous mode, using

ifconfig bnep0 promisc (at the NAP side)

then ICMP packets starts flowing, and the both nodes are able to ping each
other. But that's all.

On both nodes hcid & sdpd are running, bnep module is loaded, kernel version is
2.6.16 (Fedora Core 4), bluez-utils 2.15

Here is what I do:

@NAP: # pand -s -r NAP
@PANU: # pand -Q -r PANU -d NAP
@Both (after a while): # ifconfig bnep0 10.0.0.x netmask 255.255.255.0 up
@both: # ifconfig bnep0
bnep0 Link encap:Ethernet HWaddr 11:11:11:11:11:11
inet addr:10.0.0.x Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:478 (478.0 b) TX bytes:64 (64.0 b)


Accoring to all docs I read, at this poing both nodes should be able to ping
each other. But they are not!

I don't know how important is, but just in case, here is the output of

# hciconfig hci0 -a

@Desktop NAP (USB dongle):

hci0: Type: USB
BD Address: 11:11:11:11:11:11 ACL MTU: 678:8 SCO MTU: 48:10
UP RUNNING PSCAN ISCAN
RX bytes:1076 acl:25 sco:0 events:42 errors:0
TX bytes:657 acl:19 sco:0 commands:17 errors:0
Features: 0xbf 0xfe 0x8d 0x78 0x08 0x18 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: ACCEPT MASTER
Name: 'experta'
Class: 0x120104
Service Classes: Networking
Device Class: Computer, Desktop workstation
HCI Ver: 1.2 (0x2) HCI Rev: 0x1fe LMP Ver: 1.2 (0x2) LMP Subver: 0x1fe
Manufacturer: Integrated System Solution Corp. (57)

@Laptop PANU (IBM/Lenovo Z60m):

hci0: Type: USB
BD Address: 00:14:A4:DF:2D:C8 ACL MTU: 1017:8 SCO MTU: 64:0
UP RUNNING PSCAN ISCAN
RX bytes:133516 acl:2949 sco:0 events:6546 errors:0
TX bytes:108738 acl:3185 sco:0 commands:1594 errors:0
Features: 0xff 0xff 0x8d 0xfe 0x9b 0xf9 0x00 0x80
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'lenovo'
Class: 0x120104
Service Classes: Networking
Device Class: Computer, Desktop workstation
HCI Ver: 2.0 (0x3) HCI Rev: 0x206c LMP Ver: 2.0 (0x3) LMP Subver: 0x4132
Manufacturer: Broadcom Corporation (15)

Could you please help me!

Regards,
Stefan




_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2006-06-02 15:31:52

by Peter Stephenson

[permalink] [raw]
Subject: Re: [Bluez-users] PAN over bluetooth - no TCP/IP activity

Marcel Holtmann wrote:
> > The problem is, that I can not even ping them. After a lot of tries, I
> > figured out, that if I put the bnep0 interface in promiscuous mode, using
> > ifconfig bnep0 promisc (at the NAP side)
> > then ICMP packets starts flowing, and the both nodes are able to ping each
> > other. But that's all.
...
> > bnep0 Link encap:Ethernet HWaddr 11:11:11:11:11:11
...
> one of these ISSC chips again. The MAC address is bogus and as far as I
> recall not valid for Ethernet.

Right, that looks like a group address (the lowest bit is set), i.e.
valid for multicast or broadcast only. That's definitely going to get
you into trouble with Ethernet/802 addressing logic.

--
Peter Stephenson <[email protected]> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070


To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php


_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2006-06-02 15:07:42

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] PAN over bluetooth - no TCP/IP activity

Hi Stefan,

> I'm trying to create a PAN between a laptop and a desktop computer.
>
> I carefully followed the instructions for creating a PAN network
> (http://bluez.sourceforge.net/contrib/HOWTO-PAN).
>
> Right now I am able to connect, ending up with correct and configured "bnep0"
> interfaces on both computers.
>
> The problem is, that I can not even ping them. After a lot of tries, I figured
> out, that if I put the bnep0 interface in promiscuous mode, using
>
> ifconfig bnep0 promisc (at the NAP side)
>
> then ICMP packets starts flowing, and the both nodes are able to ping each
> other. But that's all.
>
> On both nodes hcid & sdpd are running, bnep module is loaded, kernel version is
> 2.6.16 (Fedora Core 4), bluez-utils 2.15
>
> Here is what I do:
>
> @NAP: # pand -s -r NAP
> @PANU: # pand -Q -r PANU -d NAP
> @Both (after a while): # ifconfig bnep0 10.0.0.x netmask 255.255.255.0 up
> @both: # ifconfig bnep0
> bnep0 Link encap:Ethernet HWaddr 11:11:11:11:11:11
> inet addr:10.0.0.x Bcast:10.0.0.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:6 errors:0 dropped:0 overruns:0 frame:0
> TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:478 (478.0 b) TX bytes:64 (64.0 b)

one of these ISSC chips again. The MAC address is bogus and as far as I
recall not valid for Ethernet. However I have no idea how to set a new
address with these chips. Try to get yourself a recent CSR based dongle.

Regards

Marcel




_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users