I am a new bie to BLUEZ. Presently doing a test program for device Inquiry. I have attached an dongle to USB Port 0 and running a test program, but am getting an error as....
 
Device not found......
 
The test program is a below.
    dev_id = hci_get_route(NULL);
    sock = hci_open_dev( dev_id );
 
Kindly Help.