Closed itofficeeu closed 5 years ago
I just tried to change to the repo "IBM_LMIC_framework".
Not forgetting to disable
//#define LMIC_PRINTF_TO Serial
in config.h.
Here does the error occur in the same way. You just do not have the same debug output available. So I can not give you any based in that repo.
Heltect has changed the pinout for the LoRa sender module.
The settings for LMIC for version 2 of the hardware is now:
const lmic_pinmap lmic_pins = {
.nss = 18,
.rxtx = LMIC_UNUSED_PIN,
.rst = 14,
.dio = {26, 34, 35},
};
Version 1 has "32, 33" - where version 2 has "34, 35" as pins for the Lora module.
v1 pinout here: https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/blob/master/PinoutDiagram/WIFI_LoRa_32(V1).pdf
v2 pinout here: https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/blob/master/PinoutDiagram/WIFI_LoRa_32(V2).pdf
This page have a detail document about the difference between V1 and V2: http://www.heltec.cn/wifi-lora-32-new-edition-comparison/?lang=en
BTW. you can try our LoRaWAN library: https://github.com/HelTecAutomation/ESP32_LoRaWAN
@Heltec-Aaron-Lee your website is not working ... and I am only getting 504 Gateway Errors from the USA. Is there a problem with your webserver?
@Humancell the web server is working well
The version 2 of the hardware does not send data as version 1 of the hardware, even if the software is 100% the same.
The program runs and sends one LoRa message (once) without any payload. The existence of the single message can be seen in the data section of the application in thethingsnetwork.org.
The hardware continues to run but does not send any further LoRa packages and data. The continued running can be seen by the software printing debug messages as normal in the monitor of the Arduino IDE.
Before stopping sending data the following debug can be seen in the monitor:
After this, the lmic.c software stops printing any more debug massages. Only messages from your own code will be printed in the monitor.
I will now take a look at the settings for the LoRa module in version 2 of the hardware.