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

nRF52840 802.15.4 MAC Selectively On/OFF MAC TX or RX

Hi 

I am using nRF52840 DK for development and using nRF-IEEE-802.15.4-radio-driver code from SDK nRF5_SDK_for_Thread_and_Zigbee_v3.0.0_d310e71. 

I want to implement functionality where user can selectively turn on or off MAC TX or RX during test.  But I am not able to find API to turn off TX or RX separately one at a time. 

Can you please help me here

Parents
  • Hi.

    It is not possible to manage the transmitter separately from the receiver.

    The nRF IEEE 802.15.4 radio driver can be in one of following states at a time:
    - SLEEP (disabled transciever)
    - RX (enabled receiver, or transmitter when transmitting an Ack)
    - TX (enabled transmitter, or receiver during CCA or receiving an Ack)
    - ED (energy detection - enabled receiver)
    - CCA (enabled receiver)
    - continuous carrier (enabled transmitter)

    This is found in external\nRF-IEEE-802.15.4-radio-driver\src\nrf_802154_core.h

    You can only select on of these states, and the driver will manage the transceiver according to the current operation.

    Best regards,

    Andreas

  • Thanks for reply, But how to select these radio states? 

    There are two kind of functions 

    1 nrf_802154_receive()  or nrf_802154_transmit

    2. nrf_802154_request_xxxx but this function doesnt have input as radio states 

    which one I have to use?

Reply Children
Related