-
Notifications
You must be signed in to change notification settings - Fork 188
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
Class B Beacons not working #129
Comments
I think answers are here: #98 |
Hi @gregbreen, Your error message
Indicates that time and position are not properly configured. Thanks for referencing #98. Indeed, for class B beacon operation, proper time synchronization is required. The parameters With With With For class B beacons the typical scenario would be the availability of a GPS receiver and PPS signal. Hence, A more detailed explanation of the time synchronization aspects is contained in the documentation: https://doc.sm.tc/station/time.html |
Thanks! Better:
So far, I couldn't get my device to lock to the beacon. Probably another user error. |
@beitler I want to run something past you to see if you have any tips. Example beacon transmission:
And corresponding attempt, and failure, to receive and lock by an ST Nucleo-WL55JC1 (running LoRaMAC):
The RX_BC message is printed just as it's about to turn the receiver on to try to receive the beacon. Correct channel and DR. The IRQ_RX_TX_TIMEOUT 64 milliseconds later is the expiry of the 8 symbol window time. So it seems nothing was received during that time. From the Basic Station point of view, if I have the GPS going and beacons transmitting, is there any reason why it would not be accurate enough to land in that 64ms window? Just watching both terminals, they both print this stuff out at the same time (to human perception). So if it's just a timing mismatch, it's small. I've tried increasing and moving the window, all to no avail. |
* deps: Updated sx1302_hal dependency to version 2.1.0 (no LBT yet) (Resolves #89, #103, #121, #130) * deps: Added sx1302_hal patch for handling of latched xticks rollover * deps: Updated mbedTLS dependency to version 2.28.0 (LTS) * deps: Fixed lgw patch causing IQ inversion in 500kHz channel (Resolves #81) * s2e: Added support for AU915 (Resolves #43) * s2e: Added support for LoRaWAN Regional Parameters Common Names (Resolves #18) * s2e: Fixed dnchnl2 issue (Resolves #79) * s2e: Fixed class C backoff logic (Resolves #87) * s2e: Fixed class B beacon format (Resolves #129, #131) * s2e: Fixed DR range check in upchannels list parser (Resolves #141) * ral: Changed handling of xticks for lgw1302 * ral: Fixed radio in use issue (Resolves #53, #62) * ral: Fixed types in txpow assignment (master/slave) (Resolves #118) * ral: Fixed class B beacon parameters (Resolves #132) * sx130xconf: Fixed parsing of rssi_tcomp values for sx1302 (Resolves #144) * tls: Fixed TLS cert parsing issue (Resolves #76) * sys_linux: Added support for usb/spi prefix in radio devname * sys_linux: Added mbedTLS version to startup log * sys_linux: Changed version to be printed to stdout (Resolves #51) * sys_linux: Changed default max dbuf size (Resolves #95) * sys_linux: Fixed relative home path handling (Resolves #140) * sys_linux: Fixed memory corruption during system command execution (Resolves #146) * tc/cups: Fixed sync on credset file IO (Resolves #94) * timesync: Fixed UTC to PPS alignment * log: Changed verbosity of XDEBUG log level * log: Changed logging experience for improved clarity * log: Added HAL log integration into logging module * make: Changed makefiles for more space-friendliness (Resolves #66) * net: Changed strictness on line-endings in key files (Resolves #68) * gps: Fixed parsing of ublox NAV-TIMEGPS message * Restored LICENSE file (Resolves #63, #67)
Probably this is user error on my part, but I'm struggling to get Basic Station to send beacons. My router_config includes (for AU915):
This results in:
My gateway is a RAK2246G. This includes a UBLOX7 GPS.
Tracing back in the code, I see that gpstime, as returned from ts_xtime2gpstime, is always zero:
I also see in gps.c that UBLOX7 support is omitted by default (CFG_ubx). There is the comment:
Tracing back further, it seems that ppsSync.pps_xtime is always zero, and this should be updated by the timesync message exchange. But Basic Station is not sending timesync messages. Instead the ts_updateTimesync() function exits at line 256:
I have not dug further yet because the rabbit hole keeps going down. What is the status of Class B beacon support? I currently have PPS set to "fuzzy" in station.conf. Is this right? If not, what should the config be?
I tried to use my GPS, by enabling CFG_ubx, but this doesn't seem to set ppsSync.pps_xtime anywhere anyway.
The text was updated successfully, but these errors were encountered: