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

PIN access on app for BLE device

I would like to know how to create a prompt that asks for a PIN before a user gets access to pairing to a BLE peripheral. Currently I'm using a CurieBot and once it's found via the app, you can click it and gain access to it.

Parents
  • When the CurieBot gets a pairing request from the smart phone it must include that it has a display in the pairing response, see this.

    Then you would need to have some way of displaying the pin that should be put into the smart phone, or maybe you can set it static, see this.

  • I had a quick look at the API of the library, it seems like it doesn't even support pairing, so static passkey is not supported either.

    It is probably not possible to use the Nordic APIs.

    With our SoftDevice you can set a static passkey in the peripheral, so that you don't need to display, even though you say that you have a display. Then you would input this static key into the central, because it has a keyboard.

    The Arduino 101 is a board with a Intel Curie module. The Intel Curie module has the nRF51822 chip inside. So the nRF51822 is accessed through the Curie module.

    I think this will be difficult to do without the Arduino 101 library support.

Reply
  • I had a quick look at the API of the library, it seems like it doesn't even support pairing, so static passkey is not supported either.

    It is probably not possible to use the Nordic APIs.

    With our SoftDevice you can set a static passkey in the peripheral, so that you don't need to display, even though you say that you have a display. Then you would input this static key into the central, because it has a keyboard.

    The Arduino 101 is a board with a Intel Curie module. The Intel Curie module has the nRF51822 chip inside. So the nRF51822 is accessed through the Curie module.

    I think this will be difficult to do without the Arduino 101 library support.

Children
No Data
Related