-
Notifications
You must be signed in to change notification settings - Fork 222
Adding AU915 V1.0.2rB Support #1011
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
base: master
Are you sure you want to change the base?
Adding AU915 V1.0.2rB Support #1011
Conversation
See mcci-catena#1010 for more information.
Hi @ElectronicallyE , Thank you for bringing up this Dwell time issue to our attention.
by removing the parentheses from the line 304 of lmic_au915.c, this build issue can be fixed. We will test the changes and let you know how it works; meanwhile, you can do the necessary code changes and update the pull request. Thank you. |
Added { to line 302 to fix issue on line 304
Hi @Pranau-R, Thanks for the reply. Quick fix on my end! I added a "{" to line 302. I believe this has updated the pull request automatically. Do let me know if there is anything else you need me to do. |
Hi @Pranau-R, Hope you are well. Just checking in to see if there are any further changes required. It would be great to see this merged soon! |
Hi @ElectronicallyE, Thank you for the reminder. The build issue has been resolved, and we have started testing the changes using the example sketch However, the device is currently unable to join the network. We have updated the sketch to include Please let us know if there’s anything we might be overlooking. Once the changes are tested and verified, we will proceed with merging. Thank you! |
Hi @Pranau-R, Thanks for the reply. If you are testing with a TTGO LoRa32 V1, you might need to downgrade the esp32 by Espressif Systems board library to 2.0.17. This is because the board has a 26 MHz crystal instead of the more common 40 MHz crystal which results in the clock not running at real-time and means the RX delay is incorrect. You would know this is an issue if you had to select a baud rate different to that specified in the code. More information is available here: I'll try the code this evening and let you know how I get on. Also make sure that the board is unplugged and plugged back in when trying to reconnect, instead of trying to use the "RST" button as I have found that this does not reset the device correctly. |
Hi @Pranau-R, This evening I have tested the code. I downloaded my modified branch and removed the existing library I had installed. The only changes I made in addition to my branch are: lmic_project_config.h
ttn-otaa.ino I changed I changed my "pin mapping" from...
to the following to match my board, being a TTGO LoRa32 V1 SX1276:
You will also see I have also modified I uploaded the code and the board connected first time. I power cycled the board several times without issue: ![]() ![]() Please note that I do have "Resets join nonces" enabled as there isn't any persistence (memory) written into the code. |
Hi @ElectronicallyE, Thank you for sharing the detailed test results. |
Hi @ElectronicallyE , As mentioned earlier, we have successfully pulled the latest changes from your Adding-AU915-1.0.2-Support branch and we followed the same steps you have outlined. As per the previous discussion: In lmic_project_config.h, we uncommented the following:
In ttn-otaa.ino, we:
The device is now able to join the network without any issues. However, it consistently joins using DR2, SF10, as shown in the TTN console screenshot below: Next, we plan to test using the compliance-otaa-halconfig.ino sketch for more detailed debug output. Thanks again! |
Hi @Pranau-R, Checked again this morning by reinstalling my branch, using the ttn-otaa.ino from scratch, making the exact same changes as I described above and it worked without an issue, sending the join request on DR0. I also created a new device in the TTN Console. Did you make sure that your version of the library included the changes I made to lmic_bandplan_au915.h a couple of days ago to change the DR depending on the LoRaWAN Regional Parameter version (see 6de5bee)? I had missed adding this in my original merge request. ![]() Here is my ttn-otaa.ino:
Here is my lmic_project_config.h:
There are no other files that I have changed as part of my testing. |
Hi @terrillmoore,
This is follow-on from #1010.
As mentioned in my issues post, I have created this branch with the changes needed to support AU915 V1.0.2rB. I have updated README.md to reflect this change.
The only other change I have made is the addition of LMIC_selectSubBand(1) in ttn-otaa.ino to align with the other examples.
I have tested this code using both The Things Network and Chirpstack and am confident it works.
Your feedback and willingness to merge into the "master" would be appreciated.