.NET Components for Mobility

Send file to many bluetooth devices in parallel

Last post 01-27-2010 3:26 AM by Enrique Fau. 16 replies.
Page 1 of 2 (17 items) 1 2 Next >
Sort Posts: Previous Next
  • 07-01-2009 3:59 AM

    Send file to many bluetooth devices in parallel

    Hi,

    I have a function which send file from my PC via BT dongle to one device per time.

    I'd like to send file to many discovered BT devices via the same BT dongle becuase every sending needs confirmation from user.

    I can create some threads, ok, but what about BT dongle and MS BT stack? Do them allow to

    have many sendings in parallel? how to detect how many threads may I have simultaneously?

    Thnx.

     

    void sendFile()

    {

    ... 

    Uri theuri = new Uri("obex://" + bt.DeviceAddress.ToString() + "/" + System.IO.Path.GetFileName("f:\\570386.jpg"));

    ObexWebRequest request = new ObexWebRequest(theuri);

    request.ReadFile("c:\\my.jpg");

    ObexWebResponse response = (request.GetResponse() as ObexWebResponse);

    //MessageBox.Show(response.StatusCode.ToString());

    }

  • 07-03-2009 9:36 AM In reply to

    • veit
    • Top 10 Contributor
    • Joined on 05-16-2008
    • munich / germany
    • Posts 61

    Re: Send file to many bluetooth devices in parallel

     i would like to transfer to multiple devices too ... i tried once but failed. i think connecting to more then one is ok, but transfer data at the same time is not possible.

    hope someone prooves me wrong :)

  • 07-04-2009 2:46 PM In reply to

    Re: Send file to many bluetooth devices in parallel

    I've bought 2nd BT adapter ( in Saturn at Kaufingerstrasse Big Smile).

    It is also intersting how to work with N BT dongles in one PC. May be it can help to improve performance.

     

  • 07-04-2009 3:06 PM In reply to

    • veit
    • Top 10 Contributor
    • Joined on 05-16-2008
    • munich / germany
    • Posts 61

    Re: Send file to many bluetooth devices in parallel

     >>in Saturn at Kaufingerstrasse

     da wohn ich gleich ums eck ...

    in english:

    about 10 minutes away from my living place

  • 07-04-2009 3:25 PM In reply to

    Re: Send file to many bluetooth devices in parallel

    Big Smile Yes Beer

    I visited Muenchen today

  • 07-04-2009 5:54 PM In reply to

    Re: Send file to many bluetooth devices in parallel

     Great, I've visited Mainz last week, but what about sending paraller messages via BT? Is it possible on BT Windows stack and using 32feet.net library?

    Thx in advance

    Filed under: ,
  • 07-05-2009 4:28 AM In reply to

    Re: Send file to many bluetooth devices in parallel

    yes, you are right, that are the questions.

    1. parallel sending via one BT dongle 

    2. how to use more than one BT dongles in one pc to distribute sending

     

     

  • 07-05-2009 7:11 AM In reply to

    • veit
    • Top 10 Contributor
    • Joined on 05-16-2008
    • munich / germany
    • Posts 61

    Re: Send file to many bluetooth devices in parallel

     i read in another thread that it would be possible to use one dongle with ms stack and one with widcom at a time... but that´s not really what i would like to have

  • 07-05-2009 2:44 PM In reply to

    Re: Send file to many bluetooth devices in parallel

    It's not something I've investigated much.  There are lots of "bluetooth marketing" products however, see e.g. http://inthehand.com/forums/p/2133/6405.aspx maybe it will show the trick, many more products are listed at http://inthehand.com/forums/t/2304.aspx
    Alan J. McFarlane
    http://www.alanjmcf.me.uk/
    Please follow-up in the newsgroup for the benefit of all.
    Have I helped? Consider visiting my Amazon wishlist, see my homepage.
  • 01-18-2010 5:39 AM In reply to

    Re: Send file to many bluetooth devices in parallel

    Hello everyone,

    I am also interested in knowing how to send via bluetooth from my pc dongle to 7 mobilesin parallel. Im doint it in C#. Any suggestion¿¿

     

    Thanks you  in advance!

     

    Fernando.

     

  • 01-19-2010 5:36 AM In reply to

    Re: Send file to many bluetooth devices in parallel

    Buenas Fernando.

     He visto un comentario tuyo en un hilo de la librería (32Feet.NET), que ahora mismo estoy utilizando en un aplicativo

    para el envio masivo de publicidad via Bluetooth (uso la libreria 32Feet.NET, la libreria BrechamObex para el envio, y

    esta programada con C# y .NET). Tengo un problema (no se si será el mismo que el tuyo). Ahora mismo mi aplicación está

    funcionando correctamente, pero no soy capaz de realizar el envio de información de forma paralela (Solo consigo hacer un

    envio a la vez, y se supone que puedo hacer hasta 7... Lo necesito de este modo ya que cada envio requiere la confirmacion

    del dispositivo al que se envia, y por tanto se queda bloqueado en cada uno de ellos hasta que responda el usuario o el

    propio dispositivo por un timeOut). El codigo de envio te lo puedo adjuntar en caso de que estes interesado. Mi idea era

    ejecutar este codigo de envio en 7 diferentes hilos utilizando la clase de .NET (backGroundWorker), ahora mismo solo uso 1

    pero repito, deberia poder ejecutar el codigo en 7 backGroundWorkers diferentes...

    ¿Alguna idea? ¿Tienes alguna duda y te puedo echar una mano?

     Puedes agregarme al messenger a esta direccion: becquer33@hotmail.com

    PD: if i´m wrong and you aren´t spanish, please tell to me to resend the messange in english, very thanks.

  • 01-26-2010 5:58 AM In reply to

    Re: Send file to many bluetooth devices in parallel

    Hi all.

     I have the same problem with multiple sending with Bluetooth and (32Feet.NET and BrechamObex libraries). At the end the problem was with the hardware... My Bluetooth doongle doesn´t support multiple sendings... I try with another doongle and... it works prefectly.... Using 32Feet.NET and BrechamObex libraries with Microsoft Stack all the application works properly.

     if you need some code examples... There is in this Web. Instead if you can´t run multiple sendings contact with me... Probably i can help you and show my sending code (I use 6 threads to send and 1 to discover devices)

    Bye.

     

  • 01-26-2010 8:15 AM In reply to

    • veit
    • Top 10 Contributor
    • Joined on 05-16-2008
    • munich / germany
    • Posts 61

    Re: Send file to many bluetooth devices in parallel

     wow this sounds really awesome!

     it would be a great help for me if you could show me your code! if you want mail me at vk (@) nayoki.de 

     

    thanks!!!

  • 01-26-2010 8:19 AM In reply to

    • veit
    • Top 10 Contributor
    • Joined on 05-16-2008
    • munich / germany
    • Posts 61

    Re: Send file to many bluetooth devices in parallel

    which dongle do you use? this is maybe more important :)

  • 01-26-2010 10:13 AM In reply to

    Re: Send file to many bluetooth devices in parallel

    Hi, it is interesting to see your code samples. I made code using threads, but it works not with all BT dongles. Could you share code? If no my address is win32nipuh gmail com Thanx in advance.
Page 1 of 2 (17 items) 1 2 Next >
Copyright © 2001-2010 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.