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

Make lora radio reset reliable on wio-tracker-1100 and lower lr11x0 power consumption in sleep #4383

Merged
merged 2 commits into from
Aug 5, 2024

Conversation

geeksville
Copy link
Member

@geeksville geeksville commented Aug 3, 2024

Two related changes:

  • Fix wio-tracker-1110 lora radio reset GPIO assignment
    This fixes flaky lora radio init on this board. Prior to this change while debugging I would often see the lr11x0 fail to init.

  • No need to keep lr11x0 radio config during sleep anymore, also stop TCXO

I think the problem (at least on the board I'm using for power testing
a wio tracker 1110) was that actually the RESET GPIO was not correct for
the radio. This led to the radio not being properly reinited after exiting
sleep mode.

Now that the GPIO is fixed I can enter deep sleep (fully shutting down
radio) and then later when the CPU resets, it can successfully init the
radio and send packets.

After this seeming success, I also turned off the TCXO during sleep and that
worked as well.

This fixes flaky lora radio init on this board.
I think the problem (at least on the board I'm using for power testing
a wio tracker 1110) was that actually the RESET GPIO was not correct for
the radio.  This led to the radio not being properly reinited after exiting
sleep mode.

Now that the GPIO is fixed I can enter deep sleep (fully shutting down
radio) and then later when the CPU resets, it can successfully init the
radio and send packets.

After this seeming success, I also turned off the TCXO during sleep and that
worked as well.
@geeksville geeksville requested a review from caveman99 August 3, 2024 23:56
@geeksville
Copy link
Member Author

@caveman99 does this seem reasonable to you? From looking at commits it seems like you did most of the awesome lr11x0 stuff.

@geeksville geeksville marked this pull request as ready for review August 3, 2024 23:57
@thebentern thebentern merged commit d8f3c33 into meshtastic:master Aug 5, 2024
100 checks passed
@fifieldt
Copy link
Contributor

fifieldt commented Aug 5, 2024

Flashed this on a wio-tracker-1100, and nothing caught fire :) Thanks, @geeksville .

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

Successfully merging this pull request may close these issues.

3 participants