-
Notifications
You must be signed in to change notification settings - Fork 409
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
SX1278 setFrequency() does not work anymore in 7.1.1 #1368
Comments
I just encountered this issue as well, it seems like the issue was the module not actually changing the frequency until the LSB frequency register was written. I wrote a quick PR, I'll submit that in a second. |
@CrispyAlice2 I was able to replicate this too - indeed, since 29ede2c register access has been optimized to remove redundant write operations. But if the module is sensitive to change in the LSB frequency register, we will need to figure out a different way. Looking forward to the PR ;) |
Gentlemen, in the mean time i had a deeper look at the manual, at the Register description there is nothing mentioned about a necessary write to the lsb-register to update the whole 3 registers, but on page 82 i found the note: 'The Frf setting is split across 3 bytes. A change in the center frequency will only be taken into account when the least significant byte FrfLsb in RegFrfLsb is written.' Thank you so much for finding this issue that quick! |
Resolved by merging #1369 - thank you @CrispyAlice2! This bug is quite significant, so I will go ahead and release this as 7.1.2 in the next few days. Also props to @BBluemer for a clear and concise bug report that allowed to quickly locate and resolve this issue! |
Hello,
with my setup and minimal working example code (see below) the frequency setting of the SX1278 does not work anymore with library version 7.1.1. Using library version 7.1.0 it works as expected.
The Debug output below is identical with both Library Versions.
Thanks for any help.
Debug mode output
Sketch that is causing the module fail
Expected behavior
The example code sets the Module to 450.0 MHz and switches the transmitter on. With library version 7.1.0 the spectrum analyzer shows the carrier at 450.0 MHz. Compiling with library version 7.1.1 the carrier is at 434.0 Mhz. Additional setFrequency(450) after initialisation do not help.
Hardware / Software Setup
The text was updated successfully, but these errors were encountered: