Update mbed-OS
- This topic has 8 replies, 3 voices, and was last updated 7 years, 7 months ago by simeoni lorenzo.
-
AuthorPosts
-
April 7, 2017 at 3:46 am #18194simeoni lorenzoParticipant
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!April 7, 2017 at 11:07 am #18199Peter FerlandBlockedmbed-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.
April 10, 2017 at 11:58 am #18220simeoni lorenzoParticipantWell.. 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..
April 10, 2017 at 12:46 pm #18222simeoni lorenzoParticipantOk 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?
April 10, 2017 at 1:23 pm #18223Mike FioreBlockedSimeoni,
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
April 10, 2017 at 3:29 pm #18229simeoni lorenzoParticipantHello! 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.
- This reply was modified 7 years, 7 months ago by simeoni lorenzo.
April 11, 2017 at 9:16 am #18235Mike FioreBlockedIf 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
April 11, 2017 at 12:32 pm #18251simeoni lorenzoParticipantOk 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 networkSometimes after several debug logs I also have this log :
failed to join network – -4:Join Error, Join backoffAnd I also printf my frequencyBand : 1 so it’s the american,
and Tx = 0 Rx = 923300000April 11, 2017 at 12:39 pm #18252simeoni lorenzoParticipantOk Mike Fiore I change the mbed-os to 5.3.4 and it seem that’s working thanks 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.