-
Notifications
You must be signed in to change notification settings - Fork 415
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
Pager receive example error for speed = 512 #665
Comments
The slowest data rate SX127x supports is 1200 bps, so no, this cannot be changed - it's a hardware limitation of the module. |
The datasheet only has a few examples of "Classical modem baud rates (multiples of 1.2kbps)" and it does not show 512 bps in their example. If we can set RegBitRateMsb=0xD0 and RegBitRateLsb=0x56, then 512 bps will work.
|
There is a section in the datasheet that does actually specify the support bit rate range - in Table 7, minimum bit rate is 1.2 kbps. However, I tested the 512 bps POCSAG and somewhat surprisingly, it does work and decodes in PDW. I usually use the parameter ranges from the datasheet, but in this case, it seems reasonable to make an exception. I lowered the minimum data rate for SX127x and RF69 (since it has the same FSK modem) to 500 bps, so now it should work without issues. Thanks for pointing this out! |
In the pager receive example, pager.startReceive returns a status_code = -101 (RADIOLIB_ERR_INVALID_BIT_RATE) when using 512 for speed in pager.begin.
Is it possible to change
RadioLib/src/modules/SX127x/SX127x.cpp
Line 829 in 7a25b27
to
RADIOLIB_CHECK_RANGE(br, 0.512, 300.0, RADIOLIB_ERR_INVALID_BIT_RATE);
?Just for reference, here's the code on the TTGO-LoRa32-V2.1 T3_V1.6.1.
The text was updated successfully, but these errors were encountered: