The Gateway giving me trouble is an Arduino UNO + W5100 SHield + Hard SPI...
I also set up two nodes (one with DHT11 and another with Light+Buzzer)
The two nodes work fine with a serial Gateway.
The Ethernet Gateway connects to the controller, creates a node (without any parameters) and just sits there.
I see the Gateway is exchanging messages with the two nodes I set up, but nothing is showing up in the controller.
Automatic NODE_ID also fails, so I have to assign MY_NODE_ID 1 and MY_NODE_ID 2 to the nodes.
Let's see if anyone can help me sort this out...
Looking at the server log file, I see the following:
*2016-12-03 12:43:59,761 ERROR [Quartz_Scheduler_Worker-5] [org.mycontroller.standalone.gateway.ethernet.EthernetGatewayActionThread:103] Exception,
java.net.SocketException: Connection reset
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:113) ~[na:1.8.0_111]
at java.net.SocketOutputStream.write(SocketOutputStream.java:141) ~[na:1.8.0_111]
at org.mycontroller.standalone.gateway.ethernet.EthernetGatewayActionThread.write(EthernetGatewayActionThread.java:100) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.gateway.ethernet.EthernetGatewayImpl.write(EthernetGatewayImpl.java:46) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.McMessageUtils.sendToGateway(McMessageUtils.java:522) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsProviderBridge.executeMcMessage(MySensorsProviderBridge.java:45) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.McMessageUtils.sendToProviderBridge(McMessageUtils.java:557) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.McActionEngine.discover(McActionEngine.java:290) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.api.GatewayApi.executeNodeDiscover(GatewayApi.java:129) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.jobs.ExecuteDiscoverJob.doRun(ExecuteDiscoverJob.java:59) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.knowm.sundial.Job.execute(Job.java:57) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.quartz.core.JobRunShell.run(JobRunShell.java:178) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.quartz.core.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:515) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
2016-12-03 12:43:59,838 ERROR [Quartz_Scheduler_Worker-5] [org.mycontroller.standalone.message.McMessageUtils:529] Message sending failed! RawMessage(gatewayId=6, data=255;255;3;0;20;
, subData=null, isTxMessage=false, networkType=MY_SENSORS)
org.mycontroller.standalone.gateway.GatewayException: GATEWAY_ERROR: There is no connection with EthernetGateway!
at org.mycontroller.standalone.gateway.ethernet.EthernetGatewayActionThread.write(EthernetGatewayActionThread.java:106) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.gateway.ethernet.EthernetGatewayImpl.write(EthernetGatewayImpl.java:46) ~[mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.McMessageUtils.sendToGateway(McMessageUtils.java:522) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.provider.mysensors.MySensorsProviderBridge.executeMcMessage(MySensorsProviderBridge.java:45) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.McMessageUtils.sendToProviderBridge(McMessageUtils.java:557) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.message.McActionEngine.discover(McActionEngine.java:290) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.api.GatewayApi.executeNodeDiscover(GatewayApi.java:129) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.mycontroller.standalone.jobs.ExecuteDiscoverJob.doRun(ExecuteDiscoverJob.java:59) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.knowm.sundial.Job.execute(Job.java:57) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.quartz.core.JobRunShell.run(JobRunShell.java:178) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
at org.quartz.core.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:515) [mycontroller-dist-standalone-0.0.3.Alpha2-single.jar:0.0.3.Alpha2]
2016-12-03 12:44:05,416 INFO [Thread-7] [org.mycontroller.standalone.gateway.ethernet.EthernetGatewayActionThread:148] Reconnected gateway successfully...
Looking at the gateway serial:
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: 10.0.0.33
0;255;3;0;9;No registration required
0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
0;255;3;0;9;TSP:MSG:READ 1-1-0 s=0,c=1,t=23,pt=2,l=2,sg=0:59
0;255;3;0;9;TSP:MSG:READ 1-1-0 s=0,c=1,t=23,pt=2,l=2,sg=0:60
0;255;3;0;9;TSP:MSG:READ 2-2-0 s=0,c=1,t=1,pt=7,l=5,sg=0:69.0
0;255;3;0;9;TSP:MSG:READ 1-1-0 s=0,c=1,t=23,pt=2,l=2,sg=0:61
0;255;3;0;9;TSP:MSG:READ 1-1-0 s=0,c=1,t=23,pt=2,l=2,sg=0:62
0;255;3;0;9;TSP:MSG:READ 2-2-0 s=1,c=1,t=0,pt=7,l=5,sg=0:28.0
0;255;3;0;9;TSP:MSG:READ 1-1-0 s=0,c=1,t=23,pt=2,l=2,sg=0:63
0;255;3;0;9;TSP:SANCHK:OK
0;255;3;0;9;TSP:MSG:READ 1-1-0 s=0,c=1,t=23,pt=2,l=2,sg=0:62
0;255;3;0;9;TSP:MSG:READ 1-1-0 s=0,c=1,t=23,pt=2,l=2,sg=0:61
0;255;3;0;9;TSP:MSG:READ 2-2-0 s=0,c=1,t=1,pt=7,l=5,sg=0:69.0
0;255;3;0;9;TSP:MSG:READ 1-1-0 s=0,c=1,t=23,pt=2,l=2,sg=0:62
0;255;3;0;9;TSP:MSG:READ 2-2-0 s=1,c=1,t=0,pt=7,l=5,sg=0:28.0
0;255;3;0;9;TSP:SANCHK:OK
Looking at one of the nodes:
Starting repeater (RNNRA-, 2.0.0)
TSM:INIT
TSM:RADIO:OK
TSP:ASSIGNID:OK (ID=2)
TSM:FPAR
TSP:MSG:SEND 2-2-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
TSP:MSG:READ 0-0-2 s=255,c=3,t=8,pt=1,l=1,sg=0:0
TSP:MSG:FPAR RES (ID=0, dist=0)
TSP:MSG:FPAR (PPAR FOUND)
TSP:MSG:PAR OK (ID=0, dist=1)
TSM:FPAR:OK
TSM:ID
TSM:CHKID:OK (ID=2)
TSM:UPL
TSP:PING:SEND (dest=0)
TSP:MSG:SEND 2-2-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1
TSP:MSG:READ 0-0-2 s=255,c=3,t=25,pt=1,l=1,sg=0:1
TSP:MSG:PONG RECV (hops=1)
TSP:CHKUPL:OK
TSM:UPL:OK
TSM:READY