Posted comments (2)

Posted by Intern Usmc at August 15, 2017 01:31:48 UTC

Thank you for the tutorial.

I am using a hope RFM95 Cytron shield ( for my project. The LoRa module is tuned for 915 MHz. May know which line should be changed if I want the code to work at 915 MHz frequency?

So far I have made the following changes to the confg.h file
-uncommentated #define CFG_us915 1
-other changes similar to step 14 (in your guideline)

When I compile and upload the ttn-abp sketch, I got the following error.

C:\Program Files (x86)\Arduino\libraries\arduino-lmic-master\src\lmic\radio.c:596:9: warning: incompatible implicit declaration of built-in function 'printf'

printf("%lu: %s, freq=%lu, SF=%d, BW=%d, CR=4/%d, IH=%d\n",

*from bottom of Arduino IDE

C:\Program Files (x86)\Arduino\libraries\arduino-lmic-master\src\lmic\lmic.c:1508
*from serial monitor

Hope you can give me some tips to troubleshoot the problem.

Thank you,
Posted by Intern Usmc at August 16, 2017 08:45:35 UTC

I believe the solution is to uncomment the line in no 15 in config.h #define CFG_us915 and #define LMIC_DEBUG_LEVEL 2. But, I left the following lines commented as they cause some problem when I uncomment it.
//#define LMIC_FAILURE_TO Serial
//#define DISABLE_PING

I am unsure why but maybe someone can please give some hint to this behaviour.