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

    Setting up a single channel for connection to the gateway

    Scheduled Pinned Locked Moved Projects
    4 Posts 3 Posters 42 Views 3 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.
    • B Offline
      Benjamin Mavinga
      last edited by Gijs

      Hi,

      I am planning to build a single channel gateway using the Lora Hat and Raspberry Pi 3 to send values from my Lopy4 to TTN. I've found a program from a tutorial but the person that programmed it lives in the states(USA).

      How can I modify this program so I can use it in my area?
      Any insights to this will help a lot and I'm open to hearing any suggestions
      Thank you.

      #Setup the single channel for connection to the gateway 
      for channel in range(0, 72): 
         lora.remove_channel(channel) 
      for chan in range(0, 8): 
         lora.add_channel(chan,  frequency=freq,  dr_min=0,  dr_max=3)
      
      1 Reply Last reply Reply Quote 0
      • G Offline
        Gijs
        last edited by

        The code you mention should work for a Lopy4.. Im not really sure what you're after here?

        B 1 Reply Last reply Reply Quote 0
        • B Offline
          Benjamin Mavinga @Gijs
          last edited by

          @Gijs I was trying to modify it to work in my country but I see now all I have to do is to find out how many available LoRa channels there are in then country and place it where " 72 " is.

          robert-hhR 1 Reply Last reply Reply Quote 0
          • robert-hhR Offline
            robert-hh @Benjamin Mavinga
            last edited by

            @Benjamin-Mavinga Which region code are you using?

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

            Pycom on Twitter

            Pycom