Update mbed-OS

Home Forums mDot/xDot Update mbed-OS

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #18194
    simeoni lorenzo
    Participant

    Hello everyone, I have a newbie question!

    So I made my program to send data to the gateway with mDot with the few exemple that they give us, and so I also took the same mbed-OS.

    But now, I need to have some informations from sensors, and for that, I need to update the mbed-os (clic right, update). So I have the right value of the sensor when I update it, but then my program sending data didn’t work. Somoene can explain why? And why we need the mbed-os to compile our program??
    Thanks for your answers!

    #18199
    Peter Ferland
    Blocked

    mbed-os is required by the libmdot-mbed5 library’s LoRaWAN stack on the mDot. The version of mbed-os must match the version libmdot was compiled against. You can check this by looking at the “revisions” view on the online compiler. If you need a more recent version of mbed-os to support a sensor library, then you can use libmdot-dev-mbed5 which is compiled against more recent versions of mbed-os.

    #18220
    simeoni lorenzo
    Participant

    Well.. I tried but when I want to connect to my gateway they say connection error with the dev version of libmdot-mbed5… So I don’t understand..

    #18222
    simeoni lorenzo
    Participant

    Ok we saw the error, we don’t have the right fraquency band, the function getfrequencyBand return now 1 and no 0, I tried to change it but it didn’t work ( I did dot->setFrequencyBand(0); ) Somoene had the same problem?

    #18223
    Mike Fiore
    Blocked

    Simeoni,

    What mbed-os and dot-library versions were you using when everything worked? Please provide the specific revision numbers.

    What versions are you using now that don’t work?

    Are you using the same mDot as before?

    Can you provide debug output from the mDot?

    -Mike

    #18229
    simeoni lorenzo
    Participant

    Hello! I’m not sure about how I see the exact revision number, but I was working with the mbed-os in the exemples, and the libmdot-mbed5 https://developer.mbed.org/teams/MultiTech/code/libmDot-mbed5/ the stable (2.0.15 I think ) version.

    Then I Update the version of mbed-os so I suppose my mbed-os is the last version stable. And the version of libmdot is the dev version https://developer.mbed.org/teams/MultiTech/code/libmDot-dev-mbed5/ (2.0.16 I think ).

    It’s the same mDot, and it’s exactly the same program. When I launch it, it remove my config, set the password and name, also the class and then Save the config and joinnetwork. With the older version the mDot join the network but not with the new library. So I search Why, and I saw that when I use getFrequencyBand it return 0 with the old library (it’s normal i’m european) and it return 1 with the new library, and so it’s normal that I can’t join the network..
    And I can’t change the band with setFrequencyBand, is that normal?

    I don’t have the mDot right now so I can’t exactly the error message but it’s the usual message, the same that when I make a mistake in the password of network for example.

    #18235
    Mike Fiore
    Blocked

    If you look at the revisions for mbed-os and dot-libraries, you will see specific revision numbers.

    You’ll want to make sure the mbed-os version you’re building with is the same as the version from the dot-library commit message.

    When you have access to the mDot, please provide debug logs demonstrating the issue.

    -Mike

    #18251
    simeoni lorenzo
    Participant

    Ok so I have the libmdot version 2.0.16-7-ga61aab1 and mbed-os revision 5.4.3 and it’s not working.

    It was working when I had libmdot to 2.0.15 and mbed-os to 5.1.5 but sensors were not working.

    I have this debug logs :
    failed to join network – -4:Join Error, Failed to join network

    Sometimes after several debug logs I also have this log :
    failed to join network – -4:Join Error, Join backoff

    And I also printf my frequencyBand : 1 so it’s the american,
    and Tx = 0 Rx = 923300000

    #18252
    simeoni lorenzo
    Participant

    Ok Mike Fiore I change the mbed-os to 5.3.4 and it seem that’s working thanks 🙂

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