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

    Nano- gateway rssi

    Scheduled Pinned Locked Moved Comments & Feedback
    lopy
    24 Posts 6 Posters 6.4k Views 6 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.
    • sebS Offline
      seb @MJ
      last edited by

      @mj

      I'm afraid I don't quite follow your question. The TX power given by lora stats is the TX power of the module which unless you change will always remain the same regardless of distance. RSSI is the value that changes with distance.

      M 2 Replies Last reply Reply Quote 0
      • M Offline
        MJ @seb
        last edited by

        @seb Now i get your point. But then how can i get the power measured in order to fulfill the formula of counting distance?

        sebS 1 Reply Last reply Reply Quote 0
        • sebS Offline
          seb @MJ
          last edited by

          @mj

          TX power should be the power of the device that is transmitting, the gateway in your case. Are you using a pycom module as a nano-gateway? The RSSI should be taken from lora.stats on the receiving nodes.

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            MJ @seb
            last edited by

            @seb
            yes, i am using the pycom module as a nano gateway where the node will send the information to the gateway which using the lora.stats() . But the tx power that i obtain is 20dBm regardless how long or how short the distance is. Is it still applicable to use the tx power?

            sebS 1 Reply Last reply Reply Quote 0
            • sebS Offline
              seb @MJ
              last edited by

              @mj

              Yes the tx should not change with the distance. The gateway will always transmit at the same power because it does not know how far away the nodes are.

              1 Reply Last reply Reply Quote 0
              • J Offline
                jcaron
                last edited by

                In your formula, you should use the TX power of the sender (usually fixed, known in advance), and the RSSI measured on the receiver (this one will vary).

                However be aware that this will give you very approximate results. Even with a fixed setup, RSSI can vary quite a bit, and of course there are lots of parameters that will have an effect on the result, including antenna gains, cable losses, obstacles, multi path, etc.

                1 Reply Last reply Reply Quote 0
                • bmarkusB Offline
                  bmarkus
                  last edited by

                  Are you talking about ERP? No antenna gain in the formula.

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    jcaron
                    last edited by

                    The basic principle is that you reverse a link budget equation to find the free space path loss component, and then find the distance for that component.

                    RSSI = TX Power + TX gain - TX loss - Path loss + RX gain - RX loss
                    

                    So

                    Path loss = TX Power + TX Gain - TX loss + RX gain - RX loss - RSSI
                    

                    If you change antenna, the same TX Power and path loss give a different RSSI (and vice versa). This affects the computation (the value of n in the OP's formula).

                    M 1 Reply Last reply Reply Quote 0
                    • M Offline
                      MJ @jcaron
                      last edited by MJ

                      @jcaron
                      I am using the RSSI in order to get the distance. But which formula should i refer to? Because this is a backup for my project which in the jungle their will be no signal so using the rssi value i can get the distance.

                      bmarkusB 1 Reply Last reply Reply Quote 0
                      • bmarkusB Offline
                        bmarkus @MJ
                        last edited by

                        @mj said in Nano- gateway rssi:

                        @jcaron
                        I am using the RSSI in order to get the distance. But which formula should i refer to? Because this is a backup for my project which in the jungle their will be no signal so using the rssi value i can get the distance.

                        You can't use RSSI to calculate distance on a reliable way. Environment has an ifluence, like rain, vegetation plus if device is moving changing antenna position.

                        M 1 Reply Last reply Reply Quote 0
                        • M Offline
                          MJ @bmarkus
                          last edited by

                          @bmarkus
                          Using rssi to calculate the distance is just a test. So is it still can make it to get the distance?

                          bmarkusB 1 Reply Last reply Reply Quote 0
                          • bmarkusB Offline
                            bmarkus @MJ
                            last edited by

                            @mj said in Nano- gateway rssi:

                            @bmarkus
                            Using rssi to calculate the distance is just a test. So is it still can make it to get the distance?

                            Sure, the only question is the accuracy and what do you want to achive :)

                            1 Reply Last reply Reply Quote 0
                            • M Offline
                              MJ @seb
                              last edited by

                              @seb
                              As u mentioned the TX power will remained the same unless we change it. But how can we change the TX power in the module?

                              sebS 1 Reply Last reply Reply Quote 0
                              • sebS Offline
                                seb @MJ
                                last edited by

                                @mj
                                https://docs.pycom.io/chapter/firmwareapi/pycom/network/lora.html#class-networkloraid0-

                                Please see the tx_power parameter of the lora constructor.

                                M 1 Reply Last reply Reply Quote 0
                                • M Offline
                                  MJ @seb
                                  last edited by

                                  @seb
                                  Is there any chances to obtain the RX power?

                                  sebS 1 Reply Last reply Reply Quote 0
                                  • sebS Offline
                                    seb @MJ
                                    last edited by

                                    @mj

                                    The RSSI value from lora.stats() is "the received signal strength in dBm" as per: https://docs.pycom.io/chapter/firmwareapi/pycom/network/lora.html#lorastats

                                    M 1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      MJ @seb
                                      last edited by

                                      @seb
                                      But from lora.stat() it does not have the RX power. how can i obtain? Is there a way to obtain?

                                      sebS 1 Reply Last reply Reply Quote 0
                                      • sebS Offline
                                        seb @MJ
                                        last edited by

                                        @mj

                                        What do you mean by RX power? The RSSI is the power of the signal that was received measured in dBm.

                                        B 1 Reply Last reply Reply Quote 0
                                        • B Offline
                                          Burgeh @seb
                                          last edited by

                                          @seb When I have two LoPys close together, and connect through raw LoRa my RSSI is still around -30dBm that seems bad for such a close range. Putting them even further away (10m) puts them around -60dbM. Is this about right?

                                          sebS robert-hhR 2 Replies Last reply Reply Quote 0
                                          • sebS Offline
                                            seb @Burgeh
                                            last edited by

                                            @burgeh

                                            Yes -60dBm is a reasonable value for LoRa

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

                                            Pycom on Twitter

                                            Pycom