Skip to content
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

LoraWAN support #1

Open
danifv opened this issue Apr 12, 2024 · 2 comments
Open

LoraWAN support #1

danifv opened this issue Apr 12, 2024 · 2 comments

Comments

@danifv
Copy link

danifv commented Apr 12, 2024

Hello,
as a follow-up to the discussion started at atomvm/AtomVM#1125, I'd be interested to know what it would take to have LoraWAN support to AtomVM.
I saw that support is present in FreeRTOS [1]. Is it possible to use its API or any implementation already available for the hardware?
My end goal is to experiment with setups consisting of AtomVM and LoraWAN as soon as I can, but I'd be interested in contributing to an erlang implementation as well.

[1] https://www.freertos.org/lorawan/index.html

@UncleGrumpy
Copy link
Collaborator

It would probably take more work to port the vanilla FreeRTOS implementation to esp32, than starting with a library written for ESP-IDF natively, like lmic-esp-idf, but since the core LoRa functionality is already implemented in this repository that would be repeating much of the work that has already been done.

I do not believe any more C code is needed (either nifs, or ports) to implement the rest of the LoRaWAN protocol, that can be implemented in Erlang, utilizing the hardware functionality exposed by this driver.

@UncleGrumpy
Copy link
Collaborator

I just came across this application:
https://github.com/gotthardp/lorawan-server

It definitely won’t work with AtomVM out of the box, it uses mnesia extensively, and this is something I don’t expect AtomVM to be able to support any time soon. Several of the connectors may be difficult to support, but mqtt should be quite feasible. It may be helpful as a guide for implementing the lorawan protocol.

I will look into this closer when I have more time available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants