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

BLE relay application and peer manager

Hello,

I'm considering writing BLE relay application, where central side should bond and encrypt connections (cause sensor device requires it and will not function without it), and peripheral side should not encrypt and should not require bonding (cause central device to which the data would be relayed does not support bonding/encryption). I'm currently looking at ble_app_hrs_rscs_relay example, and i see that it uses "peer manager" module to simplify bonding/encryption management. Can this example be adjusted in a way where peer manager would only work for central role (allowing for easy bonding/encryption), and peripheral role would not require bonding/encryption (not using peer manager, or using it with different parameters) ?

Second question - which softdevice should i use for such an application when using nRF52840 IC?

Thanks,

Wojtek

Parents
  • Hi, 

    Can this example be adjusted in a way where peer manager would only work for central role (allowing for easy bonding/encryption), and peripheral role would not require bonding/encryption (not using peer manager, or using it with different parameters) ?

    I have not tested that, but I believe it should be possible 
     
    Second question - which softdevice should i use for such an application when using nRF52840 IC?

    Please see the info in the SDKs and SoftDevices section.

    -Amanda H.

  • Hi Amanda, so how should i approach this? Should i call pm_sec_params_set with different parameter set when i want to connect to peripheral as central (bonding/encryption on), and different set (no bonding, no encryption) when i'm advertising as peripheral? I don't really see anything related to such case in peer manager documentation...  Or is it somehow possible to avoid using Peer Manager for peripheral role and use it only for central part of the application? 

    Thanks,

    Wojtek

Reply
  • Hi Amanda, so how should i approach this? Should i call pm_sec_params_set with different parameter set when i want to connect to peripheral as central (bonding/encryption on), and different set (no bonding, no encryption) when i'm advertising as peripheral? I don't really see anything related to such case in peer manager documentation...  Or is it somehow possible to avoid using Peer Manager for peripheral role and use it only for central part of the application? 

    Thanks,

    Wojtek

Children
Related