Vraag

Why I cannot connect to my devices with OTAA?

  • 13 juli 2018
  • 21 reacties
  • 1447 keer bekeken

  • Rijzende ster
  • 23 reacties
Hello,

I am having difficulties to connect my Lora devices through OTAA. It seems that those devices meesages aren't forwarded to my URL, however if I use the test option (to send a payload to my URL) for them I do get the message in my server. Further, I see how my nodes complain that they are denied to access the network while doing the OTAA second request.

What is happening? Why aren't my nodes be able to connect through OTAA?

Thanks in advance!

21 reacties

Reputatie 6
Badge +6
Goedemiddag @JCL

Welcome to the IoT Community!
I apologise for my very late response. We have been busy these days and that's why i can check your problem so late.
I've looked up your Developer Portal account and I see 4 devices in total. One of the devices (DevEUI ends with0CD1) is now accepted by the network and for as far as i can see it is working as it should, right?

Can you tell me what you did to get this device working?

The OTAA Join Requests from the other devices do not seem to have come through well.
Hi @Rick S.

Goedemiddag @JCL

Welcome to the IoT Community!
I apologise for my very late response. We have been busy these days and that's why i can check your problem so late.
I've looked up your Developer Portal account and I see 4 devices in total. One of the devices (DevEUI ends with0CD1) is now accepted by the network and for as far as i can see it is working as it should, right?

Can you tell me what you did to get this device working?

The OTAA Join Requests from the other devices do not seem to have come through well.


I made that working because I set up that node as ABP instead of OTAA, and yes it does work fine. However, I am interested on having OTAA as configuring my nodes. Why don't the OTAA Join Request go through ? Are the address wrong or other params?

Thanks in advance!
Reputatie 6
Badge +6
Hi @JCL,

Unfortunately, i can't check specifically why the OTAA Join Requests didn't go trough.
Maybe this question is unnecessary, but did you check the topic Over the air activation (OTAA) of devices.

I will ask the specialists if they can i check what went wrong with the Join Requests. In the meanwhile i can delete de device from the Developer Portal, so you can send a new Join Request for these device. Is that an idea?
Hi @JCL,

Unfortunately, i can't check specifically why the OTAA Join Requests didn't go trough.
Maybe this question is unnecessary, but did you check the topic Over the air activation (OTAA) of devices.

I will ask the specialists if they can i check what went wrong with the Join Requests. In the meanwhile i can delete de device from the Developer Portal, so you can send a new Join Request for these device. Is that an idea?


Yes you could delete those OTAA ones if possible, all except the one ending on 0CD1 since that is ABP
thanks!
Reputatie 6
Badge +6
Hi @JCL,

Thanks for your answer!
I've just deleted these devices. The only device in your Developer Portal account is the one with DevEUI ending on 0CD1. Give me sign when you place a new Join Request, so i can check if the request come through πŸ˜‰
HI @Rick S.

I have created a new OTAA device and I will try to do a connection now . Let's see whether it goes through.

Kind regards,
Hi @Rick S.

It did fail again with the device called guartGPS1
Reputatie 6
Badge +6
Hi @JCL

I see the device you've created on the Developer Portal.
The Join Request is now pending. So it did not fail again yet.

I will ask my colleague to process the Join Request so we can check whether the device will be accepted or not.

I wish you a great weekend!
Hi @Rick S.

Thanks, let me know what is happening once you know,

regards
Reputatie 6
Badge +6
Ho @JCL,

I just got an update from my colleague. The Join Request from device guartGPS1 is now processed and the device status on the Developer Portal is now 'Activated'. This means that the device successfully joined the network. Can you test this device?
Hi @Rick S.

I could not check it today, likely Thursday I will be able, I will let you know then.

Thanks again,
Reputatie 6
Badge +6
No problem! I'll see you answer coming 😁
No problem! I'll see you answer coming 😁
Hi Rick

I have tried it out, but still I get a denial when tying to connect through OTAA, as you can see in the log. What should I do?

Regards

The device type is RN2483
[setPowerIndex]
>> mac set pwridx 1
[expectString] ("ok") .--> "ok" found a match!

[setSpreadingFactor]
>> mac set dr 5
[expectString] ("ok") .--> "ok" found a match!

>> mac set deveui xxxxxxxxxxx
[expectString] ("ok") .--> "ok" found a match!

>> mac set appeui xxxxxxxxxxx
[expectString] ("ok") .--> "ok" found a match!

>> mac set appkey xxxxxxxxxxx
[expectString] ("ok") .--> "ok" found a match!

>> mac set adr on
[expectString] ("ok") .--> "ok" found a match!

[joinNetwork]
>> mac join otaa
[expectString] ("ok") .--> "ok" found a match!

[expectString] ("accepted") ................................--> "denied"
[DEBUG ] OTAA Setup failed!
No problem! I'll see you answer coming 😁
Hi Rick

I have tried for a second time and now it seems to work! I will keep testing it for a while

Thanks

The device type is RN2483
[setPowerIndex]
>> mac set pwridx 1
[expectString] ("ok") .--> "ok" found a match!

[setSpreadingFactor]
>> mac set dr 5
[expectString] ("ok") .--> "ok" found a match!

>> mac set deveui xxxxxxxxxxx
[expectString] ("ok") .--> "ok" found a match!

>> mac set appeui xxxxxxxxxxx
[expectString] ("ok") .--> "ok" found a match!

>> mac set appkey xxxxxxxxxxx
[expectString] ("ok") .--> "ok" found a match!

>> mac set adr on
[expectString] ("ok") .--> "ok" found a match!

[joinNetwork]
>> mac join otaa
[expectString] ("ok") .--> "ok" found a match!

[expectString] ("accepted") ........................................--> "accepted" found a match!
No problem! I'll see you answer coming 😁
Hi Rick

I have tried for a second time and now it seems to work! I will keep testing it for a while

Thanks

The device type is RN2483
[setPowerIndex]
>> mac set pwridx 1
[expectString] ("ok") .--> "ok" found a match!

[setSpreadingFactor]
>> mac set dr 5
[expectString] ("ok") .--> "ok" found a match!

>> mac set deveui xxxxxxxxxxx
[expectString] ("ok") .--> "ok" found a match!

>> mac set appeui xxxxxxxxxxx
[expectString] ("ok") .--> "ok" found a match!

>> mac set appkey xxxxxxxxxxx
[expectString] ("ok") .--> "ok" found a match!

>> mac set adr on
[expectString] ("ok") .--> "ok" found a match!

[joinNetwork]
>> mac join otaa
[expectString] ("ok") .--> "ok" found a match!

[expectString] ("accepted") ........................................--> "accepted" found a match!


Hi @Rick S.

I have been trying a copule of times and now it does not accept my device anymore... Could you check why?

Thanks
Reputatie 6
Badge +6
Hi @JCL,

Your device (DevEUI 0059AC0041473038 and name guartGPS1) is now active and allready joined the network. This is also the reason why the network doesn't accept your Join Request. This means that you now can send and receive messages with this device.
Hi @Rick S.Hi @JCL,
This is also the reason why the network doesn't accept your Join Request.

But that means as well that my device can not send a new rejoin in case let's say that it is rebooted?
Reputatie 6
Badge +6
Hi @JCL

Excuse me for my very late reply!
I have been on vacation for 2 weeks and I have completely forgotten to answer your question. I'm sorry!

If the device is rebooted, this does not immediately mean that the device is no longer registered on the network. As long as the device is registered on the network, the network will reject a new Join Request.
Hi @JCL

Excuse me for my very late reply!
I have been on vacation for 2 weeks and I have completely forgotten to answer your question. I'm sorry!

If the device is rebooted, this does not immediately mean that the device is no longer registered on the network. As long as the device is registered on the network, the network will reject a new Join Request.


Still my OTAA devices are rejected by kPN lora network while joining, what can I do?

The device type is RN2483
[setPowerIndex]
>> mac set pwridx 1
[expectString] ("ok") .--> "ok" found a match!

[setSpreadingFactor]
>> mac set dr 5
[expectString] ("ok") .--> "ok" found a match!

>> mac set deveui 0059AC0041473032
[expectString] ("ok") .--> "ok" found a match!

>> mac set appeui XXXXXXXXXXXXX
[expectString] ("ok") .--> "ok" found a match!

>> mac set appkey XXXXXXXXXXXXXXXXXXXXXX
[expectString] ("ok") .--> "ok" found a match!

>> mac set adr on
[expectString] ("ok") .--> "ok" found a match!

[joinNetwork]
>> mac join otaa
[expectString] ("ok") .--> "ok" found a match!


[expectString] ("accepted") ................................--> "denied"
OTAA Setup failed.Using KPN network failed!
Reputatie 6
Badge +6
Hi @JCL,

It seems like the issue we had before!
I just deleted device 0059AC0000180CD1 from the Developer Portal.
Do you want place a new Join Request for this one more time?

Give me sign when you place a new Join Request, so i can check if the request come through
Reputatie 6
Badge +6
Hi @JCL,

I just checked my message from yesterday and i see that i mentioned the wrong device.
I deleted device 0059AC0041473032 from the Developer Portal. You can place a new Join Request for this device πŸ˜‰

Reageer