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.
  • Dan S.D Offline
    Dan S.D Offline
    Dan S.
    Hero Member
    wrote on last edited by
    #5

    Might want to check:http://forum.mysensors.org/topic/466/ethernet-gateway-problem.
    I had the same problem but after addressing SPIO and radio problems it's been rock steady over a week now. Had to use separate power supply for the antenna version.

    1 Reply Last reply
    0
    • Dan S.D Offline
      Dan S.D Offline
      Dan S.
      Hero Member
      wrote on last edited by
      #6

      Oh, and make sure you use 1.4.1 library.

      BulldogLowellB 1 Reply Last reply
      0
      • Dan S.D Dan S.

        Oh, and make sure you use 1.4.1 library.

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

        @Dan-S.

        Thanks, I didn't see any announcement re: 1.4.1, but it seems a few of the library files were indeed updated.

        I'm gong to mess about with the lower power radio, but can you tell me how you powered your radio?

        Also, what sketch did you end up with for the gateway with software SPI?

        THANKS!!

        1 Reply Last reply
        0
        • Dan S.D Offline
          Dan S.D Offline
          Dan S.
          Hero Member
          wrote on last edited by
          #8

          I used a standard (cell phone type) 5V power supply and with the AMS1117 (listed in hardware) to knock it down to the 3.3V required by the radio. If your gateway (or sensor) works for a while and then stops and then will start again when plugged back in/rebooted you can almost bet it's a radio power problem (if you are already using soft SPI for your gateway).

          Use the latest sketch from the 1.4.1 library for the gateway. The soft SPI stuff is included in the latest library. I just needs to be turned on by some include statement changes in the gateway and RF24_config.h. It requires changes in the radio wiring to the arduino also. I used the instructions provided by Anticimex that are contained in the link I posted above. It's a long thread but the instructions are in there. Probably needs to be broken out as a separate how to posting.

          BulldogLowellB 1 Reply Last reply
          0
          • Dan S.D Dan S.

            I used a standard (cell phone type) 5V power supply and with the AMS1117 (listed in hardware) to knock it down to the 3.3V required by the radio. If your gateway (or sensor) works for a while and then stops and then will start again when plugged back in/rebooted you can almost bet it's a radio power problem (if you are already using soft SPI for your gateway).

            Use the latest sketch from the 1.4.1 library for the gateway. The soft SPI stuff is included in the latest library. I just needs to be turned on by some include statement changes in the gateway and RF24_config.h. It requires changes in the radio wiring to the arduino also. I used the instructions provided by Anticimex that are contained in the link I posted above. It's a long thread but the instructions are in there. Probably needs to be broken out as a separate how to posting.

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

            @Dan-S. said:

            I used a standard (cell phone type) 5V power supply and with the AMS1117 (listed in hardware) to knock it down to the 3.3V required by the radio. If your gateway (or sensor) works for a while and then stops and then will start again when plugged back in/rebooted you can almost bet it's a radio power problem (if you are already using soft SPI for your gateway).

            Use the latest sketch from the 1.4.1 library for the gateway. The soft SPI stuff is included in the latest library. I just needs to be turned on by some include statement changes in the gateway and RF24_config.h. It requires changes in the radio wiring to the arduino also. I used the instructions provided by Anticimex that are contained in the link I posted above. It's a long thread but the instructions are in there. Probably needs to be broken out as a separate how to posting.

            Yeah,

            The thread is so long, and after reading through it a few times, it is not possible for me to understand what I need to do to get this working.

            I am using the latest library with the Ethernet Gateway sketch on github... but still not working

            Screen Shot 2014-11-06 at 6.56.04 AM.png

            Here is a photo of my rig, separating the power supply for the radio.

            FullSizeRender.jpg

            Dan S.D 1 Reply Last reply
            0
            • korttomaK Offline
              korttomaK Offline
              korttoma
              Hero Member
              wrote on last edited by
              #10

              I agree with @BulldogLowell . The description that @Anticimex did in the other thread is not easy to understand, at least I could not either. A write-up from someone that has actually done it would be greatly appreciated.

              • Tomas
              AnticimexA 1 Reply Last reply
              1
              • korttomaK korttoma

                I agree with @BulldogLowell . The description that @Anticimex did in the other thread is not easy to understand, at least I could not either. A write-up from someone that has actually done it would be greatly appreciated.

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

                @korttoma what is unclear?

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

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

                  @korttoma

                  exit Arduino ide, download latest Master library 1.4.1

                  Patch file RF24_config.h (xxxx\MySensors\utility) to enable softspi,

                  uncomment (remove //) #define SOFTSPI

                  and change pin numbers as below:

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

                  Connecto radio and gateway as per instructions for ethernet gateway except MISO, MOSI and SCK.
                  These connect as below
                  radio MOSI to arduino A0,
                  radio MISO to arduino A1,
                  radio SCK to arduino A2.

                  start arudino ide 1.5.8, open Ethernet Gateway sketch and amend/add below lines

                  add this line: #include <DigitalIO.h>

                  comment UIPEthernet.h (//#include <UIPEthernet.h>)

                  uncomment Ethernet.h (#include <Ethernet.h>)

                  and choose IP address

                  Dan S.D BulldogLowellB 2 Replies Last reply
                  2
                  • N niccodemi

                    @korttoma

                    exit Arduino ide, download latest Master library 1.4.1

                    Patch file RF24_config.h (xxxx\MySensors\utility) to enable softspi,

                    uncomment (remove //) #define SOFTSPI

                    and change pin numbers as below:

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

                    Connecto radio and gateway as per instructions for ethernet gateway except MISO, MOSI and SCK.
                    These connect as below
                    radio MOSI to arduino A0,
                    radio MISO to arduino A1,
                    radio SCK to arduino A2.

                    start arudino ide 1.5.8, open Ethernet Gateway sketch and amend/add below lines

                    add this line: #include <DigitalIO.h>

                    comment UIPEthernet.h (//#include <UIPEthernet.h>)

                    uncomment Ethernet.h (#include <Ethernet.h>)

                    and choose IP address

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

                    @niccodemi Very good description of what needs to be done. Only addition I would make is that you have to undo the changes you made other than to the gateway sketch when you go back to creating sensors. May be just as easy to reload the library to do that.

                    1 Reply Last reply
                    1
                    • BulldogLowellB BulldogLowell

                      @Dan-S. said:

                      I used a standard (cell phone type) 5V power supply and with the AMS1117 (listed in hardware) to knock it down to the 3.3V required by the radio. If your gateway (or sensor) works for a while and then stops and then will start again when plugged back in/rebooted you can almost bet it's a radio power problem (if you are already using soft SPI for your gateway).

                      Use the latest sketch from the 1.4.1 library for the gateway. The soft SPI stuff is included in the latest library. I just needs to be turned on by some include statement changes in the gateway and RF24_config.h. It requires changes in the radio wiring to the arduino also. I used the instructions provided by Anticimex that are contained in the link I posted above. It's a long thread but the instructions are in there. Probably needs to be broken out as a separate how to posting.

                      Yeah,

                      The thread is so long, and after reading through it a few times, it is not possible for me to understand what I need to do to get this working.

                      I am using the latest library with the Ethernet Gateway sketch on github... but still not working

                      Screen Shot 2014-11-06 at 6.56.04 AM.png

                      Here is a photo of my rig, separating the power supply for the radio.

                      FullSizeRender.jpg

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

                      @BulldogLowell You are not using the antenna version but since I am, I used an entirely separate 5 volt wall wart supply to power the radio through the AMS117--did not go through the UNO power as it looks like you did in the pix. Just need to make sure that all the grounds are common if you do like I did, i.e. connect the ground from the separate supply to the UNO/shield ground in addition to the AMS117 and radio ground.

                      BulldogLowellB 1 Reply Last reply
                      0
                      • N niccodemi

                        @korttoma

                        exit Arduino ide, download latest Master library 1.4.1

                        Patch file RF24_config.h (xxxx\MySensors\utility) to enable softspi,

                        uncomment (remove //) #define SOFTSPI

                        and change pin numbers as below:

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

                        Connecto radio and gateway as per instructions for ethernet gateway except MISO, MOSI and SCK.
                        These connect as below
                        radio MOSI to arduino A0,
                        radio MISO to arduino A1,
                        radio SCK to arduino A2.

                        start arudino ide 1.5.8, open Ethernet Gateway sketch and amend/add below lines

                        add this line: #include <DigitalIO.h>

                        comment UIPEthernet.h (//#include <UIPEthernet.h>)

                        uncomment Ethernet.h (#include <Ethernet.h>)

                        and choose IP address

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

                        @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 1 Reply Last reply
                        0
                        • Dan S.D Dan S.

                          @BulldogLowell You are not using the antenna version but since I am, I used an entirely separate 5 volt wall wart supply to power the radio through the AMS117--did not go through the UNO power as it looks like you did in the pix. Just need to make sure that all the grounds are common if you do like I did, i.e. connect the ground from the separate supply to the UNO/shield ground in addition to the AMS117 and radio ground.

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

                          @Dan-S.

                          Apart from my question above, my only concern is how much power. It occurs to me that the radios attached to my sensor nodes NEVER have this problem, so it make me think that he Ethernet Shield consumes too much power... we got that. Is it the consensus that the power that Uno can provide is not enough to power the Radio and the Ethernet shield?

                          Thanks for the assistance, it is appreciated. Hope to get there soon!

                          1 Reply Last reply
                          0
                          • 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
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          9

                                          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