Help with W5100 Resetting with Domoticz



  • I have an ethernet gateway setup using an Uno with the Wiznet W5100 Shield (one with SD Card Slot). Previously been using it with Vera but due to UI7 getting corrupted during an upgrade looking to transfer to either Domoticz or openLupp.

    Currently attempting to get this working on the development branch but was seeing the same behaviour on 1.5 stable branch.

    In Domoticz I am connecting to the gateway but it resetting the connection every 30 seconds:

    2016-02-06 12:38:24.261 MySensors: connected to: 192.168.172.66:5003
    2016-02-06 12:38:26.261 MySensors: Gateway Ready...
    2016-02-06 12:38:26.261 MySensors: VERSION from NodeID: 0, ChildID: 255, Payload: 2.0.0-beta
    2016-02-06 12:38:27.262 MySensors: VERSION from NodeID: 0, ChildID: 255, Payload: 2.0.0-beta
    2016-02-06 12:38:30.262 (My Sensors) Lighting 2 (Security Sensor)
    2016-02-06 12:38:33.262 (My Sensors) Lighting 2 (Security Sensor)
    2016-02-06 12:38:56.267 MySensors: Connection reset!
    2016-02-06 12:38:56.267 TCP: Reconnecting in 30 seconds...
    2016-02-06 12:39:26.270 TCP: Reconnecting...

    Constant loop of the above in the Domoticz log.

    The serial log from the gateway

    0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0-beta)
    0;255;3;0;9;Radio init successful.
    IP: 192.168.172.66
    0;255;3;0;9;Init complete, id=0, parent=0, distance=0
    0;255;3;0;9;Eth: connect
    0;255;3;0;9;Eth: 0;0;3;0;2;
    0;255;3;0;9;read: 5-5-0 s=255,c=3,t=0,pt=1,l=1,sg=0:42
    0;255;3;0;9;read: 5-5-0 s=1,c=1,t=0,pt=7,l=5,sg=0:22.9
    0;255;3;0;9;read: 5-5-0 s=2,c=1,t=1,pt=2,l=2,sg=0:26
    0;255;3;0;9;Eth: 0;0;3;0;2;Get Version
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;Eth: connect
    0;255;3;0;9;Eth: 0;0;3;0;2;
    0;255;3;0;9;Eth: 0;0;3;0;2;Get Version
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;Eth: 0;0;3;0;18;PING
    0;255;3;0;9;Eth: connect

    I have tried various settings regards SOFTSPI and MY_W5100_SPI_EN but it is still behaving the same. Is this normal or can you please recommend what I should be looking at for troubleshooting?


  • Hardware Contributor

    Do you run a second controller? I saw this issue trying to connect Myscontroller simultaneously as Domoticz.



  • Thanks for the reply sunberg84.

    I have Myscontroller and openLuup but even with them off I get the same reset behaviour. I'm actually running Domoticz in response to openLuup locking up on sensor inclusion. Do your logs look similar (resets every 30 seconds) if you have a secondary controller running?


  • Hardware Contributor

    @mountainman Yes and No - everything stops working if MysC and Domoticz talks to the same gateway and if i disconnect MysC i get the reset in my logs... before that, nothing (no sensors or communcation at all).



  • @sundberg84 For me running MSysC appears to have no impact although it will eventually lock up also (1 hr+). What revision of the libraries are you using? The ethernet gateway used to handle 4 connections simultaneously which I think may be configurable in the dev branch.


  • Hardware Contributor

    Im using 2.0 and 2.4031 on Domoticz



  • @sundberg84 I updated MY_GATEWAY_MAX_CLIENTS from 1 to 4 in MyConfig.h

    This might help with you secondary controller issue.


Log in to reply
 

Suggested Topics

  • 3
  • 6
  • 6
  • 5

0
Online

11.4k
Users

11.1k
Topics

112.7k
Posts