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. Gateway Uno R3 + W5100 Ethernet Shield for Uno not working.

Gateway Uno R3 + W5100 Ethernet Shield for Uno not working.

Scheduled Pinned Locked Moved Troubleshooting
34 Posts 3 Posters 221 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.
  • pw44P pw44

    @Yveaux

    @Yveaux said in Gateway Uno R3 + W5100 Ethernet Shield for Uno not working.:

    @pw44 why are spi clk/miso/mosi connected to A0.. 2 ¿

    as described in https://www.mysensors.org/build/ethernet_gateway

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

    @pw44 said in Gateway Uno R3 + W5100 Ethernet Shield for Uno not working.:

    as described in https://www.mysensors.org/build/ethernet_gateway

    Yes, but the sketch just below it has

    //#define MY_W5100_SPI_EN 4
    

    You actually have enabled this line, which causes the arduino to use hardware spi. And hardware spi uses different pins for clk/miso/mosi.
    You wired for software spi, so comment that line as in the example.

    http://yveaux.blogspot.nl

    pw44P 2 Replies Last reply
    1
    • YveauxY Yveaux

      @pw44 said in Gateway Uno R3 + W5100 Ethernet Shield for Uno not working.:

      as described in https://www.mysensors.org/build/ethernet_gateway

      Yes, but the sketch just below it has

      //#define MY_W5100_SPI_EN 4
      

      You actually have enabled this line, which causes the arduino to use hardware spi. And hardware spi uses different pins for clk/miso/mosi.
      You wired for software spi, so comment that line as in the example.

      pw44P Offline
      pw44P Offline
      pw44
      wrote on last edited by
      #26

      @Yveaux

      thanks man, you're right. commenting out

      //#define MY_W5100_SPI_EN 4
      

      solved it.

      now, debug shows:

      0 MCO:BGN:INIT GW,CP=RNNGA---,FQ=16,REL=255,VER=2.3.2
      4 MCO:BGN:BFR
      6 TSM:INIT
      7 TSF:WUR:MS=0
      13 TSM:INIT:TSP OK
      15 TSM:INIT:GW MODE
      16 TSM:READY:ID=0,PAR=0,DIS=0
      19 MCO:REG:NOT NEEDED
      696 GWT:TIN:IP=192.168.80.9
      1699 MCO:BGN:STP
      1701 MCO:BGN:INIT OK,TSP=1
      1703 TSM:READY:NWD REQ
      1709 ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
      

      just another question: does the 3.3v line from Uno R# enough power to handle the RF24 radio?

      Thx in advance!

      1 Reply Last reply
      0
      • YveauxY Yveaux

        @pw44 said in Gateway Uno R3 + W5100 Ethernet Shield for Uno not working.:

        as described in https://www.mysensors.org/build/ethernet_gateway

        Yes, but the sketch just below it has

        //#define MY_W5100_SPI_EN 4
        

        You actually have enabled this line, which causes the arduino to use hardware spi. And hardware spi uses different pins for clk/miso/mosi.
        You wired for software spi, so comment that line as in the example.

        pw44P Offline
        pw44P Offline
        pw44
        wrote on last edited by
        #27

        @Yveaux and regardin IRQ from RF24, is it necessary to connect to pin2 of UNO R3?

        mfalkviddM 1 Reply Last reply
        0
        • pw44P pw44

          @Yveaux and regardin IRQ from RF24, is it necessary to connect to pin2 of UNO R3?

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

          @pw44 no

          The IRQ pin is only required to be connected if the MY_RX_MESSAGE_BUFFER_FEATURE is defined in the sketch. Using this feature is recommended for high traffic nodes or gateways. Enabling it will result in better throughput but will require some additional memory to keep the message in memory before processing.

          More information: https://www.mysensors.org/build/connect_radio and MY_RX_MESSAGE_BUFFER_FEATURE

          pw44P 1 Reply Last reply
          0
          • mfalkviddM mfalkvidd

            @pw44 no

            The IRQ pin is only required to be connected if the MY_RX_MESSAGE_BUFFER_FEATURE is defined in the sketch. Using this feature is recommended for high traffic nodes or gateways. Enabling it will result in better throughput but will require some additional memory to keep the message in memory before processing.

            More information: https://www.mysensors.org/build/connect_radio and MY_RX_MESSAGE_BUFFER_FEATURE

            pw44P Offline
            pw44P Offline
            pw44
            wrote on last edited by
            #29

            @mfalkvidd
            thank for the answer.

            i guess the UNO R3 is capable to do it, so, i tried

            #define MY_RX_MESSAGE_BUFFER_FEATURE
            #define MY_RF24_IRQ_PIN 3
            

            and got the following error:

            #error RF24 IRQ usage cannot be used with Soft SPI
            

            Any hint? The idea is having something like 80 nodes when all is done.

            Thx

            mfalkviddM 1 Reply Last reply
            0
            • pw44P pw44

              @mfalkvidd
              thank for the answer.

              i guess the UNO R3 is capable to do it, so, i tried

              #define MY_RX_MESSAGE_BUFFER_FEATURE
              #define MY_RF24_IRQ_PIN 3
              

              and got the following error:

              #error RF24 IRQ usage cannot be used with Soft SPI
              

              Any hint? The idea is having something like 80 nodes when all is done.

              Thx

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

              @pw44 unless your nodes send very frequently, you probably don’t need irq.

              If you need irq, you’ll need to use hardware spi.

              pw44P 1 Reply Last reply
              0
              • mfalkviddM mfalkvidd

                @pw44 unless your nodes send very frequently, you probably don’t need irq.

                If you need irq, you’ll need to use hardware spi.

                pw44P Offline
                pw44P Offline
                pw44
                wrote on last edited by
                #31

                @mfalkvidd said in Gateway Uno R3 + W5100 Ethernet Shield for Uno not working.:

                @pw44 unless your nodes send very frequently, you probably don’t need irq.

                If you need irq, you’ll need to use hardware spi.

                Ok, but just in case, how to use the hardware spi in this configurartion (sorry if it seams stupid, but i'm just a very beginner on this).

                Thx for the understanding and also for educating me,.

                mfalkviddM 1 Reply Last reply
                0
                • pw44P pw44

                  @mfalkvidd said in Gateway Uno R3 + W5100 Ethernet Shield for Uno not working.:

                  @pw44 unless your nodes send very frequently, you probably don’t need irq.

                  If you need irq, you’ll need to use hardware spi.

                  Ok, but just in case, how to use the hardware spi in this configurartion (sorry if it seams stupid, but i'm just a very beginner on this).

                  Thx for the understanding and also for educating me,.

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

                  @pw44 I don’t think anyone has managed to make the w5100 work on the same spi as nrf24.

                  pw44P 1 Reply Last reply
                  0
                  • mfalkviddM mfalkvidd

                    @pw44 I don’t think anyone has managed to make the w5100 work on the same spi as nrf24.

                    pw44P Offline
                    pw44P Offline
                    pw44
                    wrote on last edited by
                    #33

                    @mfalkvidd

                    ok, i was curious as i didn't find how to.

                    Anyway, is it possible to have the "RF24 IRQ" used as soft?

                    YveauxY 1 Reply Last reply
                    0
                    • pw44P pw44

                      @mfalkvidd

                      ok, i was curious as i didn't find how to.

                      Anyway, is it possible to have the "RF24 IRQ" used as soft?

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

                      @pw44 no, mysensors doesn't need it for soft spi and won't use it

                      http://yveaux.blogspot.nl

                      1 Reply Last reply
                      1
                      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.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