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. Development
  3. RFM69 support on ethernet gateway

RFM69 support on ethernet gateway

Scheduled Pinned Locked Moved Development
11 Posts 5 Posters 4.6k 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
    mrmin24
    wrote on last edited by
    #2

    As far as I can tell, this is because softspi has not been implemented for the Rfm69. This means when using wiznet ethernet shield, the library cannot initialise the radio and hangs up. Bug report logged

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrmin24
      wrote on last edited by
      #3

      OK, so I have tried implementing the SOFTSPI, but have not had any luck.

      I did the following:

      Remove any and all things related to RF24 as I won't be using it.
      //////////////////////////////////////////////
      Changed MyConfig.h to include:

      #define SOFTSPI
      #ifdef SOFTSPI
      // Define the soft SPI pins used for RF69 radio
      const uint8_t SOFT_SPI_MISO_PIN = 16;
      const uint8_t SOFT_SPI_MOSI_PIN = 15;
      const uint8_t SOFT_SPI_SCK_PIN = 14;
      const uint8_t SPI_MODE = 0;
      #define RF69_SPI_CS 6 // SS is the SPI slave select pin, for instance D10 on atmega328

      #else

      #define RF69_SPI_CS SS//SS // SS is the SPI slave select pin, for instance D10 on atmega328

      #endif
      //////////////////////////////////////////////////
      Change RF69.h to include:

      #define RF69_MAX_DATA_LEN 61

      #if defined SOFTSPI
      #include <DigitalIO.h>
      #else
      #include <SPI.h>
      #endif

      -> lower down

      class RFM69 {

      private:
      #ifdef SOFTSPI
      SoftSPI<SOFT_SPI_MISO_PIN, SOFT_SPI_MOSI_PIN, SOFT_SPI_SCK_PIN,SPI_MODE> spi;
      #define _SPI spi
      #else
      #define _SPI SPI
      #endif

      ////////////////////////////
      changed RFM69.cpp:

      • changed all SPI.xxx calls in file to _SPI.xxx
        ////////////////////////////////////////

      Everything works if I NOT #define SoftSPI and connect radio to normal SPI pins without ethernet shield.
      When I #define softspi and move radio to defined pins, the radio does not initialise.

      Maybe one of you clever people can help.

      Thanks

      1 Reply Last reply
      0
      • hekH Offline
        hekH Offline
        hek
        Admin
        wrote on last edited by
        #4

        Did you include MyConfig in your RF69.h

        M 1 Reply Last reply
        0
        • hekH hek

          Did you include MyConfig in your RF69.h

          M Offline
          M Offline
          mrmin24
          wrote on last edited by
          #5

          @hek yes I did

          1 Reply Last reply
          0
          • carlierdC Offline
            carlierdC Offline
            carlierd
            wrote on last edited by
            #6

            Hello mrmin24, did you succeed with the Ethernet gateway and RFM69 ?
            Thanks,

            David.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              ansh
              wrote on last edited by
              #7

              Hello mrmin24, did you succeed with the Ethernet gateway and RFM69 ?

              1 Reply Last reply
              0
              • carlierdC Offline
                carlierdC Offline
                carlierd
                wrote on last edited by
                #8

                Hello ansh, I failed and finally choose the serial gateway !

                1 Reply Last reply
                0
                • TD22057T Offline
                  TD22057T Offline
                  TD22057
                  Hardware Contributor
                  wrote on last edited by
                  #9

                  See this thread: http://forum.mysensors.org/topic/1810/no-softspi-support-for-rfm69/2

                  There is a post in there w/ a github repository to a SoftSPI version of the RFM69 code posted by @gieemek. There is also some links I posted there to (especially this one: https://lowpowerlab.com/forum/index.php/topic,838.0) where the LowPowerLab folks have implemented SoftSPI support. It might be worth trying to integrate their updated code into the MySensors.

                  1 Reply Last reply
                  0
                  • hekH Offline
                    hekH Offline
                    hek
                    Admin
                    wrote on last edited by
                    #10

                    Yes, would be great if someone could help out with a SoftSPI patch/PR for the dev-branch.

                    1 Reply Last reply
                    0
                    • carlierdC Offline
                      carlierdC Offline
                      carlierd
                      wrote on last edited by
                      #11

                      I tried the SoftSPI without success !! As I am MySensors newbie I decided to get more experience on setting my network (Some nodes with serial gateway connected to Jeedom using the current branch) and then I will come back with the dev branch.
                      I am not to far as the serial gateway is working fine with RFM69 and nodes are working with Arduino bootloader.

                      @hek: I think I tried everithing (3 differrent lib for softspi or hard spi) but the debug mode need to be improved to understand where is the problem. It's just what I think, I could be wrong ;)

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


                      19

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.0k

                      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