2022-01-23 11:06 PM
I'm new to embedded programming and don't know how to deal with registers therefore I'm looking for a library that is readily available.
Thank you.
2022-02-01 04:06 AM
I'm trying to transmit with ACK true, but it is not transmitting and when I remove CSN wire it sends Transmitted Successfully on my UART.
2022-02-01 07:00 AM
it means your CSN of NRF24 is not connected to correct pin of STM32.
use
NRF24_csn(1);
NRF24_ce(1);
instructions to verify the status of CSN and CE pins on NRF module using multimeter.
2022-02-02 03:08 AM
Thanks for this I had assigned wrong CE and CSN pins.
Now it's working only when ack is false.
2022-02-02 06:21 AM
Good.
"Now it's working only when ack is false."
If i'm not wrong, It means you are talking about transmitter side and it is not receiving acknowledgement from receiver side.
It means your receiver side has still problem. On the receiver side check whether it is receiving data transmitted by transmitter.
Trouble shoot accordingly.
2022-02-02 09:49 PM
Yes "Now it's working only when ack is false." on transmitter side. Sorry for being vague.
Yes the receiver side is receiving data and transmitting on UART but it seems to be garbage data or random characters.
I'm going to try https://github.com/controllerstech/NRF24L01 library today.
2022-02-04 01:44 AM
"I'm going to try https://github.com/controllerstech/NRF24L01 library today."
i think it will only waste your time and effort, because all libraries are implementing standard algorithms.
Now if your transmitter and receiver are working, you only need to identify where it is picking garbage value.
Are you using debug mode or relying on UART, you must try to troubleshoot using debugger, instead of relying on UART.
2022-02-04 01:45 AM
are you using IAR workbench
2022-02-04 02:59 AM
Hey thanks for your reply. I'm able to successfully transmit and receive using the above library today itself.
And currently trying to make it two way communication and not succeeding.
I'm using STMCubeIDE.
I'm tired
2022-02-04 07:39 AM
Great! Now you have created the backbone of project.
Don't be tired. By the next two days you will be able to modify a lot.
send the message from receiver to transmitter in Acknowledgement.
modify the following message as per your requirement
char myAckPayload[32] = "Ack by STMF7!";
Replace "Ack by STMF7!" by your message. But it should not exceed 32 byte.
Best wishes.
2022-02-05 02:45 AM
Hey thanks for being patient with me.
I'll try this out today.
Can I send ack on the same data pipe as I'm transmitting my data?
I'll give an update on monday.
Thank you.