Skip to content
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

Use of TimerMillis seems to interfere with LoRaWAN join #33

Closed
MrSurly opened this issue Aug 22, 2018 · 7 comments
Closed

Use of TimerMillis seems to interfere with LoRaWAN join #33

MrSurly opened this issue Aug 22, 2018 · 7 comments

Comments

@MrSurly
Copy link

MrSurly commented Aug 22, 2018

I have a TimerMillis that I'm using to blink LEDs -- it triggers every 100ms. If I do not activate this timer, the the join seems to occur immediately. When it's in use, join can take several minutes.

Having the timer > 1000 ms helps considerably.

Is there some sort of timer contention on the STM32L0?

@GrumpyOldPizza
Copy link
Owner

GrumpyOldPizza commented Aug 22, 2018 via email

@MrSurly
Copy link
Author

MrSurly commented Aug 22, 2018

It's ... very large. I'll try to make a minimum sketch that will re-create.

@GrumpyOldPizza
Copy link
Owner

GrumpyOldPizza commented Aug 22, 2018 via email

@MrSurly
Copy link
Author

MrSurly commented Aug 23, 2018

It's a custom board running the CMWX1ZZABZ-078. Variant is B-L072Z-LRWAN1. Actual MCU is STM32L082.

Note that I have not nailed it down to any root cause. I do notice that when I disable the LED timer, then it often connects immediately after the first (sometimes second) join request. Before, the wait was 5-6 join requests.

The physical gateway is 5 feet away, and we're using TTN.

@GrumpyOldPizza
Copy link
Owner

Is there a quick repro I could take a peek at ?

@MrSurly
Copy link
Author

MrSurly commented Sep 4, 2018

Yes, sorry, I've been out-of-town since Wednesday.

@MrSurly
Copy link
Author

MrSurly commented Sep 17, 2018

I'm going to close this for now. I think TTN is just slow at responding sometimes.

@MrSurly MrSurly closed this as completed Sep 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants