lnlp / LMIC-node

LMIC-node | One example to rule them all. LMIC-node is an example LoRaWAN application for a node that can be used with The Things Network. It demonstrates how to send uplink messages, how to receive downlink messages, how to implement a downlink command and it provides useful status information. With LMIC-node it is easy to get a working node quickly up and running. LMIC-node supports many popular (LoRa) development boards out of the box. It uses the Arduino framework, the LMIC LoRaWAN library and PlatformIO.
MIT License
223 stars 102 forks source link

strange behaviour, application crashing sometimes... #23

Closed askmurphy closed 3 years ago

askmurphy commented 3 years ago

My application (T-Beam LoRa v1.1) is crashing sometimes, not sure why:

000032937399: Packet queued 000032937523: Event: EV_TXSTART FAILURE .pio\libdeps\ttgo_t_beam_v1\MCCI LoRaWAN LMIC library\src\lmic\radio.c:1065

On the board, I have connected 3 push-buttons, connected to pin 2, 4 and 32. Pinmode: INPUT_PULLUP and to be sure, also attached a 10K resistor between datapin and 3.3Volt.

Will add more details here asap.

The crash appears sometimes after pressing the pin32-button.

lnlp commented 3 years ago

GPIO32 is connected to DIO2 of the LoRa radio and is used by LMIC. GPIO32 shall not be used for other purposes. This may explain your crashes.

Check file bsf_ttgo_t_beam_v1.h for a description of the pin mappings.

For pullups better use either internal or external pullups but not both.

askmurphy commented 3 years ago

Thanks! Changed the button pin to gpio13, internal pullup option removed, problem solved ;-)