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

    lora.rssi() == 0 is that a problem ?

    Scheduled Pinned Locked Moved LoPy
    6 Posts 3 Posters 2.9k 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
      bartvandeenen
      last edited by

      I'm trying to connect to the Things Network, but I'm not having any success yet. Is a lora.rssi() having a value of 0 indicative of me not being in range of a LoRa gateway ?
      The power mode is always on, so I would expect some signal.

      >>> lora.power_mode() == LoRa.ALWAYS_ON
      True
      >>> lora.ABP
      1
      >>> lora.has_joined()
      True
      
      
      1 Reply Last reply Reply Quote 0
      • D Offline
        daniel
        last edited by daniel

        I guess you are using ABP, right? In ABP there's no confirmation from the Gateway when joining. The join process only involves setting up the Keys on the node (the LoPy). It might be that you are too far from the Gateway. I'll have a loot at the RSSI value...

        B 1 Reply Last reply Reply Quote 0
        • B Offline
          bartvandeenen @daniel
          last edited by

          @daniel
          Yep, ABP, so I understand the has_joined is always True. I've traced the rssi function a bit in the C code, but I haven't found yet where the internal rssi value is set. I haven't had time to build my own firmware yet, but it's on the list.

          1 Reply Last reply Reply Quote 0
          • C Offline
            chrigu
            last edited by

            is the lora.rssi() the only way to check whether you're in the range of a LoRa gateway?

            1 Reply Last reply Reply Quote 0
            • D Offline
              daniel
              last edited by

              With lora.rssi() you can see how good is the signal after you are connected to another device (be it a LoRaWAN Gateway or another LoPy in raw-LoRa mode). RSSI it's always going to be 0 before your receive the packet. It cannot be use to see if you are in range of a LoRa Gateway. One way to do this is by peforming an OTAA join and waiting for it to succeed.

              Cheers,
              Daniel

              C 1 Reply Last reply Reply Quote 0
              • C Offline
                chrigu @daniel
                last edited by

                @daniel thanks for the info. In that case I'll need to test from another location. I tried with OTAA, but the Lopy didn't join.

                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