SparkFun expLoRaBLE LoRa OTAA never join

I use the basicmac-otaa on my new expLoRaBLE and cannot join my LPN supplier, which is not TTN but Swisscom.

I must say that I have already 5 different devices from 5 different suppliers joining and connecting error free.

These are device from STM32 to Arduino kind.

But expLoRaBLE wont join. It is difficult to trace any errors .

I already spent hours to figure out.

The antenna used was tested OK on an other running device.

I setup:

  1. modified APPEUI, DEVEUI, APPKEY

  2. modified Region CFG_eu868 in target-config.h

  3. define my device as ClassC in the LPN supplier as I usually do.

Anyone having success using basicmac-otaa in Europe?

Thank you for some help.

Jean-Marc

Found my problem or part of it.

The APPEUI and DEVEUI must be in little-endian (this is written in the comment in the code)

BUT the APPKEY must not (this is also commented, it should be big-endian). Had to read this 100 times to understand.

It is also the first product I am using out of other 10+ to see this particularity.

But anyway my fault.

Also found this problem by making my own private gateway.

Now I can sporadically connect to a public network in OTAA but with a lot of difficulties. Very bad RSSI…