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.
  • M Mrlynx

    Is it possible to use soft SPI for ethernet module and keep the original wiring for radio module?

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

    @Mrlynx No. Ethernet library uses HW SPI.

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

    1 Reply Last reply
    0
    • AnticimexA Anticimex

      @korttoma Good overview. Actually, it is also possible to skip the IP address and use DHCP. Works just fine (though obviously you need a router that assignes a known IP to your chosen MAC, since the controller needs to know the IP of the GW.

      korttomaK Offline
      korttomaK Offline
      korttoma
      Hero Member
      wrote on last edited by
      #47

      @Anticimex said:

      it is also possible to skip the IP address and use DHCP

      So what do I need to change in the sketch to use DHCP?

      • Tomas
      AnticimexA 1 Reply Last reply
      0
      • korttomaK korttoma

        @Anticimex said:

        it is also possible to skip the IP address and use DHCP

        So what do I need to change in the sketch to use DHCP?

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

        @korttoma You set up the ethernet lib with only MAC, no IP as argument.

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

        Dan S.D 1 Reply Last reply
        0
        • AnticimexA Anticimex

          @korttoma You set up the ethernet lib with only MAC, no IP as argument.

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

          @Anticimex Is there any advantage to using DHCP?

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

            Wether you use DHCP reservation on your router, or set the IP in the sketch, you need a static IP. You are configuring that static IP in the MySensors configuration on your Vera (assuming you are using Vera).

            1 Reply Last reply
            0
            • AnticimexA Offline
              AnticimexA Offline
              Anticimex
              Contest Winner
              wrote on last edited by
              #51

              There is an advantage in using DHCP.

              1. You do not have to recompile and reflash your GW if you for some reason need to change it.
              2. If you have an environment using DHCP, introducing a device that enforces a certain IP is very bad practice, and you should then make sure your DHCP server make sure to not assign any device the same IP. Consequently, since the controller needs to know the IP of the GW, when DHCP is used, the DHCP server needs to statically tie the IP in question to the MAC the GW uses. But I think that is a much more sane solution in a network.

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

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

                OK. So if I use DHCP and tell my router to reserve a particular address for my Gateway, operationally I won't notice any difference from directly assigning it as it is currently set up. But if I use DHCP I will be able to see it listed under "attached devices" on my router which is an advantage. With the current assignment, the router doesn't "see" my gateway. So I think I will try the DHCP route as an experiment because I like the idea of the router centrally managing and recognizing all of the network clients.

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

                  @korttoma

                  I have now updated the ethernet sketch and instructions on www.mysensors.org to give a bit clearer instructions on how to use W5100 module and SoftSPI.

                  korttomaK 1 Reply Last reply
                  2
                  • Dan S.D Offline
                    Dan S.D Offline
                    Dan S.
                    Hero Member
                    wrote on last edited by
                    #54

                    Converted my Ethernet gateway to a DHCP connection. Went without a hitch and is now listed in my Netgear's list of attached devices and operating normally. So far, so good.

                    1 Reply Last reply
                    0
                    • hekH hek

                      @korttoma

                      I have now updated the ethernet sketch and instructions on www.mysensors.org to give a bit clearer instructions on how to use W5100 module and SoftSPI.

                      korttomaK Offline
                      korttomaK Offline
                      korttoma
                      Hero Member
                      wrote on last edited by
                      #55

                      @hek said:

                      I have now updated the ethernet sketch and instructions on www.mysensors.org to give a bit clearer instructions on how to use W5100 module and SoftSPI.

                      greate! But you forgot one thing ;)

                      RF24_config.h

                      const uint8_t SOFT_SPI_MISO_PIN = 15;
                      const uint8_t SOFT_SPI_MOSI_PIN = 14;
                      const uint8_t SOFT_SPI_SCK_PIN = 16;
                      
                      • Tomas
                      M 1 Reply Last reply
                      0
                      • hekH Offline
                        hekH Offline
                        hek
                        Admin
                        wrote on last edited by
                        #56

                        @korttoma

                        Not sure why you had to change the defines in the config file? Pleas explain.
                        If look at my table you'll see that A0-A2 differs a bit from yours.

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

                          @hek said:

                          Not sure why you had to change

                          I changed because @niccodemi instructed us to. Maybe this only needs to be done with some other hardware then the one I'm using. Maybe he can explain. (I hope I will remeber that my setup differs from the official instructions when the time comes to update to the next version down the road.)

                          @hek said:

                          look at my table

                          I checked it again and your right it seems to be correct according to the config file, my bad.

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

                            my bad

                            :) No problem. If @niccodemi had some good reason I'll update config and docs.

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

                              @hek please check below post; where should pins be changed if not in config file?

                              http://forum.mysensors.org/topic/466/ethernet-gateway-problem/24

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

                                Ahh.. then we should be fine with the defaults. @Anticimex did his own modification in config to fit his gateway.

                                AnticimexA 1 Reply Last reply
                                0
                                • hekH hek

                                  Ahh.. then we should be fine with the defaults. @Anticimex did his own modification in config to fit his gateway.

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

                                  @hek Yes, basically, when using SOFT_SPI, you need to decide what pins to use and set the config accordingly. I believe things has been standardized a bit since I meddled with that, because I abandoned the SOFT_SPI approach as soon as I managed to manipulate SPI_EN. Saves me both wires, program space and energy :)

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

                                  1 Reply Last reply
                                  0
                                  • JTBJ Offline
                                    JTBJ Offline
                                    JTB
                                    wrote on last edited by
                                    #62

                                    I have problems with this setup. No matter what I try i get this printout from the Humidity sensor node:

                                    req node id
                                    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
                                    sensor started, id 255
                                    req node id
                                    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
                                    T: 20.70
                                    req node id
                                    send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
                                    H: 31.70

                                    Appreciate any tips and help!

                                    1 Reply Last reply
                                    0
                                    • bjornhallbergB Offline
                                      bjornhallbergB Offline
                                      bjornhallberg
                                      Hero Member
                                      wrote on last edited by
                                      #63

                                      I just switched to the ethernet gateway to try out native Domoticz support and quickly experienced the SPI issue that everyone has been talking about. Can someone explain how the MQTT gateway was able to run for several months with no issues, but the moment I flash the ETHERNET gateway on the same hardware everything goes belly up after a few hours?

                                      1 Reply Last reply
                                      0
                                      • korttomaK korttoma

                                        @hek said:

                                        I have now updated the ethernet sketch and instructions on www.mysensors.org to give a bit clearer instructions on how to use W5100 module and SoftSPI.

                                        greate! But you forgot one thing ;)

                                        RF24_config.h

                                        const uint8_t SOFT_SPI_MISO_PIN = 15;
                                        const uint8_t SOFT_SPI_MOSI_PIN = 14;
                                        const uint8_t SOFT_SPI_SCK_PIN = 16;
                                        
                                        M Offline
                                        M Offline
                                        mainali
                                        wrote on last edited by
                                        #64

                                        @korttoma Can you post the link to the updated code and the instruction of using NRF with ethernet module.

                                        korttomaK 3 Replies Last reply
                                        0
                                        • M mainali

                                          @korttoma Can you post the link to the updated code and the instruction of using NRF with ethernet module.

                                          korttomaK Offline
                                          korttomaK Offline
                                          korttoma
                                          Hero Member
                                          wrote on last edited by
                                          #65

                                          @mainali said:

                                          Can you post the link to the updated code and the instruction of using NRF with ethernet module.

                                          I think everything you need to know is described here -> http://www.mysensors.org/build/ethernet_gateway

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


                                          8

                                          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