are Bluetooth "devices " pairing or connecting before "scan" ?
-
I do not want to abuse my posting privileges here - but I need another terminology answer I use hcitool to "scan for nearby Bluetooth devices " . In my logic - to physically scan remote devices a connection has to be made. Now Bluetooth devices as such are also "paired " and or "connected ". To apply my logic - right or wrong - before hcitool can "scan" should it "pair " AND then "connect " FIRST? Yes , I need to look at the hcitool source code and hopefully it is commented enough to support my logic. I actually was hoping to find somebody who uses hcitool option "cc" - connect , but I better heed my own suggestion and read the source code first... cheers :
-
I do not want to abuse my posting privileges here - but I need another terminology answer I use hcitool to "scan for nearby Bluetooth devices " . In my logic - to physically scan remote devices a connection has to be made. Now Bluetooth devices as such are also "paired " and or "connected ". To apply my logic - right or wrong - before hcitool can "scan" should it "pair " AND then "connect " FIRST? Yes , I need to look at the hcitool source code and hopefully it is commented enough to support my logic. I actually was hoping to find somebody who uses hcitool option "cc" - connect , but I better heed my own suggestion and read the source code first... cheers :
That's easy enough to test. Turn on a bluetooth device. Do not pair or connect, and run a scan. I think you'll find that the scan reports the device presence. My expectations are: scan - find any nearby device with bluetooth receiver turned on - may or may not report devices that are paired to other servers and not soliciting for connection pair - establish a connection to a scanned device that is soliciting for a connection connected - a pairing has been established and the server can communicate with the device.
Keep Calm and Carry On