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
  • Yes I am connected and debugging so would notice a reset and also conntected via BLE which sends data to the app and that connection is maintained. By standalone I mean that if I just create a bare project (for instance using the broadcast_tx example) and put in my code for the initialization and message broadcast I see the data fine in antware. I am using SDK 14.2 and SoftDevice S332 5.0. Yes how could I send the project to you?

Reply
  • Yes I am connected and debugging so would notice a reset and also conntected via BLE which sends data to the app and that connection is maintained. By standalone I mean that if I just create a bare project (for instance using the broadcast_tx example) and put in my code for the initialization and message broadcast I see the data fine in antware. I am using SDK 14.2 and SoftDevice S332 5.0. Yes how could I send the project to you?

Children
No Data
Related