Dragino Kit with KPN

  • 8 May 2017
  • 10 reacties
  • 1900 keer bekeken

Hi all!

I would just like to test my Dragino LoRa Kit with KPN network. So far, I have already tested the Kit with a private Network (Dragino Gateway and using Arduino UNO uController). The test was based within a DHT_11 sensor and then sending the temp and humidy data to the ThingSpeak platform, in order to monitoring it. Everything has been working properly.
So now, I would like to rip the Gateway device and send data straight to KPN Network instead. So that, my questions are:

1. Which Arduino code should I use?
2. Is there any Arduino standard code for KPN?
3. May I use same code with same libraries that I used for the ThingSpeak platform and just configurate
the Keys KPN is providing me?
4. May I see the data monitored throughtout KPN platform or I must have my own server portal as
ThingSpeak?
5. May I be able to send data to ThingSpeak platform by KPN Network? If so, which steps should I take?

Many thanks indeed.

Toni

10 reacties

Reputatie 7
Badge +6
Hi Toni,

Welcome to our LoRa forum! :D
First of all, i want to apologise for my late answer. We completely missed this topic :(

I am going to discuss your questions with the specialists! So when i have all the answers you will be the first to know.
All righ, then.
Many thanks indeed.
Reputatie 7
Badge +6
Hi Toni,

My colleague (Tim) told me that he had a private conversation with you about your questions and a subscription for KPN LoRa. Besides, i understood that you are in contact with another colleague to get subscibed. Am i right?

I am confident that my colleague will help you with the right answers and subscription. If you need my help or when you have other questions, please contact me through this forum! 😉
Hi Rick,

Yeah, I have been speaking with your colleague Rene Kramer by phone, and he is going to put me through another colleagues in order to get more specific information about my issues as well as the subscription steps, I am still waiting for them...

Let's see!

Thank you!
So now, I would like to rip the Gateway device and send data straight to KPN Network instead. So that, my questions are:

1. Which Arduino code should I use?
2. Is there any Arduino standard code for KPN?
3. May I use same code with same libraries that I used for the ThingSpeak platform and just configurate
the Keys KPN is providing me?

I apologize for reawakening this old thread and i'm also new, but it would have been nice to get maybe public answers on the questions that were posted. If not, may I also get access to the relevant steps and answers to the questions? Hope this is possible and I apologize for posting on this old thread, but it was the most relevant for my situation.

As an extra addition, I understand that KPN Cloud will be the intermediate system that will reroute the data to my own server through post(s) request. But how do I get my data from my device to the KPN Cloud and reroute it?, Thank you.
Reputatie 7
Badge +6
Hi @madeperson12 ,

Welcome to the IoT Community!
Firstly, i looked up your LoRa Developer Portal account and I see that you have 3 registred devices. One of the devices is now 'Pending Activation' through the OTAA Join Request you created. So you found out how to join a device to our network.

In the topic There are Online LoRa tools and reference code available to make your life easier you'll find several tools to help you.
Hi @madeperson12 ,

Welcome to the IoT Community!
Firstly, i looked up your LoRa Developer Portal account and I see that you have 3 registred devices. One of the devices is now 'Pending Activation' through the OTAA Join Request you created. So you found out how to join a device to our network.

In the topic There are Online LoRa tools and reference code available to make your life easier you'll find several tools to help you.

But what I didn't fully get from the tutorial (Using the KPN LoRa Developer Portal) under documentation at https://loradeveloper.mendixcloud.com/index.html, it mentioned: If needed, the AppEUI you should use is 0059AC0000010120, I used this one for my device that you saw in the developer's portal for the DevEUI (is this correct?) and the AppKey I generated by using node example.js using https://raw.githubusercontent.com/kpn-iot/lora-reference/master/key-generation/example.js is this correct?, In general how do I generate my DevEUI or where can I find this??

And also i'm currently using this code https://pastebin.com/fdjA7uY3 (is this correct?) to connect my Arduino + Lora shield to KPN's network. From what I understood I need to flash the keys (DevEUI and AppKey or AppEUI and AppKey??) on my arduino, these can be found when I click on edit in the https://loradeveloper.mendixcloud.com/index.html, is this correct together with the arduino code I linked? If so what lines do I need to change and if not what are the exact arduino code?
Reputatie 7
Badge +6
Hi @madeperson12 ,

At this point, two of the devices in your account are 'Activated'. These are devices with DevEUI ending with 18A3 and 0120.

The AppEUI that you should use for OTAA isn't meant to use as a DevEUI for your device, but technically it works. Actually, you did everything right for these two devices. In topic Over The Air Activation of devices you find all the steps for joinen the network with OTAA.

Normally devices are supplied from the manufacturer with a DevEUI. In theory it is also possible to determine a DevEUI yourself (must consist of 16 characters with numbers and letters), but we recommend using the DevEUI supplied from the manufacturer. The DevEUI should always be registred in the device.

I'm not a specialist in Arduino, so i can't tell if this is the exact code. But in the topic I mentioned in my last answer you''ll find reference code.
Hi @madeperson12 ,

At this point, two of the devices in your account are 'Activated'. These are devices with DevEUI ending with 18A3 and 0120.

The AppEUI that you should use for OTAA isn't meant to use as a DevEUI for your device, but technically it works. Actually, you did everything right for these two devices. In topic Over The Air Activation of devices you find all the steps for joinen the network with OTAA.

Normally devices are supplied from the manufacturer with a DevEUI. In theory it is also possible to determine a DevEUI yourself (must consist of 16 characters with numbers and letters), but we recommend using the DevEUI supplied from the manufacturer. The DevEUI should always be registred in the device.

I'm not a specialist in Arduino, so i can't tell if this is the exact code. But in the topic I mentioned in my last answer you''ll find reference code.

Understood. Ok so this is what I did: I flashed the DevEUI, AppEUI and AppKey on my arduino.
Do I need a gateway (dragino) to be able to send data to KPN or can I send data directly?
I currently have this setting:
Arduino + Lora module -> KPN (not working)
or do I really need to use a gateway:
Arduino + Lora module -> Gateway (dragino) -> KPN

I was planning to simplify the infrastructure. How is this done in general for IoT devices? since i'm not really getting it to send any packets to be honest.
Reputatie 7
Badge +6
Hi @madeperson12 ,

I advise you to take a look at the topics Welcome to the KPN LoRa Forum. An overview. and [ url=https://zakelijkforum.kpn.com/lora-forum-16/the-kpn-implementation-of-lorawan-10388]The KPN implementation of LoRaWAN[/url]. This will clarify the way our network is set up.

To give an answer to your question. you need to use a gateway to send and receive messages.

Finally, I must yell you that I do not understand what you mean by simplifying your infrastructure. KPN is not a specialist in the field of hardware and therefore we can offer limited service for hardware.

Reageer