Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    How to config loragw_hal registers for the PyGate

    Scheduled Pinned Locked Moved Software Tools
    7 Posts 2 Posters 90 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P Offline
      pauldeng
      last edited by pauldeng

      Hi,

      I am new to pycom products and I just started to evaluate the PyGate. Apologize if I ask silly questions.

      Devices I have:
      PyGate 915MHz + GPy

      Background:
      My application is proprietary LoRa.
      I need to change some configurations in the PyGate to receive the proprietary LoRa packets.

      My Questions:
      In Linux based LoRa gateway, I need to modify the libloragw and packet forwarder.
      More specifically, I need to change value of registers in the loragw_hal.c.

      • Can I ask how to change them in PyGate?
      • I guess I need to modify the PyGate firmware or maybe it is part of the GPy firmware.
      • Where can I get the source?
      • How do I compile and program it?

      Thanks for your support.

      Cheers,
      Paul

      1 Reply Last reply Reply Quote 0
      • G Offline
        Gijs
        last edited by

        Hi,
        No worries, everybody was a beginnner once!

        For 915MHz, you will indeed need to change some configurations. We have the example here: https://docs.pycom.io/tutorials/expansionboards/pygate/ for 868MHz. To change this to 915MHz, all you need to do is edit the configuration file (config.json) for the correct frequency plan. We are still working on getting instructions out there to set everything correctly!

        In the meantime, you can check the TTN plans here: https://www.thethingsnetwork.org/docs/lorawan/frequency-plans.html

        P 2 Replies Last reply Reply Quote 0
        • P Offline
          pauldeng
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • P Offline
            pauldeng @Gijs
            last edited by

            Hi @Gijs

            Thanks for your reply.

            The config.json does not cover the registers I would like to change for the PyGate.

            From my experience, Ineed to change it in loragw_hal.c and re-compile libloragw and packet forwarder to it work with my proprietary LoRa application.

            The main.py example provided is an application above packet forwarder level. What I would like to change is actually a level below packet forwarder.

            I do not know how and like to get help from you.

            Cheers,
            Paul

            1 Reply Last reply Reply Quote 1
            • P Offline
              pauldeng @Gijs
              last edited by

              Dear mod @Gijs,

              Please move my topic into appropriate category if this is not the relevant place.

              Thanks.

              Cheers,
              Paul

              1 Reply Last reply Reply Quote 0
              • G Offline
                Gijs
                last edited by

                Hi,
                That is not so much of an issue for me :)
                We are working hard on getting the pygate firmware version source code out there soon! Currently it is not available yet as we have to dot the i's out how it fits in our structure. After that, you will be able to change the necessary low level settings.
                Best,
                Gijs

                P 1 Reply Last reply Reply Quote 0
                • P Offline
                  pauldeng @Gijs
                  last edited by

                  @Gijs

                  Understood.

                  Is there an ETA that you could share for the code release?

                  Thanks,

                  Cheers,
                  Paul

                  1 Reply Last reply Reply Quote 1

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • 1 / 1
                  • First post
                    Last post

                  Pycom on Twitter

                  Pycom