* Re: [Bluez-users] pan and brctl addif question
@ 2005-02-24 9:33 Michael Schmidt
0 siblings, 0 replies; 2+ messages in thread
From: Michael Schmidt @ 2005-02-24 9:33 UTC (permalink / raw)
To: jjia; +Cc: bluez-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Jack,
| Sorry to keep asking hciemu related question. The reason I like
| hciemu so much is not only I am poor :-) , but also I was supposed
| to set up a virtual environment of multiple piconets, so my team
| members can play around with some scatternet routing stuff. I've seen
| someone from this list achieved that. Now, I am following the Pan
| Howto, but I have some problems:
|
| 1. After running
|
| #pand -s -r GN -i 7F:00:00:01:00:0A #pand -i 7F:00:00:01:00:0B -c
| 7F:00:00:01:00:0A
|
| I am hoping 7F:00:00:01:00:0A to be GN, and 7F:00:00:01:00:0B to be
| PANU, but when I run pand -l, I got the following:
|
| bnep1 7F:00:00:01:00:0B GN bnep0 7F:00:00:01:00:0A PANU
|
| So, it seems 7F:00:00:01:00:0B being GN
|
| 2. I cannot add bnepX to pan0 using brctl, although I can add my eth0
| to it. After running:
|
| #brctl addif pan0 bnep0
|
| I got:
|
| can't add bnep0 to bridge pan0: Cannot assign requested address
Besides possible other problems of PAN operation with hciemu (that I'm
not aware of), you'll definitely get into trouble using BT device
addresses that start with '7F'. Bits 0 and 1 of the most significant
byte of the device address have a special significance:
One of them determines whether the address is a unicast or multicast
(when set) address. The other one determines whether the address has a
local (when set) or global scope. BT device addresses conform with the
IEEE 802 MAC address specification (you may want to do a web search on
this), where this is defined. With either one set, you'll encounter
trouble with the bridging code (and possibly the BlueZ PAN code?).
Make sure you use addresses where these bits are not set.
Hope this helps,
Michael
- --
============================================
Michael Schmidt
- --------------------------------------------
Institute for Digital Communications Systems
University of Siegen, Germany
- --------------------------------------------
http: www.dcs.uni-siegen.de
e-mail: schmidt@nue.et-inf.uni-siegen.de
mobile: +49 179 7810214
============================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCHZ9RQxcxBvLsRaoRAqUwAKC/UOGXU6+ZpNNjGN0gSyfv8E7MJACbB8NS
DpNSGRbcWZEb3/pcpH/xfsw=
=S97v
-----END PGP SIGNATURE-----
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bluez-users] Can't able to send data in both direction
@ 2005-02-23 6:39 Mohan K
2005-02-23 7:03 ` [Bluez-users] " Sebastian Roth
0 siblings, 1 reply; 2+ messages in thread
From: Mohan K @ 2005-02-23 6:39 UTC (permalink / raw)
To: bluez-users
Hi all,
I am trying to send data at L2CAP level. I am using
"Silicon Wave (11)" USB dongle in one PC and "Cambridge Silicon Radio
(10)" USB dongle in another PC. Using my program I can able to send
data from "Cambridge Silicon Radio" dongle side PC to "Silicon Wave"
dongle side PC. But, vice-versa is not working. I am getting the
following error when I try to send data from "Silicon Wave dongle".
Can any one tell me why this is happenning.
Regards
Mohan
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 2+ messages in thread* [Bluez-users] Re: Can't able to send data in both direction
2005-02-23 6:39 [Bluez-users] Can't able to send data in both direction Mohan K
@ 2005-02-23 7:03 ` Sebastian Roth
2005-02-23 7:27 ` Mohan K
0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Roth @ 2005-02-23 7:03 UTC (permalink / raw)
To: bluez-users
Hi,
> I am trying to send data at L2CAP level. I am using
> "Silicon Wave (11)" USB dongle in one PC and "Cambridge Silicon Radio
> (10)" USB dongle in another PC. Using my program I can able to send
> data from "Cambridge Silicon Radio" dongle side PC to "Silicon Wave"
> dongle side PC. But, vice-versa is not working. I am getting the
> following error when I try to send data from "Silicon Wave dongle".
> Can any one tell me why this is happenning.
You've forgotten to paste the error message. I think no one will be
able to help you without it. Please capture the packets using
`hcidump -X' when trying to connect from SiW to CSR dongle and post it
including the error message(s) you see.
Best regards,
Sebastian
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Bluez-users] Re: Can't able to send data in both direction
2005-02-23 7:03 ` [Bluez-users] " Sebastian Roth
@ 2005-02-23 7:27 ` Mohan K
2005-02-23 7:45 ` [Bluez-users] pan and brctl addif question Jack Jia
0 siblings, 1 reply; 2+ messages in thread
From: Mohan K @ 2005-02-23 7:27 UTC (permalink / raw)
To: bluez-users, sebastian.roth
Hi,
When the sending program runs on the SiW dongle PC , HCI dump is
not displaying any thing and it is giving the following error.
Error message on the sending side:
[root@localhost ]# ./senddata
L2CAP socket opened successfully.
Can't connect: No route to host (113)
Can't send data.
: Bad file descriptor
When the same program is running on the CSR doungle side PC, I am
getting the following HCI dump and on the other side I can able to
receive data.
HCI dump of send prog on the CSR dongle side:
HCIDump - HCI packet analyzer ver 1.16
device: hci0 snap_len: 1028 filter: 0xffffffff
< HCI Command: Create Connection (0x01|0x0005) plen 13
F9 DA 33 0D 0B 00 18 CC 00 00 00 00 01
> HCI Event: Command Status (0x0f) plen 4
00 01 05 04
> HCI Event: Connect Complete (0x03) plen 11
00 28 00 F9 DA 33 0D 0B 00 01 00
< ACL data: handle 0x0028 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 10 scid 0x0040
> HCI Event: Number of Completed Packets (0x13) plen 5
01 28 00 01 00
> HCI Event: Max Slots Change (0x1b) plen 3
28 00 05
> ACL data: handle 0x0028 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
< ACL data: handle 0x0028 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
> HCI Event: Number of Completed Packets (0x13) plen 5
01 28 00 01 00
> ACL data: handle 0x0028 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
> ACL data: handle 0x0028 flags 0x02 dlen 12
L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 0
< ACL data: handle 0x0028 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
< ACL data: handle 0x0028 flags 0x02 dlen 18
L2CAP(d): cid 0x0040 len 14 [psm 10]
7C 01 0A 61 62 63 64 65 66 7C 67 7C 69 7E
< ACL data: handle 0x0028 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
> HCI Event: Number of Completed Packets (0x13) plen 5
01 28 00 01 00
> HCI Event: Number of Completed Packets (0x13) plen 5
01 28 00 01 00
> HCI Event: Number of Completed Packets (0x13) plen 5
01 28 00 01 00
> ACL data: handle 0x0028 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
< HCI Command: Disconnect (0x01|0x0006) plen 3
28 00 13
> HCI Event: Command Status (0x0f) plen 4
00 01 06 04
> HCI Event: Disconn Complete (0x05) plen 4
00 28 00 16
Regards
Mohan
On Wed, 23 Feb 2005 08:03:43 +0100, Sebastian Roth
<sebastian.roth@esk.fhg.de> wrote:
> Hi,
>
> > I am trying to send data at L2CAP level. I am using
> > "Silicon Wave (11)" USB dongle in one PC and "Cambridge Silicon Radio
> > (10)" USB dongle in another PC. Using my program I can able to send
> > data from "Cambridge Silicon Radio" dongle side PC to "Silicon Wave"
> > dongle side PC. But, vice-versa is not working. I am getting the
> > following error when I try to send data from "Silicon Wave dongle".
> > Can any one tell me why this is happenning.
> You've forgotten to paste the error message. I think no one will be
> able to help you without it. Please capture the packets using
> `hcidump -X' when trying to connect from SiW to CSR dongle and post it
> including the error message(s) you see.
>
> Best regards,
> Sebastian
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 2+ messages in thread* [Bluez-users] pan and brctl addif question
2005-02-23 7:27 ` Mohan K
@ 2005-02-23 7:45 ` Jack Jia
0 siblings, 0 replies; 2+ messages in thread
From: Jack Jia @ 2005-02-23 7:45 UTC (permalink / raw)
To: bluez-users
Sorry to keep asking hciemu related question. The reason I like hciemu so
much is not only I am poor :-), but also I was supposed to set up a
virtual environment of multiple piconets, so my team members can play
around with some scatternet routing stuff. I've seen someone from this
list achieved that. Now, I am following the Pan Howto, but I have some
problems:
1. After running
#pand -s -r GN -i 7F:00:00:01:00:0A
#pand -i 7F:00:00:01:00:0B -c 7F:00:00:01:00:0A
I am hoping 7F:00:00:01:00:0A to be GN, and 7F:00:00:01:00:0B to be PANU,
but when I run pand -l, I got the following:
bnep1 7F:00:00:01:00:0B GN
bnep0 7F:00:00:01:00:0A PANU
So, it seems 7F:00:00:01:00:0B being GN
2. I cannot add bnepX to pan0 using brctl, although I can add my eth0 to
it. After running:
#brctl addif pan0 bnep0
I got:
can't add bnep0 to bridge pan0: Cannot assign requested address
Could you give me some hints about possible reasons for this? Is this
because that all the bnepX's are generated by hciemu, or of some firewall
setting issues?
Is this the right way to set up a piconet? I feel brctl shouldn't be
required for setting a piconet, and bnep0 should be reused for new
connections if it already exists as GN. Seems brctl is something for
scatternet.
Regards,
Jack
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-02-24 9:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-24 9:33 [Bluez-users] pan and brctl addif question Michael Schmidt
-- strict thread matches above, loose matches on Subject: below --
2005-02-23 6:39 [Bluez-users] Can't able to send data in both direction Mohan K
2005-02-23 7:03 ` [Bluez-users] " Sebastian Roth
2005-02-23 7:27 ` Mohan K
2005-02-23 7:45 ` [Bluez-users] pan and brctl addif question Jack Jia
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox