This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to request a passkey in the Master Control Panel

I'm using the PCA10001 eval board and Nordic's Master Control Panel. I'd like to request a Passkey from my eval board. How do I do this?

Parents
  • Stian - You're right - I should have included more details.

    I started with the ble_app_lbs as a template. I've made quite a few modifications. I added two custom ble services, the first allows me to send 16 bytes of data to the eval board. The second allows me to read 16 bytes from the eval board. I've also modified the behavior of LED_0 and LED_1. LED_0 just blinks to give me a visual indication that my code is running. I've removed all ble functionality from the buttons, and now Button_1 just toggles LED_1. Toggling LED_1 with the button was done just to ensure I had the button callbacks working. Eventually I want to use the button for bonding. The UART is used to talk to another PCB with a MicroChip controller.

    For this project, we want to be able to send and receive data from the MicroChip controller board, via ble. I have that working. Now I need to be able to bond to the Nordic eval board, but only allow bonding if Button_1 is pressed.

    I still very new to Bluetooth, and the Nordic tool chain. I'm trying to go in very small incremental steps, and learn as I go. So my thoughts were, first generate and send the passkey to the Master Control Panel. When I have that figured out, then I want to click the "Bond" button in the Master Control/Services window, press Button_1 on the eval board and bond.

    Please let me know if you need any additional information.

Reply
  • Stian - You're right - I should have included more details.

    I started with the ble_app_lbs as a template. I've made quite a few modifications. I added two custom ble services, the first allows me to send 16 bytes of data to the eval board. The second allows me to read 16 bytes from the eval board. I've also modified the behavior of LED_0 and LED_1. LED_0 just blinks to give me a visual indication that my code is running. I've removed all ble functionality from the buttons, and now Button_1 just toggles LED_1. Toggling LED_1 with the button was done just to ensure I had the button callbacks working. Eventually I want to use the button for bonding. The UART is used to talk to another PCB with a MicroChip controller.

    For this project, we want to be able to send and receive data from the MicroChip controller board, via ble. I have that working. Now I need to be able to bond to the Nordic eval board, but only allow bonding if Button_1 is pressed.

    I still very new to Bluetooth, and the Nordic tool chain. I'm trying to go in very small incremental steps, and learn as I go. So my thoughts were, first generate and send the passkey to the Master Control Panel. When I have that figured out, then I want to click the "Bond" button in the Master Control/Services window, press Button_1 on the eval board and bond.

    Please let me know if you need any additional information.

Children
No Data
Related