Can't connect to TTN with TTGO LoRa32_V2.1-1.6

I can’t connect to TTN with my TTGO LoRa32_V2.1-1.6 board (lilygo)

I made an application using the TTN console where I configured:

  • Europe SF9 freq plan (I am in belgium)
  • filled in the device number that the device shows after reset
  • appEUI set to all zeroes
  • generated an appkey
  • set LoRaWan version to 1.0.3

I copied those data to the lorawan-keys.h file OTAA data

After reset, I get the text below on the serial link.
The texts seems to show that it can’t connect, and on the console, I see no data appearing.
I tried inverting the appkey and device number (thinking problem might be endiannes), but that didn’t help.
Could it be that there is no signal? (I can’t make that out from the text below)
Or am I missing something else?

LMIC-node

Device-id:     ttgo-lora32-v21
LMIC library:  MCCI
Activation:    OTAA
LMIC debug:    1
Interval:      60 seconds

RXMODE_RSSI
000000028656:  Event: EV_JOINING
30507: engineUpdate, opmode=0x4

000000030548:  doWork job started
139263: engineUpdate, opmode=0x4
000000139306:  Event: EV_TXSTART
141260: TXMODE, freq=868100000, len=23, SF=7, BW=125, CR=4/5, IH=0
start single rx: now-rxtime: 2
457510: RXMODE_SINGLE, freq=868100000, SF=7, BW=125, CR=4/5, IH=0
rxtimeout: entry: 458033 rxtime: 457499 entry-rxtime: 534 now-entry: 3 rxtime-txend: 312375
start single rx: now-rxtime: 2
520009: RXMODE_SINGLE, freq=869525000, SF=12, BW=125, CR=4/5, IH=0
rxtimeout: entry: 534357 rxtime: 519999 entry-rxtime: 14358 now-entry: 2 rxtime-txend: 374875
000000534383:  Event: EV_JOIN_TXCOMPLETE
536613: engineUpdate, opmode=0x4

Hi and welcome.

What stack are you using?

They normally state MSB or LSB for AppEUI, DevEUI and AppKey in you sketch.

Do you have your own gateway?
Post what you see in the app and gateway console, as you do see “EV_JOIN_TXCOMPLETE” on your serial port.

I highly recommend getting a look at the console (live view) of the gateway you want to reach:

  • So you know whether it actually receives something from the device over the air or not. If it does not receive anything, you should perhaps realign the antenna, check connections, get closer/farther from the gateway
  • You can see if the gateway sends a “join accept” back. If you see a join request coming in, but no response back, perhaps the “join request” was not honored by the network. This would indicate problems with the OTAA credentials.

You can test this with a cheap gateway like the TTIG, or perhaps you can contact the owner of the gateway you want to reach to ask for access to the live view of the gateway.