Wireless Communication Library Support Forum

Frameworks => Bluetooth Framework => Topic started by: bga on March 22, 2010, 01:29:38 PM

Title: OPPThread with multi files
Post by: bga on March 22, 2010, 01:29:38 PM
Hello,

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

Tks
Title: Re: OPPThread with multi files
Post by: Mike Petrichenko 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).
Title: Re: OPPThread with multi files
Post by: bga 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  :-[
Title: Re: OPPThread with multi files
Post by: Mike Petrichenko 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->....
Title: Re: OPPThread with multi files
Post by: bga 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?
Title: Re: OPPThread with multi files
Post by: Mike Petrichenko 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.
Title: Re: OPPThread with multi files
Post by: bga on March 24, 2010, 10:47:17 AM
est il possible de reduire la dur
Title: Re: OPPThread with multi files
Post by: bga on March 24, 2010, 10:47:42 AM
is it possible to shorten the discovery? because changing the timeout of discovery has no effect?
Title: Re: OPPThread with multi files
Post by: Mike Petrichenko 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.
Title: Re: OPPThread with multi files
Post by: bga on March 24, 2010, 11:26:55 AM
ah shame
and would you list using the timeout?
Title: Re: OPPThread with multi files
Post by: Mike Petrichenko on March 24, 2010, 11:40:12 AM
What do you mean?
Title: Re: OPPThread with multi files
Post by: bga 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.
Title: Re: OPPThread with multi files
Post by: Mike Petrichenko 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".
Title: Re: OPPThread with multi files
Post by: bga 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
Title: Re: OPPThread with multi files
Post by: bga on April 08, 2010, 09:40:33 AM
hello
everything works
but sometimes the name of mobile is unknown, which is the problem?

thks
Title: Re: OPPThread with multi files
Post by: Mike Petrichenko on April 08, 2010, 10:28:42 AM
Hi,

It is absolutly normal situation. try to read device's name few times as in demo.
Title: Re: OPPThread with multi files
Post by: bga on April 27, 2010, 02:22:21 PM
Yet that is what I do.
Otherwise what model of hardware you advise me in Class 1 (100 meters)?
(if possible taking into account the time out)

thks
Title: Re: OPPThread with multi files
Post by: Mike Petrichenko on April 27, 2010, 02:23:18 PM
I afraid I cannot recomend any hardware as I do not sell one. Take a look on www.aircable.net