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. [solved] RPI Gateway with RFM95 does not receive any nodes

[solved] RPI Gateway with RFM95 does not receive any nodes

Scheduled Pinned Locked Moved Troubleshooting
27 Posts 2 Posters 5.7k Views 3 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.
  • M Offline
    M Offline
    micropet
    wrote on last edited by
    #21

    Fine.

    I'm just trying a Teensy LC Node.
    See you tomorrow.

    Here in Essen, Germany, it should also rain. :)

    1 Reply Last reply
    0
    • M Offline
      M Offline
      micropet
      wrote on last edited by
      #22

      The Teensy LC also works.

      So the problem is the Arduino Pro mini.

      mfalkviddM 1 Reply Last reply
      1
      • M micropet

        The Teensy LC also works.

        So the problem is the Arduino Pro mini.

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

        @micropet I'm unfortunately not able to reproduce the problem. This is the output of my Pro Mini 3.3V node:

        0 MCO:BGN:INIT NODE,CP=RLNNA---,VER=2.2.0-beta
        4 TSM:INIT
        4 TSF:WUR:MS=0
        16 TSM:INIT:TSP OK
        18 TSF:SID:OK,ID=6
        20 TSM:FPAR
        71 TSF:MSG:SEND,6-6-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
        1130 TSF:MSG:READ,0-0-6,s=255,c=3,t=8,pt=1,l=1,sg=0:0
        1134 TSF:MSG:FPAR OK,ID=0,D=1
        2078 TSM:FPAR:OK
        2078 TSM:ID
        2080 TSM:ID:OK
        2082 TSM:UPL
        2183 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
        2232 TSF:MSG:READ,0-0-6,s=255,c=3,t=25,pt=1,l=1,sg=0:1
        2238 TSF:MSG:PONG RECV,HP=1
        2242 TSM:UPL:OK
        2244 TSM:READY:ID=6,PAR=0,DIS=1
        2375 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
        2426 TSF:MSG:READ,0-0-6,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
        2578 TSF:MSG:SEND,6-6-0-0,s=255,c=0,t=17,pt=0,l=10,sg=0,ft=0,st=OK:2.2.0-beta
        2689 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
        4814 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=11,pt=0,l=13,sg=0,ft=0,st=OK:Binary Sensor
        4925 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:1.0
        5027 TSF:MSG:SEND,6-6-0-0,s=3,c=0,t=0,pt=0,l=0,sg=0,ft=0,st=OK:
        5036 MCO:REG:REQ
        5132 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
        5183 TSF:MSG:READ,0-0-6,s=255,c=3,t=27,pt=1,l=1,sg=0:1
        5189 MCO:PIM:NODE REG=1
        5191 MCO:BGN:STP
        5193 MCO:BGN:INIT OK,TSP=1
        5326 TSF:MSG:SEND,6-6-0-0,s=3,c=1,t=16,pt=1,l=1,sg=0,ft=0,st=OK:0
        7438 TSF:MSG:SEND,6-6-0-0,s=3,c=1,t=16,pt=1,l=1,sg=0,ft=0,st=OK:1
        9549 TSF:MSG:SEND,6-6-0-0,s=3,c=1,t=16,pt=1,l=1,sg=0,ft=0,st=OK:0
        11661 TSF:MSG:SEND,6-6-0-0,s=3,c=1,t=16,pt=1,l=1,sg=0,ft=0,st=OK:1
        13774 TSF:MSG:SEND,6-6-0-0,s=3,c=1,t=16,pt=1,l=1,sg=0,ft=0,st=OK:0
        15886 TSF:MSG:SEND,6-6-0-0,s=3,c=1,t=16,pt=1,l=1,sg=0,ft=0,st=OK:1
        

        Gateway:

        Jul  8 11:56:14 raspi1 mysgw: TSF:MSG:READ,6-6-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
        Jul  8 11:56:14 raspi1 mysgw: TSF:MSG:BC
        Jul  8 11:56:14 raspi1 mysgw: TSF:MSG:FPAR REQ,ID=6
        Jul  8 11:56:14 raspi1 mysgw: TSF:PNG:SEND,TO=0
        Jul  8 11:56:14 raspi1 mysgw: TSF:CKU:OK
        Jul  8 11:56:14 raspi1 mysgw: TSF:MSG:GWL OK
        Jul  8 11:56:15 raspi1 mysgw: TSF:MSG:SEND,0-0-6-6,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
        Jul  8 11:56:16 raspi1 mysgw: TSF:MSG:READ,6-6-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1
        Jul  8 11:56:16 raspi1 mysgw: TSF:MSG:PINGED,ID=6,HP=1
        Jul  8 11:56:16 raspi1 mysgw: TSF:MSG:SEND,0-0-6-6,s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=OK:1
        Jul  8 11:56:16 raspi1 mysgw: TSF:MSG:READ,6-6-0,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
        Jul  8 11:56:16 raspi1 mysgw: TSF:MSG:SEND,0-0-6-6,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
        Jul  8 11:56:17 raspi1 mysgw: TSF:MSG:READ,6-6-0,s=255,c=0,t=17,pt=0,l=10,sg=0:2.2.0-beta
        Jul  8 11:56:17 raspi1 mysgw: Sending message on topic: mysensors-rfm95-out/6/255/0/0/17
        Jul  8 11:56:17 raspi1 mysgw: TSF:MSG:READ,6-6-0,s=255,c=3,t=6,pt=1,l=1,sg=0:0
        Jul  8 11:56:17 raspi1 mysgw: Sending message on topic: mysensors-rfm95-out/6/255/3/0/6
        Jul  8 11:56:19 raspi1 mysgw: TSF:MSG:READ,6-6-0,s=255,c=3,t=11,pt=0,l=13,sg=0:Binary Sensor
        Jul  8 11:56:19 raspi1 mysgw: Sending message on topic: mysensors-rfm95-out/6/255/3/0/11
        Jul  8 11:56:19 raspi1 mysgw: TSF:MSG:READ,6-6-0,s=255,c=3,t=12,pt=0,l=3,sg=0:1.0
        Jul  8 11:56:19 raspi1 mysgw: Sending message on topic: mysensors-rfm95-out/6/255/3/0/12
        Jul  8 11:56:19 raspi1 mysgw: TSF:MSG:READ,6-6-0,s=3,c=0,t=0,pt=0,l=0,sg=0:
        Jul  8 11:56:19 raspi1 mysgw: Sending message on topic: mysensors-rfm95-out/6/3/0/0/0
        Jul  8 11:56:19 raspi1 mysgw: TSF:MSG:READ,6-6-0,s=255,c=3,t=26,pt=1,l=1,sg=0:2
        Jul  8 11:56:19 raspi1 mysgw: TSF:MSG:SEND,0-0-6-6,s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=OK:1
        Jul  8 11:56:19 raspi1 mysgw: TSF:MSG:READ,6-6-0,s=3,c=1,t=16,pt=1,l=1,sg=0:0
        Jul  8 11:56:19 raspi1 mysgw: Sending message on topic: mysensors-rfm95-out/6/3/1/0/16
        Jul  8 11:56:21 raspi1 mysgw: TSF:MSG:READ,6-6-0,s=3,c=1,t=16,pt=1,l=1,sg=0:1
        Jul  8 11:56:21 raspi1 mysgw: Sending message on topic: mysensors-rfm95-out/6/3/1/0/16
        Jul  8 11:56:24 raspi1 mysgw: TSF:MSG:READ,6-6-0,s=3,c=1,t=16,pt=1,l=1,sg=0:0
        Jul  8 11:56:24 raspi1 mysgw: Sending message on topic: mysensors-rfm95-out/6/3/1/0/16
        Jul  8 11:56:26 raspi1 mysgw: TSF:MSG:READ,6-6-0,s=3,c=1,t=16,pt=1,l=1,sg=0:1
        Jul  8 11:56:26 raspi1 mysgw: Sending message on topic: mysensors-rfm95-out/6/3/1/0/16
        Jul  8 11:56:28 raspi1 mysgw: TSF:MSG:READ,6-6-0,s=3,c=1,t=16,pt=1,l=1,sg=0:0
        Jul  8 11:56:28 raspi1 mysgw: Sending message on topic: mysensors-rfm95-out/6/3/1/0/16
        Jul  8 11:56:30 raspi1 mysgw: TSF:MSG:READ,6-6-0,s=3,c=1,t=16,pt=1,l=1,sg=0:1
        Jul  8 11:56:30 raspi1 mysgw: Sending message on topic: mysensors-rfm95-out/6/3/1/0/16
        Jul  8 11:56:32 raspi1 mysgw: TSF:MSG:READ,6-6-0,s=3,c=1,t=16,pt=1,l=1,sg=0:0
        Jul  8 11:56:32 raspi1 mysgw: Sending message on topic: mysensors-rfm95-out/6/3/1/0/16
        Jul  8 11:56:34 raspi1 mysgw: TSF:MSG:READ,6-6-0,s=3,c=1,t=16,pt=1,l=1,sg=0:1
        Jul  8 11:56:34 raspi1 mysgw: Sending message on topic: mysensors-rfm95-out/6/3/1/0/16
        Jul  8 11:56:36 raspi1 mysgw: TSF:MSG:READ,6-6-0,s=3,c=1,t=16,pt=1,l=1,sg=0:0
        Jul  8 11:56:36 raspi1 mysgw: Sending message on topic: mysensors-rfm95-out/6/3/1/0/16
        Jul  8 11:56:38 raspi1 mysgw: TSF:MSG:READ,6-6-0,s=3,c=1,t=16,pt=1,l=1,sg=0:1
        Jul  8 11:56:38 raspi1 mysgw: Sending message on topic: mysensors-rfm95-out/6/3/1/0/16
        

        Sketch for the node: (same as for the esp8266 except that I removed the pin defines)

        // Enable debug prints to serial monitor
        #define MY_DEBUG
        
        // Enable and select radio type attached
        //#define MY_RADIO_NRF24
        #define MY_RADIO_RFM95
        
        #include <MySensors.h>
        
        #define SKETCH_NAME "Binary Sensor"
        #define SKETCH_MAJOR_VER "1"
        #define SKETCH_MINOR_VER "0"
        
        #define PRIMARY_CHILD_ID 3
        #define SECONDARY_CHILD_ID 4
        
        #define PRIMARY_BUTTON_PIN 2   // Arduino Digital I/O pin for button/reed switch
        #define SECONDARY_BUTTON_PIN 3 // Arduino Digital I/O pin for button/reed switch
        
        #if (PRIMARY_BUTTON_PIN < 2 || PRIMARY_BUTTON_PIN > 3)
        #error PRIMARY_BUTTON_PIN must be either 2 or 3 for interrupts to work
        #endif
        #if (SECONDARY_BUTTON_PIN < 2 || SECONDARY_BUTTON_PIN > 3)
        #error SECONDARY_BUTTON_PIN must be either 2 or 3 for interrupts to work
        #endif
        #if (PRIMARY_BUTTON_PIN == SECONDARY_BUTTON_PIN)
        #error PRIMARY_BUTTON_PIN and BUTTON_PIN2 cannot be the same
        #endif
        #if (PRIMARY_CHILD_ID == SECONDARY_CHILD_ID)
        #error PRIMARY_CHILD_ID and SECONDARY_CHILD_ID cannot be the same
        #endif
        
        
        // Change to V_LIGHT if you use S_LIGHT in presentation below
        MyMessage msg(PRIMARY_CHILD_ID, V_TRIPPED);
        
        void setup()
        {
        
        }
        
        void presentation()
        {
          // Send the sketch version information to the gateway and Controller
          sendSketchInfo(SKETCH_NAME, SKETCH_MAJOR_VER "." SKETCH_MINOR_VER);
        
          // Register binary input sensor to sensor_node (they will be created as child devices)
          // You can use S_DOOR, S_MOTION or S_LIGHT here depending on your usage.
          // If S_LIGHT is used, remember to update variable type you send in. See "msg" above.
          present(PRIMARY_CHILD_ID, S_DOOR);
        }
        
        // Loop will iterate on changes on the BUTTON_PINs
        void loop()
        {
          static uint8_t sentValue = 2;
        
          // Short delay to allow buttons to properly settle
          wait(5);
        
          uint8_t  value = !sentValue;
        
          if (value != sentValue) {
            // Value has changed from last transmission, send the updated value
            send(msg.set(value == HIGH));
            sentValue = value;
          }
        
          wait(2000);
        }
        

        Wiring as per https://www.mysensors.org/build/connect_radio#rfm69-&-arduino

        1 Reply Last reply
        0
        • M Offline
          M Offline
          micropet
          wrote on last edited by
          #24

          Hi,

          Thank you.
          Now it works.

          The trick is D100 must be on pin 2.

          I try to make the pin assignments the same for all nodes (STM32, Arduino Pro, Teensy LC Tennsy 3.1 / 3.6, ESP8266).

          D100 I had put on pin 6 and
          #define MY_RFM95_IRQ_PIN 6
          In the sketch.

          That was the mistake with the Arduino.
          On all other platforms it works.
           
          Many Thanks. I had already given up.

          mfalkviddM 1 Reply Last reply
          1
          • M micropet

            Hi,

            Thank you.
            Now it works.

            The trick is D100 must be on pin 2.

            I try to make the pin assignments the same for all nodes (STM32, Arduino Pro, Teensy LC Tennsy 3.1 / 3.6, ESP8266).

            D100 I had put on pin 6 and
            #define MY_RFM95_IRQ_PIN 6
            In the sketch.

            That was the mistake with the Arduino.
            On all other platforms it works.
             
            Many Thanks. I had already given up.

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

            @micropet great that you were able to isolate the problem. Thanks for the cooperation during troubleshooting.

            In case you didn't already know, only pin 2 and 3 on Pro Mini can be used for hardware interrupts. See https://www.arduino.cc/en/Main/ArduinoBoardProMini for details.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              micropet
              wrote on last edited by micropet
              #26

              I thank you. Now I have come a whole lot further.

              I know that only the pins 2 and 3 are IRQ capable.

              I thought I would have read that the IRQ is not used, but the pin is only polled.

              This is how it is done with the LMIC Lib at The Things Network.

              I have still determined when I use the following at the Arduino:
              #define MY_RFM95_RST_PIN 4
              The Arduino does not send anything.
              It works with Teensy or ESP.

              The sleep mode with the teensy does also not always work.
              Sometimes he freezes.

              I will continue tomorrow....

              1 Reply Last reply
              0
              • M Offline
                M Offline
                micropet
                wrote on last edited by micropet
                #27

                For information on electricity consumption:

                Tensy 3.2 mit RFM96HW 130 µA
                Tensy 3.2 mit RFM96HW BME280 130 µA
                Tensy 3.2 mit RFM96HW BME280 BH1750 165 µA
                Teensy LC mit RFM95 90 µA
                Arduino Pro mit RFM95 DS18b20 6 µA
                Arduino Pro mit RFM95 BME280 BH1750 11 µA

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                17

                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