kizniche / ttgo-tbeam-ttn-tracker

TTGO T-Beam Tracker for TTN Mapper and TTN Tracker using US (915 MHz) and EU (868 MHz) frequencies
https://kylegabriel.com/projects/2019/04/lorawan-tracker-and-mapper.html
GNU General Public License v3.0
262 stars 139 forks source link

Deep sleep blocking ACK for confirmed downlinks #36

Open kickouille opened 3 years ago

kickouille commented 3 years ago

Hello,

When deep sleep is enabled, code is not allowing LMIC stack to TX an ACK on confirmed downloin messages.

Correct sequence would be:

  1. TX telemetry (uplink)
  2. RX some data (downlink confirmed)
  3. TX ACK for downlink
  4. Maybe RX for some other queued data (downkink)
  5. Going into deep sleep

What happens:

  1. TX telemetry (uplink)
  2. RX some data (downlink confirmed)
  3. Going into deep sleep

So it goes into deep sleep too early. It sould not be based on the fact that a message has been sent, but rather on the fact that LMIC process is complete. Not sure how to do that honestly as LMIC stack is quite obscure to me.

But at least I wanted to point that out if anyone else is pulling hairs like I just did in the recent hours... :)

Regards,

Yanik