Error=“get device error: object does not exist" after OTAA

Hi,

I am new and installing, configuring and testing LoRaServer (2.2.0) for the first time locally on Ubuntu 16.04. I have been following the steps on loraserver documentation and everything seems to have worked so far in the sens that I have been able to add the Tektelic Pico Gateway from the UI and see the stats packets in the journal:

Sep 25 21:38:14 pc-desktop loraserver[6373]: time=“2018-09-25T21:38:14-04:00” level=info msg=“backend/gateway: gateway stats packet received” gateway_id=647fdafffe005124

I am stuck on Device management (loraserver.io/lora-app-server/use/devices/) trying to understand how to activate my device which is a GPS asset tracker from Tektelic (tektelic.com/iot/lorawan-sensors/).

Under “Keys (OOTA)” in the UI I entered my APP-KEY in the “Network key *” field and left the “Application key” field empty since otherwise I would not know what to put. Here are the only informations I was given by Tektelic:

|DEV-EUI|647FDA00000007BC|
|APP-EUI|647FDA80000007BC|
|APP-KEY|7D667849CD25870341327EAA5E9F3AA1|

Now I can see the Join Request and DEV-EUI in the gateway’s “Live Lora Frame” view in the UI, but I get the following error in the journal. In addition the led keeps blinking on the device indicating no network was joined, and all is greyed out in the “Activation” tab in the UI.

Sep 25 21:53:23 pc-desktop loraserver[6373]: time=“2018-09-25T21:53:23-04:00” level=info msg=“packet(s) collected” dev_eui=647fda00000007bc gw_count=1 gw_ids=647fdafffe005124 mtype=JoinRequest
Sep 25 21:53:23 pc-desktop loraserver[6373]: time=“2018-09-25T21:53:23-04:00” level=error msg=“processing uplink frame error” data_base64=“ALwHAACA2n9kvAcAAADaf2RXloffnNs=” error=“get device error: object does not exist”

I do not know the LoRaWAN MAC version for my Tektelic device; that could potentially be the source of the problem. The fact that I do not know what to enter in the "“Application key” field and left it empty also bothers me. I am also not familiar with the role of DEVADDR, APPSKEY, and NWKSKEY.

Any advice would be appreciated. Thank you.

Sep 25 21:53:23 pc-desktop loraserver[6373]: time=“2018-09-25T21:53:23-04:00” level=error msg=“processing uplink frame error” data_base64=“ALwHAACA2n9kvAcAAADaf2RXloffnNs=” error=“get device error: object does not exist”

It looks like the DevEUI in the join-request is unknown to LoRa Server. Please check the join-request in the live frame logs on the gateway page and validate this with the device you have configured in LoRa App server.

Hi Brocaar, Thank you for your response.

I was able to fix the DevEUI of the Tektelic device and I am now able to see live device data.

Thank you.

How? I am using the Industrial Sensor and having close to the same problems as you.

I have this same issue, or similar issue.

From a RAK5146
RAKWireless gateway RAK5146 no LTE version 4.2.7R install from source code.
Gateway ID: DCA632FFFE0704F1.

From the Gateway LoRaWAN Frames I can see traffic.
From here, I can see that the MAC Payload contains:-

  • joinEUI:“4cf0ed68733057da”
  • devEUI:“a8610a3234448303”
  • devNonce:37879

My Arduino MKR 1310 says that it’s
device EUI is a8610a3234448303

Chirpstack App config is showing it’s Device EUI 4cf0ed68733057da

This is most certainly a case of PEBKAC, but I’m not able to see anything in the Application LoRaWAN Frames.

If I tail -f /var/log/syslog, I can see that error=“get device error: object does not exist”.
Which kind of makes sense, but as it’s not shown up in the “Activation” tab, I’m not able to do anything here.

Jul 31 21:34:43 rak-gateway chirpstack-network-server[17473]: time=“2023-07-31T21:34:43.906399825Z” level=info msg=“uplink: frame(s) collected” ctx_id=8d1b387e-a61d-4693-a240-19eb331b4914 mtype=JoinRequest uplink_ids=“[75f140eb-df23-4d2f-ba97-f9b7189b1f63]”
Jul 31 21:34:43 rak-gateway chirpstack-network-server[17473]: time=“2023-07-31T21:34:43.911402652Z” level=error msg=“uplink: processing uplink frame error” ctx_id=8d1b387e-a61d-4693-a240-19eb331b4914 error=“get device error: object does not exist”

Any advice is gratefully received.

Sorted - indeed I’m a numpty