Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Hardware & Devices
  4. are Bluetooth "devices " pairing or connecting before "scan" ?

are Bluetooth "devices " pairing or connecting before "scan" ?

Scheduled Pinned Locked Moved Hardware & Devices
question
2 Posts 2 Posters 7 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    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 :

    K 1 Reply Last reply
    0
    • L Lost User

      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 :

      K Offline
      K Offline
      k5054
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups