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 Children
  • Thanks for the direction, I will toy with it. The last concern is the bonding storage. I am also using storage for AT commands to be able to change the name, password, etc... and I dont want those two to collide. Any thoughts on how to avoid that? Thanks. 

  • So I gave up after beating my head against the wall with this. its too unstable, and the API doesnt really help because its kind of cryptic. It finally decided to start working with re-pairing on android, but iOS would never ask to pair. Which is important because iOS is my target for this bluetooth setup. So I shitcanned the whole project and went a different direction with my older file/SDK by implementing an App Timer to check the state of authorization, if I dont send a password within a certain amount of time it will boot the connection as someone else suggested. 

Related