Heltec CubeCell AB01 on TTN V3

My Heltec Cubecell AB01 boards work fine on TTN V2 ABP.

Now I want to test one on V3 but the information on the Heltec site is outdated, the instructions describe TTN V2. I also wonder if the example sketch ‘LoRaWan’ is still usable, ABP data is (also) defined and I want to use OTAA as recommended for TTN.

Does anyone have a sample sketch - or link - for the AB01 with TTN V3 and OTAA?

Heltec LoRaWan sketch: https://github.com/HelTecAutomation/CubeCell-Arduino/tree/master/libraries/LoRa/examples/LoRaWAN/LoRaWan

Your device code is the same - other than using credentials from V3 console.

For OTAA, yes.

ABP implementations have to have their downlink windows explicitly adjusted.

If I’m not mistaken, the demo sketch I mentioned always uses ABP and a first step would be to change that to OTAA.

In the sketch I find this:

// OTAA or ABP // 
bool overTheAirActivation = LORAWAN_NETMODE;

That will have to do with that, but I found no further information about that.

Your right, plus you change the TTN credentials that you get from your device in V3 console.

For OTAA you will need to set appEui, devEui, and appKey - there is lots of info on the forum re this, plus lots of help on the Heltec one too.

LORAWAN_NETMODE is defined normally in platformio.ini (for vscode) or it pulled via the Arduino IDE settings.

Thanks JD.

  1. I don’t use Platformio.io so I wonder how to force OTAA
  2. No problem to set appEUI and so, I know how to do that

Just change to >> bool overTheAirActivation = OTAA;

That should override everything anyway,

If you are using the Arduino coding app then the drop down config menu they use will have an ABP/OTAA option somewhere.

1 Like

If only everything were so easy :wink: Thanks!