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

SDK12 RADIO transmitter problem

Recently I am working on a project transmitting and receiving data directly using RADIO block. The examples provided in the SDK folder use block wait which isn't the best solution. So I rewrite the code using SHORTS and interrupts. But after tons of experiment, I finally find that there might be bugs in transmitter in SDK12 while SDK11 works well(receiver in both all works well).

Could you please tell me the differences between SDK11 and SDK12 about the RADIO implementations?

I also attached the test files here named SDK11_main.c and SDK12_main.c. Thanks.

================UPDATES:===============

I find the reason for the above strange behavior. Maybe I should first make it clear what I thought strange

No matter which button I press, I always receive 0

and the reason is very straightforward

because I always send 0

the code snippet is here

    send_packet();
    NRF_LOG_INFO("The contents of the package was %u\r\n", (unsigned int)packet);
    packet = 0;

the NRF_LOG_INFO works in NON-blocking mode, therefore it is cleared to zero each time before the RADIO is ready to send the actual data.

==========================================

logs:

SDK11 works well

image description

SDK12

image description

test files:

SDK11_main.c

SDK12_main.c

Parents Reply Children
No Data
Related