Comments (10)
Hi @simeonyetarian, @tnakasaki,
I've prepared pull request #12 to resolve this. It would be great if you could try out the change and provide any feedback.
from lorawan-library-for-pico.
I was facing the same issue with GCC 11.2.1 on Fedora Linux (x86).
The PR seems to solve it. With debug mode enabled, the correct DevEui and JoinEui are shown.
Joining the network is not yet working, but that is probably another issue ... ;-)
from lorawan-library-for-pico.
@ThomasLeister thanks for the feedback on PR #12! I've gone ahead an merged it.
from lorawan-library-for-pico.
Hi @simeonyetarian, @tnakasaki,
I've prepared pull request #12 to resolve this. It would be great if you could try out the change and provide any feedback.
Sorry for the late response,
I've compiled on the Raspberry Pi 4, using the same setup as above. JoinEUI and DevEUI transmit correctly. Thank you so much for your solution!
from lorawan-library-for-pico.
I have been having the same issues, using US915 settings. I will post screenshots when I have time.
This issue only happens when compling on a Raspberry Pi 4. When I compile the uf2 on a Mac, the expected EUI values are transmitted.
simeonyetarian, which platform are you using to compile?
from lorawan-library-for-pico.
@tnakasaki Thanks for sharing that information! Indeed, I am compiling on a Raspberry Pi 4. Maybe I will try to compile on another device then
from lorawan-library-for-pico.
Update: I can confirm that compiling on a Windows machine instead of a Raspberry Pi works.
So this seems to be specific to the Raspberry Pi
from lorawan-library-for-pico.
Here are some screenshots that illustrate the aforementioned issue.
cmake and make were performed on a Raspberry Pi 4.
config.h
cmake output (configuring for Adafruit's Feather RP2040 board)
Partial make output
TTN gateway data. Note the incorrect values for both JoinEUI and DevEUI, 618A011029890110
Also, in config.h, if LORAWAN_DEVICE_EUI is set to NULL, a correct DevEUI will be transmitted. That is, the same value printed in the default_dev_eui example program. JoinEUI remains incorrect.
from lorawan-library-for-pico.
These are screenshots of cmake and make performed on a Mac. This compilation produced an executable that functioned correctly.
cmake
make
from lorawan-library-for-pico.
@simeonyetarian @tnakasaki Looks like it might be related to the version on Arm GCC used.
Based on the screenshots @tnakasaki provided in #8 (comment), they were using 7.3.1
or 8.3.0
on the Raspberry Pi, but using 9.2.1
on the Mac.
Any chance you could try to use a newer compiler version on the Raspberry Pi?
@simeonyetarian could you please provide the compiler versions you were using Raspberry Pi vs Windows? Thanks.
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
- second join always ends in rx 2 timeout HOT 5
- 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.