Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

ANT Radio CW Test for nRF52

Rank

Total Posts: 9

Joined 2015-06-29

PM

Hi,

I am start to look into getting FCC compliance testing for my nRF52 product.
I am using PCA100040 nRF52-DK for radio test and facing irregular wave duty cycle problem. Duty cycle is change continuously.

SDK: 11.00.00
Stack: ANT_s212_nrf52_0.9.1.alpha.hex

More info see attached waveform image.

Can anyone known how resolve this issue?

My Firmware:


/**@brief Function for application main entry. Does not return.
*/
int main(void)
{
uint32_t err_code;

nrf_clock_lf_cfg_t clock_lf_cfg = NRF_CLOCK_LFCLKSRC;

// Setup LEDs
LEDS_CONFIGURE(LEDS_MASK);

// Setup SoftDevice and events handler
err_code = softdevice_ant_evt_handler_set(ant_scaleable_event_handler);
APP_ERROR_CHECK(err_code);

err_code = softdevice_handler_init(&clock;_lf_cfg, NULL, 0, NULL);
APP_ERROR_CHECK(err_code);

err_code = ant_stack_static_config();
APP_ERROR_CHECK(err_code);

// Setup and open channels
//ant_scaleable_channel_tx_broadcast_setup();


sd_ant_cw_test_mode (10,RADIO_TX_POWER_LVL_CUSTOM,RADIO_TXPOWER_TXPOWER_Pos4dBm,1);

// Enter main loop
for (;;)
{
err_code = sd_app_evt_wait();
APP_ERROR_CHECK(err_code);
}
}

Regards,
Himansu      

Image Attachments

1234.png

Click thumbnail to see full-size image

Avatar
RankRankRankRank

Total Posts: 745

Joined 2012-09-14

PM

Hi Himansu,

You are missing the call to initialize the test mode first. Your test code should look a bit like this:
sd_ant_cw_test_mode_init();
// sd_ant_cw_test_mode assumes that the hfclck is enabled.
// request and allow 2 ms to stabilize
sd_clock_hfclk_request();
nrf_delay_ms);
 
sd_ant_cw_test_mode(10401); 

Later versions of the SoftDevice will also include the delay for hfclk to stabilize in the initialization function.

Best regards