ESB receive the data sent by itself

Hi all,

Question preconditions:

nRF52832, SDK 17.1.0, use FreeRTOS.

1 PTX and 2 PRX, PTX send heart beat to every PRX to receive the data from PRX.

Two PRX enable different pipe by nrf_esb_enable_pipes(bit_n).

.

Question.

I use the ESB to send data to two PRX every ms, when I use fixed data to accumulate and send it to PRX, It works fine I can receive data correctly in each side.

But when I send the data from UART to two PRX, the PRX side will not receive the correct data(from PTX) but will receive the data sent by itself.

I find the same question in Sometimes receiving the packages I am sending over ESB. But it didn't reply to fix the problem.

Hope you can give some suggestion.

Best regards,

Lurn

Parents
  • Hi,

    But when I send the data from UART to two PRX, the PRX side will not receive the correct data(from PTX) but will receive the data sent by itself.

    I'm not sure If I understand this correctly. Could you explain a bit more what is meant by "receive the data sent by itself" ? 

  • Hi,

    I modify the UART IRQ handler to distinguish different packets and put them in different queues. Now this problem doesn't occur again(I just tested it a few times,but it used to happen every time), but I still don't know why.

    At first, I will put all packets to a same queue then in UART_main to distinguish it and use switch...case... to put it in different queues, now I'm just moving the process forward.

Reply
  • Hi,

    I modify the UART IRQ handler to distinguish different packets and put them in different queues. Now this problem doesn't occur again(I just tested it a few times,but it used to happen every time), but I still don't know why.

    At first, I will put all packets to a same queue then in UART_main to distinguish it and use switch...case... to put it in different queues, now I'm just moving the process forward.

Children
No Data
Related