-
Notifications
You must be signed in to change notification settings - Fork 298
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
Questions about loragw_sx1302_timestamp.c #135
Comments
Hello,
|
Thanks for your replay. When we call some function, like I test once again just now. In which condition, sx1302 will return |
No, there is no interrupt. When timestamp_counter_get() is called it just read registers from sx1302 where the current value of the internal counter is stored, and the value of this same counter at last PPS. The sx1250 radio will give the 32M clock to the sx1302. If the sx1250 is not powered and started, the sx1302 free run counter will be 0. If the free run counter is not 0, but the PPS counter is 0, it means that there is no PPS signal sent to the sx1302. lgw_stop/lgw_start will not clean the internal counter, the sx1302 needs to be reset. Which hardware are you using ? Is it a SPI or USB sx1302 board ? |
Ooo, many thanks. I use RAK7289CV2, I think it is USB sx1302 board. I met that pps_xticks is zero or old value, so I try to understand how the internal counter works in basicstation mode. I have another question, if startup with good gps signal, work for a time, and lost gps signal for a long time, such as late about 30mins, then gain gps signal again, will sx1302 recovery the gps drift? |
Hi, my gateway use basicstation mode with class b enable. But recently I get some questions.
I gaint pps_xticks with 0 return sometime, and old value(same as last) sometime.
I chek the code about this, find that end with write/read to usb fd.
So, I wander to know, how the sx1302 use the counters to save pps signal?
In
timestamp_counter_get
function which locate in loragw_sx1302_timestamp.c, read two counters value, one for freerun counter, another for pps counter, so , in sx1302, maintain two counters?If call
timestamp_counter_get
function, sx1302 will hang up until pps is up edge, then return?Could u tell me how they work?
Best Regards.
The text was updated successfully, but these errors were encountered: