-
AuthorPosts
-
January 19, 2020 at 12:14 PM #14742gminichParticipant
I’m getting back to an old project that I had to abandon due to other priorities. I used the LMIC library from 2018 with some Mini Ultra Pro v2 boards and did not have any issues. Yesterday, I updated LMIC with the new, supported library and modified the ttn-otaa sample and could not get the device to communicate with my TTN gateway. I determined that the problem seems to be in the os_init() since the program does not seem to return from it. I provided the TTN and device keys as per my original program and used the following hardware config:
const lmic_pinmap lmic_pins = {
.nss = 5,
.rxtx = LMIC_UNUSED_PIN,
.rst = 3,
.dio = {2, 6, LMIC_UNUSED_PIN},
};I obtained LMIC from:
https://github.com/mcci-catena/arduino-lmicCan anyone shed some light on why the new version of LMIC is not working with my configuration? I have some Mini Ultra LoraWAN devices on order and looking forward to continue my testing of TTN applications.
Thank you
January 20, 2020 at 1:08 AM #14747gminichParticipantI noticed this output during building:
C:\Users\gmini_000\Documents\Arduino\libraries\arduino-lmic-master\src\hal\getpinmap_thisboard.cpp: In function ‘const Arduino_LMIC::HalPinmap_t* Arduino_LMIC::GetPinmap_ThisBoard()’:
C:\Users\gmini_000\Documents\Arduino\libraries\arduino-lmic-master\src\hal\getpinmap_thisboard.cpp:65:72: note: #pragma message: Board not supported — use an explicit pinmap
#pragma message(“Board not supported — use an explicit pinmap”)
I have defined the pins as per my above message. Not sure why this would not be supported.
Thank you
January 20, 2020 at 1:45 AM #14748gminichParticipantI re-created the above code section regarding lmic pin configuration and the warning was resolved. I still have the issue with os_init() never returning.
Thank you
January 20, 2020 at 5:53 PM #14760LIM PHANG MOHKeymasterHi George,
I haven’t personally try the latest version on the MCCI repository unfortunately. I will try this on a V3 board after Chinese New Year as I’m trying to finish some assembly date line.January 21, 2020 at 10:15 PM #14767gminichParticipantYes, you may want to test this on the V3 as it does not seem to work on the V2 whatsoever. The good news is that I downgraded to the MCCI LMIC v2.3.2 and the issue was resolved. Something in v3.0.99 is not right which causes an issue in os_init().
Thank you!
-
AuthorPosts
- You must be logged in to reply to this topic.