ERROR connect: Connection refused: Gateway on Raspberry pi 3 Model B Rev: 1.2



  • Hi Guys,
    i m trying to build Raspberry pi gateway all build process works ok, my steps to build gateway i tried with my raspberry pi ip address as well but same result.

    git clone https://github.com/mysensors/MySensors.git --branch master
    cd MySensors
    ./configure --my-transport=nrf24
    ./configure --my-gateway=ethernet --my-port=5003
    ./configure --my-gateway=ethernet --my-controller-url-address=127.0.0.1 
    make
    

    but then when i run gateway it get following

    Aug 03 18:59:04 INFO  Starting gateway...
    Aug 03 18:59:04 INFO  Protocol version - 2.3.0
    Aug 03 18:59:04 DEBUG MCO:BGN:INIT GW,CP=RNNGL---,VER=2.3.0
    Aug 03 18:59:04 DEBUG TSF:LRT:OK
    Aug 03 18:59:04 DEBUG TSM:INIT
    Aug 03 18:59:04 DEBUG TSF:WUR:MS=0
    Aug 03 18:59:04 DEBUG TSM:INIT:TSP OK
    Aug 03 18:59:04 DEBUG TSM:INIT:GW MODE
    Aug 03 18:59:04 DEBUG TSM:READY:ID=0,PAR=0,DIS=0
    Aug 03 18:59:04 DEBUG MCO:REG:NOT NEEDED
    Aug 03 18:59:04 ERROR connect: Connection refused
    Aug 03 18:59:04 ERROR failed to connect
    Aug 03 18:59:04 DEBUG GWT:TIN:ETH OK
    Aug 03 18:59:04 ERROR connect: Connection refused
    Aug 03 18:59:04 ERROR failed to connect
    Aug 03 18:59:04 DEBUG GWT:TPS:ETH OK
    

    i have following nrf module it works ok on ESP
    nrf24


  • Mod

    @pihome all configure parameters must be entered on the same line. This does not affect your case, since you're setting the same values as default in the first two commands, but I thought I'd point it out anyway.

    What is the gateway supposed to connect to? Is that thing/software running on the Rpi, listening on port 5003? What do the log files of that thing/software say? Connection refused means that nothing is listening.



  • @mfalkvidd, my understanding of raspberry pi gateway: process run and you can connect to that process over ip, or i m in wonder land and gateway on pi isnโ€™t the same as gateway on esp?


  • Mod

    @pihome yes the rasperry pi gateway uses that mode by default, but you disabled it by using my-controller-url-address



  • @mfalkvidd thank, i got it working but i think pi gateway isn't reliable or its just me ๐Ÿ˜ž once every while i get DEBUG !TSF:RTE:100 UNKNOWN whereas esp gateway works flawless

    Aug 05 11:31:36 INFO  Starting gateway...
    Aug 05 11:31:36 INFO  Protocol version - 2.3.0
    Aug 05 11:31:36 DEBUG Serial port /dev/ttyMySensorsGateway (115200 baud) created
    Aug 05 11:31:36 DEBUG MCO:BGN:INIT GW,CP=RNNGL-Q-,VER=2.3.0
    Aug 05 11:31:36 DEBUG TSF:LRT:OK
    Aug 05 11:31:36 DEBUG TSM:INIT
    Aug 05 11:31:36 DEBUG TSF:WUR:MS=0
    Aug 05 11:31:36 DEBUG TSM:INIT:TSP OK
    Aug 05 11:31:36 DEBUG TSM:INIT:GW MODE
    Aug 05 11:31:36 DEBUG TSM:READY:ID=0,PAR=0,DIS=0
    Aug 05 11:31:36 DEBUG MCO:REG:NOT NEEDED
    Aug 05 11:31:36 DEBUG MCO:BGN:STP
    Aug 05 11:31:36 DEBUG MCO:BGN:INIT OK,TSP=1
    Aug 05 11:31:45 DEBUG TSF:MSG:READ,26-26-0,s=255,c=3,t=0,pt=1,l=1,sg=0:82
    Aug 05 11:32:23 DEBUG TSF:MSG:READ,25-25-0,s=1,c=1,t=38,pt=7,l=5,sg=0:0.28
    Aug 05 11:32:23 DEBUG TSF:MSG:READ,25-25-0,s=255,c=3,t=0,pt=1,l=1,sg=0:6
    Aug 05 11:32:27 DEBUG TSF:MSG:READ,21-21-0,s=0,c=1,t=0,pt=7,l=5,sg=0:23.0
    Aug 05 11:32:45 DEBUG TSF:MSG:READ,26-26-0,s=255,c=3,t=0,pt=1,l=1,sg=0:82
    Aug 05 11:33:25 DEBUG TSF:MSG:READ,25-25-0,s=1,c=1,t=38,pt=7,l=5,sg=0:0.28
    Aug 05 11:33:25 DEBUG TSF:MSG:READ,25-25-0,s=255,c=3,t=0,pt=1,l=1,sg=0:6
    Aug 05 11:33:45 DEBUG TSF:MSG:READ,26-26-0,s=1,c=1,t=38,pt=7,l=5,sg=0:3.45
    Aug 05 11:33:45 DEBUG TSF:MSG:READ,26-26-0,s=255,c=3,t=0,pt=1,l=1,sg=0:82
    Aug 05 11:34:01 DEBUG TSF:MSG:SEND,0-0-101-101,s=1,c=1,t=2,pt=0,l=2,sg=0,ft=0,st=OK:0
    Aug 05 11:34:01 DEBUG TSF:MSG:READ,101-101-0,s=1,c=1,t=2,pt=0,l=2,sg=0:0
    Aug 05 11:34:01 DEBUG TSF:MSG:ACK
    Aug 05 11:34:02 DEBUG TSF:MSG:SEND,0-0-101-101,s=3,c=1,t=2,pt=0,l=2,sg=0,ft=0,st=OK:0
    Aug 05 11:34:02 DEBUG TSF:MSG:READ,101-101-0,s=3,c=1,t=2,pt=0,l=2,sg=0:0
    Aug 05 11:34:02 DEBUG TSF:MSG:ACK
    Aug 05 11:34:03 DEBUG !TSF:RTE:100 UNKNOWN
    Aug 05 11:34:03 DEBUG !TSF:MSG:SEND,0-0-100-100,s=1,c=1,t=2,pt=0,l=2,sg=0,ft=0,st=NACK:0
    Aug 05 11:34:26 DEBUG TSF:MSG:READ,25-25-0,s=1,c=1,t=38,pt=7,l=5,sg=0:0.28
    Aug 05 11:34:26 DEBUG TSF:MSG:READ,25-25-0,s=255,c=3,t=0,pt=1,l=1,sg=0:6
    Aug 05 11:34:27 DEBUG TSF:MSG:READ,25-25-0,s=0,c=1,t=0,pt=7,l=5,sg=0:23.4
    Aug 05 11:34:46 DEBUG TSF:MSG:READ,26-26-0,s=1,c=1,t=38,pt=7,l=5,sg=0:3.45
    Aug 05 11:35:02 DEBUG TSF:MSG:SEND,0-0-101-101,s=1,c=1,t=2,pt=0,l=2,sg=0,ft=0,st=OK:0
    Aug 05 11:35:02 DEBUG TSF:MSG:READ,101-101-0,s=1,c=1,t=2,pt=0,l=2,sg=0:0
    Aug 05 11:35:02 DEBUG TSF:MSG:ACK
    Aug 05 11:35:03 DEBUG TSF:MSG:SEND,0-0-101-101,s=3,c=1,t=2,pt=0,l=2,sg=0,ft=0,st=OK:0
    Aug 05 11:35:03 DEBUG TSF:MSG:READ,101-101-0,s=3,c=1,t=2,pt=0,l=2,sg=0:0
    Aug 05 11:35:03 DEBUG TSF:MSG:ACK
    Aug 05 11:35:04 DEBUG !TSF:RTE:100 UNKNOWN
    Aug 05 11:35:04 DEBUG !TSF:MSG:SEND,0-0-100-100,s=1,c=1,t=2,pt=0,l=2,sg=0,ft=0,st=NACK:0
    Aug 05 11:35:18 DEBUG TSF:MSG:READ,20-20-0,s=0,c=1,t=0,pt=7,l=5,sg=0:21.3
    Aug 05 11:35:28 DEBUG TSF:MSG:READ,25-25-0,s=1,c=1,t=38,pt=7,l=5,sg=0:0.28
    Aug 05 11:35:28 DEBUG TSF:MSG:READ,25-25-0,s=255,c=3,t=0,pt=1,l=1,sg=0:6
    Aug 05 11:35:29 DEBUG TSF:MSG:READ,25-25-0,s=0,c=1,t=0,pt=7,l=5,sg=0:23.5
    Aug 05 11:36:01 DEBUG TSF:MSG:SEND,0-0-101-101,s=1,c=1,t=2,pt=0,l=2,sg=0,ft=0,st=OK:0
    Aug 05 11:36:01 DEBUG TSF:MSG:READ,101-101-0,s=1,c=1,t=2,pt=0,l=2,sg=0:0
    Aug 05 11:36:01 DEBUG TSF:MSG:ACK
    Aug 05 11:36:02 DEBUG TSF:MSG:SEND,0-0-101-101,s=2,c=1,t=2,pt=0,l=2,sg=0,ft=0,st=OK:0
    Aug 05 11:36:02 DEBUG TSF:MSG:READ,101-101-0,s=2,c=1,t=2,pt=0,l=2,sg=0:0
    Aug 05 11:36:02 DEBUG TSF:MSG:ACK
    Aug 05 11:36:03 DEBUG !TSF:RTE:100 UNKNOWN
    Aug 05 11:36:03 DEBUG !TSF:MSG:SEND,0-0-100-100,s=1,c=1,t=2,pt=0,l=2,sg=0,ft=0,st=NACK:0
    Aug 05 11:36:16 DEBUG TSF:MSG:READ,101-101-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
    Aug 05 11:36:16 DEBUG TSF:MSG:BC
    Aug 05 11:36:16 DEBUG TSF:MSG:FPAR REQ,ID=101
    Aug 05 11:36:16 DEBUG TSF:PNG:SEND,TO=0
    Aug 05 11:36:16 DEBUG TSF:CKU:OK
    Aug 05 11:36:16 DEBUG TSF:MSG:GWL OK
    Aug 05 11:36:17 DEBUG TSF:MSG:SEND,0-0-101-101,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
    Aug 05 11:36:17 DEBUG TSF:MSG:READ,20-20-0,s=0,c=1,t=0,pt=7,l=5,sg=0:21.2
    Aug 05 11:36:18 DEBUG TSF:MSG:READ,101-101-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1
    Aug 05 11:36:18 DEBUG TSF:MSG:PINGED,ID=101,HP=1
    Aug 05 11:36:18 DEBUG TSF:MSG:SEND,0-0-101-101,s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=OK:1
    Aug 05 11:36:18 DEBUG TSF:MSG:READ,101-101-0,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
    Aug 05 11:36:18 DEBUG TSF:MSG:SEND,0-0-101-101,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
    Aug 05 11:36:18 DEBUG TSF:MSG:READ,101-101-0,s=255,c=0,t=18,pt=0,l=5,sg=0:2.1.1
    Aug 05 11:36:18 DEBUG TSF:MSG:READ,101-101-0,s=255,c=3,t=6,pt=1,l=1,sg=0:0
    Aug 05 11:36:20 DEBUG TSF:MSG:READ,101-101-0,s=255,c=3,t=11,pt=0,l=21,sg=0:Zone Controller Relay
    Aug 05 11:36:20 DEBUG TSF:MSG:READ,101-101-0,s=255,c=3,t=12,pt=0,l=3,sg=0:1.2
    Aug 05 11:36:20 DEBUG TSF:MSG:READ,101-101-0,s=1,c=0,t=3,pt=0,l=0,sg=0:
    Aug 05 11:36:20 DEBUG TSF:MSG:READ,101-101-0,s=2,c=0,t=3,pt=0,l=0,sg=0:
    Aug 05 11:36:20 DEBUG TSF:MSG:READ,101-101-0,s=3,c=0,t=3,pt=0,l=0,sg=0:
    Aug 05 11:36:20 DEBUG TSF:MSG:READ,101-101-0,s=4,c=0,t=3,pt=0,l=0,sg=0:
    Aug 05 11:36:20 DEBUG TSF:MSG:READ,101-101-0,s=255,c=3,t=26,pt=1,l=1,sg=0:2
    Aug 05 11:36:20 DEBUG TSF:MSG:SEND,0-0-101-101,s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=OK:1
    Aug 05 11:36:30 DEBUG TSF:MSG:READ,21-21-0,s=0,c=1,t=0,pt=7,l=5,sg=0:22.9
    Aug 05 11:36:30 DEBUG TSF:MSG:READ,25-25-0,s=1,c=1,t=38,pt=7,l=5,sg=0:0.28
    Aug 05 11:36:30 DEBUG TSF:MSG:READ,25-25-0,s=255,c=3,t=0,pt=1,l=1,sg=0:6
    Aug 05 11:36:46 DEBUG TSF:MSG:READ,26-26-0,s=1,c=1,t=38,pt=7,l=5,sg=0:3.45
    Aug 05 11:36:46 DEBUG TSF:MSG:READ,26-26-0,s=255,c=3,t=0,pt=1,l=1,sg=0:82
    Aug 05 11:37:02 DEBUG TSF:MSG:SEND,0-0-101-101,s=1,c=1,t=2,pt=0,l=2,sg=0,ft=0,st=OK:0
    Aug 05 11:37:02 DEBUG TSF:MSG:READ,101-101-0,s=1,c=1,t=2,pt=0,l=2,sg=0:0
    Aug 05 11:37:02 DEBUG TSF:MSG:ACK
    Aug 05 11:37:03 DEBUG TSF:MSG:SEND,0-0-101-101,s=3,c=1,t=2,pt=0,l=2,sg=0,ft=0,st=OK:0
    Aug 05 11:37:03 DEBUG TSF:MSG:READ,101-101-0,s=3,c=1,t=2,pt=0,l=2,sg=0:0
    Aug 05 11:37:03 DEBUG TSF:MSG:ACK
    Aug 05 11:37:04 DEBUG !TSF:RTE:100 UNKNOWN
    Aug 05 11:37:04 DEBUG !TSF:MSG:SEND,0-0-100-100,s=1,c=1,t=2,pt=0,l=2,sg=0,ft=0,st=NACK:0
    Aug 05 11:37:30 DEBUG TSF:MSG:READ,21-21-0,s=0,c=1,t=0,pt=7,l=5,sg=0:23.0
    Aug 05 11:37:32 DEBUG TSF:MSG:READ,25-25-0,s=1,c=1,t=38,pt=7,l=5,sg=0:0.28
    Aug 05 11:37:32 DEBUG TSF:MSG:READ,25-25-0,s=255,c=3,t=0,pt=1,l=1,sg=0:6
    

 

411
Online

7.9k
Users

8.7k
Topics

93.7k
Posts