Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #14742
    gminich
    Participant

    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-lmic

    Can 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

    #14747
    gminich
    Participant

    I 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

    #14748
    gminich
    Participant

    I 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

    #14760
    LIM PHANG MOH
    Keymaster

    Hi 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.

    #14767
    gminich
    Participant

    Yes, 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!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.