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

    LoPy4 change uplink channels by itself?

    Scheduled Pinned Locked Moved LoPy
    31 Posts 4 Posters 282 Views 5 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.
    • robert-hhR Offline
      robert-hh @Gusti Made Arya Wijaya
      last edited by

      @Gusti-Made-Arya-Wijaya Don't you have to call prepare_channels before lora.join()? And do you have a gateway in reach?

      Gusti Made Arya WijayaG 1 Reply Last reply Reply Quote 0
      • Gusti Made Arya WijayaG Offline
        Gusti Made Arya Wijaya @robert-hh
        last edited by

        @robert-hh hello, sorry for super late reply, I have tried it, but still can't join using gateway with AS923-2 freq plan, If I replace the gateway with AS923-1 freq plan, my Lopy4 can join. So the freq play from lopy4 is not change

        1 Reply Last reply Reply Quote 0
        • Gusti Made Arya WijayaG Offline
          Gusti Made Arya Wijaya @Gusti Made Arya Wijaya
          last edited by

          @Gusti-Made-Arya-Wijaya @robert-hh Hello Robert, Should I modify region.c file in ...../pycom-micropython-sigfox/lib/lora/mac/region then re-compile the firmware? or can use this firmware https://github.com/robert-hh/Shared-Stuff.git ?

          robert-hhR 2 Replies Last reply Reply Quote 0
          • robert-hhR Offline
            robert-hh @Gusti Made Arya Wijaya
            last edited by

            @Gusti-Made-Arya-Wijaya Didn't you try already the firmware from Shared Stuff and it did not work? In that case, you have to change the source files and build your own firmware.

            Gusti Made Arya WijayaG 1 Reply Last reply Reply Quote 0
            • robert-hhR Offline
              robert-hh @Gusti Made Arya Wijaya
              last edited by

              @Gusti-Made-Arya-Wijaya There was this bug that ora.remove_channel(i) did not work for the CN470 region. I made a PR in Aug 2020 to fix that, but I cannot tell whether that was implemented. I do not see it in the Release/v1.20 branch, which seems to be the most recent one, with the most recent change on Dec 6, 20121. The repository management of Pycom is by black box. With many branches of unclear usage.

              Gusti Made Arya WijayaG 1 Reply Last reply Reply Quote 0
              • Gusti Made Arya WijayaG Offline
                Gusti Made Arya Wijaya @robert-hh
                last edited by

                @robert-hh yes, I have tried it and tested my code like on previous page. Is there any guidance to build custom firmware?

                robert-hhR 1 Reply Last reply Reply Quote 0
                • robert-hhR Offline
                  robert-hh @Gusti Made Arya Wijaya
                  last edited by

                  @Gusti-Made-Arya-Wijaya There is in the README.MD of the pycom-micropython-sigfox directory, and in the ESP32 port directory. It's tricky to set up the build environment. It has to be a Linux OS.

                  1 Reply Last reply Reply Quote 0
                  • Gusti Made Arya WijayaG Offline
                    Gusti Made Arya Wijaya @robert-hh
                    last edited by

                    @robert-hh yes, the bug in lora.remove_channel(i) is not fixed yet, I think lora.remove_channel(i) is not work in all regions. Need help to fix it, because in Indonesia using AS923-2

                    robert-hhR 1 Reply Last reply Reply Quote 0
                    • robert-hhR Offline
                      robert-hh @Gusti Made Arya Wijaya
                      last edited by

                      @Gusti-Made-Arya-Wijaya I added a 1.20.2.r6 version for LoPy4 with the cn470 channel remove fixed to Shared stuff. Maybe that one works.

                      Gusti Made Arya WijayaG 1 Reply Last reply Reply Quote 0
                      • Gusti Made Arya WijayaG Offline
                        Gusti Made Arya Wijaya @robert-hh
                        last edited by

                        @robert-hh Okay thanks, I will try this firmware, and test lora.remove_channel(i), then add channel AS923-2 freqs (921.4MHz & 921.6MHz ).

                        1 Reply Last reply Reply Quote 0

                        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
                        • 2
                        • 2 / 2
                        • First post
                          Last post

                        Pycom on Twitter

                        Pycom