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

Mixing LoRaRadio and LoRaWan #187

Open
hpssjellis opened this issue May 6, 2021 · 3 comments
Open

Mixing LoRaRadio and LoRaWan #187

hpssjellis opened this issue May 6, 2021 · 3 comments

Comments

@hpssjellis
Copy link

Hi @GrumpyOldPizza. Once again thank you for making this repo. I am having a lot of fun working with the Arduino Portenta LoRa Vision Shield.

Presently making a redundant system where if my p2p LoRaRadio connection is not confirmed I switch to a LoRaWan network, however

    LoRaWAN.begin(US915);

compiles but kills the entire program, even after a call like LoRaRadio.end(); Looks like the 2 libraries can't co-exist. Any suggestions for what part in LoRaWAN.begin(US915); is causing the problem?

@GrumpyOldPizza
Copy link
Owner

Good question. No idea. You cannot interleave them, meaning while LoRaWAN is active you cannot access the radio and the other way around.

@hpssjellis
Copy link
Author

@GrumpyOldPizza thanks for the reply:

I just want to dump LoRa when it fails and then load LoRaWan permanently until reboot. I see that the root of your LoRa library is from Semtech . Also that you wrote the LoRaWan library is it based on some other Repo?

I will mess around with it. I should be able to fully dump the LoRa settings before loading LoRaWan. Doesn't really matter as I am having much more success with your code than anything I have been able to do with the Arduino MKRWAN library.

I wonder if Arduino has a method to load a separate program from a running program. Probably not.

@hpssjellis
Copy link
Author

hpssjellis commented May 10, 2021

@GrumpyOldPizza I think I have found the issue, The Portenta only gives a certain amount of memory and I am at 94% upload when memory runs out. Can you think of anything in the LoRa or LoRaWan libraries that could easily be reduced? My examples are fairly basic so not really expecting anything to reduce the memory dramatically. I will bug Arduino and see if they can give your library more space. Also will ask if they can support your library for all the new MBED boards.

hmmmm.

The LoRaWanBands seem to take up a fair bit of memory see map file I think I will just get rid of a few regions and see if that helps.

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