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

ANT appears to be broadcasting but no radio data sent

I have a complex application utilizing ble and ANT on the nRF52832. Slave channels receive fine but a master broadcast channel I have setup does not appear to transmit (as verified by sniffing for the transmission). The same code standalone works fine. The EVENT_TX message is received at the correct frequency and sd_ant_broadcast_message_tx does not return any type of error code. The code below is setting up the channel:

static ant_channel_config_t   ant_channel_config_remote  = \
{                                                                           \
    .channel_number    = 1,                                  \
    .channel_type      = CHANNEL_TYPE_MASTER,                            \
    .ext_assign        = 0,                                   \
    .rf_freq           = 57,                              \
    .transmission_type = 5,                               \
    .device_type       = 16,                                  \
    .device_number     = 2,                                   \
    .channel_period    = 8192,                                   \
    .network_number    = 0,                                  \
};

uint32_t err_code = ant_channel_init(&ant_channel_config_remote);
APP_ERROR_CHECK(err_code);
//first message frame


char message[] = {2,0,0,0,0,0,0,0x50};



err_code = sd_ant_broadcast_message_tx(ANT_REMOTE_CHANNEL, 8, message);
  APP_ERROR_CHECK(err_code);

  err_code = sd_ant_channel_open(ANT_REMOTE_CHANNEL);
  APP_ERROR_CHECK(err_code);
Parents
  • I see. Not really. You are absolutely sure that you are not constantly resetting because of APP_ERROR_CHECK() called with an error somewhere? What do you mean by standalone? Do you mean that the slave and master work without BLE or that master work without slave and BLE? Would it be possible for you to share your complete project so I can test it here? What SDK and SoftDevice are you using?

Reply
  • I see. Not really. You are absolutely sure that you are not constantly resetting because of APP_ERROR_CHECK() called with an error somewhere? What do you mean by standalone? Do you mean that the slave and master work without BLE or that master work without slave and BLE? Would it be possible for you to share your complete project so I can test it here? What SDK and SoftDevice are you using?

Children
No Data
Related