-
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
set_boost oversight? #47
Comments
hmm -- it looks like I introduced this error with PR #44 The changes were made when we were trying to reduce the code size as much as possible and it looks like I got a bit carried away here. Any changes must be tested on the small build for the feather_m0_rfm69 board to make sure it still fits... |
Reviewing the data sheet, it does not appear that the RegOCP value is being handled properly for the High Power settings either.
This is from section 3.3.6 of https://cdn-shop.adafruit.com/product-files/3076/RFM69HCW-V1.1.pdf This is confusing. I will compare this to the RadioHead Library implementation. |
Ah -- setting the RegOCP to 0x0F as per the Datasheet does disable the OCP but reviewing the RadioHead library for Arduino, it does not appear that this is implemented there either. RegOCP is always left at the default setting of 0x1A, even for High Power operation. This does not appear to be correct but I am not sure what impact it has. I'll raise this question in their forum as well. |
The documentation in https://cdn-shop.adafruit.com/product-files/3076/sx1231.pdf is a bit different. See section 3.4.7 |
Interesting, maybe I have been looking at the wrong datasheet. I just got mine off the first google result I saw. Please do update me with your changes as I have ported this library to C# and will definitely want to update my code accordingly. I was considering changing the method (in C#) like so:
If you would like I can also look further into it as well and submit a PR for the Python code if you can't be bothered |
Can you post the forum link for your question so I can read it as well? Reading back, this seems to be an oversight on the RadioHead library as well. There is a note in section 3.3.7 of https://cdn-shop.adafruit.com/product-files/3076/RFM69HCW-V1.1.pdf that states Note: I also have an Adafruit Feather M0 Radio with RFM69 Packet Radio so let me know if you want me to run some tests. I'm using this on a Raspberry Pi, but I understand the need for very efficient code on smaller devices. |
I have implemented a fix for this and fixed up some other issues regarding the power level reporting. I will do a bit more testing and should have a PR ready this weekend. IF you want a "sneak peak" you can find the working code here There was an existing error in the way tx_power was being returned. I think I have fixed that now as well. |
@tottaka I would certainly appreciate it if you can test my changes and see if you agree with them. |
@tottaka I will go ahead and create a PR for this so you can more easily review an comment on it |
@tottaka FYI -- I posted this to the radiohead-ardupino forum https://groups.google.com/g/radiohead-arduino/c/tRn1sibn82o |
Adafruit_CircuitPython_RFM69/adafruit_rfm69.py
Line 451 in 864012e
The datasheet for RFM69 says to set two different values for RegTestPa1 and RegTestPa2 when enabling boost, but currently they are set as the same value in the set_boost function which doesn't seem right.
The text was updated successfully, but these errors were encountered: