* Re: [Bluez-devel] Creating more than one instance of BlueZ
@ 2005-05-20 7:57 Mayank Batra
2005-05-20 8:17 ` Marcel Holtmann
2005-05-20 14:10 ` Brad Midgley
0 siblings, 2 replies; 7+ messages in thread
From: Mayank Batra @ 2005-05-20 7:57 UTC (permalink / raw)
To: bluez-devel
Brad,
> I think the best you can expect is for bluez to see
> hci0 and hci1. then
> you've got to make sure your apps choose the right
> adapter.
>
>
That is not possible since we have only one set of
modules for l2cap, rfcomm, bnep etc.
So even if I tell my app to use which adapter, only
one app will have exclusive access to the modules.
And the other app will be waiting for the first app to
free the modules.
A deadlock!
Mayank
________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Bluez-devel] Creating more than one instance of BlueZ
2005-05-20 7:57 [Bluez-devel] Creating more than one instance of BlueZ Mayank Batra
@ 2005-05-20 8:17 ` Marcel Holtmann
2005-05-20 14:10 ` Brad Midgley
1 sibling, 0 replies; 7+ messages in thread
From: Marcel Holtmann @ 2005-05-20 8:17 UTC (permalink / raw)
To: bluez-devel
Hi Mayank,
> > I think the best you can expect is for bluez to see
> > hci0 and hci1. then
> > you've got to make sure your apps choose the right
> > adapter.
>
> That is not possible since we have only one set of
> modules for l2cap, rfcomm, bnep etc.
>
> So even if I tell my app to use which adapter, only
> one app will have exclusive access to the modules.
> And the other app will be waiting for the first app to
> free the modules.
>
> A deadlock!
this is simply wrong. No application will ever have exclusive access to
a kernel module. Or do you have to wait for your HTTP connection while
you are doing SMTP?
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Bluez-devel] Creating more than one instance of BlueZ
2005-05-20 7:57 [Bluez-devel] Creating more than one instance of BlueZ Mayank Batra
2005-05-20 8:17 ` Marcel Holtmann
@ 2005-05-20 14:10 ` Brad Midgley
1 sibling, 0 replies; 7+ messages in thread
From: Brad Midgley @ 2005-05-20 14:10 UTC (permalink / raw)
To: bluez-devel
Mayank,
if you run "hciconfig" with two adapters connected, you see both hci0
and hci1. you also see their bdaddrs.
iirc, when you create a bt socket we usually set "any" as the source
(remember setting local_addr with bacpy(&local_addr, BDADDR_ANY) in
a2recv.c). you can use a specific adapter and that is what you have to
do when you have two adapters and you want to go out on a specific one.
when you connect to a service, obviously you can specify the bdaddress
to connect to.
most of the core bluez code will allow you to set the src address using
command-line arguments (a good example is -i <hciX|bdaddr> in hidd) but
we've been lazy in the btsco code about that.
brad
Mayank Batra wrote:
> Brad,
>
>
>>I think the best you can expect is for bluez to see
>>hci0 and hci1. then
>>you've got to make sure your apps choose the right
>>adapter.
>>
>>
>
>
> That is not possible since we have only one set of
> modules for l2cap, rfcomm, bnep etc.
>
> So even if I tell my app to use which adapter, only
> one app will have exclusive access to the modules.
> And the other app will be waiting for the first app to
> free the modules.
>
> A deadlock!
>
> Mayank
>
> ________________________________________________________________________
> Yahoo! India Matrimony: Find your life partner online
> Go to: http://yahoo.shaadi.com/india-matrimony
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by Oracle Space Sweepstakes
> Want to be the first software developer in space?
> Enter now for the Oracle Space Sweepstakes!
> http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Bluez-devel] Creating more than one instance of BlueZ
@ 2005-05-19 12:06 Mayank Batra
2005-05-19 12:56 ` Brad Midgley
2005-05-19 13:06 ` Marcel Holtmann
0 siblings, 2 replies; 7+ messages in thread
From: Mayank Batra @ 2005-05-19 12:06 UTC (permalink / raw)
To: bluez-devel
Guys,
I am still looking for a reply...
This is very necessary since this is the deterrent
that I am facing during development process.
Cause I now do not have access to a test PC.
Mayank.
--- Mayank Batra <mayankbatra@yahoo.co.in> wrote:
> Guys,
>
> Is it possible to create more than one instance of
> BlueZ on my linux machine.
>
> That is if I have 2 dongles, but do not have a test
> PC
> and I want to test my code, is it possible to do it
> with one PC ?
>
> Mayank
>
>
________________________________________________________________________
> Yahoo! India Matrimony: Find your life partner
> online
> Go to: http://yahoo.shaadi.com/india-matrimony
>
>
>
-------------------------------------------------------
> This SF.Net email is sponsored by Oracle Space
> Sweepstakes
> Want to be the first software developer in space?
> Enter now for the Oracle Space Sweepstakes!
>
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/bluez-devel
>
________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Bluez-devel] Creating more than one instance of BlueZ
2005-05-19 12:06 Mayank Batra
@ 2005-05-19 12:56 ` Brad Midgley
2005-05-19 13:06 ` Marcel Holtmann
1 sibling, 0 replies; 7+ messages in thread
From: Brad Midgley @ 2005-05-19 12:56 UTC (permalink / raw)
To: bluez-devel
Mayank,
I think the best you can expect is for bluez to see hci0 and hci1. then
you've got to make sure your apps choose the right adapter.
brad
Mayank Batra wrote:
> Guys,
>
> I am still looking for a reply...
>
> This is very necessary since this is the deterrent
> that I am facing during development process.
>
> Cause I now do not have access to a test PC.
>
> Mayank.
>
>
>
> --- Mayank Batra <mayankbatra@yahoo.co.in> wrote:
>
>>Guys,
>>
>>Is it possible to create more than one instance of
>>BlueZ on my linux machine.
>>
>>That is if I have 2 dongles, but do not have a test
>>PC
>>and I want to test my code, is it possible to do it
>>with one PC ?
>>
>>Mayank
>>
>>
>
> ________________________________________________________________________
>
>>Yahoo! India Matrimony: Find your life partner
>>online
>>Go to: http://yahoo.shaadi.com/india-matrimony
>>
>>
>>
>
> -------------------------------------------------------
>
>>This SF.Net email is sponsored by Oracle Space
>>Sweepstakes
>>Want to be the first software developer in space?
>>Enter now for the Oracle Space Sweepstakes!
>>
>
> http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
>
>>_______________________________________________
>>Bluez-devel mailing list
>>Bluez-devel@lists.sourceforge.net
>>
>
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>
>
> ________________________________________________________________________
> Yahoo! India Matrimony: Find your life partner online
> Go to: http://yahoo.shaadi.com/india-matrimony
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by Oracle Space Sweepstakes
> Want to be the first software developer in space?
> Enter now for the Oracle Space Sweepstakes!
> http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Bluez-devel] Creating more than one instance of BlueZ
2005-05-19 12:06 Mayank Batra
2005-05-19 12:56 ` Brad Midgley
@ 2005-05-19 13:06 ` Marcel Holtmann
1 sibling, 0 replies; 7+ messages in thread
From: Marcel Holtmann @ 2005-05-19 13:06 UTC (permalink / raw)
To: bluez-devel
Hi Mayank,
> I am still looking for a reply...
it seems that I missed your post. Sorry for that, but this can happen
some time.
> This is very necessary since this is the deterrent
> that I am facing during development process.
>
> Cause I now do not have access to a test PC.
BlueZ connections are always established with a source (local) and with
a destination (peer) address. So you can create connection between two
local device, but you must make sure that the source address is the
address of the other dongle. The only think where this not really works
is BNEP, because the kernel will route the TCP/IP traffic over the
loopback interface.
The instances question is non-sense, because there is always only one
instance of BlueZ running (like one TCP/IP, USB, SCSI, Firewire etc.),
but this instance is capable of handling more than one local device.
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bluez-devel] Creating more than one instance of BlueZ
@ 2005-05-15 12:33 Mayank Batra
0 siblings, 0 replies; 7+ messages in thread
From: Mayank Batra @ 2005-05-15 12:33 UTC (permalink / raw)
To: BLUEZ DEVELOPERS LIST
Guys,
Is it possible to create more than one instance of
BlueZ on my linux machine.
That is if I have 2 dongles, but do not have a test PC
and I want to test my code, is it possible to do it
with one PC ?
Mayank
________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-05-20 14:10 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-20 7:57 [Bluez-devel] Creating more than one instance of BlueZ Mayank Batra
2005-05-20 8:17 ` Marcel Holtmann
2005-05-20 14:10 ` Brad Midgley
-- strict thread matches above, loose matches on Subject: below --
2005-05-19 12:06 Mayank Batra
2005-05-19 12:56 ` Brad Midgley
2005-05-19 13:06 ` Marcel Holtmann
2005-05-15 12:33 Mayank Batra
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.