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

Simple direct advertising

Hello,

I'am trying to do directed advertisement with NRF51822 (Smart Beacon Kit pca20006). I don't have any previous connection with peer, its address is hard-coded. The goal is to hide advertisement to others and not to connect with the peer (the ultimate goal would be to have something like describe in the privacy message sequence charts of S132 but with S130)

I have tried to modified the "ble_app_beacon" example from SDK12 with S130 softdevice. Here is the modification I did :

ble_gap_addr_t     peer_addr = {BLE_GAP_ADDR_TYPE_PUBLIC,{0x19,0x75,0xAE,0xEB,0x27,0xB8}};

// B8:27:EB:AE:75:19 => RPi 

memset(&m_adv_params, 0, sizeof(m_adv_params));

m_adv_params.type        = BLE_GAP_ADV_TYPE_ADV_DIRECT_IND;
m_adv_params.p_peer_addr = &peer_addr; 
m_adv_params.fp          = BLE_GAP_ADV_FP_ANY;
m_adv_params.interval    = 0;
m_adv_params.timeout     = 0;

These are the only modifications I did (there is still the "p_manuf_specific_data" in the "ble_advdata_t" field.) When I flash the beacon, I don't have the red led blinking (like it was without modification) and can't see any advertising. I am doing something wrong? Would you recommend to use the ble_advertising module instead?

Parents Reply Children
No Data
Related