Author Topic: OPPThread with multi files  (Read 7999 times)

bga

  • Guest
OPPThread with multi files
« on: March 22, 2010, 01:29:38 PM »
Hello,

how can I send multi files to a phone with OPPThread?

Tks

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3537
  • Karma: 1000
    • Wireless Communication Libraries
Re: OPPThread with multi files
« Reply #1 on: March 22, 2010, 01:39:24 PM »
Hi,

You should use more than one wclOPPClient, one per connection. You do not need any threads as WCL is asynchronous library. Or you can use wclProximitySender (what is better).

bga

  • Guest
Re: OPPThread with multi files
« Reply #2 on: March 22, 2010, 02:47:07 PM »
more than one wclOPPClient for send many files to only one phone?
have you an example?

with wclProximitySender I make a discovery every time I send a new file to my phone. I would initially see a list of telephone and a second time to send files to the selected phone restart without discovery.


sorry for my english  :-[

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3537
  • Karma: 1000
    • Wireless Communication Libraries
Re: OPPThread with multi files
« Reply #3 on: March 22, 2010, 02:50:05 PM »
Ah, I thought you were tolking about sending to many phones. If you want send more than one file to one phone you should use one wclOPPClient. Send files one-by-one.

it's like:

Put(file1)->OnPutComplete->Put(file2)->OnPutComplete->....

bga

  • Guest
Re: OPPThread with multi files
« Reply #4 on: March 23, 2010, 10:23:59 AM »
Thank you very much it works very well.
is there a way to know the power of Bluetooth devices?

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3537
  • Karma: 1000
    • Wireless Communication Libraries
Re: OPPThread with multi files
« Reply #5 on: March 23, 2010, 10:25:29 AM »
Unfortunatly no. Currently there is no way to get RSSI level, but we are working on it. Main problem is MS drivers.

bga

  • Guest
Re: OPPThread with multi files
« Reply #6 on: March 24, 2010, 10:47:17 AM »
est il possible de reduire la dur

bga

  • Guest
Re: OPPThread with multi files
« Reply #7 on: March 24, 2010, 10:47:42 AM »
is it possible to shorten the discovery? because changing the timeout of discovery has no effect?

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3537
  • Karma: 1000
    • Wireless Communication Libraries
Re: OPPThread with multi files
« Reply #8 on: March 24, 2010, 11:06:02 AM »
Hi

The only way to make it "faster" use timeout value. Unfortunatly timeout is just "recomendation" and driver may decide to do not use it or use other value.

bga

  • Guest
Re: OPPThread with multi files
« Reply #9 on: March 24, 2010, 11:26:55 AM »
ah shame
and would you list using the timeout?

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3537
  • Karma: 1000
    • Wireless Communication Libraries
Re: OPPThread with multi files
« Reply #10 on: March 24, 2010, 11:40:12 AM »
What do you mean?

bga

  • Guest
Re: OPPThread with multi files
« Reply #11 on: March 24, 2010, 11:44:50 AM »
I have a Belkin bluetooth key that does not seem to take into account the timeout.
I know the names of other materials which use the timeout.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3537
  • Karma: 1000
    • Wireless Communication Libraries
Re: OPPThread with multi files
« Reply #12 on: March 24, 2010, 11:53:26 AM »
It does not depend on hardware. It depends on driver used. WidComm doesnot use timeout value. Others do but not as precition value but just as "recomendation".

bga

  • Guest
Re: OPPThread with multi files
« Reply #13 on: March 24, 2010, 12:05:04 PM »
actually on the widcomm it is not working but on a laptop with microsoft driver it works.

thks

bga

  • Guest
Re: OPPThread with multi files
« Reply #14 on: April 08, 2010, 09:40:33 AM »
hello
everything works
but sometimes the name of mobile is unknown, which is the problem?

thks

 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14