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

Request hexadecimal key (hex 16 octets)

Hello,

I am using the Light switch example for BLE meshing. I am trying to provision the nRF52832 with Raspberry Pi. I am unable to successfully provision because of the authentication step. 

Request hexadecimal key (hex 16 octets)
[[mesh-agent]# ] Enter key (hex number):

I would like to ask: How do i obtain this hex 16 octet key?

  • Hi Meg, 

    Could you let me know which application you used on the R.PI to do provisioning ? 
    What exactly the 16 octets key that you are trying to enter ? 
    Note that in the light switch example we use the static authentication STATIC_AUTH_DATA. You can find it in example_common.h file. 

  • Hello, 
    Thank you very much for replying! 
    I’m running meshctl through the R.Pi terminal so the steps are 

    1. meshctl 

    2. discover-unprovisioned on 

    3. provision <device uuid> 

    Then the provisioning is unsuccessful due to being unable to key in the 16 octet keys for the static authentication (OOB)

    Is there a way to change the authentication to NONE? Or how do I get that 16 keys to authenticate my R.Pi connection to the nRF52832

  • Alright, I couldnt find the STATIC_AUTH_DATA in the example_common.h file for nrf5_SDK_for_Mesh_v4.2.0_src but i found it in the nrf5_SDK_for_Mesh_v3. 

    So after I downloaded the light switch example for client onto my nRF52832, I provisioned through the R.Pi. I managed to successfully provision it. 

    EDITED: The STATIC_AUTH_DATA is the same for nrf5_SDK_for_Mesh_v4.2.0_src

Related