This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Android Phone first to connect nRF52832 must to scan ? who can help me

We  use nRF52832 ,when new android phone will connect to this device by mac,we cannot connect to it  successfully,we must scan to find the device first,after found it,we can connect to it by mac. why? why can we connect it by mac first? All  of nordic like this? who can help me???

  • Hi,

    A normal method for connecting to a BLE device from a smartphone is to first do a scan, so that the available devices gets listed, and then the user chooses one of the devices to connect to.

    If you want to connect to a device with a known address I think you can do that as well, from the API of the smartphone system. Another way is you can let your application do a scan, and if it finds an advertisement from a given device or with given advertising data you connect to that device.

    If you have problems getting any of this to work, can you explain what you do (also attach the code), describe what fails and provide the error messages?

    Regards,
    Tejre

  • If  there are many BLE devices and we have known the device MAC,what we do a scan will take too long time to scan,it is  bad.  So we  want  to connect the device by the device  mac to save time.

    why  can we connect to the device by mac,after only once we scan to find the  device ,however we  rebot  our application or  smartphone . But no scan  once no  connect by mac

Related