Closed ellisgl closed 4 months ago
To transmit POCSAG, RadioLib relies on Arduino API micros()
function for timing, as can be seen here:
However, it has been reported that on CubeCell, the micros()
function is broken, as shown e.g. here: https://github.com/jgromes/RadioLib/issues/1013#issuecomment-2017813858
There is a workaround you can try, which is described here: https://github.com/jgromes/RadioLib/wiki/Interrupt-Based-Timing Basically you don't use the micros() function and create an appropriate timer yourself, taking care to set it up so that it triggers every 1/1200 = 833 microseconds.
Running POCSAG w/ the CubeCell (AB01 V2) at 1200 BPS, the ouput isn't able to be decoded in Multimon-ng. Running a test with RPITX, it works fine.
Here's the waterfall comparison (CubeCell on the left), looks like there's stuttering?:![CubeCell-RPITX-POCSAG-1200](https://github.com/jgromes/RadioLib/assets/94559/b5c60285-a331-46a9-b4d8-6b6e30952496)
platformio.ini
main.c
Debug output: https://gist.github.com/ellisgl/f14dbda493654f984faf6bcb60180644