Sample using nrf_802154_receive_at

Hello,

is there any example using the IEEE 802.15.4 driver?

I was able to send and receive a some packets by using nrf_802154_receive and nrf_802154_transmit_raw, and now I would like to synchronize transmission and reception by using nrf_802154_receive_at and nrf_802154_transmit_raw_at. Unfortunately these functions don't even compile because the macro NRF_802154_DELAYED_TRX_ENABLED is not defined.

Where can I find an example that shows how to use those functions?

Best regards

Parents Reply Children
  • Hello,

    I was able to build this application using nrf_802154_transmit_raw_at() (although it doesn't do anything). 

    I found some help looking at the sample found in:

    ncs\nrf\samples\peripheral\802154_sniffer.

    hello_world_802154.zip

    See if you can use this. 

    Most of what was needed was to include these in main.c:

    #include <nrf_802154.h>
    #include <zephyr/net/ieee802154_radio.h>

    and add these lines to prj.conf:

    CONFIG_NETWORKING=y
    CONFIG_IEEE802154=y
    CONFIG_IEEE802154_RAW_MODE=y

    In addition I needed to add function callbacks for:

    net_recv_data()
    and
    ieee802154_handle_ack(),
    Which was also done by the sniffer sample.
    Best regards,
    Edvin

Related