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

BLE UART example pairing? password?

I noticed when using the UART BLE Example that there is no password or pairing request to connect to and use the device. 

Everything works fine, and I even implemented my own little password thing that has to present a password over the active connection before itll start sending data over the UART connection. 

The trouble is, there is no paring password or code, or password in order to connect. I cant figure out how to fix that situation, any ideas? 

This is causing me a problem in the Denial of Service area. Someone can connect to the device, and just leave it idle and connected, preventing an authorized user from connecting. This is starting to happen to me in school situations because of nefarious students. 

Parents Reply
  • Ok. So, I downloaded the 15.2 SDK along with your example, I compiled it and ran it as-is without modifications just so I can start with a known good baseline. It still allows me to connect without pairing to the device so something is wrong somewhere. Also when running in the debugger, it randomly encounters Fatal Errors and the BT module needs reset. Alot.... 

    Then when I do go to pair it, I get this output in the debugger:

    <info> peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Bonding, error: 132

    Thoughts? 

Children
No Data
Related