Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. RFM69 Range issues

RFM69 Range issues

Scheduled Pinned Locked Moved Troubleshooting
35 Posts 9 Posters 360 Views 10 Watching
  • 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.
  • E Offline
    E Offline
    evb
    wrote on last edited by
    #2

    Recently, I had a conversation about the ATM with @mfalkvidd.
    As result he added following section to https://www.mysensors.org/build/select_gateway

    RFM69/RFM95 Special considerations
    For gateways using the radio transport RFM69 or RFM95, when MY_GATEWAY_FEATURE is defined, the ATC mode of the gateway is disabled which makes perfectly sense since every node will report a different RSSI and there is no need to change the tx level at every transmission.
    However, the default tx power will then be used by the gateway (MY_RFM69_TX_POWER_DBM which is 5 and MY_RFM95_TX_POWER_DBM which is 13) and whereas ATC will increase that value if needed, this is not happening on the gateway which will stay at 5 for RFM69 (or 13 for RFM95) forever despite not running on battery and so without any need to save power.
    So if you are having range problems with your gateway, set the define MY_RFMxx_TX_POWER_DBM to a higher level. Be aware that setting this power setting to a higher level, will cause your node or gateway to 'screaming louder'. For nodes very close to the gateway, things could go even worse. So test with little steps.
    Finally, pay attention to the hardware version of your radio. For example for RFM69, even though 20dBm may be specified, RFM69 is limited to +13dBm, only RFM69HW can reach real +20dBm. The opposite is also true, only RFM69 can use power values lower than -2dBm, RFM69HW is capped lower than that.

    I don't find the topic in question for the moment :-(
    Like I did understand it, the ATM starts at the level defined by MY_RFM69_TX_POWER_DBM which is by default 5.
    It will then adjust the power to the configured ATC value.

    Try first to set the MY_RFM69_TX_POWER_DBM on the gateway to a higher value. Use little steps.

    But what I don't understand, your node build as signal scanner is working well in the garage and the mailbox with the current setup?
    And the other nodes not?
    If their hardware is the same, that is very strange...

    mfalkviddM 1 Reply Last reply
    0
    • E evb

      Recently, I had a conversation about the ATM with @mfalkvidd.
      As result he added following section to https://www.mysensors.org/build/select_gateway

      RFM69/RFM95 Special considerations
      For gateways using the radio transport RFM69 or RFM95, when MY_GATEWAY_FEATURE is defined, the ATC mode of the gateway is disabled which makes perfectly sense since every node will report a different RSSI and there is no need to change the tx level at every transmission.
      However, the default tx power will then be used by the gateway (MY_RFM69_TX_POWER_DBM which is 5 and MY_RFM95_TX_POWER_DBM which is 13) and whereas ATC will increase that value if needed, this is not happening on the gateway which will stay at 5 for RFM69 (or 13 for RFM95) forever despite not running on battery and so without any need to save power.
      So if you are having range problems with your gateway, set the define MY_RFMxx_TX_POWER_DBM to a higher level. Be aware that setting this power setting to a higher level, will cause your node or gateway to 'screaming louder'. For nodes very close to the gateway, things could go even worse. So test with little steps.
      Finally, pay attention to the hardware version of your radio. For example for RFM69, even though 20dBm may be specified, RFM69 is limited to +13dBm, only RFM69HW can reach real +20dBm. The opposite is also true, only RFM69 can use power values lower than -2dBm, RFM69HW is capped lower than that.

      I don't find the topic in question for the moment :-(
      Like I did understand it, the ATM starts at the level defined by MY_RFM69_TX_POWER_DBM which is by default 5.
      It will then adjust the power to the configured ATC value.

      Try first to set the MY_RFM69_TX_POWER_DBM on the gateway to a higher value. Use little steps.

      But what I don't understand, your node build as signal scanner is working well in the garage and the mailbox with the current setup?
      And the other nodes not?
      If their hardware is the same, that is very strange...

      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #3

      @evb the reason you can't find the topic is that there was no topic. The conversation was in an github issue :) https://github.com/mysensors/MySensors/issues/1157

      1 Reply Last reply
      0
      • bjornhallbergB Offline
        bjornhallbergB Offline
        bjornhallberg
        Hero Member
        wrote on last edited by bjornhallberg
        #4

        No neither the temp sensors nor the mailbox sensor are working on 2.3.0 with the new rfm69 driver at any serious range at least. The hardware is this (https://github.com/EasySensors/ButtonSizeNode) and this (https://github.com/EasySensors/SwitchNode). Have tried different types of antenna.

        The hardware difference would be that the scanner is running on AA batteries with no regulator and the sensors above use 3V button cells and some sort of regulator I think. Plus they use RFM69CW while the scanner uses RFM69W.

        Like I say above, I've really only disabled debug to save some memory because I read in some other thread that it in fact helped. I have not tried setting TX power manually on either the gateway nor the sensors.

        Still 5bdm on the gateway doesn't sound too bad though. What was the gateway TX dbm on 2.2.0 and old regular driver?

        1 Reply Last reply
        0
        • E Offline
          E Offline
          evb
          wrote on last edited by
          #5

          The RFM69W and RFM69CW have both 13dBm power output, so that can't be the reason.

          • You could try to power the buttonsizenode, not by the button battery, but by an external power/battery supply. This to test if it is not a battery button problem not providing enough juice for the radio.
          • If same result, try to add an extra 47µF elco or bigger on the power inputs of the radio.
          • Do a test with the dBm output set to 13dBm.
          bjornhallbergB 1 Reply Last reply
          0
          • E evb

            The RFM69W and RFM69CW have both 13dBm power output, so that can't be the reason.

            • You could try to power the buttonsizenode, not by the button battery, but by an external power/battery supply. This to test if it is not a battery button problem not providing enough juice for the radio.
            • If same result, try to add an extra 47µF elco or bigger on the power inputs of the radio.
            • Do a test with the dBm output set to 13dBm.
            bjornhallbergB Offline
            bjornhallbergB Offline
            bjornhallberg
            Hero Member
            wrote on last edited by bjornhallberg
            #6

            @evb Thanks I'll try that.

            I was thinking about setting up a second gateway also (I have another sensebender gateway I'm not using) and running a different frequency for the network. The new driver allows you to set basically any frequency that the module supports right down to the Hz?

            And the 868MHz modules are able to go as high as 915MHz (even if it isn't optimal) and vice versa? I do recall something from Lowpowerlabs from years ago that said the 915MHz ones could at least be run at 868MHz? Felix and other users on their forum even confirm it. So that would rule out the possibility that I have radio modules of the wrong frequency,

            I am starting to question some of these radio modules I bought off of AliExpress 3-4 years ago. I know for a fact that I have RFM69W modules that are 915, don't remember why I even have those. The signal scanner used a good and known *W 868 module. All the *CW modules are marked as 868. But I am nevertheless starting to wonder if there could be some foul play here. Either knockoffs, or real duds. It would explain a lot of the problems I've had with HopeRF modules over the years, with them often being outperformed by knockoff nrf24s.

            YveauxY 1 Reply Last reply
            0
            • bjornhallbergB bjornhallberg

              @evb Thanks I'll try that.

              I was thinking about setting up a second gateway also (I have another sensebender gateway I'm not using) and running a different frequency for the network. The new driver allows you to set basically any frequency that the module supports right down to the Hz?

              And the 868MHz modules are able to go as high as 915MHz (even if it isn't optimal) and vice versa? I do recall something from Lowpowerlabs from years ago that said the 915MHz ones could at least be run at 868MHz? Felix and other users on their forum even confirm it. So that would rule out the possibility that I have radio modules of the wrong frequency,

              I am starting to question some of these radio modules I bought off of AliExpress 3-4 years ago. I know for a fact that I have RFM69W modules that are 915, don't remember why I even have those. The signal scanner used a good and known *W 868 module. All the *CW modules are marked as 868. But I am nevertheless starting to wonder if there could be some foul play here. Either knockoffs, or real duds. It would explain a lot of the problems I've had with HopeRF modules over the years, with them often being outperformed by knockoff nrf24s.

              YveauxY Offline
              YveauxY Offline
              Yveaux
              Mod
              wrote on last edited by Yveaux
              #7

              @bjornhallberg if you have a cheap sdr lying around you could use that to verify transmission frequencies and signal levels to some extent.
              This can rule out bad modules easily.

              http://yveaux.blogspot.nl

              bjornhallbergB 1 Reply Last reply
              0
              • YveauxY Yveaux

                @bjornhallberg if you have a cheap sdr lying around you could use that to verify transmission frequencies and signal levels to some extent.
                This can rule out bad modules easily.

                bjornhallbergB Offline
                bjornhallbergB Offline
                bjornhallberg
                Hero Member
                wrote on last edited by
                #8

                @Yveaux I'm embarrassed to admit I did buy a RTL-SDR last year on account of the problems I had with 433MHz sensors on the RFLink gateway and wanting to decode wireless m-bus. But I never really learned how to interpret the data from SDR#. I booted it back up just now and am flailing around in the interface :-)

                caniqueC 1 Reply Last reply
                2
                • bjornhallbergB bjornhallberg

                  @Yveaux I'm embarrassed to admit I did buy a RTL-SDR last year on account of the problems I had with 433MHz sensors on the RFLink gateway and wanting to decode wireless m-bus. But I never really learned how to interpret the data from SDR#. I booted it back up just now and am flailing around in the interface :-)

                  caniqueC Offline
                  caniqueC Offline
                  canique
                  wrote on last edited by
                  #9

                  @bjornhallberg it's improbable that there's something wrong with the RFM69
                  you have a frequency marking at the back, and I've never had a module with a wrong marking.

                  If an RFM69 is being outperformed by an nrf24, than this is kilometers away from normal. 868 MHz will -if used right- always outperform 2.4 GHz in terms of range. Always.
                  I tested nrf24 years ago and the first thing I did was: dismiss them immediately. It was crap.

                  Possible causes for low range can be: wrong settings (like coding for a HW but using a W version) or oscillations @ the gateway or @ the node (noise in the supply/gnd voltage, or nearby the device).

                  1 Reply Last reply
                  0
                  • E Offline
                    E Offline
                    evb
                    wrote on last edited by
                    #10

                    @Yveaux, Do you have specific weblinks how to use the rtl-sdr module to debug radio range issues?
                    I'm searching and reading about it on the net, but till now not yet found a usable debug workflow.

                    @bjornhallberg are you progressing?

                    I've also still range issues for my nodes 25m away from my gateway. There are isolated brick walls, sunproof glass, concrete floors, etc between these nodes and the gateway, but when I read about ranges of more then 400m, free sight I suppose, I'm wondering of there are external factors playing a role here...
                    The nodes are communicating with the gateway, but I loose regularly messages and for door nodes that's a little unfortunate :-(

                    caniqueC 1 Reply Last reply
                    0
                    • E evb

                      @Yveaux, Do you have specific weblinks how to use the rtl-sdr module to debug radio range issues?
                      I'm searching and reading about it on the net, but till now not yet found a usable debug workflow.

                      @bjornhallberg are you progressing?

                      I've also still range issues for my nodes 25m away from my gateway. There are isolated brick walls, sunproof glass, concrete floors, etc between these nodes and the gateway, but when I read about ranges of more then 400m, free sight I suppose, I'm wondering of there are external factors playing a role here...
                      The nodes are communicating with the gateway, but I loose regularly messages and for door nodes that's a little unfortunate :-(

                      caniqueC Offline
                      caniqueC Offline
                      canique
                      wrote on last edited by
                      #11

                      @evb when doing range tests I also tested range through multiple buildings, so there was no clear line of sight. Distance was approximately 200 meters @ 13 dBm (max transmission power restricted due to regulations in the EU) with an external 5dbi antenna. That was the edge where TX was working.

                      For door nodes, ACKs and retransmissions are a must. I even use that in my temperature nodes.

                      1 Reply Last reply
                      0
                      • E Offline
                        E Offline
                        evb
                        wrote on last edited by
                        #12

                        @canique The door nodes sketches have code to treat the acks and retransmission, but still sometimes, the messages are lost...

                        I thought first that it could be because the pro mini's are running on 1MHz and it was reported that MySensors lib didn't work well at this frequency.
                        But my door node at 3m away from the gateway, didn't miss yet one single message and the nodes are not freezing, the next time the message is getting through.
                        So maybe there is 'noise' around who is disturbing the radio communication, but how to detect that without professional expensive equipment?
                        Maybe via this RTL-SDR thing?

                        caniqueC 1 Reply Last reply
                        0
                        • E evb

                          @canique The door nodes sketches have code to treat the acks and retransmission, but still sometimes, the messages are lost...

                          I thought first that it could be because the pro mini's are running on 1MHz and it was reported that MySensors lib didn't work well at this frequency.
                          But my door node at 3m away from the gateway, didn't miss yet one single message and the nodes are not freezing, the next time the message is getting through.
                          So maybe there is 'noise' around who is disturbing the radio communication, but how to detect that without professional expensive equipment?
                          Maybe via this RTL-SDR thing?

                          caniqueC Offline
                          caniqueC Offline
                          canique
                          wrote on last edited by canique
                          #13

                          @evb If it's intermittent, chances are high that it is noise. But the noise could also stem from the gateway itself. Just a theoretical example to illustrate what I mean: access to an SD card on the gateway => noise. Then it would appear that you randomly lose messages, although it coincides with an access to the SD card.

                          It's time intensive to spot stuff like this. You could setup a gateway that just scans the same frequency (in promiscous mode) and samples RSSI. You could log each detection of a transmission (when RSSI values go from say -100dBm to -70 dBm) and then check if something is being transmitted from your nodes at the time in question.

                          Or you could setup a second gateway right next to your first one and see if that one is receiving the message. If one of them is receiving the message, it's probably a gateway issue. If neither is receiving the message there could be another transmission ongoing or it's a node issue.

                          1 Reply Last reply
                          0
                          • boanjoB Offline
                            boanjoB Offline
                            boanjo
                            wrote on last edited by
                            #14

                            I agree with @Yveaux that it's a good idea to fire up the RTL-SDR dongle if you have one. I've been using it quite extensively in the past when working with more plain OOK devices and it's a real eye-opener when you see the spectrum. A lot of noise and garbage where i live at least in the 433Mhz spectrum. In the 868MHz you "shouldn't" have that much (mainly your own devices) perhaps. I used mainly SDR# (SDRSHARP) which (IMHO) is the best option if you run windows. GQRX (linux) does the job too but is a bit harder i think. Move the RTL dongle around (close to GW etc) to see if the actual GW is radiating or if you pick up some other sources.

                            1 Reply Last reply
                            0
                            • E Offline
                              E Offline
                              evb
                              wrote on last edited by
                              #15

                              Besides the 'how to' question, what are the models used?
                              I see the Airspy R2 at 219 euros or the Airspy Mini (dongle) at 138 euros, still quite expensive...
                              And I see a RTL-SDR kit with dipole antenna for 34.95 dollars or 40 to 50 euros in Europe.

                              boanjoB 1 Reply Last reply
                              0
                              • E evb

                                Besides the 'how to' question, what are the models used?
                                I see the Airspy R2 at 219 euros or the Airspy Mini (dongle) at 138 euros, still quite expensive...
                                And I see a RTL-SDR kit with dipole antenna for 34.95 dollars or 40 to 50 euros in Europe.

                                boanjoB Offline
                                boanjoB Offline
                                boanjo
                                wrote on last edited by boanjo
                                #16

                                @evb Ah, sorry i ment to write which models i used too... No i have only tried the really cheap ones :)

                                Here are the ones i've used:
                                20210101_133218.jpg

                                The mini is just crap if you compare it with the two bigger sized dongles so i didn't link to it. The two bigger ones work well so it's more up to you what kind of antenna connector you want (and price). See the links for more details
                                RTL-SDR.COM is ~28$
                                https://www.ebay.com/itm/272411458376

                                The middle DVB-T TV kit is ~11$
                                https://www.ebay.ca/itm/USB2-0-Digital-DVB-T-SDR-DAB-FM-TV-Tuner-Receiver-Stick-RTL2832U-FC0012-Z-/124383617220?oid=182403360614

                                The how part i actually not much harder than to hook it upp connect to the device, turn the frequency to the wanted range and view the energy mass on the center frequency (it's often good to set the decay a bit longer so the eye can capture the peaks). But if there are questions feel free to ask!

                                1 Reply Last reply
                                0
                                • E Offline
                                  E Offline
                                  evb
                                  wrote on last edited by
                                  #17

                                  Ok, the RTL-SDR.COM kit is ordered. So, now waiting for it :-)

                                  1 Reply Last reply
                                  0
                                  • TmasterT Offline
                                    TmasterT Offline
                                    Tmaster
                                    wrote on last edited by
                                    #18

                                    The best antena that i tried on rfm69 is the dipole. Direct solder to the rfm69 board. One wire 0.8mm with 8.2cm long on Ant pin,and other in ground in oposite Direction,same size.thos for 868mhz.
                                    I have the gate sensor at 50m outdoor and never seen a miss comunication.

                                    I tried spring antenna and same dipole with an coax cable and didn't work at that range. And a mono-pole without ground plane(wire) have more lost packets( i just try communicate directly,dont have any signal scanner).

                                    i'm a arduino fan .Even sometimes don't undestanding how to use it :P

                                    1 Reply Last reply
                                    0
                                    • E Offline
                                      E Offline
                                      evb
                                      wrote on last edited by evb
                                      #19

                                      Did receive yesterday my RTL-SDR.COM USB stick :-)

                                      A first measure of the spectrum around the 868MHz band from my fix desktop computer with the Airspy SDR# software recommended on the RTL-SDR.COM website.
                                      2021-01-16 15_56_20-AIRSPY SDR# Studio v1.0.0.1784 - RTL-SDR USB (Original).png

                                      You see clearly the lines in the waterfall blue section when a node sends something.
                                      With my limited knowledge about radio signals and use of this Airspy SDR# Studio software, I think that the spectrum around my house is relatively quiet?

                                      Yet another printscreen with the SDR Console version software
                                      SDR Console version 3.0.26_868MHz.jpeg

                                      Will install the software now on my laptop to be able to go near the nodes and gateway.
                                      To be continued.

                                      Already a question, my RFM69HW are working in the 868Mhz band, yet I see movement at 867.970 MHz and 868.020 MHz. At the center 868 MHz, I see no movement.
                                      Someone with more knowledge about this, can explain this? I would expect a signal at 868 MHz...

                                      mfalkviddM boanjoB 2 Replies Last reply
                                      0
                                      • E evb

                                        Did receive yesterday my RTL-SDR.COM USB stick :-)

                                        A first measure of the spectrum around the 868MHz band from my fix desktop computer with the Airspy SDR# software recommended on the RTL-SDR.COM website.
                                        2021-01-16 15_56_20-AIRSPY SDR# Studio v1.0.0.1784 - RTL-SDR USB (Original).png

                                        You see clearly the lines in the waterfall blue section when a node sends something.
                                        With my limited knowledge about radio signals and use of this Airspy SDR# Studio software, I think that the spectrum around my house is relatively quiet?

                                        Yet another printscreen with the SDR Console version software
                                        SDR Console version 3.0.26_868MHz.jpeg

                                        Will install the software now on my laptop to be able to go near the nodes and gateway.
                                        To be continued.

                                        Already a question, my RFM69HW are working in the 868Mhz band, yet I see movement at 867.970 MHz and 868.020 MHz. At the center 868 MHz, I see no movement.
                                        Someone with more knowledge about this, can explain this? I would expect a signal at 868 MHz...

                                        mfalkviddM Offline
                                        mfalkviddM Offline
                                        mfalkvidd
                                        Mod
                                        wrote on last edited by
                                        #20

                                        @evb that's how frequency shift keying works. 867.970 is a "0" and 868.020 is a "1" (in the default MySensors configuration, which uses 50kHz deviation).

                                        1 Reply Last reply
                                        1
                                        • skywatchS Offline
                                          skywatchS Offline
                                          skywatch
                                          wrote on last edited by skywatch
                                          #21

                                          A better SDR would be the airspy R2. It puts the others to shame. (even the mini).

                                          They are cheaper from itead in China than a local supplier (as with some other things).

                                          It showed me that quite a few neighbours use 868MHz for garage door openers.

                                          mfalkviddM E 2 Replies Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          23

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          Posts


                                          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular