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. Usage problem with 2.0 library

Usage problem with 2.0 library

Scheduled Pinned Locked Moved Troubleshooting
15 Posts 4 Posters 2.8k Views 2 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.
  • scalzS Offline
    scalzS Offline
    scalz
    Hardware Contributor
    wrote on last edited by
    #6

    ideally meaning if you want to be sure to have no issue :)
    but for testing, you're right, it's perahps better to assemble a small test setup and see how it behaves before updating.

    1 Reply Last reply
    1
    • rnollenR Offline
      rnollenR Offline
      rnollen
      wrote on last edited by rnollen
      #7

      @scalz said:

      but for testing, you're right, it's perahps better to assemble a small test setup and see how it behaves before updating.

      Ofcourse.. No Nuts no glory, I thought :) So updated my gateway..

      Now, updating went well: I see this in the logs of the gateway:
      IP: 192.168.0.20
      0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0)
      0;255;3;0;9;TSM:INIT
      0;255;3;0;9;TSM:RADIO:OK
      0;255;3;0;9;TSM:GW MODE
      0;255;3;0;9;TSM:READY
      IP: 192.168.0.20
      0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0)
      0;255;3;0;9;TSM:INIT
      0;255;3;0;9;TSM:RADIO:OK
      0;255;3;0;9;TSM:GW MODE
      0;255;3;0;9;TSM:READY
      IP: 192.168.0.20
      0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0)
      0;255;3;0;9;TSM:INIT
      0;255;3;0;9;TSM:RADIO:OK
      0;255;3;0;9;TSM:GW MODE
      0;255;3;0;9;TSM:READY
      IP: 192.168.0.20
      0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0)
      0;255;3;0;9;TSM:INIT
      0;255;3;0;9;TSM:RADIO:OK
      0;255;3;0;9;TSM:GW MODE
      0;255;3;0;9;TSM:READY
      IP: 192.168.0.20

      And it doing this in a loop... So I think this is OK?

      But now, my domoticz doesn't connect correclty :( It does an initial connection, but I get an connection reset after a few seconds.
      Anyone tried this with Domoticz? I would not have expected this :(

      <edit>
      Hmm.. Gateway is not functioning correctly I guess.. In the troubleshooting guide I think I should see more at the end: (Copy/paste from this site):
      IP: 192.168.10.80
      0;255;3;0;9;MCO:REG:NOT NEEDED
      0;255;3;0;9;MCO:BGN:STP
      0;255;3;0;9;MCO:BGN:INIT OK,ID=0,PAR=0,DIS=0,REG=1
      0;255;3;0;9;TSF:MSG:READ,12-4-0,s=18,c=1,t=16,pt=1,l=1,sg=0:1
      0;255;3;0;9;TSF:MSG:READ,12-4-0,s=31,c=1,t=16,pt=1,l=1,sg=0:1

      Also, I should see Gateway Startup Complete as the last line, but for some reason it is not working.. The wiring is exactly the same as before..? Also cleared the EEProm; republish the sketch.. but no luck
      So it does not initialize correctly I think... but why?

      1 Reply Last reply
      0
      • scalzS Offline
        scalzS Offline
        scalz
        Hardware Contributor
        wrote on last edited by
        #8

        looks like your GW is rebooting..
        What's your hardware for GW?

        rnollenR 1 Reply Last reply
        0
        • scalzS scalz

          looks like your GW is rebooting..
          What's your hardware for GW?

          rnollenR Offline
          rnollenR Offline
          rnollen
          wrote on last edited by
          #9

          @scalz said:

          looks like your GW is rebooting..
          What's your hardware for GW?

          I use an Arduino Uno and the W5100 Module, not the shield which you can click on an Uno..

          I know in the past when I created the module, I needed to enable "//#define MY_SOFTSPI" in MyConfig.h... Tried it again, no luck.. Checked the wiring, nothing strange here..also nothing was changed on the wiring part, so I thought I would expect the same result...

          1 Reply Last reply
          0
          • scalzS Offline
            scalzS Offline
            scalz
            Hardware Contributor
            wrote on last edited by scalz
            #10

            oki so you're using softspi. i guess you're using NRF24 radio ?
            I am checking with a few people if softspi is working ok with rfm69 (but i'm not using ethernet gw).
            Just to be sure, can you confirm : W5100 SS/CSN pin on Arduino D10, and Radio SS/CSN pin on D6, right?
            I'll look later today. I hope we will be able to get rid of the softspi ;)

            1 Reply Last reply
            0
            • rnollenR Offline
              rnollenR Offline
              rnollen
              wrote on last edited by rnollen
              #11

              Thanks.. I am not sure what is going wrong at this stage.

              I am using an indeed a NRF24 radio, but I use the one with an external antenna (such as this one: http://www.ebay.com/itm/2-4G-1100m-Module-NRF24L01-PA-LNA-Communication-SMA-Antenna-Wireless-Transceiver-/172255694961?hash=item281b3d5071)
              I use an external antenna because of the range and because I can make a cleaner box around it ;)

              Also my W5100 is slightly different, because alternative names are printed on the bottem. It has the same labels as the topicstarter here: https://forum.mysensors.org/topic/467/ethernet-gateway-troubleshooting-advice

              But it worked like a charm for the last 1,5 years :)

              But to give you an answer.. the SS/CSN is called NSS on my W5100 and this is the D10. Think this is OK?
              The Radio CSN is connected to D6

              1 Reply Last reply
              0
              • scalzS Offline
                scalzS Offline
                scalz
                Hardware Contributor
                wrote on last edited by
                #12

                @rnollen
                noted, thx!
                i'll give you feedback ;)

                1 Reply Last reply
                0
                • scalzS Offline
                  scalzS Offline
                  scalz
                  Hardware Contributor
                  wrote on last edited by
                  #13

                  can you upload your gw and node sketch, so i can see your defines please?

                  rnollenR 1 Reply Last reply
                  0
                  • scalzS scalz

                    can you upload your gw and node sketch, so i can see your defines please?

                    rnollenR Offline
                    rnollenR Offline
                    rnollen
                    wrote on last edited by rnollen
                    #14

                    @scalz said:

                    can you upload your gw and node sketch, so i can see your defines please?

                    Hi, I am only busy with the GW at this moment, I have not altered any sensor yet to 2.0 (Got 7 nodes).. this was the next phase :) I only have a lux sensor on y Breadboard running on MySensors 2.0

                    I used the sketch from the example libary, the same as on the build page of MySensors: (https://www.mysensors.org/build/ethernet_gateway) and used the "WizNET (W5100) Ethernet module" sketch.

                    Things I have tested:

                    1. Enabled "//#define MY_W5100_SPI_EN 4" in the sketch. This resulted in a radio error:
                    2. Changed the "//#define MY_SOFTSPI" in MyConfig.h, didn't seem to do anything when I enabled that. I have tested it where I have Enabled step 1, then it didn't give me an error on the radio... but it didn't fix anything also. Disabled step 1. Same result.

                    Don't know what I can test more :)

                    If you need anything, just let know. :)

                    1 Reply Last reply
                    0
                    • rnollenR Offline
                      rnollenR Offline
                      rnollen
                      wrote on last edited by
                      #15

                      Think I have fixed it :)

                      I found this topic: https://forum.mysensors.org/topic/4680/mysensors-2-0-ethernet-gateway-atmega-w5100-restart-all-time/5

                      The answer for me was to downgrade the Arduino AVR Boards to version 1.6.11 (Using Tools/Boards/Boardsmanager) ... It seems there is a bug in the newer release of this tool and the W5100. So hopefully this issue can be fixed, so that in newer releases this is OK. Maybe it is wise to add this to the Ethernet Gateway Page when using a W5100 and Mysensors 2.0 ;)

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


                      22

                      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