Hi all,
I am attempting to transmit a frame using 802.15.4 protocol using the nrf_radio.
The current way I am attempting to transmit a frame is defining a custom frame (p_data) (So I know what to expect on the other side) and then calling:
while (1) { LOG_INF("TX Attempted"); nrf_radio_sfd_set(NRF_RADIO, CUSTOM_SFD); const nrf_802154_transmitted_frame_props_t props = { .is_secured = false, .dynamic_data_is_set = false}; const nrf_802154_transmit_metadata_t metadata = { .frame_props = props, .cca = false}; nrf_802154_transmit_raw(p_data, &metadata); // Repeat every 1 second k_sleep(K_MSEC(1000)); }
LOG_INF("Initialising Radio..."); nrf_802154_init(); LOG_INF("Radio Initialised!"); nrf_802154_channel_set(channel_num); LOG_INF("TX Initialised"); nrf_802154_promiscuous_set(true); nrf_802154_auto_ack_set(false);
void nrf_802154_tx_started(const uint8_t *p_frame) { LOG_INF("TX Started"); } void nrf_802154_transmitted_raw(uint8_t *p_frame, const nrf_802154_transmit_done_metadata_t *p_metadata) { LOG_INF("Trnsmitted"); } void nrf_802154_transmit_failed(uint8_t *p_frame, nrf_802154_tx_error_t error, const nrf_802154_transmit_done_metadata_t *p_metadata) { LOG_INF("Trasmit Failed: %02x", error); }