-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Add Fine Timestamp property for concentratord-sx1302 backend #66
Conversation
This reverts commit 99bb5f3.
Using map and unwrap_or_default() this also default to `0` in case the `time_since_gps_epoch` is None.
Thanks for you contribution @LouneCode 👍 I have made some small local edits, which I will push to this PR. Hopefully that is fine with you. These are the changes that I have made:
|
Thanks @brocaar . I'll test run this change.... |
Test drive done and the changes seems to be good. ...But there is still one small issue with logging. "GPS time reference is not valid" warning writes now every second on the log which is not nice ( In a non-uxb GPS module case ). I can live with this feature because I know how to handle this situation; )
Thanks @brocaar once again. You have done very very good job!!! |
Thanks 👍
I agree with this, but it is better to look at this as a separate issue. The Semtech HAL doesn't support non-ubx modules. I don't think we should make the behavior of these errors dependent on the time fallback feature. Let me think about this :) Thanks again for adding the fine-timestamp support :-) |
This pull-request add Fine Timestamp functionality to consentrator-sx1302 backend. Details and idea of this pull-request are described in issue #65 .
Changes
chirpstack-concentratord-sx1302/src/handler/uplink.rs
chirpstack-concentratord-sx1302/src/wrapper/mod.rs
Fine Timestamp will exist in uplink message of the concentratord if:
model_flags=["USB","GNSS"]
[gateway.fine_timestamp]
enable=true
mode="ALL_SF"
Fine_time_since_gps_epoch structure has a gps time in second field if GPS device support ubx protocol. Otherwise fine_time_since_gps_epoc.seconds is set to 0 (GPS device support PPS signaling and only NMEA messages)
In this example below GPS device not support ubx messages. Only nanos field has a PPS synchronized nano seconds (to be used for TDoA calculations).
Pull-request includes also fine tuning to " GPS time reference is not valid, age" warning message. If GPS devise supports only NMEA (not ubx protocol) the warning message will be shown every 10 minutes on log if
time_fallback_enabled=true
flag is set in concentratord.toml file." Time fallback enabled. GPS time reference is not valid, age" warning message changes can be found in the following files:
Concentratord log
Log shows
fts
as follows.Concentratord Up event