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

RADIO registers and handler for proprietary protocol

Dear all,

I'm currently implementing a new wireless protocol using SDK For Thread and Zigbee (4.1.0) (nRF52840DK) accessing the radio registers directly. Reading the example, it all seems quite easy.

I'm not using any softdevice, but implementing it from scratch. 

I'm implementing the transmitter side, and I define the RADIO_IRQHandler (assigning an interrupt priority = 1) to catch the event. The problem is that the packet is not sent (I'm debugging it with the receiver example: the radio configuration of my transmitter is the same of the example transmitter, so the packet must be received in the receiver side). In my opinion is a problem of interrupt priority, but not being an expert on this, I don't know how to move on.

Any hint on this?

I attach the code, in order to better understand the situation.

code:  /cfs-file/__key/communityserver-discussions-components-files/4/0081.transmitter_5F00_to_5F00_send.rar

Thanks to all,

Elia

Parents
  • Hi,

     

    Have you tried the radio examples in the nRF5 SDK (examples/peripheral/radio, transmitter and receiver)? It seems that you're enabling all NRF_RADIO->SHORTS now, which isn't a good approach. I would recommend that you get the communication between RX and TX running, then optimize afterwards.

     

    PS: there's also a nrf_esb library which you can use, which handles things like auto-ACKing on-air etc.

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    Have you tried the radio examples in the nRF5 SDK (examples/peripheral/radio, transmitter and receiver)? It seems that you're enabling all NRF_RADIO->SHORTS now, which isn't a good approach. I would recommend that you get the communication between RX and TX running, then optimize afterwards.

     

    PS: there's also a nrf_esb library which you can use, which handles things like auto-ACKing on-air etc.

     

    Kind regards,

    Håkon

Children
Related