Any one knows for support for heltec_wifi_lora_32_V3?

I tried with V2 LMIC on V3 board ( heltec_wifi_lora_32_V3) it did not worked. Any help will be appreciated

Heltec Wifi LoRa V3 uses the Semtech SX1262 transceiver and LMIC library currently only supports the SX1272/1276/127x parts.

To use V3 board I have been experimenting with

https://github.com/beegee-tokyo/SX126x-Arduino

and configured the SPI interface with the following:

#ifdef ESP32
// ESP32 - SX126x pin configuration - Heltec V3
int PIN_LORA_RESET = 12 ; // LORA RESET
int PIN_LORA_DIO_1 = 14; // LORA DIO_1
int PIN_LORA_BUSY = 13; // LORA SPI BUSY
int PIN_LORA_NSS = 8; // LORA SPI CS
int PIN_LORA_SCLK = 9; // LORA SPI CLK
int PIN_LORA_MISO = 11; // LORA SPI MISO
int PIN_LORA_MOSI = 10; // LORA SPI MOSI
int RADIO_TXEN = -1; // LORA ANTENNA TX ENABLE
int RADIO_RXEN = -1; // LORA ANTENNA RX ENABLE
#endif

Heltec provides their own proprietary LoRaWAN library for their products, which appears to be an ESP32 specific implementation/spin-off of LoRaMAC-node.
I guess that it will also support their SX1262 based board(s).

Check their website for more information.

1 Like

GitHub - thorsten-l/ESP32-HELTEC-LoRa-TTN-OTAA: Sample LoRaWAN code for HELTEC WiFi LoRa V2 and V3 boards using PlatformIO my working sample code using PlatformIO

The general principle is fine, but this bit, not so much:

AppEUI, DevEUI, and AppKey will be randomly generated and permanently stored in the NVS Memory. Under normal circumstances, they will never change.

There are clear guidelines for the generation of EUI’s.

This bit is a bit scary:

-DLORAWAN_PREAMBLE_LENGTH=8

But this is in breach of the Fair Use Policy - if you are doing this, please stop and read up on it and it is inappropriate to publish a library that starts out with a breach of FUP.

#define PREFS_SLEEPTIME_DEFAULT_VALUE 60000

Please adjust and then re-post on a new topic.

OK – I now understand the problem with randomly generated EUIs. I will modify the code so that the values can be entered via the serial interface and then stored in the NVS.
The PREFS_SLEEPTIME_DEFAULT_VALUE is now set to 1200000ms (20 min).
Why is the LORAWAN_PREAMBLE_LENGTH=8 scary? I got this value as the default value
from the Arduino IDE.
The most important goal, however, has already been achieved with this code: it works with the HELTEC WiFi Lora 32 V2 and V3 boards using PlatformIO. :wink:

Most times people just enter what they want in to the code

Because it allows people to change it, which would then cause issues which would then cause support questions.

Absolutely - a useful alternative to LMIC & RadioLib

While browsing and reading the source code of the Heltec_ESP32 library, I found LORAWAN_PREAMBLE_LENGTH=8 as the default setting and have now removed it from platform.ini.
You now have the option of generating the devEUI randomly or from the chipId. In addition, for appEUI and devEUI, bits 0 and 1 of byte 0 are set according to the post: DevEUI for non-hardware assigned values - #23 by terrillmoore.
I will work on entering the EUIs and the key via the serial interface over the weekend.

1 Like