How to insert a 2420 mHz data into the broadcast data of BLE in nrf51822?

Hello,I'm from China。

At present, there is a need to broadcast beacon data in nrf51822 (SDK_12.3.0_d7731ad is used as the protocol stack version, and the development environment is windows, MDK5). during this process, a 2420 mHz data is interpolated 5 seconds apart.

static void radio_send_timout_handler(void *p_context)
{
    uint32_t err_code;
    m_radio_init();
    err_code = sd_ble_gap_adv_stop();
    APP_ERROR_CHECK(err_code);
    m_radio_send_packet(mode_tx_data,m_test_buf);
    m_radio_deinit();
    advertising_start();
    update_adv(AD_NORMAL);
}
The functions are correct.The current problem is that if I add this radio timer, as described in the code above, neither BLE nor 2420 mHZ can be sent.

Do I have to turn off SD to use radio?

Is there a demo for reference?

Parents
No Data
Reply Children
No Data