Closed MarcRWetzel closed 6 years ago
I just found out, that the DI0 pin was not used (as it was not set to INPUT in the library) I am retesting now. I will run it for some hours and come back later :-) (Comment: I changed the code to use the receiver-callback)
OK. It might still lock-up (or receive nothing), but with using the irq (and fixing the irqpin with pinMode()) everything is just like I would like to have it.
pinMode(dio0, INPUT); in Setup
Hi, first of all - thanks for this nice little software for getting me on to the LoRa ship real fast.
I use the library on two TTGO wifi lora 32 boards (433MHz). Development environment for both the sender and receiver is sloeber.
My problem is, that the sender runs for days, but the receiver locks up every now and then. Sometimes he receives 4k packets, sometimes 50k but he will lock up eventually.
Is there some known issue with the esp32 and your code? Or the underlying libraries like SPI? I am somehow new to the sloeber/Arduino approach - normally I would fire up my Openocd and debug, but I didnt get this to work on the esp32.
Has somebody some clue, what I can do, to hunt this little bug down?
Here comes my little code fragment, which does not work (after several hours):
Please ignore the packet-struct. In my previous attempts I used just a simple hello+counter (as in the examples) which would break also.
Maybe somebody has some snippet, to get a trace-back written to the serial port in case of such a lock-up? Or might a watchdog+trace-back help to find the cause of this? Resetting the receiver helps - the sender seems to be really stable.
Thank you,
Marc