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

How can I add justworks to NUS service? And Verify it.

Hi, there:

based on \\nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ble_app_uart\pca10040\s132, I need add justworks BLE secure connection.

Do you have any document to help to add the justworks function?

Currently, I am Parsing the justworks related source code in H:\nRF5_SDK_17.0.2_d674ddeOriginal\examples\ble_peripheral\ble_app_bps\pca10040\s132, to \\nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ble_app_uart\pca10040\s132....

About justworks function verification; I just build ble_app_bps and use nRF Connect App to connect the EVB, seems all functions are working (EX: read 0x55-44-33-22-11-88-77-66 for Charcteristic System ID OK) but seems not viewed the justworks related info on Log.  Please help to find solution to verify the justworks function working or not.

Thanks a lot for help.

Michael

  • Hello,

    I would recommend starting with another example such as the ble_app_hrs example that already integrates the Peer manager and LESC support  then modify that example include the NUS service rather than the other way around.  There are quite a few more source files you will have add if you want to start including both the peer manager and crypto module in a new project.

    Also, remember to change the security levels from  SEC_OPEN to SEC_JUST_WORKS on relevant attributes in ble_nus.c.

    Note: ble_app_bps does not include LE secure connections, only legacy just works pairing.

    Best regards,

    Vidar

Related