Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using hcitool to discover BT devices.

hcitool scan

I works great but when it succeeds, the successive invocations will return the contents of the discovery cache and return immediately. I need a way to force the scanning to make sure I always get the most up to date presence info. One solution I found is

hciconfig reset

Is this the right way to do it?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

The hcitool's scan command has it's own help. If you type:

hcitool scan --help

you get:

# hcitool scan --help
Usage:
    scan [--length=N] [--numrsp=N] [--iac=lap] [--flush] [--class] [--info] [--oui] [--refresh]

I've had a hard time finding further documentation on each of these options, but I've found that the "--flush" option doesn't seem to use the cache:

hcitool --flush
share|improve this answer
    
hcitool scan --flush works. Thanks. –  allprog Sep 21 '12 at 11:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.