Comments (5)
Thinking through the topic I guess I have found the right approach and understanding:
Joining the network has to be executed only once, like in step 2. After that the node has joined and does not need to join again.
With lorawan_is_joined()
I can check if the node has joined.
With a slight modification of the example like the below, I can check if the node joined already and only if that is not the case execute the procedures to join.
if (!lorawan_is_joined()) {
// Start the join process and wait
printf("Joining LoRaWAN network ...");
lorawan_join();
while (!lorawan_is_joined()) {
lorawan_process_timeout_ms(1000);
printf(".");
}
printf(" joined successfully!\n");
}
from lorawan-library-for-pico.
Looks like that was not it. After batteries drained the behaviour returned.
from lorawan-library-for-pico.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from lorawan-library-for-pico.
Your problem seems to have to do with the duty cycle. I see you are using EU868 where duty cycle is restricted to 1% of total airtime. Try edit the folowing line in "src/lorawan.c" file by changing true to false then try again. :
`/*!
* LoRaWAN ETSI duty cycle control enable/disable
*
* \remark Please note that ETSI mandates duty cycled transmissions. Use only for test purposes
*/
#define LORAWAN_DUTYCYCLE_ON true`
I encountered the same problem while testing my node and I wasn't patient enaugh between joins.
from lorawan-library-for-pico.
Related Issues (20)
- Problems linking HOT 4
- 'gpio_set_irq_enabled_with_callback' from incompatible pointer type HOT 3
- CLASS C HOT 2
- How to configure for use with SX1262 Semtech Shield HOT 7
- spi1 does not work HOT 11
- Changing between PA_BOOST and RFO pins HOT 2
- Would it be possible to create a platform release ? HOT 5
- Shutting down the stack to be sure NVM is no longer being written to before power-down HOT 3
- Needed to edit two files to include spi.h when using the code HOT 1
- SX1276Read(REG_LR_VERSION) returns 0 HOT 5
- Compiler error HOT 3
- undefined reference to "make_timeout_time_ms" HOT 3
- Support for adafruit_feather_rp2040_rfm9x HOT 4
- Including The Library In SDK System HOT 1
- REG_LR_VERSION Error HOT 1
- Lora example HOT 2
- Set Transmit Power EU868
- How to perform peer to peer communcation using Adafruit Feather RP2040 with RFM95 LoRa Radio - 915MHz HOT 1
- frame counter lost after power cycle? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lorawan-library-for-pico.