Page 1 of 1

Connect lora devices to ttn gateways

Posted: Wed Jan 11, 2017 10:22 am
by edkev
I would like to connect my lora devices to ttn gateways. I am a newbie using ttn. I want to send data to ttn servers. I am using libellium waspmote pro v1.2 ,a lora device.
This is my code:

Code: Select all

char DEVICE_EUI[]  = "xxx";
char APP_EUI[] = "xxx"; 
char APP_KEY[] = "xxx";
What should be the next instructions in my code so as to start sending data to ttn servers?

Re: Connect lora devices to ttn gateways

Posted: Wed Jan 11, 2017 11:25 am
by libelium-dev
Hi,

Do you have LoRa or LoRaWAN module?

Regards

Re: Connect lora devices to ttn gateways

Posted: Wed Jan 11, 2017 12:05 pm
by edkev
I am using a LoraWan

Re: Connect lora devices to ttn gateways

Posted: Wed Jan 11, 2017 3:31 pm
by libelium-dev
Hi,

Please try with the LoRaWAN example codes http://www.libelium.com/development/plu ... n-examples

Also for more information about LoRaWAN take a look at LoRaWAN Networking guide.

Regards.

Re: Connect lora devices to ttn gateways

Posted: Wed Jan 11, 2017 5:01 pm
by edkev
I used the example http://www.libelium.com/development/was ... confirmed/. But it didn't show anything in my ttn console.
By the way, how could I be sure that packets have been really sent by my device,for a debug reason? This way, i could know if it is the gateway of ttn the problem, or my device or something else.
Thanks for your help!

Re: Connect lora devices to ttn gateways

Posted: Wed Jan 11, 2017 5:10 pm
by libelium-dev
Hi,

What output do you get by the serial monitor when run the code?

You can use the LoRaWAN_09 example to make sure the packets are received. This example use the function sendConfirmed, it send the packet and wait for a response of the BS.

Regards

Re: Connect lora devices to ttn gateways

Posted: Sat Jan 14, 2017 7:57 am
by edkev
It is working now. In fact the gateway of ttn did not accept a OTAA connection. Then I tried ABP and it is working perfectly.
Thanks for your help!

Re: Connect lora devices to ttn gateways

Posted: Mon Jan 16, 2017 9:09 am
by libelium-dev
Glad to hear that, edkev!

Regards.