* Re: [Bluez-users] PAND Network
[not found] <mailman.52831.1160008210.16222.bluez-users@lists.sourceforge.net>
@ 2006-10-05 16:23 ` Delgado, Monica (ERZIA)
2006-10-05 16:30 ` Marcel Holtmann
0 siblings, 1 reply; 9+ messages in thread
From: Delgado, Monica (ERZIA) @ 2006-10-05 16:23 UTC (permalink / raw)
To: bluez-users
Hi Marcel,
=
> I=92m trying to configure a PAN network and I have a problem in this
> specific scenario:
> =
> -I have one BT device (BT1) connected to a linux PC,
> which is configured as master
> =
> -I have two BT devices more connected to another Linux PC,
> in different USB ports ( BT2, BT3).
> =
> When I create a pan connection between BT2 and master (BT1) everything
> works ok, but when I try to create a second connection to the same
> master from the BT device BT3, I get this error
> =
> =93File exists (17)=94
> =
> I have tried to configure first BT3 and second BT2 and I have got the
> same error with BT2, which means that only the first pan connection is
> configured without problems. =
> =
> Is it possible to create two simultaneous PAN connections from two BT
> devices connected to the same PC? Have anyone of you ever done it?
=
>>>>>> yes, but you must sure to use "pand -i hciX" to use the correct =
>>>>>> adapter for the BNEP connection.
Thank you very much for your answer. I'm configuring the PAN connection
using the "pand" function as you say "pand -i hciX" , but I still get the
same error. In some message posted in this forum (30-09-2002) I have read
this:
"You cannot have more than one BNEP/PAN
connection to the _same_ bd address. In other words this
bd:ad:dr:1 --> bd:ad:dr:2 <-- bd:ad:dr:3
is not allowed _if_ bd:ad:dr:1 and bd:ad:dr:3 are on the same machine "
This is exactly my case, I have the 2 slaves in the same machine, and they
both try to connect to the same master device. As this message is quite old,
I don't know if this is real nowadays. I'm using Fedora Core 4 in both PC's.
Thank you and best regards, =
M=F3nica Delgado =
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Bluez-users] PAND Network
2006-10-05 16:23 ` Delgado, Monica (ERZIA)
@ 2006-10-05 16:30 ` Marcel Holtmann
0 siblings, 0 replies; 9+ messages in thread
From: Marcel Holtmann @ 2006-10-05 16:30 UTC (permalink / raw)
To: BlueZ users
SGkgTW9uaWNhLAoKPiAgPiBJ4oCZbSB0cnlpbmcgdG8gY29uZmlndXJlIGEgUEFOIG5ldHdvcmsg
YW5kIEkgaGF2ZSBhIHByb2JsZW0gaW4gdGhpcwo+ICA+IHNwZWNpZmljIHNjZW5hcmlvOgo+ICA+
IAo+ICA+ICAgICAgICAgICAgIC1JIGhhdmUgb25lIEJUIGRldmljZSAgKEJUMSkgY29ubmVjdGVk
IHRvIGEgbGludXggUEMsCj4gID4gd2hpY2ggaXMgY29uZmlndXJlZCBhcyBtYXN0ZXIKPiAgPiAK
PiAgPiAgICAgICAgICAgICAtSSBoYXZlIHR3byBCVCBkZXZpY2VzIG1vcmUgY29ubmVjdGVkIHRv
IGFub3RoZXIgTGludXggUEMsCj4gID4gaW4gZGlmZmVyZW50IFVTQiBwb3J0cyAoIEJUMiwgQlQz
KS4KPiAgPiAKPiAgPiBXaGVuIEkgY3JlYXRlIGEgcGFuIGNvbm5lY3Rpb24gYmV0d2VlbiBCVDIg
YW5kIG1hc3RlciAoQlQxKSBldmVyeXRoaW5nCj4gID4gd29ya3Mgb2ssIGJ1dCB3aGVuIEkgdHJ5
IHRvIGNyZWF0ZSBhIHNlY29uZCBjb25uZWN0aW9uIHRvIHRoZSBzYW1lCj4gID4gbWFzdGVyIGZy
b20gdGhlIEJUIGRldmljZSBCVDMsIEkgZ2V0IHRoaXMgZXJyb3IKPiAgPiAKPiAgPiAgICAgICAg
ICAgICDigJxGaWxlIGV4aXN0cyAoMTcp4oCdCj4gID4gCj4gID4gSSBoYXZlIHRyaWVkIHRvIGNv
bmZpZ3VyZSBmaXJzdCBCVDMgYW5kIHNlY29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BJbmZsdWVuY2UgdGhlIEZ1dHVyZSBv
ZiBJVApKb2luIFNvdXJjZUZvcmdlLm5ldCdzIFRlY2hzYXkgcGFuZWwgYW5kIHlvdSdsbCBnZXQg
dGhlIGNoYW5jZSB0byBzaGFyZSB5b3VyCm9waW5pb25zIG9uIElUICYgYnVzaW5lc3MgdG9waWNz
IHRocm91Z2ggYnJpZWYgc3VydmV5cyAtLSBhbmQgZWFybiBjYXNoCmh0dHA6Ly93d3cudGVjaHNh
eS5jb20vZGVmYXVsdC5waHA/cGFnZT1qb2luLnBocCZwPXNvdXJjZWZvcmdlJkNJRD1ERVZERVYK
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KQmx1ZXotdXNl
cnMgbWFpbGluZyBsaXN0CkJsdWV6LXVzZXJzQGxpc3RzLnNvdXJjZWZvcmdlLm5ldApodHRwczov
L2xpc3RzLnNvdXJjZWZvcmdlLm5ldC9saXN0cy9saXN0aW5mby9ibHVlei11c2Vycwo=
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Bluez-users] PAND Network
@ 2006-10-06 8:22 Delgado, Monica (ERZIA)
0 siblings, 0 replies; 9+ messages in thread
From: Delgado, Monica (ERZIA) @ 2006-10-06 8:22 UTC (permalink / raw)
To: bluez-users
[-- Attachment #1.1: Type: text/plain, Size: 7257 bytes --]
Hi Marcel,
> > > I'm trying to configure a PAN network and I have a problem in this
> > > specific scenario:
> > >
> > > -I have one BT device (BT1) connected to a linux PC,
> > > which is configured as master
> > >
> > > -I have two BT devices more connected to another Linux
PC,
> > > in different USB ports ( BT2, BT3).
> > >
> > > When I create a pan connection between BT2 and master (BT1)
everything
> > > works ok, but when I try to create a second connection to the same
> > > master from the BT device BT3, I get this error
> > >
> > > "File exists (17)"
> > >
> > > I have tried to configure first BT3 and second BT2 and I have got
the
> > > same error with BT2, which means that only the first pan connection
is
> > > configured without problems.
> > >
> > > Is it possible to create two simultaneous PAN connections from two
BT
> > > devices connected to the same PC? Have anyone of you ever done it?
> >
> > >>>>>> yes, but you must sure to use "pand -i hciX" to use the
correct
> > >>>>>> adapter for the BNEP connection.
> >
> >
> >
> >
> > Thank you very much for your answer. I'm configuring the PAN
connection
> > using the "pand" function as you say "pand -i hciX" , but I still get
the
> > same error. In some message posted in this forum (30-09-2002) I have
read
> > this:
> >
> >
> > "You cannot have more than one BNEP/PAN
> > connection to the _same_ bd address. In other words this
> > bd:ad:dr:1 --> bd:ad:dr:2 <-- bd:ad:dr:3
> > is not allowed _if_ bd:ad:dr:1 and bd:ad:dr:3 are on the same machine
"
> >
> >
> > This is exactly my case, I have the 2 slaves in the same machine, and
they
> > both try to connect to the same master device. As this message is
quite old,
> > I don't know if this is real nowadays. I'm using Fedora Core 4 in both
PC's.
> this is still valid, but your case is different, because you are using
> two adapters. However you must make sure that they are used. So make
> sure for one connection you use hci0 and for the other hci1. And you
> might wanna have "hcidump -i hciX -X -V" running to see the actual error
> message.
I have made sure that each connection is associated with the correct hci
interface with hcidump. I have made this test:
1- I have configured hci0 to connect to the master:
[root@localhost bt_config]# pand -r PANU --autozap -i hci0 -c
00:07:80:80:4B:04 -n
pand[6043]: Bluetooth PAN daemon version 2.15
pand[6043]: Connecting to 00:07:80:80:4B:04
pand[6043]: bnep0 connected
So the connection from hci0 has been created without problem.
2- I have configured hci1 to connect from the same PC to the master:
[root@localhost bt_config]# pand -r PANU --autozap -i hci1 -c
00:07:80:80:4B:04 -n
pand[6071]: Bluetooth PAN daemon version 2.15
pand[6071]: Connecting to 00:07:80:80:4B:04
pand[6071]: Connect to 00:07:80:80:4B:04 failed. File exists(17)
And in the hcidump of hci1 I get this:
[root@localhost bt_config]# hcidump -i hci1 -X -V
HCI sniffer - Bluetooth packet analyzer ver 1.18
device: hci1 snap_len: 1028 filter: 0xffffffff
< HCI Command: Create Connection (0x01|0x0005) plen 13
bdaddr 00:07:80:80:4B:04 ptype 0xcc18 rswitch 0x01 clkoffset 0x0000
Packet type: DM1 DM3 DM5 DH1 DH3 DH5
> HCI Event: Command Status (0x0f) plen 4
Create Connection (0x01|0x0005) status 0x00 ncmd 1
> HCI Event: Role Change (0x12) plen 8
status 0x00 bdaddr 00:07:80:80:4B:04 role 0x01
Role: Slave
> HCI Event: Connect Complete (0x03) plen 11
status 0x00 handle 41 bdaddr 00:07:80:80:4B:04 type ACL encrypt 0x00
< ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 15 scid 0x0040
< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
handle 41 policy 0x0f
Link policy: RSWITCH HOLD SNIFF PARK
> HCI Event: Page Scan Repetition Mode Change (0x20) plen 7
0000: 04 4b 80 80 07 00 01 .K.....
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 41
> HCI Event: Max Slots Change (0x1b) plen 3
0000: 29 00 05 )..
> HCI Event: Command Complete (0x0e) plen 6
Write Link Policy Settings (0x02|0x000d) ncmd 1
status 0x00 handle 41
> ACL data: handle 41 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
Connection successful
< ACL data: handle 41 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
MTU 1691
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 41
> ACL data: handle 41 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
Success
> ACL data: handle 41 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
MTU 1691
< ACL data: handle 41 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
Success
< ACL data: handle 41 flags 0x02 dlen 11
L2CAP(d): cid 0x0040 len 7 [psm 15]
BNEP: Control(0x01|0)
Setup Req(0x01) size 0x02 dst 0x1116(NAP) src 0x1115(PANU)
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 41
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 41
> ACL data: handle 41 flags 0x02 dlen 8
L2CAP(d): cid 0x0040 len 4 [psm 15]
BNEP: Control(0x01|0)
Setup Rsp(0x02) res 0x0000
< ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 41
> ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
< HCI Command: Disconnect (0x01|0x0006) plen 3
handle 41 reason 0x13
Reason: Remote User Teminated Connection
> HCI Event: Command Status (0x0f) plen 4
Disconnect (0x01|0x0006) status 0x00 ncmd 1
> HCI Event: Disconn Complete (0x05) plen 4
status 0x00 handle 41 reason 0x16
Reason: Connection Terminated by Local Host
After this I have tried to connect hci1 to another master device diferent
from the master device used for hci0 connection and the connection is
created correctly, so the problem seems to be when the two devices in the
same PC try to connect to the same master. Would it be necessary to add some
other argument in the "pand" command in this situation?
Thank you and best regards,
Monica Delgado
Radio Software Architect
Email: <mailto:monica.delgado@erzia.com> monica.delgado@erzia.com
Tel: +34 942 29 13 45
Fax : +34 942 29 13 47
ERZIA Technologies S.L.
Eduardo Benot 5
Spain-39003 Santander
<http://www.erzia.com/> www.erzia.com
------------------------------------------
The information contained in this e-mail and any attachments is confidential
to ERZIA Technologies S.L. and must not be passed to any third party without
permission. This communication is for information only and shall not create
or change any contractual relationship. ERZIA Technologies S.L. is
registered in Spain C.I.F. ESB39540927
[-- Attachment #1.2: Type: text/html, Size: 39407 bytes --]
[-- Attachment #2: Type: text/plain, Size: 348 bytes --]
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Bluez-users] PAND Network
[not found] <mailman.56464.1160122795.16222.bluez-users@lists.sourceforge.net>
@ 2006-10-19 10:31 ` Delgado, Monica (ERZIA)
2006-10-19 10:36 ` Marcel Holtmann
0 siblings, 1 reply; 9+ messages in thread
From: Delgado, Monica (ERZIA) @ 2006-10-19 10:31 UTC (permalink / raw)
To: bluez-users
Hi all, =
I have been performing test during the last two weeks with my PAN network
topology and I get always the same result.
I have been looking for information in this forum and I have found this
message:
From: Max Krasnyansky <maxk@qu...>
Re: Multiple PAN/BNEP connections from 1 machine =
2003-06-12 12:02
At 10:56 AM 6/12/2003, MUSSON MICHAEL JOHN wrote:
=
>Hello all,
>
>I just want to know if it"s possible to have one machine with two
>BT adapters establish 2 BNEP connections to a separate machine
with 1
>adapter. =
No it"s not.
=
>If this is not possible, how hard would it be
>to hack the code to make it possible?
First we"d have to learn how to plug _two_ Ethernet cables
into a _single_ port ;-).
=
Max
=
This is exactly my situation, I have two BT adapters in the same PC trying
to establish two BNEP connections to a separate machine with 1 adapter. As
this message is also quite old, isn't it possible now to have one machine
with two BT adapters establish 2 BNEP connections to a separate machine with
1 adapter?.
=
Thanks and best regards, =
M=F3nica Delgado
=
Message: 1
Date: Fri, 6 Oct 2006 10:22:14 +0200
From: "Delgado, Monica (ERZIA)" <monica.delgado@erzia.com>
Subject: Re: [Bluez-users] PAND Network
To: <bluez-users@lists.sourceforge.net>
Message-ID: <20061006081935.B9EFA215616@mrelay1.st2.lyceu.net>
Content-Type: text/plain; charset=3D"us-ascii"
Hi Marcel,
=
> > > I'm trying to configure a PAN network and I have a problem in this
> > > specific scenario:
> > > =
> > > -I have one BT device (BT1) connected to a linux PC,
> > > which is configured as master
> > > =
> > > -I have two BT devices more connected to another Linux
PC,
> > > in different USB ports ( BT2, BT3).
> > > =
> > > When I create a pan connection between BT2 and master (BT1)
everything
> > > works ok, but when I try to create a second connection to the same
> > > master from the BT device BT3, I get this error
> > > =
> > > "File exists (17)"
> > > =
> > > I have tried to configure first BT3 and second BT2 and I have got
the
> > > same error with BT2, which means that only the first pan connection
is
> > > configured without problems. =
> > > =
> > > Is it possible to create two simultaneous PAN connections from two
BT
> > > devices connected to the same PC? Have anyone of you ever done it?
> > =
> > >>>>>> yes, but you must sure to use "pand -i hciX" to use the
correct =
> > >>>>>> adapter for the BNEP connection.
> > =
> > =
> > =
> > =
> > Thank you very much for your answer. I'm configuring the PAN
connection
> > using the "pand" function as you say "pand -i hciX" , but I still get
the
> > same error. In some message posted in this forum (30-09-2002) I have
read
> > this:
> > =
> > =
> > "You cannot have more than one BNEP/PAN
> > connection to the _same_ bd address. In other words this
> > bd:ad:dr:1 --> bd:ad:dr:2 <-- bd:ad:dr:3
> > is not allowed _if_ bd:ad:dr:1 and bd:ad:dr:3 are on the same machine
"
> > =
> > =
> > This is exactly my case, I have the 2 slaves in the same machine, and
they
> > both try to connect to the same master device. As this message is
quite old,
> > I don't know if this is real nowadays. I'm using Fedora Core 4 in both
PC's.
=
> this is still valid, but your case is different, because you are using
> two adapters. However you must make sure that they are used. So make
> sure for one connection you use hci0 and for the other hci1. And you
> might wanna have "hcidump -i hciX -X -V" running to see the actual error
> message.
=
=
I have made sure that each connection is associated with the correct hci
interface with hcidump. I have made this test:
=
=
1- I have configured hci0 to connect to the master:
=
[root@localhost bt_config]# pand -r PANU --autozap -i hci0 -c
00:07:80:80:4B:04 -n =
pand[6043]: Bluetooth PAN daemon version 2.15
pand[6043]: Connecting to 00:07:80:80:4B:04
pand[6043]: bnep0 connected
=
So the connection from hci0 has been created without problem.
=
=
2- I have configured hci1 to connect from the same PC to the master:
=
[root@localhost bt_config]# pand -r PANU --autozap -i hci1 -c
00:07:80:80:4B:04 -n
pand[6071]: Bluetooth PAN daemon version 2.15
pand[6071]: Connecting to 00:07:80:80:4B:04
pand[6071]: Connect to 00:07:80:80:4B:04 failed. File exists(17)
=
=
And in the hcidump of hci1 I get this:
=
[root@localhost bt_config]# hcidump -i hci1 -X -V
HCI sniffer - Bluetooth packet analyzer ver 1.18
device: hci1 snap_len: 1028 filter: 0xffffffff
< HCI Command: Create Connection (0x01|0x0005) plen 13
bdaddr 00:07:80:80:4B:04 ptype 0xcc18 rswitch 0x01 clkoffset 0x0000
Packet type: DM1 DM3 DM5 DH1 DH3 DH5
> HCI Event: Command Status (0x0f) plen 4
Create Connection (0x01|0x0005) status 0x00 ncmd 1
> HCI Event: Role Change (0x12) plen 8
status 0x00 bdaddr 00:07:80:80:4B:04 role 0x01
Role: Slave
> HCI Event: Connect Complete (0x03) plen 11
status 0x00 handle 41 bdaddr 00:07:80:80:4B:04 type ACL encrypt 0x00
< ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 15 scid 0x0040
< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
handle 41 policy 0x0f
Link policy: RSWITCH HOLD SNIFF PARK
> HCI Event: Page Scan Repetition Mode Change (0x20) plen 7
0000: 04 4b 80 80 07 00 01 .K.....
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 41
> HCI Event: Max Slots Change (0x1b) plen 3
0000: 29 00 05 )..
> HCI Event: Command Complete (0x0e) plen 6
Write Link Policy Settings (0x02|0x000d) ncmd 1
status 0x00 handle 41
> ACL data: handle 41 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
Connection successful
< ACL data: handle 41 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
MTU 1691
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 41
> ACL data: handle 41 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
Success
> ACL data: handle 41 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
MTU 1691
< ACL data: handle 41 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
Success
< ACL data: handle 41 flags 0x02 dlen 11
L2CAP(d): cid 0x0040 len 7 [psm 15]
BNEP: Control(0x01|0)
Setup Req(0x01) size 0x02 dst 0x1116(NAP) src 0x1115(PANU)
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 41
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 41
> ACL data: handle 41 flags 0x02 dlen 8
L2CAP(d): cid 0x0040 len 4 [psm 15]
BNEP: Control(0x01|0)
Setup Rsp(0x02) res 0x0000
< ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 41
> ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
< HCI Command: Disconnect (0x01|0x0006) plen 3
handle 41 reason 0x13
Reason: Remote User Teminated Connection
> HCI Event: Command Status (0x0f) plen 4
Disconnect (0x01|0x0006) status 0x00 ncmd 1
> HCI Event: Disconn Complete (0x05) plen 4
status 0x00 handle 41 reason 0x16
Reason: Connection Terminated by Local Host
=
=
After this I have tried to connect hci1 to another master device diferent
from the master device used for hci0 connection and the connection is
created correctly, so the problem seems to be when the two devices in the
same PC try to connect to the same master. Would it be necessary to add some
other argument in the "pand" command in this situation?
=
=
Thank you and best regards,
=
=
Monica Delgado
Radio Software Architect
=
Email: <mailto:monica.delgado@erzia.com> monica.delgado@erzia.com
Tel: +34 942 29 13 45
Fax : +34 942 29 13 47 =
=
ERZIA Technologies S.L.
Eduardo Benot 5
Spain-39003 Santander
<http://www.erzia.com/> www.erzia.com
------------------------------------------
The information contained in this e-mail and any attachments is confidential
to ERZIA Technologies S.L. and must not be passed to any third party without
permission. This communication is for information only and shall not create
or change any contractual relationship. ERZIA Technologies S.L. is
registered in Spain C.I.F. ESB39540927
=
=
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://sourceforge.net/mailarchive/forum.php?forum=3Dbluez-users/attachment=
s/2
0061006/c14cd08a/attachment.html =
------------------------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
------------------------------
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
End of Bluez-users Digest, Vol 6, Issue 7
*****************************************
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easi=
er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Bluez-users] PAND Network
2006-10-19 10:31 ` Delgado, Monica (ERZIA)
@ 2006-10-19 10:36 ` Marcel Holtmann
0 siblings, 0 replies; 9+ messages in thread
From: Marcel Holtmann @ 2006-10-19 10:36 UTC (permalink / raw)
To: BlueZ users
Hi Monica,
> I have been performing test during the last two weeks with my PAN network
> topology and I get always the same result.
>
> I have been looking for information in this forum and I have found this
> message:
>
>
> From: Max Krasnyansky <maxk@qu...>
> Re: Multiple PAN/BNEP connections from 1 machine
> 2003-06-12 12:02
>
> At 10:56 AM 6/12/2003, MUSSON MICHAEL JOHN wrote:
>
> >Hello all,
> >
> >I just want to know if it"s possible to have one machine with two
> >BT adapters establish 2 BNEP connections to a separate machine
> with 1
> >adapter.
> No it"s not.
>
> >If this is not possible, how hard would it be
> >to hack the code to make it possible?
> First we"d have to learn how to plug _two_ Ethernet cables
> into a _single_ port ;-).
>
> Max
>
> This is exactly my situation, I have two BT adapters in the same PC trying
> to establish two BNEP connections to a separate machine with 1 adapter. As
> this message is also quite old, isn't it possible now to have one machine
> with two BT adapters establish 2 BNEP connections to a separate machine with
> 1 adapter?.
I am pretty sure that I have done that before. However you must be
careful with your master/slave configuration. Also you must be 100% sure
to pick the second adapter for the second connection.
If you run "hcidump -X -V", what is actual error you get or is the
second connection simply not working.
Regards
Marcel
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Bluez-users] PAND Network
[not found] <mailman.16579.1161261121.22397.bluez-users@lists.sourceforge.net>
@ 2006-10-19 14:03 ` Delgado, Monica (ERZIA)
2006-10-19 14:17 ` Marcel Holtmann
0 siblings, 1 reply; 9+ messages in thread
From: Delgado, Monica (ERZIA) @ 2006-10-19 14:03 UTC (permalink / raw)
To: bluez-users
Hi Marcel,
>> I have been performing test during the last two weeks with my PAN network
>> topology and I get always the same result.
>>
>> I have been looking for information in this forum and I have found this
>> message:
>>
>>
>> From: Max Krasnyansky <maxk@qu...>
>> Re: Multiple PAN/BNEP connections from 1 machine
>> 2003-06-12 12:02
>>
>> At 10:56 AM 6/12/2003, MUSSON MICHAEL JOHN wrote:
>>
>> >Hello all,
>> >
>> >I just want to know if it"s possible to have one machine with two
>> >BT adapters establish 2 BNEP connections to a separate machine
>> with 1
>> >adapter.
>> No it"s not.
>>
>> >If this is not possible, how hard would it be
>> >to hack the code to make it possible?
>> First we"d have to learn how to plug _two_ Ethernet cables
>> into a _single_ port ;-).
>>
>> Max
>>
>> This is exactly my situation, I have two BT adapters in the same PC
trying
>> to establish two BNEP connections to a separate machine with 1 adapter.
As
>> this message is also quite old, isn't it possible now to have one machine
>> with two BT adapters establish 2 BNEP connections to a separate machine
with
>> 1 adapter?.
>I am pretty sure that I have done that before. However you must be
>careful with your master/slave configuration. Also you must be 100% sure
>to pick the second adapter for the second connection.
>If you run "hcidump -X -V", what is actual error you get or is the
>second connection simply not working.
I'm completely sure that I'm using the second adapter for the second
connection because in the hcidump in the master machine I can see the dialog
between the devices, and the BT address of the slave in the second
connection is the address of the second adapter.
If I try the first connection with hci0 and second connection with hc1, this
is what I obtain with the hcidump of the second adapter (hci1):
[root@localhost bt_config]# hcidump -i hci1 -X -V
HCI sniffer - Bluetooth packet analyzer ver 1.18
device: hci1 snap_len: 1028 filter: 0xffffffff
< HCI Command: Create Connection (0x01|0x0005) plen 13
bdaddr 00:07:80:80:4B:04 ptype 0xcc18 rswitch 0x01 clkoffset 0x0000
Packet type: DM1 DM3 DM5 DH1 DH3 DH5
> HCI Event: Command Status (0x0f) plen 4
Create Connection (0x01|0x0005) status 0x00 ncmd 1
> HCI Event: Role Change (0x12) plen 8
status 0x00 bdaddr 00:07:80:80:4B:04 role 0x01
Role: Slave
> HCI Event: Connect Complete (0x03) plen 11
status 0x00 handle 41 bdaddr 00:07:80:80:4B:04 type ACL encrypt 0x00
< ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Connect req: psm 15 scid 0x0040
< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
handle 41 policy 0x0f
Link policy: RSWITCH HOLD SNIFF PARK
> HCI Event: Page Scan Repetition Mode Change (0x20) plen 7
0000: 04 4b 80 80 07 00 01 .K.....
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 41
> HCI Event: Max Slots Change (0x1b) plen 3
0000: 29 00 05 )..
> HCI Event: Command Complete (0x0e) plen 6
Write Link Policy Settings (0x02|0x000d) ncmd 1
status 0x00 handle 41
> ACL data: handle 41 flags 0x02 dlen 16
L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
Connection successful
< ACL data: handle 41 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
MTU 1691
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 41
> ACL data: handle 41 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
Success
> ACL data: handle 41 flags 0x02 dlen 16
L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
MTU 1691
< ACL data: handle 41 flags 0x02 dlen 14
L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
Success
< ACL data: handle 41 flags 0x02 dlen 11
L2CAP(d): cid 0x0040 len 7 [psm 15]
BNEP: Control(0x01|0)
Setup Req(0x01) size 0x02 dst 0x1116(NAP) src 0x1115(PANU)
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 41
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 41
> ACL data: handle 41 flags 0x02 dlen 8
L2CAP(d): cid 0x0040 len 4 [psm 15]
BNEP: Control(0x01|0)
Setup Rsp(0x02) res 0x0000
< ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
> HCI Event: Number of Completed Packets (0x13) plen 5
handle 41
> ACL data: handle 41 flags 0x02 dlen 12
L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
< HCI Command: Disconnect (0x01|0x0006) plen 3
handle 41 reason 0x13
Reason: Remote User Teminated Connection
> HCI Event: Command Status (0x0f) plen 4
Disconnect (0x01|0x0006) status 0x00 ncmd 1
> HCI Event: Disconn Complete (0x05) plen 4
status 0x00 handle 41 reason 0x16
Reason: Connection Terminated by Local Host
I have tried to find where the error "file exists" arises debugging the
source code, and I have found it in this function of bnep.c when trying to
send the ioctl command "bnepconnadd":
static int bnep_connadd(int sk, uint16_t role, char *dev)
{
struct bnep_connadd_req req;
strcpy(req.device, dev);
req.sock = sk;
req.role = role;
if (ioctl(ctl, bnepconnadd, &req))
return -1;
strcpy(dev, req.device);
return 0;
}
I don't know what to do to make this work, if it must work. I use the same
call in the slave devices, but only first bnep connection is established
successfully
pand -r PANU --autozap -i hci0 -c 00:07:80:80:4B:04 -n
pand -r PANU --autozap -i hci1 -c 00:07:80:80:4B:04 -n
and if I try the second call with a different master the bnep connection is
established ok.
Thank you and best regards,
Monica
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Bluez-users] PAND Network
2006-10-19 14:03 ` [Bluez-users] PAND Network Delgado, Monica (ERZIA)
@ 2006-10-19 14:17 ` Marcel Holtmann
0 siblings, 0 replies; 9+ messages in thread
From: Marcel Holtmann @ 2006-10-19 14:17 UTC (permalink / raw)
To: BlueZ users
Hi Monica,
> I have tried to find where the error "file exists" arises debugging the
> source code, and I have found it in this function of bnep.c when trying to
> send the ioctl command "bnepconnadd":
>
>
> static int bnep_connadd(int sk, uint16_t role, char *dev)
> {
> struct bnep_connadd_req req;
>
> strcpy(req.device, dev);
> req.sock = sk;
> req.role = role;
> if (ioctl(ctl, bnepconnadd, &req))
> return -1;
> strcpy(dev, req.device);
> return 0;
> }
please check the getsockname() and getpeername() output for sk in that
call.
Regards
Marcel
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Bluez-users] PAND Network
[not found] <mailman.17263.1161267550.22397.bluez-users@lists.sourceforge.net>
@ 2006-10-20 8:12 ` Delgado, Monica (ERZIA)
0 siblings, 0 replies; 9+ messages in thread
From: Delgado, Monica (ERZIA) @ 2006-10-20 8:12 UTC (permalink / raw)
To: bluez-users
Hi Marcel,
>> I have tried to find where the error "file exists" arises debugging the
>> source code, and I have found it in this function of bnep.c when trying
>>to
>> send the ioctl command "bnepconnadd":
>>
>>
>> static int bnep_connadd(int sk, uint16_t role, char *dev)
>> {
>> struct bnep_connadd_req req;
>>
>> strcpy(req.device, dev);
>> req.sock = sk;
>> req.role = role;
>> if (ioctl(ctl, bnepconnadd, &req))
>> return -1;
>> strcpy(dev, req.device);
>> return 0;
>> }
>please check the getsockname() and getpeername() output for sk in that
>call.
I have checked the local address and the remote address of the socket "sk"
in the bnep_connadd function with getsockname() and getpeername() and they
are correct in both bnep connections. The local address is in the first
connection is 00:10:60:B3:5A:C9 and 00:07:80:80:4B:04 in the second one,
and the remote address is in both connections 00:80:5A:20:EA:13.
Regards,
Monica
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bluez-users] PAND Network
[not found] <mailman.21307.1161333525.22397.bluez-users@lists.sourceforge.net>
@ 2006-10-23 14:44 ` Delgado, Monica (ERZIA)
0 siblings, 0 replies; 9+ messages in thread
From: Delgado, Monica (ERZIA) @ 2006-10-23 14:44 UTC (permalink / raw)
To: bluez-users
Hi Marcel,
>> I have tried to find where the error "file exists" arises debugging the
>> source code, and I have found it in this function of bnep.c when trying
>>to
>> send the ioctl command "bnepconnadd":
>>
>>
>> static int bnep_connadd(int sk, uint16_t role, char *dev)
>> {
>> struct bnep_connadd_req req;
>>
>> strcpy(req.device, dev);
>> req.sock = sk;
>> req.role = role;
>> if (ioctl(ctl, bnepconnadd, &req))
>> return -1;
>> strcpy(dev, req.device);
>> return 0;
>> }
>please check the getsockname() and getpeername() output for sk in that
>call.
I have checked the local address and the remote address of the socket "sk"
in the bnep_connadd function with getsockname() and getpeername() and they
are correct in both bnep connections. The local address is in the first
connection is 00:10:60:B3:5A:C9 and 00:07:80:80:4B:04 in the second one,
and the remote address is in both connections 00:80:5A:20:EA:13.
I have been looking for the error "file exists" more deeply and I think I
have finally found it in the file ../linux-2.6.11/net/bluetooth/bnep/core.c
, in the function bnep_add_connection, which is used to create the bnep
module:
int bnep_add_connection(struct bnep_connadd_req *req, struct socket *sock)
{
struct net_device *dev;
struct bnep_session *s, *ss;
u8 dst[ETH_ALEN], src[ETH_ALEN];
int err;
BT_DBG("");
baswap((void *) dst, &bt_sk(sock->sk)->dst);
baswap((void *) src, &bt_sk(sock->sk)->src);
/* session struct allocated as private part of net_device */
dev = alloc_netdev(sizeof(struct bnep_session),
(*req->device) ? req->device : "bnep%d",
bnep_net_setup);
if (!dev)
return ENOMEM;
down_write(&bnep_session_sem);
ss = __bnep_get_session(dst);
if (ss && ss->state == BT_CONNECTED) {
err = -EEXIST;
goto failed;
}
(............more source code...)
failed:
up_write(&bnep_session_sem);
free_netdev(dev);
return err;
}
As I can see, when trying to create a bnep connection, in this function the
destination address of the socket is used to discover if there is another
bnep session established with that destination address, and if that session
is in the state BT_CONNECTED, it exits with the error EEXIST ("file
exists"). I don't know if this is the way it should work or this is a bug in
the source code, but according to this, it's not possible to establish two
bnep connections from the same PC to the same destination address. Please
Marcel, could you confirm me if I'm right?
Thank you and best regards,
Monica
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2006-10-23 14:44 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.16579.1161261121.22397.bluez-users@lists.sourceforge.net>
2006-10-19 14:03 ` [Bluez-users] PAND Network Delgado, Monica (ERZIA)
2006-10-19 14:17 ` Marcel Holtmann
[not found] <mailman.21307.1161333525.22397.bluez-users@lists.sourceforge.net>
2006-10-23 14:44 ` Delgado, Monica (ERZIA)
[not found] <mailman.17263.1161267550.22397.bluez-users@lists.sourceforge.net>
2006-10-20 8:12 ` Delgado, Monica (ERZIA)
[not found] <mailman.56464.1160122795.16222.bluez-users@lists.sourceforge.net>
2006-10-19 10:31 ` Delgado, Monica (ERZIA)
2006-10-19 10:36 ` Marcel Holtmann
2006-10-06 8:22 Delgado, Monica (ERZIA)
[not found] <mailman.52831.1160008210.16222.bluez-users@lists.sourceforge.net>
2006-10-05 16:23 ` Delgado, Monica (ERZIA)
2006-10-05 16:30 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).