Giter VIP home page Giter VIP logo

Comments (10)

sandeepmistry avatar sandeepmistry commented on June 12, 2024 2

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.

ThomasLeister avatar ThomasLeister commented on June 12, 2024 2

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.

sandeepmistry avatar sandeepmistry commented on June 12, 2024 1

@ThomasLeister thanks for the feedback on PR #12! I've gone ahead an merged it.

from lorawan-library-for-pico.

tnakasaki avatar tnakasaki commented on June 12, 2024 1

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.

tnakasaki avatar tnakasaki commented on June 12, 2024

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.

simeonyetarian avatar simeonyetarian commented on June 12, 2024

@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.

simeonyetarian avatar simeonyetarian commented on June 12, 2024

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.

tnakasaki avatar tnakasaki commented on June 12, 2024

Here are some screenshots that illustrate the aforementioned issue.
cmake and make were performed on a Raspberry Pi 4.

config.h

config h

cmake output (configuring for Adafruit's Feather RP2040 board)

cmake_feather

Partial make output

make

TTN gateway data. Note the incorrect values for both JoinEUI and DevEUI, 618A011029890110

wrong_join_dev_eui

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.

tnakasaki avatar tnakasaki commented on June 12, 2024

These are screenshots of cmake and make performed on a Mac. This compilation produced an executable that functioned correctly.

cmake

mac_cmake

make

mac_make

from lorawan-library-for-pico.

sandeepmistry avatar sandeepmistry commented on June 12, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.