public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] Question about bluetooth simultaneous connections
@ 2008-03-05 11:33 Mohamed kash
  2008-03-05 11:41 ` Mohamed kash
  2008-03-05 14:03 ` Brad Midgley
  0 siblings, 2 replies; 7+ messages in thread
From: Mohamed kash @ 2008-03-05 11:33 UTC (permalink / raw)
  To: BlueZ users


[-- Attachment #1.1: Type: text/plain, Size: 703 bytes --]

Hi All...

I bought Edimax Bluetooth model EB-DGC1 (150 meters) and when I tried it on
Windows to send files to many mobile devices, it sends only to one device at
a time. so the scenario is as following:
1- it sends request to mobile (A) and after it accepts the file or reject
the file
2- It sends the request to mobile (B)

I tried the same dongle with other software called BlueMagnet but it also
sends to one mobile at a time not to seven.

my question is: can I program this in linux to send the request to seven
devices at the same time or is this a limitation in the hardware itself? i.e.
is this a software limitation or hardware limitation?

I appreciate if anyone can help me

regards,

Kash

[-- Attachment #1.2: Type: text/html, Size: 752 bytes --]

[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- 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] 7+ messages in thread

* [Bluez-users]  Question about bluetooth simultaneous connections
  2008-03-05 11:33 [Bluez-users] Question about bluetooth simultaneous connections Mohamed kash
@ 2008-03-05 11:41 ` Mohamed kash
  2008-03-05 14:03 ` Brad Midgley
  1 sibling, 0 replies; 7+ messages in thread
From: Mohamed kash @ 2008-03-05 11:41 UTC (permalink / raw)
  To: BlueZ users


[-- Attachment #1.1: Type: text/plain, Size: 703 bytes --]

Hi All...

I bought Edimax Bluetooth model EB-DGC1 (150 meters) and when I tried it on
Windows to send files to many mobile devices, it sends only to one device at
a time. so the scenario is as following:

1- it sends request to mobile (A) and after it accepts the file or reject
the file
2- It sends the request to mobile (B)

I tried the same dongle with other software called BlueMagnet but it also
sends to one mobile at a time not to seven.

my question is: can I program this in linux to send the request to seven
devices at the same time or is this a limitation in the hardware itself? i.e.
is this a software limitation or hardware limitation?I appreciate if anyone
can help me


regards,

Kash

[-- Attachment #1.2: Type: text/html, Size: 852 bytes --]

[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- 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] 7+ messages in thread

* Re: [Bluez-users] Question about bluetooth simultaneous connections
  2008-03-05 11:33 [Bluez-users] Question about bluetooth simultaneous connections Mohamed kash
  2008-03-05 11:41 ` Mohamed kash
@ 2008-03-05 14:03 ` Brad Midgley
  2008-03-07 18:41   ` Marcel Holtmann
  1 sibling, 1 reply; 7+ messages in thread
From: Brad Midgley @ 2008-03-05 14:03 UTC (permalink / raw)
  To: BlueZ users

Mohomed, you'll get closer to 7 if you try to keep your device master
on its connections. Something like calling a fn after estabishing
connections:

static void make_master(bdaddr_t bdaddr)
{
        uint8_t role = 0; // 0 means master
        int dd, dev_id;

        dev_id = hci_for_each_dev(HCI_UP, find_conn, (long) &bdaddr);
        if (dev_id < 0) {
                fprintf(stderr, "make_master: Not connected.\n");
                return;
        }

        dd = hci_open_dev(dev_id);
        if (dd < 0) {
                perror("HCI device open failed");
                return;
        }

        if (hci_switch_role(dd, &bdaddr, role, 10000) < 0) {
                perror("Switch role request failed");
        }
        close(dd);
}

-- 
Brad

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-users] Question about bluetooth simultaneous connections
  2008-03-05 14:03 ` Brad Midgley
@ 2008-03-07 18:41   ` Marcel Holtmann
  2008-03-10 10:24     ` manuwela kanade
  0 siblings, 1 reply; 7+ messages in thread
From: Marcel Holtmann @ 2008-03-07 18:41 UTC (permalink / raw)
  To: BlueZ users

Hi Brad,

> Mohomed, you'll get closer to 7 if you try to keep your device master
> on its connections. Something like calling a fn after estabishing
> connections:

the RFCOMM and L2CAP sockets provide a {L2CAP|RFCOMM}_LM_MASTER to do  
this task on the server socket directly.

Regards

Marcel


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-users] Question about bluetooth simultaneous connections
  2008-03-07 18:41   ` Marcel Holtmann
@ 2008-03-10 10:24     ` manuwela kanade
  2008-03-10 12:30       ` Marcel Holtmann
  0 siblings, 1 reply; 7+ messages in thread
From: manuwela kanade @ 2008-03-10 10:24 UTC (permalink / raw)
  To: BlueZ users


[-- Attachment #1.1: Type: text/plain, Size: 1186 bytes --]

Hello Sir,

Please can you tell me how to use the L2CAP_LM_MASTER. Should it be defined
while socket creation? And due to this switching of role, is it possible to
send data simultaneously?? Because, we have tried to multithread and accept
connections from multiple devices on the server, but it does not work...
only one connection is accepted by server.

Thank you,
Manuwela

On Sat, Mar 8, 2008 at 12:11 AM, Marcel Holtmann <marcel@holtmann.org>
wrote:

> Hi Brad,
>
> > Mohomed, you'll get closer to 7 if you try to keep your device master
> > on its connections. Something like calling a fn after estabishing
> > connections:
>
> the RFCOMM and L2CAP sockets provide a {L2CAP|RFCOMM}_LM_MASTER to do
> this task on the server socket directly.
>
> Regards
>
> Marcel
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>

[-- Attachment #1.2: Type: text/html, Size: 1828 bytes --]

[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- 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] 7+ messages in thread

* Re: [Bluez-users] Question about bluetooth simultaneous connections
  2008-03-10 10:24     ` manuwela kanade
@ 2008-03-10 12:30       ` Marcel Holtmann
  2008-03-10 17:20         ` manuwela kanade
  0 siblings, 1 reply; 7+ messages in thread
From: Marcel Holtmann @ 2008-03-10 12:30 UTC (permalink / raw)
  To: BlueZ users

Hi Manuwela,

> Please can you tell me how to use the L2CAP_LM_MASTER. Should it be  
> defined while socket creation? And due to this switching of role, is  
> it possible to send data simultaneously?? Because, we have tried to  
> multithread and accept connections from multiple devices on the  
> server, but it does not work... only one connection is accepted by  
> server.

the bluez-utils contains a lot of examples on how to use it. Check the  
files l2test.c and rctest.c for example.

Regards

Marcel


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-users] Question about bluetooth simultaneous connections
  2008-03-10 12:30       ` Marcel Holtmann
@ 2008-03-10 17:20         ` manuwela kanade
  0 siblings, 0 replies; 7+ messages in thread
From: manuwela kanade @ 2008-03-10 17:20 UTC (permalink / raw)
  To: BlueZ users


[-- Attachment #1.1: Type: text/plain, Size: 1100 bytes --]

Hello Sir,

Thank you so much for the reply. I will check the examples. Thank you.

Manuwela

On 3/10/08, Marcel Holtmann <marcel@holtmann.org> wrote:
>
> Hi Manuwela,
>
>
> > Please can you tell me how to use the L2CAP_LM_MASTER. Should it be
> > defined while socket creation? And due to this switching of role, is
> > it possible to send data simultaneously?? Because, we have tried to
> > multithread and accept connections from multiple devices on the
> > server, but it does not work... only one connection is accepted by
> > server.
>
>
> the bluez-utils contains a lot of examples on how to use it. Check the
> files l2test.c and rctest.c for example.
>
>
> Regards
>
> Marcel
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>

[-- Attachment #1.2: Type: text/html, Size: 1668 bytes --]

[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- 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] 7+ messages in thread

end of thread, other threads:[~2008-03-10 17:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-05 11:33 [Bluez-users] Question about bluetooth simultaneous connections Mohamed kash
2008-03-05 11:41 ` Mohamed kash
2008-03-05 14:03 ` Brad Midgley
2008-03-07 18:41   ` Marcel Holtmann
2008-03-10 10:24     ` manuwela kanade
2008-03-10 12:30       ` Marcel Holtmann
2008-03-10 17:20         ` manuwela kanade

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox