-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NRF24L01+PA+LNA module compatibility #63
Comments
Thanks and cool project, I hope you do a write up or make a video showing it in action some day! One question, since you are already sharing the SPI bus between 2 devices, why not add the radio to the same bus? NRFLite fully supports this, it will only bring the radio's CSN pin low when it needs to communicate with the radio. But anyway, here are a couple of things to try:
Due to the limitations of the 2-pin operation mode, NRFLite is forced to stop the radio from transmitting (or receiving) in order to communicate with it. With NO_ACK sends, the only thing NRFLite can do is wait a specific amount of time between communication attempts with the radio to see if the radio is ready to transmit a new packet. I had to hard code the amount of time to wait in the library and maybe it is too short for the particular radio module you are using. The time to wait is set based on the transmission speed and is assigned to the variable 2 Mbps https://github.com/dparson55/NRFLite/blob/master/src/NRFLite.cpp#L386 This variable is used in the |
Option 1, use REQUIRE_ACK solved the problem. Thanks very much! I finished this handset last year and was disappointed the long range radio didn't work. All good now. Yes, I have looked at networking the SPI with the same TFT_SD module, I will try it on the next version. The library notes state that all send transmissions are REQ_ACK by default, is that correct? |
Good news, well glad that fixed it. Yes the default send type is defined here so if you do not specify one in the send method, it will default to REQUIRE_ACK. |
Hello. I've made a couple of projects with nrflite. Really a great library! The issue I have is using the 2 pin control on an Arduino Mega. The SPI pins (50-53) are used for an TFT display and SD card reader.
This handset works fine with a generic nrf24l01. However it locks up when used with a longer range module with antenna.
I understand there are differences between radio modules due to different manufacturers.
The project has a keypad and 2 pots. Transmit is only on change of state. Pressing the keypad is an auto ack send, and the pots are programmed as No Ack.
The pots seem to cause the lock so the assumption is the more fancy radio module cannot cope.
What can I adjust in the library which might help?
I have been reluctant to edit libraries until I get familiar with an IDE which can keep different versions, also, I'm more of a hardware person.
Any suggestions? Thanks!
The text was updated successfully, but these errors were encountered: