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

scanning and decryption of data

I had two nRF52832 where one broadcasts with encrypted data of advertising beacon info and another nRF52832 should only scan without connecting and should decrypt the data of beacon which is broadcasting.

for that what should i do?

please give me any sample code if available

Parents
  • Hi @Simon

    ok with the decryption part but now my problem is mainly about the Scanning part

    I need to scan the beacon's MAC address,UUID,Major,Minor,battery level etc the scanner should only scan beacons it should not get connected after detecting. 

    Thank you

  • Hi Simon

    encryption works but at scanning part decryption is not working as shown in the above decryption code

    Decryption code: 

    so please check the decryption code and say if any changes are needed or give me any code if available for decryption at central side

  • It is difficult to say just by looking at it. Have you tested the code yourself? Does it work? If not, what part of the decryption code does not work?

  • Hi Simon

    Yes, tested the code

    i am getting garbage values  in the decryption part

    this is the Ble_app_proximity code i used on peripheral side

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    #include <stdint.h>
    #include <string.h>
    #include "ble_advertising.h"
    #include "nordic_common.h"
    #include "nrf.h"
    #include "nrf_soc.h"
    #include "nrf_drv_saadc.h"
    #include "nrf_sdm.h"
    #include "app_error.h"
    #include "ble.h"
    #include "ble_err.h"
    #include "ble_hci.h"
    #include "ble_srv_common.h"
    #include "ble_advdata.h"
    #include "ble_tps.h"
    #include "ble_ias.h"
    #include "ble_lls.h"
    #include "ble_bas.h"
    #include "ble_conn_params.h"
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    this is the Ble_app_uart_c code i used on central side

    5826.decryption central.rar

    Please test the code and say if any changes are needed

  • It seems like you are getting help here, should I close this ticket?

    Best regards,

    Simon

  • Hi Simon

    I am not getting the central decryption part

    Please help me

     

Reply Children
No Data