My issue is that no sensor nodes are found in Ethernet gateway configuration, while in serial gateway configuration everything is working.
NickL
@NickL
Best posts made by NickL
-
RE: Raspberry Pi 4B, Ethernet gateway, RFM95 - no sensor nodes found
Latest posts made by NickL
-
myscontroller with mqtt gateway
I have a flow like this:
[{"id":"16a94524.a7f49b","type":"tab","label":"MySensors","disabled":false,"info":""},{"id":"5ee1d371.4bf144","type":"myscontroller","z":"16a94524.a7f49b","database":"bea8f6d2.2a1b38","name":"","handleid":true,"timeresponse":true,"timezone":"US/Eastern","measurementsystem":"M","mqttroot":"mysensors-out","x":310,"y":120,"wires":[["8fd52d51.33df68","dfec2cf6.42e45"]]},{"id":"dc2b7145.4ea57","type":"mysdecode","z":"16a94524.a7f49b","database":"bea8f6d2.2a1b38","name":"decode","mqtt":true,"enrich":false,"x":140,"y":120,"wires":[["5ee1d371.4bf144","d63bd8aa.d34ef8"]]},{"id":"8fd52d51.33df68","type":"mysencode","z":"16a94524.a7f49b","name":"encode","mqtt":true,"mqtttopic":"","x":500,"y":120,"wires":[["781b37ca.286d28"]]},{"id":"d63bd8aa.d34ef8","type":"mysdebug","z":"16a94524.a7f49b","name":"","x":310,"y":180,"wires":[["4170e76.d577f98"]]},{"id":"4170e76.d577f98","type":"debug","z":"16a94524.a7f49b","name":"request","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":300,"y":240,"wires":[]},{"id":"dfec2cf6.42e45","type":"mysdebug","z":"16a94524.a7f49b","name":"","x":510,"y":180,"wires":[["5653b23b.03664c"]]},{"id":"5653b23b.03664c","type":"debug","z":"16a94524.a7f49b","name":"response","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":660,"y":180,"wires":[]},{"id":"ccc86104.d7832","type":"mqtt in","z":"16a94524.a7f49b","name":"Listen on MyS out","topic":"mysensors-out/#","qos":"2","datatype":"auto","broker":"a4c6ef71.21994","nl":false,"rap":true,"rh":0,"x":170,"y":60,"wires":[["dc2b7145.4ea57"]]},{"id":"781b37ca.286d28","type":"mqtt out","z":"16a94524.a7f49b","d":true,"name":"Send to MyS out","topic":"","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"a4c6ef71.21994","x":690,"y":120,"wires":[]},{"id":"bea8f6d2.2a1b38","type":"mysensorsdb","name":"","file":"/home/pi/MySensors/aut-main.db"},{"id":"a4c6ef71.21994","type":"mqtt-broker","name":"aut-main","broker":"aut-main","port":"1883","clientid":"","usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"sessionExpiry":""}]
Sensor nodes have statically assigned node ids. Gateway is on Raspberry Pi, loaded with MySensors 2.4.0 Alpha. Nodes are on MySensors 2.3.2.
If I'm enabling 'Send to MyS out' node, during the presentation phase I'm getting a flood of messages trough 'response' node, all containing the same"INTERNAL;nodeId:11;childId:255;SubType:I_CONFIG;ACK:0;Payload:M"
When monitoring MQTT, it is:
mysensors-out/11/255/3/0/6 M
I understand that with static node ids I don't need myscontroller output, but thought I'll ask anyway, because at some point I may decide to allow dynamic node ids.
-
RE: Raspberry Pi 4B, Ethernet gateway, RFM95 - no sensor nodes found
@Yveaux
In Ethernet gateway mode, resetting sensor nodes didin't help.Not sure it's Domoticz, because the same Pi with the same radio plugged into an Arduino in serial gateway mode produces lines like below for all sensor nodes, without even resetting anything:
cat /dev/ttyUSB0 0;255;3;0;9;241037 TSF:MSG:READ,20-20-0,s=7,c=1,t=0,pt=7,l=5,sg=0:24.4 20;7;1;0;0;24.4 0;255;3;0;9;241135 TSF:MSG:READ,20-20-0,s=8,c=1,t=1,pt=7,l=5,sg=0:46.1 20;8;1;0;1;46.1 0;255;3;0;9;241229 TSF:MSG:READ,20-20-0,s=255,c=3,t=0,pt=1,l=1,sg=0:93 0;255;3;0;9;241236 TSF:MSG:ACK REQ
-
RE: Raspberry Pi 4B, Ethernet gateway, RFM95 - no sensor nodes found
@Yveaux Should I try with a different controller? If so, which one would you recommend?
-
RE: Raspberry Pi 4B, Ethernet gateway, RFM95 - no sensor nodes found
My issue is that no sensor nodes are found in Ethernet gateway configuration, while in serial gateway configuration everything is working.
-
Raspberry Pi 4B, Ethernet gateway, RFM95 - no sensor nodes found
My configuration:
Raspberry Pi 4B, Ethernet gateway, RFM95This radio works in the serial gateway configuration with an Arduino board, being connected to the same Pi / Domoticz through USB, all sensor nodes are listed as they should.
If I connect the very same radio unit directly to Pi in Ethernet gateway mode, Domoticz sees the gateway and puts the following into the log.
- From Domoticz log:
2021-06-22 21:11:58.154 Status: LOCAL_GW: connected to: 127.0.0.1:5003 2021-06-22 21:12:00.573 LOCAL_GW: Gateway Ready... 2021-06-22 21:12:00.574 LOCAL_GW: Gateway Version: 2.3.2
- mysgw output
$ sudo MySensors/bin/mysgw Jun 22 21:11:53 INFO Starting gateway... Jun 22 21:11:53 INFO Protocol version - 2.3.2 Jun 22 21:11:53 DEBUG MCO:BGN:INIT GW,CP=RLNGL---,FQ=NA,REL=255,VER=2.3.2 Jun 22 21:11:53 DEBUG TSF:LRT:OK Jun 22 21:11:53 DEBUG TSM:INIT Jun 22 21:11:53 DEBUG TSF:WUR:MS=0 Jun 22 21:11:53 DEBUG TSM:INIT:TSP OK Jun 22 21:11:53 DEBUG TSM:INIT:GW MODE Jun 22 21:11:53 DEBUG TSM:READY:ID=0,PAR=0,DIS=0 Jun 22 21:11:53 DEBUG MCO:REG:NOT NEEDED Jun 22 21:11:53 DEBUG Listening for connections on ???:5003 Jun 22 21:11:53 DEBUG MCO:BGN:STP Jun 22 21:11:53 DEBUG MCO:BGN:INIT OK,TSP=1 Jun 22 21:11:53 DEBUG TSM:READY:NWD REQ Jun 22 21:12:00 DEBUG ?TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=NACK: Jun 22 21:12:00 DEBUG New connection from 127.0.0.1 Jun 22 21:12:00 DEBUG GWT:TSA:C=0,CONNECTED Jun 22 21:12:00 DEBUG GWT:RFC:C=0,MSG=0;0;3;0;2; Jun 22 21:12:00 DEBUG GWT:RFC:C=0,MSG=0;0;3;0;2;Get Version Jun 22 21:12:01 DEBUG GWT:RFC:C=0,MSG=0;0;3;0;18;PING Jun 22 21:12:11 DEBUG GWT:RFC:C=0,MSG=0;0;3;0;18;PING ...
I tried with MySensors v. 2.3.2 and 2.4.0-alpha, same situation.
Configure command:
./configure --my-gateway=ethernet --my-port=5003 --my-transport=rfm95 --my-rfm95-irq-pin=22 --my-rfm95-cs-pin=24 --my-rfm95-rst-pin=29(was !TSM:INIT:TSP FAIL with the grounded Reset pin, Adafruit RFM95 transceiver breakout)