You Are Here:

Community: Developer Discussion Boards

#1 Old How to shorten bluetooth discovery time - 2003-11-19, 13:02

Join Date: Jun 2003
Posts: 318
advocatee
Offline
Regular Contributor
Hi

I'm using rhostresolver

If i set:

addr.SetAction(KHostResInquiry);

The GetByAddress inquiry takes between 13 - 16 seconds.

But if i set:
addr.SetAction(KHostResInquiry | KHostResName | KHostResIgnoreCache);

The GetByAddress inquiry takes about 20 seconds, which is pretty long.

Any comments?

I'm wondering if i can shorten the time by setting the class of device to be searched for (the majorclass minorclass thingy). This isn't explained very well in the documentation. Any one knows how? Any other tips on shortening the inquiry time?
Reply With Quote

#2 Old 2003-11-20, 15:30

Join Date: Apr 2003
Posts: 915
Location: Czech Republic
sopta007
Offline
Super Contributor
Sounds very strange to me. I'm going to start some bluetooth development in next few weeks and the long time of discoveries troubles me too...

But I believe that the discovery takes approximatelly 10 seconds, no more no less!!! Or at least I hope so. Still it is very long. I haven't done any programming with bluetooth yet but this can be found in bluetooth specs:

Two 10 ms trains A and B are defined, splitting the 32 frequencies of the inquiry hopping sequence into two 16-hop parts. A single train must be repeated for at least Ninquiry=256 times before a new train is used. In order to collect all responses in an error-free environment, at least three train switches must have taken place. As a result, the inquiry substate may have to last for 10.24 s unless the inquirer collects enough responses and determines to abort the inquiry substate earlier.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia