-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Library update for ST fw version 1.3.1 + Band selection at runtime #78
base: master
Are you sure you want to change the base?
Conversation
This file has been generated from the fw staged in eb633e5dfd52c6cf491d73605170f799453dd2dc The origila ST fw has been modified to allow to select the frequency band at runtime.
The command '+BAND' has been introduced to allow the user to select the correct frequency for his/her region. New functions introduced for the confirmation mode: - setCFM: set the confirmation mode - getCFM: get the confirmation mode - getCFS: get the confirmation status of the last AT+SEND Function 'modemSend' needs to be verified. Debug messaged introduced in the library and enabled with '#define LORA_DEBUG Serial' in the Arduino sketch.
The ideal situation would be: * save both the strings * parse them * assign argument to two elements of type IPAddress * return only one of them
Here's the first implementation of the library based on ST fw 1.3.1 . This addresses a bunch of other issues too (like #69) It would be great if users (from different parts of the world) could test it in actual scenarios, to make sure there's no outstanding mistake. @sslupsky @mjunior-fitec @remuslazar @deanpretorius @TechNyquist @giampiero7 @kraef @conradholt @almarion @ldesomer @xoseperez @sabas1080 |
Has the firmware been updated to work with this? |
Ok, I see it as a branch at the mkrwan1300-fw repo. Some changes need to happen here as well. |
The MKRWANFWUpdate_standalone already contains a precompiled version of the firmware; the PR on mkrwan1300-fw repo is coming 🙂 |
Hello everyone, I am currently testing this firmware for AS923 region. The whole process is done by only entering AT commands. This is my AT Command sequence:
I noticed a few things throughout these tests.
Tests 1-6 are as expected according to LoRaWAN Regional Parameters v1.0.2 pg 41. Tests 7 - 10, however, are not expected as DR 5 can at most send 242 bytes of data, according to the above. Hope my findings help. This firmware is much better than v1.2.0 IMO, I hope it can be released officially soon. Thanks! |
UPDATE: I tried sending 242 bytes with In fact, I noticed this pattern:
Every time, when I try to send the payload on the first attempt, I am always limited to 11 bytes, regardless of what data rate I am on. On the second attempt, the limit will always be maximum payload size - 11 bytes. On the third attempt, the limit will always be maximum payload size - 8 bytes (which is normal). May I know what could have possibly happened? Thank you. |
Hi @tohlh , |
MKRWAN.h has been updated to be compliant with version 1.3.1 of ST fw.
Some functions have been renamed, while others have been deleted because not supported anymore.
Lora error and reply messages have been updated.
"Set" functions (+FUNC=) and "get" functions (+FUNC=?) have been rearranged to work with the new pattern of the fw.
The library has been updated to support also frequency band selection at runtime, so that the user can instruct the fw from the Arduino sketch to correctly set the frequency for his/her region. This is automatically handled by the function _bool begin(lora_band band).