mcci-catena / arduino-lmic

LoraWAN-MAC-in-C library, adapted to run under the Arduino environment
https://forum.mcci.io/c/device-software/arduino-lmic/
MIT License
641 stars 208 forks source link

OTAA Joining issue in IN865 #492

Open asprakash opened 4 years ago

asprakash commented 4 years ago

I tried OTAA as per the instructions given by @dhineshkumarmcci . Check the given arduino log below. Node trying to join with the server and I can able see the join request on the Chirpstack lorawan server. Not sure whether there is a problem on ardunio sketch or server side. Also attached my program and screenshot for server side request. PFA. I just want to make sure the arduino side configuration is right. I also edited https://github.com/mcci-catena/arduino-lmic/blob/master/project_config/lmic_project_config.h Comment #define CFG_us915 1 and enabled #define CFG_in866 1.

Arduino log : Starting Packet queued 195: EV_JOINING 118934: EV_TXSTART 501544: Unknown event: 20 769518: EV_TXSTART 1152194: Unknown event: 20 1611562: EV_TXSTART

OTAA_join_IN865 ttn-otaa_IN865.txt

dhineshkumarmcci commented 4 years ago

Hi Prakash, With the attached screenshot and the .ino file, we see the devEUI in the server end is not the devEUI of the device in which ttn-otaa_IN865.ino is loaded. We suggest you to feed DEVEUI, APPEUI and APPKEY in the below format, for example:

NOTE: Do not use the above values, make sure to use unique IDs for your application. Please make sure you use the same APPEUI, DEVEUI and APPKEY in server end and in the sketch(.ino).

Also share us the screenshot of server end that displays these 3 parameters (APPEUI, DEVEUI and APPKEY). Let us know how it helps.