daq-tools / dragino-lorawan

LoRaWAN implementation in python
GNU Affero General Public License v3.0
0 stars 0 forks source link

Upgrade to TTN V3 #1

Open amotl opened 2 years ago

amotl commented 2 years ago

Hi there,

@tonkenfo is working on bringing in updates to TTN V3 to Terkin, see also [1]. Thanks to all the authors and maintainers of this library, @jeroennijhof, @pjb304, @henningth and @BNNorman and, last but not least, @mcmayer of @mayeranalytics for conceiving the original pySX127x library.

The branch ttn3 will track the recent improvements by @BNNorman and the branch ttn3-terkin will make similar adjustments like we did for TTN v2, see https://github.com/daq-tools/dragino-lorawan/compare/ttn2...daq-tools:ttn2-terkin.

This mainly removes all references to GPS (691cfc075c, e431860) and provides a pure-Python configuration variant (772f552). However, on top of that, @tonkenfo reported he needed to revert e74f489. The outcome can be inspected via https://github.com/daq-tools/dragino-lorawan/compare/ttn3...daq-tools:ttn3-terkin.

With kind regards, Andreas.

[1] https://community.hiveeyes.org/t/terkin-variante-fur-cpython-raspberry-pi-dragino-lora-gps-hat/3180/12

BNNorman commented 2 years ago

Nice to see my work being credited. In the last 6 months or so I have also made a lot of changes to make the dragino code more compliant with V3 since the original code is no longer maintained.

You can find my clone and changes here:-

https://github.com/BNNorman/dragino-1

It will be used in anger soon in a council run speed sign.

Feel free to uncover any bugs.

amotl commented 2 years ago

Dear Brian,

thanks a stack for sharing a detailed overview about the development progress on this library. Your maintenance efforts are a great contribution to the community.

Now, another six months later, and coming from https://github.com/mayeranalytics/pySX127x/issues/21#issuecomment-1122772026, we observe through https://github.com/BNNorman/dragino-1/compare/7038230e...master that you are still very active on improving the software.

Maybe you are willing to share another update in highlevel form like your last post to outline a concise summary of all the improvements since your last update? It would be so sweet! [^1]

Keep up the spirit and with kind regards, Andreas.

[^1]: Maybe I can take the chance to converge those drafts into a corresponding patch to your repository, adding a CHANGES.rst file, in order to contribute something back to support your efforts.

BNNorman commented 2 years ago

Thanks @amotl. I appreciate being appreciated - LOL - though I developed the code for selfish reasons. Others have found it useful.

Recent changes/additions are:- 1 Support for AU915-928-FSB2 in response to an request from Australia . This probably means it supports US915 and similar frequency plans too. I am selfishly busy on my EU application so have not looked at other frequency plans. 2 Added code to dragino.py to check that set_mode() for the RFM895 works and if not declare the SPI as the probable culprit and halt rather than producing reams of pointless logging. This recently proved to be the case with a Dragino Lora/GPS HAT which died on another user. He replaced the HAT.

Regards Brian

PS regarding the RST - feel free and thanks.

amotl commented 2 years ago

Thank you for the updates, Brian. @chuanisawesome and others might like them as well. Cheers!