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] Problems with Ethernet Gateway (Arduino Ethernet Shield)

[SOLVED] Problems with Ethernet Gateway (Arduino Ethernet Shield)

Scheduled Pinned Locked Moved Troubleshooting
67 Posts 12 Posters 34.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.
  • BulldogLowellB BulldogLowell

    @niccodemi said:

    const uint8_t SOFT_SPI_MISO_PIN = 15;
    const uint8_t SOFT_SPI_MOSI_PIN = 14;
    const uint8_t SOFT_SPI_SCK_PIN = 16;

    and these are the correct pinouts for my Arduino Ethernet Shield, correct?

    This is moving the SPI communication between the Uno and the shield off to another set of pins, and we are leaving the radio pins on hardware SPI?

    Thanks!!!!

    Dan S.D Offline
    Dan S.D Offline
    Dan S.
    Hero Member
    wrote on last edited by
    #17

    @BulldogLowell Once you sent the pin definitions in RF24_config.h as you indicated you connect the MOSI, MISO and SCK pins of the radio to A0,A1 and A2 on the Ethernet shield/UNO as niccodemi indicated. The other radio pins remain connected as they were originally.

    1 Reply Last reply
    1
    • BulldogLowellB Offline
      BulldogLowellB Offline
      BulldogLowell
      Contest Winner
      wrote on last edited by
      #18

      right, completely understood now. i updated my IDE, made all the edits, changed the pins and loaded up my rig.

      fingers crossed.

      Thanks for everyone's help!

      BulldogLowellB 1 Reply Last reply
      0
      • BulldogLowellB BulldogLowell

        right, completely understood now. i updated my IDE, made all the edits, changed the pins and loaded up my rig.

        fingers crossed.

        Thanks for everyone's help!

        BulldogLowellB Offline
        BulldogLowellB Offline
        BulldogLowell
        Contest Winner
        wrote on last edited by
        #19

        @BulldogLowell

        OK... Working fine :)

        THANKS to everyone who assisted!!!

        BulldogLowellB 1 Reply Last reply
        0
        • BulldogLowellB BulldogLowell

          @BulldogLowell

          OK... Working fine :)

          THANKS to everyone who assisted!!!

          BulldogLowellB Offline
          BulldogLowellB Offline
          BulldogLowell
          Contest Winner
          wrote on last edited by
          #20

          @BulldogLowell said:

          @BulldogLowell

          OK... Working fine :)

          THANKS to everyone who assisted!!!

          UPDATE: 12 hours and working perfectly!

          1 Reply Last reply
          0
          • korttomaK Offline
            korttomaK Offline
            korttoma
            Hero Member
            wrote on last edited by
            #21

            Thanks @niccodemi for the detailed how to. Now to only thing unclear to me is if this can be applied on the Ethernet board I have or should I order a new one? I have built a Ethernet GW with a Pro mini and that Ethernet board but I just have not found time to take it in to use and then there was all this about the SPI issue that made me push the task ahead of me.

            • Tomas
            1 Reply Last reply
            0
            • N Offline
              N Offline
              niccodemi
              wrote on last edited by
              #22

              @korttoma , I don't see why it shouldn't work with your board. It doesn't cost you anything to try and report back here how it went.

              1 Reply Last reply
              0
              • N Offline
                N Offline
                niccodemi
                wrote on last edited by
                #23

                @BulldogLowell , are you using relay actuators with your ethernet gw?

                BulldogLowellB 1 Reply Last reply
                0
                • N niccodemi

                  @BulldogLowell , are you using relay actuators with your ethernet gw?

                  BulldogLowellB Offline
                  BulldogLowellB Offline
                  BulldogLowell
                  Contest Winner
                  wrote on last edited by
                  #24

                  @niccodemi

                  I'm not sure I know what you mean... Do you mean are some attached node used as relays?

                  Gateway still working perfectly...

                  1 Reply Last reply
                  0
                  • N Offline
                    N Offline
                    niccodemi
                    wrote on last edited by
                    #25

                    @BulldogLowell yes, node with relay.

                    BulldogLowellB 1 Reply Last reply
                    0
                    • N niccodemi

                      @BulldogLowell yes, node with relay.

                      BulldogLowellB Offline
                      BulldogLowellB Offline
                      BulldogLowell
                      Contest Winner
                      wrote on last edited by
                      #26

                      @niccodemi

                      I had... but converted it back to regular non-repeating node.

                      I had too much trouble with it, but that was before I had this stable Ethernet gateway.

                      1 Reply Last reply
                      0
                      • O Offline
                        O Offline
                        Opus40
                        wrote on last edited by
                        #27

                        Would Just like to say thank you to every one, this fixed my GW problems as well.

                        1 Reply Last reply
                        0
                        • korttomaK Offline
                          korttomaK Offline
                          korttoma
                          Hero Member
                          wrote on last edited by
                          #28

                          I was finally gona tackle my own Ethernet GW but I got stuck at the "0;0;3;0;9;check wires" issue.

                          I'we checked the wires a couple of times. Tried 4 different power supplies, rewired so that only the radio gets the 3.3v from the LM2937ET-3.3 regulator (arduino Pro mini 3.3 feed with 5v on the raw pin and Ethernet module also gets 5v since it has a AMS1117 onboard). I do have a 47uF cap close to the radio. Tried regular radio module and the PA-LNA module that I was planing on using.

                          The "check wires" is related to the radio module only right?

                          Guess I will have to go back to the breadboard to see if I can get it working.

                          • Tomas
                          1 Reply Last reply
                          0
                          • P Offline
                            P Offline
                            p0lar
                            wrote on last edited by
                            #29

                            Do we need to remove this Soft SPI mod to build sensors now?

                            hekH 1 Reply Last reply
                            0
                            • P p0lar

                              Do we need to remove this Soft SPI mod to build sensors now?

                              hekH Offline
                              hekH Offline
                              hek
                              Admin
                              wrote on last edited by
                              #30

                              @p0lar

                              For normal sensors you should probably run with the hardware SPI. So yes. disable it when gateway has been compiled and flashed.

                              P 1 Reply Last reply
                              0
                              • korttomaK Offline
                                korttomaK Offline
                                korttoma
                                Hero Member
                                wrote on last edited by korttoma
                                #31

                                I have now tried on a breadboard with the same result "0;0;3;0;9;check wires". Swapped out the Pro Mini to a Nano same result. My conclusion would be that the Ethernet board I have can just not be used.

                                eth.jpg

                                How I connected:
                                Ethernet board arduino pin
                                NSS/SS D10
                                MO/MO A0
                                MI/MI A1
                                SOK/CK A2
                                V+5 tried with 3.3v 5v and 9v
                                GND GND

                                The radio was connected according to this

                                I'm still gona try the none SOFTSPI setup if I get the same result. edit -> same result here

                                • Tomas
                                AnticimexA 1 Reply Last reply
                                0
                                • korttomaK korttoma

                                  I have now tried on a breadboard with the same result "0;0;3;0;9;check wires". Swapped out the Pro Mini to a Nano same result. My conclusion would be that the Ethernet board I have can just not be used.

                                  eth.jpg

                                  How I connected:
                                  Ethernet board arduino pin
                                  NSS/SS D10
                                  MO/MO A0
                                  MI/MI A1
                                  SOK/CK A2
                                  V+5 tried with 3.3v 5v and 9v
                                  GND GND

                                  The radio was connected according to this

                                  I'm still gona try the none SOFTSPI setup if I get the same result. edit -> same result here

                                  AnticimexA Offline
                                  AnticimexA Offline
                                  Anticimex
                                  Contest Winner
                                  wrote on last edited by
                                  #32

                                  @korttoma That W5100 module has no SPI_EN signal out on the pins, so you have to use soft SPI for it, or it will block the radio module. Or you can HW-patch the module to drive the inverse of the CS pin on the SPI_EN pin on the W5100 ASIC. If you instead does pull out SPI_EN to the Arduino you can use the config in the gateway sketch to handle the SPI_EN for you. I do this for my GW which has a W5100 module with SPI_EN available and it works a treat.

                                  Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                                  1 Reply Last reply
                                  0
                                  • korttomaK Offline
                                    korttomaK Offline
                                    korttoma
                                    Hero Member
                                    wrote on last edited by
                                    #33

                                    I tried to use the SOFT_SPI but I always get check wires. So it seems like there is also something else. Only time I managed to get the sketch running was with the none soft_spi setup and I had power disconnected from the Ethernet module during startup and connected it later.

                                    • Tomas
                                    AnticimexA 1 Reply Last reply
                                    0
                                    • korttomaK korttoma

                                      I tried to use the SOFT_SPI but I always get check wires. So it seems like there is also something else. Only time I managed to get the sketch running was with the none soft_spi setup and I had power disconnected from the Ethernet module during startup and connected it later.

                                      AnticimexA Offline
                                      AnticimexA Offline
                                      Anticimex
                                      Contest Winner
                                      wrote on last edited by
                                      #34

                                      @korttoma Sorry to be asking these probably stupid questions but have you checked that

                                      • all wires are properly connected, and in-line with the config in the software
                                      • the RF module is ok (tested multiple ones)
                                      • supply voltage is relatively free of noise (I have seen noice up to 1V in relative amplitude without proper decoupling on my breadboard)

                                      I am pretty sure you will never get the GW running on that module without either SOFT_SPI or a HW patch to it.
                                      To me it sounds like a good start would be to get to the point where you can get it running on SOFT_SPI without the W5100 "present". Just to establish that you can communicate with the RF module.
                                      If you can do it on HW SPI, then it should not be a problem with the RF module itself, more a config error for SOFT_SPI.

                                      Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                                      1 Reply Last reply
                                      0
                                      • korttomaK Offline
                                        korttomaK Offline
                                        korttoma
                                        Hero Member
                                        wrote on last edited by
                                        #35

                                        I we tried allot of different sources of power, this was the firs thing I did. I have a stupid question to. The radio connection are the same even if I use soft_spi right? Or should also the radio be connected to the 3 analog pins?

                                        • Tomas
                                        AnticimexA 1 Reply Last reply
                                        0
                                        • korttomaK korttoma

                                          I we tried allot of different sources of power, this was the firs thing I did. I have a stupid question to. The radio connection are the same even if I use soft_spi right? Or should also the radio be connected to the 3 analog pins?

                                          AnticimexA Offline
                                          AnticimexA Offline
                                          Anticimex
                                          Contest Winner
                                          wrote on last edited by
                                          #36

                                          @korttoma No, the whole point of using SOFT_SPI is that you use different pins. The reason is that the W5100 "hogs" the SPI interface, so if you cannot access SPI_EN on W5100 then you cannot share SPI pins with W5100.

                                          Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

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


                                          10

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 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