logo       

RE: A non-blocking hci_inquiry: msg#00205

Subject: RE: A non-blocking hci_inquiry
Hi Trevor,

> The underlying inquiry operation is asynchronous, so there shouldn't be
> anything fundamental preveting the code from doing it.  There are three
> options that might work:
> 
> 1) Do it manually with hcitool HCI commands
> 2) Change the user-level hcitool inquiry command
> 3) Change the kernel
> 
> Not sure which would work best, or exactly how, but I've played with it
> enough to know it's possible.

the HCI raw socket gives you full access to the HCI interface and so you
can use it like you want. I have attached an example code which I have
written some month ago for some other purpose, but it shows you how it
works.

Regards

Marcel

Attachment: main.c
Description: Text Data

<Prev in Thread] Current Thread [Next in Thread>