-
Notifications
You must be signed in to change notification settings - Fork 211
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
RX Timing is wrong for SF12 #442
Comments
It appears that there's more to this than meets the eye. See #483 (comment)_, #311 and #477. |
More testing revealed that grounding (and ground problems) can mess up the SX1276 front end (no big surprise). See new note at #483 (comment). However, even with crummy grounds, it was clear that starting RX before TX was better than starting while TX. As far as I can tell, there is no power advantage to starting late, unless there is a downlink. If there's a downlink, then starting late means you run the receiver for less time just watching the preamble. However, if there's no downlink, it doesn't matter at all. And most of the time, there's no downlink. So I plan to push a change to the 3.0.99 branch for test, that will move the RX window to start before the TX window. We'll set RXSYMs high enough to allow us to be sure we have some overlap with the preamble. Even at SF7, 1023 symbols is over 1 second, so we have plenty of margin (as long as we apply the fix for #467). I think we should ignore user-specified clock inaccuracy of more than 1%; and we should track the number of times we miss deadlines. (We should schedule assuming a slow clock, and set the number of symbols assuming a fast clock.) But our target should be just before the tx time. |
Sounds promising. Hope we get rid of the EU868 TTN join problem this way. |
@cyberman54 I'll have something for others to test later today, I think. |
@terrillmoore i will be standby |
Here's the plan.
|
Status: I discovered that the I have patches for all this, but I want to run the compliance test and review patches before committing. However, I think all these things (plus the 'late window' strategy) explain the problems we've been seeing. On the STM32L0, specifically, we might be better off using Compliance is passing at faster rates. We'll see how things go at the slower rates in an hour or two. |
Looks decent for EU868. I will review and push changes tomorrow. |
Changes are pushed to issue453 branch, I will merge to master once CI tests pass. Looks good for EU868. Passes RWC pre-compliance test. |
@terrillmoore i can't find a branch named issue453 ? |
Thanks in advance for testing. |
Here's my feedback, late due to holidays. (+) with current head (commit #3ca90f3 ) i can connect to EU868 TTNv2 network with all my test boards (all ESP32 based) and my paxcounter application. Unfortunately i don't own suitable measurement equipment to track this down. So this could be a local gateway or a general EU868 ttn problem, as well as a timing problem related to my ESP32 multitasking application. I traced the value of |
LoRaWAN MACs calculate a start time for starting the receiver.
It looks like SF12 is wrong for the LMIC -- too late. I found this with EU RX testing. Here are the times in ms.
(Semtech reference: RegionCommon.c
RegionCommonComputeRxWindowParameters()
).It's OK if you start early, but not OK if you start late, as you can miss the start of the packet.
In fact, the current LMIC only shows problems at SF12.
Part of the problem is that both use a specific number of symbols as "min syms". But LMIC uses 5 whereas Semtech uses 6. If LMIC uses 6, the table becomes:
We'll test tightening this up, but also will test just changing RxSym to 6.
The text was updated successfully, but these errors were encountered: