-
Notifications
You must be signed in to change notification settings - Fork 55
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
Rebooting issue in arduino_lorawan_esp32 example #219
Comments
Hi, |
Hi, I think most likely you just have to apply this patch: The wiring seems to be fine. Best regards |
Please also apply the following fix in Change
to
|
Thanks a lot, It worked for me. Another problem I faced is : I am monitoring current consumption of radio module with PowerProfilerKit2, After sleeping, current consumption is floating around 100uA. It seems radio cannot sleep successfully after sleeping with ESP32. but normally in my previous tests with Atmega328p, it was consuming around 6.5 uA after sleeping all the time. Also If I dont use deepSleep, while not transmitting, current consumption is constantly around 6.5uA. I wonder why consumption increases after sleeping ? Any idea ? |
My guess is that the cause is due to an I/O leakage current. Is it just the RFM96 radio module current or the combined radio module/ESP32 current? Maybe it helps to add (high-impedance) pull-up (or pull-down) resistors to some I/O pins to achieve defined levels instead of floating inputs. |
It is only radio module consumption. When I get closer my hand/body to circuit, current goes up or down,that is, it is affected by environment. There seems to be something floating after sleeping. I will examine that later on it. Other than that I am also trying to implement downlink in the sketch. I looked over your repo : https://github.com/matthias-bs/BresserWeatherSensorTTN/blob/main/BresserWeatherSensorTTN.ino I add the code below under Lorawan methods
and add
I use chirpstack, in Queue tab, I enqueue some mesages to downlink, in sketch code branches into ReceiveCb function every time mcu wakes up and I cannot see data in Serial Output :
Here is my repo : https://github.com/kadirozdinc/ESPLORAWAN |
I don't know anything about chirpstack. Maybe you can find some hints here: https://github.com/matthias-bs/BresserWeatherSensorTTN#remote-configuration-via-lorawan-downlink One question is how to provide downlink data - hex format, base64 or plain text? My solution is not completed. I can receive data, but sending an uplink message after receiving a downlink did not work yet. I think the reason is that the sketch enters sleep mode to early. I did not find the time to work on this yet. You could also have a look at this project: https://github.com/rgot-org/TheThingsNetwork_esp32 |
Thank you so much for your interest, I will try to implement downlinks. If you can make it let me know please :) |
Should be closed by #204 |
I have a similar and probably related issue with this sketch #define ARDUINO_LMIC_CFG_NETWORK_CHIRPSTACK 1 I have added APPEUI, DEVEUI and APPKEY in secrets.h Guru Meditation Error: Core 1 panic'ed (StoreProhibited). Exception was unhandled. Core 1 register dump: Backtrace: 0x400d198a:0x3ffb2260 0x400d798a:0x3ffb2290 ELF file SHA256: 63e631795b5d43e2 Which decodes to: PC: 0x400d198d Decoding stack results With debugging disabled, the sketch still boot loops with the following errors: load:0x40080400,len:3028 Backtrace: 0x400d17e6:0x3ffb2260 0x400d7392:0x3ffb2290 ELF file SHA256: f1a9ea6249950860 Which decodes to: PC: 0x400d17e9 Decoding stack results |
What version of the library are you using? |
Hi @terrillmoore |
Please try updating to the 0.10 pre-release -- it's tagged. It has several bug fixes |
Thanks @terrillmoore |
I don't know if it is still of interest, bit I recently implemented downlink and uplinks triggered by downlink commands in my project: At least it is working with TTN and I provided some payload formatters. |
I use ESP32 DOIT V1 dev board and HopeRF RFM96 radio module. I add required library, edit platformio.ini file and could compile the sketch successfully. When upload code into dev board, device reboots itseflt continously like :
all connections I made are :
SCK - 18
MISO - 19
MOSI - 23
NSS 5
RST 13
DIO0 12
DIO1 14
DIO2 26
My Repo : https://github.com/kadirozdinc/esp32-LorawanLMIC
When I use arduino-lmic instead of arduino-lorawan, system works without any problem.
where do i make a mistake ?
The text was updated successfully, but these errors were encountered: