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

S110 and secure connection

Hello,

I use stack S110 V7.1.0 on nRF51822 (the device is a remote with 4 buttons). Currently the remote send advertising frame with the pressed button into the data, we would like to securise the connection.

  1. I would like to use rolling address. In Hal_Ble_GapParamInit() I have this code:

gap_address.addr_type = BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_RESOLVABLE; err_code = sd_ble_gap_address_set(BLE_GAP_ADDR_CYCLE_MODE_AUTO, &gap_address); APP_ERROR_CHECK(err_code);

ble_opt_t opt = {0}; opt.gap_opt.privacy.interval_s = 60; err_code = sd_ble_opt_set(BLE_GAP_OPT_PRIVACY, &opt); APP_ERROR_CHECK(err_code);

The address change on each advertising frame not on each 60s (err_code is equal 0). What's is the correct syntax to use?

  1. On the gateway (linux device running bluez) I need to identify this remote, so the first time the remote is detected I need to perform a pairing (key generation and exchange) to be able the next time to decode the rolling mac address. Do you have sample code to do this (nRF side)?

This post said S130 is need, but this one said it's possible on S110 v7.x.

Best regards Jerome

Related