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. Announcements
  3. 💬 Building an Ethernet Gateway

💬 Building an Ethernet Gateway

Scheduled Pinned Locked Moved Announcements
133 Posts 42 Posters 36.4k Views 35 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.
  • KiwiHC16K Offline
    KiwiHC16K Offline
    KiwiHC16
    wrote on last edited by
    #20

    Hi All,
    I have an ethernet gateway base on arduino Pro mini with NRF24L01 radio and Funding ethernet card with W5100 chips. (As per description of this page)
    All works fine when I'm connected to it with Arduino IDE. Works for hours/days.
    If I unplug the IDE (disconnect USB) and run it alone it stop working after for minutes or few hours.
    I have only one sensor (temperature) to test. It send Temperature and battery level every 10s (testing). Led attached to Gateway to show the traffic lit up twice each time it receive the information from the sensor. The LED lit up twice like half a second when everything is fine. Easy to see.
    When the issue starts, the led lit up time to time but very quickly, and even very difficult to see. Some time I can ping the Gateway, some time not.
    Any idea from anybody ?

    1 Reply Last reply
    0
    • KiwiHC16K Offline
      KiwiHC16K Offline
      KiwiHC16
      wrote on last edited by
      #21

      additional info: Same situation having //#define MY_DEBUG defined or not.

      1 Reply Last reply
      0
      • KiwiHC16K Offline
        KiwiHC16K Offline
        KiwiHC16
        wrote on last edited by
        #22

        Looks like the issue is related to the power supply. I just plugged a 5V to the USB and It has been working fine for 24h. Need to review the Power supply in place.

        1 Reply Last reply
        0
        • Sander StolkS Offline
          Sander StolkS Offline
          Sander Stolk
          wrote on last edited by
          #23

          The first one will not compile since the #include <SPI.h> is missing

          1 Reply Last reply
          0
          • WizarDEADW Offline
            WizarDEADW Offline
            WizarDEAD
            wrote on last edited by
            #24

            Hello guys,
            Can anyone help me with modify this to work with W5500 Ethernet module?
            Please advice us what need to be modified and why it needs to be modified.
            Thanks you very much.

            mfalkviddM 1 Reply Last reply
            0
            • WizarDEADW WizarDEAD

              Hello guys,
              Can anyone help me with modify this to work with W5500 Ethernet module?
              Please advice us what need to be modified and why it needs to be modified.
              Thanks you very much.

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

              @WizarDEAD the information in https://forum.mysensors.org/topic/2901/my-ethernet-gateway-board-w5500 might be useful.

              1 Reply Last reply
              0
              • Chucky_69C Offline
                Chucky_69C Offline
                Chucky_69
                wrote on last edited by
                #26

                Hi Guys,

                I'm using a Wiznet W5100 Ethernet module.
                The pins are described as following (I added a numbering myself:
                0_1487281914650_upload-a05aa788-d1ac-4ef0-b42a-7ad6b28b6e9c

                The MySensors Gateway uses different terms, am I 'translating' them correctly?
                0_1487282198655_upload-1949b0d7-52ae-4059-a4e3-e68941dafbe4

                C 1 Reply Last reply
                0
                • Chucky_69C Chucky_69

                  Hi Guys,

                  I'm using a Wiznet W5100 Ethernet module.
                  The pins are described as following (I added a numbering myself:
                  0_1487281914650_upload-a05aa788-d1ac-4ef0-b42a-7ad6b28b6e9c

                  The MySensors Gateway uses different terms, am I 'translating' them correctly?
                  0_1487282198655_upload-1949b0d7-52ae-4059-a4e3-e68941dafbe4

                  C Offline
                  C Offline
                  Cansher
                  wrote on last edited by
                  #27

                  @Chucky_69
                  Looks right!

                  1 Reply Last reply
                  1
                  • fifoF Offline
                    fifoF Offline
                    fifo
                    wrote on last edited by
                    #28

                    My WizNET (W5100) Ethernet module had to be connected to 5v pin on arduino as the 3.3v would only allow ping but not function properly.

                    E 1 Reply Last reply
                    0
                    • AndrewZA Offline
                      AndrewZA Offline
                      AndrewZ
                      wrote on last edited by AndrewZ
                      #29

                      Maybe I just overlooked that, but is it possible to statically define netmask and gateway in the sketch? I'm using ENC28J60.

                      mfalkviddM 1 Reply Last reply
                      0
                      • AndrewZA AndrewZ

                        Maybe I just overlooked that, but is it possible to statically define netmask and gateway in the sketch? I'm using ENC28J60.

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

                        @AndrewZ I think you can use

                        MY_IP_GATEWAY_ADDRESS
                        MY_IP_SUBNET_ADDRESS
                        
                        AndrewZA 1 Reply Last reply
                        0
                        • mfalkviddM mfalkvidd

                          @AndrewZ I think you can use

                          MY_IP_GATEWAY_ADDRESS
                          MY_IP_SUBNET_ADDRESS
                          
                          AndrewZA Offline
                          AndrewZA Offline
                          AndrewZ
                          wrote on last edited by AndrewZ
                          #31

                          @mfalkvidd , yes I also found this in MQTT GW example, thanks.
                          This seems to be not working on my ENC28J60 - as I can see the the default gateway setting is not taken into account. I will test with W5100.

                          Edit: I confirm that these settings work properly with W5100, just tested.

                          1 Reply Last reply
                          1
                          • H Offline
                            H Offline
                            hoggin
                            wrote on last edited by
                            #32

                            I just spent a long time troubleshooting my problems trying to set this up and I thought I would share. I followed this tutorial and everything was a breeze except my unit kept rebooting and I couldn't figure out why. I thought for the longest time it was the power supply but it ended up being the version of Arduino IDE I was using. I found some answers https://forum.mysensors.org/topic/4628/solved-mysensors-2-0-ethernet-gateway-enc28j60-restart-ip-issue/46 and https://forum.mysensors.org/topic/4680/mysensors-2-0-ethernet-gateway-atmega-w5100-restart-all-time that got me down the right path. I downgraded to "Arduino IDE 1.6.11" and that worked. I completely uninstalled arduino from my system and just started over with the older version. I assembled everything as I had done before and it just fired right up. The mysensors library I used was 2.0.0 and again it all worked perfectly. I was amazed. I didnt have to comment out the debug or do anything other than follow the tutorial EXCEPT only use 1.6.11 to upload it all.
                            Hope this helps someone in the future.

                            rejoe2R 1 Reply Last reply
                            1
                            • H hoggin

                              I just spent a long time troubleshooting my problems trying to set this up and I thought I would share. I followed this tutorial and everything was a breeze except my unit kept rebooting and I couldn't figure out why. I thought for the longest time it was the power supply but it ended up being the version of Arduino IDE I was using. I found some answers https://forum.mysensors.org/topic/4628/solved-mysensors-2-0-ethernet-gateway-enc28j60-restart-ip-issue/46 and https://forum.mysensors.org/topic/4680/mysensors-2-0-ethernet-gateway-atmega-w5100-restart-all-time that got me down the right path. I downgraded to "Arduino IDE 1.6.11" and that worked. I completely uninstalled arduino from my system and just started over with the older version. I assembled everything as I had done before and it just fired right up. The mysensors library I used was 2.0.0 and again it all worked perfectly. I was amazed. I didnt have to comment out the debug or do anything other than follow the tutorial EXCEPT only use 1.6.11 to upload it all.
                              Hope this helps someone in the future.

                              rejoe2R Offline
                              rejoe2R Offline
                              rejoe2
                              wrote on last edited by
                              #33

                              @hoggin At least according to my experience, just downgrading the AVR Board Definitions to <=1.6.11 using the Board-Manager within an recent version of the IDE should have done the trick; downgrade of the other libs including mysensors (2.1.1) was not necessary.

                              In Addition: For the serial Gateways this kind of trouble seems to be solved since version 1.6.18 of the AVR-Board definitions (shipped since several weeks).

                              Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

                              H 1 Reply Last reply
                              1
                              • rejoe2R rejoe2

                                @hoggin At least according to my experience, just downgrading the AVR Board Definitions to <=1.6.11 using the Board-Manager within an recent version of the IDE should have done the trick; downgrade of the other libs including mysensors (2.1.1) was not necessary.

                                In Addition: For the serial Gateways this kind of trouble seems to be solved since version 1.6.18 of the AVR-Board definitions (shipped since several weeks).

                                H Offline
                                H Offline
                                hoggin
                                wrote on last edited by
                                #34

                                @rejoe2 Perhaps you are correct. I am not nearly as well versed in this stuff as others. I was working on the Ethernet project so I didn't spend much time messing with the serial end of it.

                                rejoe2R 1 Reply Last reply
                                0
                                • H hoggin

                                  @rejoe2 Perhaps you are correct. I am not nearly as well versed in this stuff as others. I was working on the Ethernet project so I didn't spend much time messing with the serial end of it.

                                  rejoe2R Offline
                                  rejoe2R Offline
                                  rejoe2
                                  wrote on last edited by
                                  #35

                                  @hoggin I don't have experience with the ethernet part and just wanted to point out that your solution may be a little "overdone" (but I'm not sure about that).
                                  Anyhow: Perhaps you should add a remark wrt. to this to your other post doubling the info you wrote here to avoid others doing tho long round instead of the direct way?

                                  Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

                                  1 Reply Last reply
                                  0
                                  • H Offline
                                    H Offline
                                    hoggin
                                    wrote on last edited by
                                    #36

                                    @rejoe2 I think you are suggesting that I create a link between this post and the other one. Here Hopefully this will direct people to more information regarding the rebooting issue i faced.

                                    rejoe2R 1 Reply Last reply
                                    0
                                    • H hoggin

                                      @rejoe2 I think you are suggesting that I create a link between this post and the other one. Here Hopefully this will direct people to more information regarding the rebooting issue i faced.

                                      rejoe2R Offline
                                      rejoe2R Offline
                                      rejoe2
                                      wrote on last edited by
                                      #37

                                      @hoggin The post I had in mind is this one: https://forum.mysensors.org/topic/6149/ethernet-gateway-shows-up-on-vera-but-doens-t-want-to-include-devices/17#
                                      I am going to post a similar answer also there.

                                      Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

                                      1 Reply Last reply
                                      0
                                      • H Offline
                                        H Offline
                                        hoggin
                                        wrote on last edited by
                                        #38

                                        @rejoe2 Sounds good.

                                        1 Reply Last reply
                                        0
                                        • R Offline
                                          R Offline
                                          RWoerz
                                          wrote on last edited by
                                          #39

                                          I have a Vera but I'm moving some of my stuff over to OpenHab. So on one side I was using the standard W5100 GateWay on the other I need the MQTT GateWay. The major difference is in the "define MY_PORT" one is 5003 and the other is 1883. Is there a way to do both? Thanks.

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


                                          33

                                          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