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. OpenHardware.io
  3. 💬 MySensors Nrf24/RFM Serial/Ethernet GW Shield (for Uno)

💬 MySensors Nrf24/RFM Serial/Ethernet GW Shield (for Uno)

Scheduled Pinned Locked Moved OpenHardware.io
mysensorsnrf24l01+rfm69
28 Posts 4 Posters 618 Views 2 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.
  • Nick WillisN Offline
    Nick WillisN Offline
    Nick Willis
    wrote on last edited by
    #19

    Oops fixed it by remelting all the solder joints on the mini regulators. So will cut the pin headers and hard wire for a serial gateway (which I'm starting to think is a good idea anyway to keep down system latency of going via ethernet).

    sundberg84S 1 Reply Last reply
    0
    • Nick WillisN Nick Willis

      Oops fixed it by remelting all the solder joints on the mini regulators. So will cut the pin headers and hard wire for a serial gateway (which I'm starting to think is a good idea anyway to keep down system latency of going via ethernet).

      sundberg84S Offline
      sundberg84S Offline
      sundberg84
      Hardware Contributor
      wrote on last edited by sundberg84
      #20

      @Nick-Willis - great to hear.
      By using dupont cables and "normal pinout" for RFM radio i now also get the new driver to work thanks to your input.

      #include <SPI.h>
      
      // Enable debug prints to serial monitor
      #define MY_DEBUG
      
      // Enable and select radio type attached
      
      #define MY_RADIO_RFM69
      #define MY_RFM69_NEW_DRIVER
      #define MY_RFM69_FREQUENCY RFM69_433MHZ // Set your frequency here
      #define MY_IS_RFM69HW
      
      //#define MY_SOFTSPI
      //#define MY_SOFT_SPI_SCK_PIN A0
      //#define MY_SOFT_SPI_MOSI_PIN A1
      //#define MY_SOFT_SPI_MISO_PIN A2
      
      //#ifndef MY_RF24_CE_PIN
      //#define MY_RF24_CE_PIN 5
      //#endif
      //#ifndef MY_RF24_CS_PIN
      //#define MY_RF24_CS_PIN 6
      //#endif
      
      #define MY_SIGNING_ATSHA204
      #define MY_SIGNING_ATSHA204_PIN A3
      #define MY_SIGNING_REQUEST_SIGNATURES
      #define MY_SIGNING_WEAK_SECURITY 
      
      // Enable serial gateway
      #define MY_GATEWAY_SERIAL
      
      #include <MySensors.h>
      
      void setup()
      {
          // Setup locally attached sensors
      }
      
      void presentation()
      {
          // Present locally attached sensors
      }
      
      void loop()
      {
          // Send locally attached sensor data here
      }
      
      ⸮S[0;255;3;0;9;0 MCO:BGN:INIT GW,CP=RPNGAA--,FQ=16,REL=255,VER=2.3.2
      0;255;3;0;9;108 TSM:INIT
      0;255;3;0;9;111 TSF:WUR:MS=0
      0;255;3;0;9;114 TSM:INIT:TSP OK
      0;255;3;0;9;116 TSM:INIT:GW MODE
      0;255;3;0;9;119 TSM:READY:ID=0,PAR=0,DIS=0
      0;255;3;0;9;123 MCO:REG:NOT NEEDED
      0;255;3;0;14;Gateway startup complete.
      0;255;0;0;18;2.3.2
      0;255;3;0;9;128 MCO:BGN:STP
      0;255;3;0;9;135 MCO:BGN:INIT OK,TSP=1
      0;255;3;0;9;138 TSM:READY:NWD REQ
      0;255;3;0;9;145 ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
      

      IMG_20200730_172146.jpg

      But with SofSPI engaged - not working-

      0;255;3;0;9;0 MCO:BGN:INIT GW,CP=RPNGAA--,FQ=16,REL=255,VER=2.3.2
      0;255;3;0;9;0 MCO:BGN:INIT GW,CP=RPNGAA--,FQ=16,REL=255,VER=2.3.2
      0;255;3;0;9;277 TSM:INIT
      0;255;3;0;9;279 TSF:WUR:MS=0
      0;255;3;0;9;282 !TSM:INIT:TSP FAIL
      0;255;3;0;9;285 TSM:FAIL:CNT=1
      0;255;3;0;9;288 TSM:FAIL:DIS
      0;255;3;0;9;290 TSF:TDI:TSL
      
      • Continuity on all logic level converters are OK
      • Not much traffic at all from the UNO in SPI. I guess the intial contact with the radio is faulty so thats why.

      It must be either connection Uno > Logic Level Shifter > Radio, code / defines or softwareSPI not working.

      sundberg84S 1 Reply Last reply
      0
      • sundberg84S sundberg84

        @Nick-Willis - great to hear.
        By using dupont cables and "normal pinout" for RFM radio i now also get the new driver to work thanks to your input.

        #include <SPI.h>
        
        // Enable debug prints to serial monitor
        #define MY_DEBUG
        
        // Enable and select radio type attached
        
        #define MY_RADIO_RFM69
        #define MY_RFM69_NEW_DRIVER
        #define MY_RFM69_FREQUENCY RFM69_433MHZ // Set your frequency here
        #define MY_IS_RFM69HW
        
        //#define MY_SOFTSPI
        //#define MY_SOFT_SPI_SCK_PIN A0
        //#define MY_SOFT_SPI_MOSI_PIN A1
        //#define MY_SOFT_SPI_MISO_PIN A2
        
        //#ifndef MY_RF24_CE_PIN
        //#define MY_RF24_CE_PIN 5
        //#endif
        //#ifndef MY_RF24_CS_PIN
        //#define MY_RF24_CS_PIN 6
        //#endif
        
        #define MY_SIGNING_ATSHA204
        #define MY_SIGNING_ATSHA204_PIN A3
        #define MY_SIGNING_REQUEST_SIGNATURES
        #define MY_SIGNING_WEAK_SECURITY 
        
        // Enable serial gateway
        #define MY_GATEWAY_SERIAL
        
        #include <MySensors.h>
        
        void setup()
        {
            // Setup locally attached sensors
        }
        
        void presentation()
        {
            // Present locally attached sensors
        }
        
        void loop()
        {
            // Send locally attached sensor data here
        }
        
        ⸮S[0;255;3;0;9;0 MCO:BGN:INIT GW,CP=RPNGAA--,FQ=16,REL=255,VER=2.3.2
        0;255;3;0;9;108 TSM:INIT
        0;255;3;0;9;111 TSF:WUR:MS=0
        0;255;3;0;9;114 TSM:INIT:TSP OK
        0;255;3;0;9;116 TSM:INIT:GW MODE
        0;255;3;0;9;119 TSM:READY:ID=0,PAR=0,DIS=0
        0;255;3;0;9;123 MCO:REG:NOT NEEDED
        0;255;3;0;14;Gateway startup complete.
        0;255;0;0;18;2.3.2
        0;255;3;0;9;128 MCO:BGN:STP
        0;255;3;0;9;135 MCO:BGN:INIT OK,TSP=1
        0;255;3;0;9;138 TSM:READY:NWD REQ
        0;255;3;0;9;145 ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
        

        IMG_20200730_172146.jpg

        But with SofSPI engaged - not working-

        0;255;3;0;9;0 MCO:BGN:INIT GW,CP=RPNGAA--,FQ=16,REL=255,VER=2.3.2
        0;255;3;0;9;0 MCO:BGN:INIT GW,CP=RPNGAA--,FQ=16,REL=255,VER=2.3.2
        0;255;3;0;9;277 TSM:INIT
        0;255;3;0;9;279 TSF:WUR:MS=0
        0;255;3;0;9;282 !TSM:INIT:TSP FAIL
        0;255;3;0;9;285 TSM:FAIL:CNT=1
        0;255;3;0;9;288 TSM:FAIL:DIS
        0;255;3;0;9;290 TSF:TDI:TSL
        
        • Continuity on all logic level converters are OK
        • Not much traffic at all from the UNO in SPI. I guess the intial contact with the radio is faulty so thats why.

        It must be either connection Uno > Logic Level Shifter > Radio, code / defines or softwareSPI not working.

        sundberg84S Offline
        sundberg84S Offline
        sundberg84
        Hardware Contributor
        wrote on last edited by sundberg84
        #21

        I have now tested all SPI lines and its logic level converter individually.
        To be absolutely sure the hardware worked, I desoldered the radio and wrote a arduino program sending 5v in 5 sek over the same sofwareSPI lines and 0V over 5 sek - all behaved correctly, 3.3v and 0V.

        I also swapped radio, but same same...

        Not really sure how to proceed. I need to get the softwareSPI working or else I cant use it as a ethernet gateway.

        Is there someone here that got RFM gateway working with softwareSPI?
        I dont think its the hardware anymore...
        Code:

        #include <SPI.h>
        
        // Enable debug prints to serial monitor
        #define MY_DEBUG
        
        // Enable and select radio type attached
        
        #define MY_RADIO_RFM69
        #define MY_RFM69_NEW_DRIVER
        #define MY_RFM69_FREQUENCY RFM69_433MHZ // Set your frequency here
        //#define MY_IS_RFM69HW
        
        #define MY_SOFTSPI
        #define MY_SOFT_SPI_SCK_PIN 14
        #define MY_SOFT_SPI_MISO_PIN 16
        #define MY_SOFT_SPI_MOSI_PIN 15
        
        #define MY_RFM69_CS_PIN 6
        #define MY_RFM69_IRQ_PIN 2
        
        #define MY_SIGNING_ATSHA204
        #define MY_SIGNING_ATSHA204_PIN A3
        #define MY_SIGNING_REQUEST_SIGNATURES
        #define MY_SIGNING_WEAK_SECURITY 
        
        // Enable serial gateway
        #define MY_GATEWAY_SERIAL
        
        #include <MySensors.h>
        
        void setup()
        {
            // Setup locally attached sensors
        }
        
        void presentation()
        {
            // Present locally attached sensors
        }
        
        void loop()
        {
            // Send locally attached sensor data here
        }
        
        sundberg84S 1 Reply Last reply
        0
        • sundberg84S sundberg84

          I have now tested all SPI lines and its logic level converter individually.
          To be absolutely sure the hardware worked, I desoldered the radio and wrote a arduino program sending 5v in 5 sek over the same sofwareSPI lines and 0V over 5 sek - all behaved correctly, 3.3v and 0V.

          I also swapped radio, but same same...

          Not really sure how to proceed. I need to get the softwareSPI working or else I cant use it as a ethernet gateway.

          Is there someone here that got RFM gateway working with softwareSPI?
          I dont think its the hardware anymore...
          Code:

          #include <SPI.h>
          
          // Enable debug prints to serial monitor
          #define MY_DEBUG
          
          // Enable and select radio type attached
          
          #define MY_RADIO_RFM69
          #define MY_RFM69_NEW_DRIVER
          #define MY_RFM69_FREQUENCY RFM69_433MHZ // Set your frequency here
          //#define MY_IS_RFM69HW
          
          #define MY_SOFTSPI
          #define MY_SOFT_SPI_SCK_PIN 14
          #define MY_SOFT_SPI_MISO_PIN 16
          #define MY_SOFT_SPI_MOSI_PIN 15
          
          #define MY_RFM69_CS_PIN 6
          #define MY_RFM69_IRQ_PIN 2
          
          #define MY_SIGNING_ATSHA204
          #define MY_SIGNING_ATSHA204_PIN A3
          #define MY_SIGNING_REQUEST_SIGNATURES
          #define MY_SIGNING_WEAK_SECURITY 
          
          // Enable serial gateway
          #define MY_GATEWAY_SERIAL
          
          #include <MySensors.h>
          
          void setup()
          {
              // Setup locally attached sensors
          }
          
          void presentation()
          {
              // Present locally attached sensors
          }
          
          void loop()
          {
              // Send locally attached sensor data here
          }
          
          sundberg84S Offline
          sundberg84S Offline
          sundberg84
          Hardware Contributor
          wrote on last edited by sundberg84
          #22

          What im noticing is that when I connect the radio, the IRQ line on D2 is 1.0v when high and not 3.3v. Anyone who knows this is normal behaviour? Same with two different (and comfirmed working) radios. SPI logic level converter is comfirmed working and changed with same behavoir.

          Edit > This is the same using normal pins and does not have anything to do with SPI. It works when not using softSPI and IRQ has this low voltage...

          1 Reply Last reply
          0
          • sundberg84S Offline
            sundberg84S Offline
            sundberg84
            Hardware Contributor
            wrote on last edited by sundberg84
            #23
            This post is deleted!
            1 Reply Last reply
            0
            • sundberg84S Offline
              sundberg84S Offline
              sundberg84
              Hardware Contributor
              wrote on last edited by
              #24

              Anyone good with SPI channel analysis?

              Hardware SPI (Looks great):
              3de4dd2e-0577-48d3-9d1c-10742605ee74-image.png

              Software SPI (Same setup, just changed code and pins).
              a5279a91-af78-4d0f-966d-622c03c377aa-image.png

              In the first, I can clearly see MOSI and MISO communicating on 5/6. Enable on 7.
              Software SPI does not make any sense.

              H 1 Reply Last reply
              0
              • sundberg84S sundberg84

                Anyone good with SPI channel analysis?

                Hardware SPI (Looks great):
                3de4dd2e-0577-48d3-9d1c-10742605ee74-image.png

                Software SPI (Same setup, just changed code and pins).
                a5279a91-af78-4d0f-966d-622c03c377aa-image.png

                In the first, I can clearly see MOSI and MISO communicating on 5/6. Enable on 7.
                Software SPI does not make any sense.

                H Offline
                H Offline
                hlehoux
                wrote on last edited by
                #25

                @sundberg84 Hello, coming back to this RFM GW, so i will try it

                I have soldered between the two 3.3v rails , i confirm now i have 3.3v on the RFM module

                I will test with the softwareSPIs and report.

                I will give a try to your "quickfix" for hardwire : could you please explain or post a photo of what needs to be done for the hardwiring ?

                Thank you!
                127920636_327265158718561_5607234112308800002_n.jpg

                sundberg84S 1 Reply Last reply
                0
                • H hlehoux

                  @sundberg84 Hello, coming back to this RFM GW, so i will try it

                  I have soldered between the two 3.3v rails , i confirm now i have 3.3v on the RFM module

                  I will test with the softwareSPIs and report.

                  I will give a try to your "quickfix" for hardwire : could you please explain or post a photo of what needs to be done for the hardwiring ?

                  Thank you!
                  127920636_327265158718561_5607234112308800002_n.jpg

                  sundberg84S Offline
                  sundberg84S Offline
                  sundberg84
                  Hardware Contributor
                  wrote on last edited by
                  #26

                  @hlehoux My quickfix means you cant use the ethernet shield.
                  All I did was solder with wires to the normal pins and made it a serial gateway.

                  H 1 Reply Last reply
                  0
                  • sundberg84S sundberg84

                    @hlehoux My quickfix means you cant use the ethernet shield.
                    All I did was solder with wires to the normal pins and made it a serial gateway.

                    H Offline
                    H Offline
                    hlehoux
                    wrote on last edited by hlehoux
                    #27

                    @sundberg84 thank you.

                    i have ordered the components such as BSS138 so i will test when they arrive.I don't need ethernet

                    1 Reply Last reply
                    0
                    • H Offline
                      H Offline
                      hlehoux
                      wrote on last edited by
                      #28

                      Hello, i'm making some progress; received the components this week.

                      Unfortunately it doesn't work... yet
                      For now i have SanityCheck failure in to logs.

                      I'm afraid my soldering of all these little components is not good. I tested with a multimeter the 4 pins and i have continuity on one of them but maybe not the others so i guess i will have to try remelting all these small regulators ???

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


                      14

                      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