whitecatboard / Lua-RTOS-ESP32

Lua RTOS for ESP32
Other
1.18k stars 222 forks source link

lora.tx(confirmed, port, data) #389

Closed elsbiet closed 3 years ago

elsbiet commented 3 years ago

just in case this project is still alive:

  1. lora.tx(confirmed, port, data) is not documented in the wiki
  2. if called with confirmed=true the program occasionally will crash with an assertion - no ack received (if device is moving, if gateway is down, ..)
  3. if called with confirmed=false the call will not return. this seems to be a result af waiting forever in hal_sleep (./components/lora/node/lmic/lmic_hal.c)
  4. if i replace portMAX_DELAY by 10000 in hal_sleep (./components/lora/node/lmic/lmic_hal.c) the call will take ~30 seconds to complete. as can bee seen in the ttn console data will arrive within less than 1 second and i wonder what the program is waiting for.

did i miss anything?

elsbiet commented 3 years ago

the cause of this issue is a hardware fault. i have soldered my own device and my test program runs on lua-rtos-esp32 without any issues.

sorry for any confusion my post might have caused.

g.