@martinhjelmare
Thank you for your reply.
I am using the moisture sensor. https://www.mysensors.org/build/moisture
I just copied the sketch. As far as I understand it, there are no changes necessary.
This is some output from the Arduino Seriel Monitor:
112455 TSM:ID:REQ
112458 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
114465 !TSM:ID:FAIL
114466 TSM:FAIL:CNT=6
114468 TSM:FAIL:PDT
124471 TSM:FAIL:RE-INIT
124473 TSM:INIT
124480 TSM:INIT:TSP OK
124482 TSM:FPAR
124485 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
124566 TSF:MSG:READ,0-0-255,s=255,c=3,t=8,pt=1,l=1,sg=0:0
124571 TSF:MSG:FPAR OK,ID=0,D=1
126493 TSM:FPAR:OK
126494 TSM:ID
126496 TSM:ID:REQ
126499 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
128506 TSM:ID
128507 TSM:ID:REQ
128510 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
130518 TSM:ID
130519 TSM:ID:REQ
130522 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
132529 TSM:ID
132530 TSM:ID:REQ
132533 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
134540 !TSM:ID:FAIL
134541 TSM:FAIL:CNT=7
134544 TSM:FAIL:PDT
194546 TSM:FAIL:RE-INIT
194548 TSM:INIT
194555 TSM:INIT:TSP OK
194557 TSM:FPAR
194561 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
194913 TSF:MSG:READ,0-0-255,s=255,c=3,t=8,pt=1,l=1,sg=0:0
194918 TSF:MSG:FPAR OK,ID=0,D=1
196569 TSM:FPAR:OK
196570 TSM:ID
196572 TSM:ID:REQ
196575 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
198582 TSM:ID
198583 TSM:ID:REQ
198586 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
200593 TSM:ID
200594 TSM:ID:REQ
200597 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
202604 TSM:ID
202605 TSM:ID:REQ
202608 TSF:MSG:SEND,255-255-0-0,s=255,c=3,t=3,pt=0,l=0,sg=0,ft=0,st=OK:
204615 !TSM:ID:FAIL
204616 TSM:FAIL:CNT=7
204618 TSM:FAIL:PDT
This is some output from the mysgw.service
( tail -n 40 -F /var/log/syslog | grep mysgw
)
Mar 29 17:36:52 raspberrypi mysgw: TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
Mar 29 17:36:52 raspberrypi mysgw: Sending message on topic: mysensors-out/255/255/3/0/3
Mar 29 17:37:56 raspberrypi mysgw: TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
Mar 29 17:37:56 raspberrypi mysgw: TSF:MSG:BC
Mar 29 17:37:56 raspberrypi mysgw: TSF:MSG:FPAR REQ,ID=255
Mar 29 17:37:56 raspberrypi mysgw: TSF:PNG:SEND,TO=0
Mar 29 17:37:56 raspberrypi mysgw: TSF:CKU:OK
Mar 29 17:37:56 raspberrypi mysgw: TSF:MSG:GWL OK
Mar 29 17:37:56 raspberrypi mysgw: TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
Mar 29 17:37:58 raspberrypi mysgw: TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
Mar 29 17:37:58 raspberrypi mysgw: Sending message on topic: mysensors-out/255/255/3/0/3
Mar 29 17:38:02 raspberrypi mysgw: TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
Mar 29 17:38:02 raspberrypi mysgw: Sending message on topic: mysensors-out/255/255/3/0/3
Mar 29 17:39:06 raspberrypi mysgw: TSF:MSG:READ,255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
Mar 29 17:39:06 raspberrypi mysgw: TSF:MSG:BC
Mar 29 17:39:06 raspberrypi mysgw: TSF:MSG:FPAR REQ,ID=255
Mar 29 17:39:06 raspberrypi mysgw: TSF:PNG:SEND,TO=0
Mar 29 17:39:06 raspberrypi mysgw: TSF:CKU:OK
Mar 29 17:39:06 raspberrypi mysgw: TSF:MSG:GWL OK
Mar 29 17:39:07 raspberrypi mysgw: TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
Mar 29 17:39:08 raspberrypi mysgw: TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
Mar 29 17:39:08 raspberrypi mysgw: Sending message on topic: mysensors-out/255/255/3/0/3
Mar 29 17:39:10 raspberrypi mysgw: TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
Mar 29 17:39:10 raspberrypi mysgw: Sending message on topic: mysensors-out/255/255/3/0/3
Mar 29 17:39:12 raspberrypi mysgw: TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
Mar 29 17:39:12 raspberrypi mysgw: Sending message on topic: mysensors-out/255/255/3/0/3
Mar 29 17:39:14 raspberrypi mysgw: TSF:MSG:READ,255-255-0,s=255,c=3,t=3,pt=0,l=0,sg=0:
Mar 29 17:39:14 raspberrypi mysgw: Sending message on topic: mysensors-out/255/255/3/0/3
Can you help me understand those logs? As far as I interpret it, the moisture sensor runs (but gets no ID from time to time?!) (346778 !TSM:ID:FAIL)....
Does my moisture sensor send updates? Does it work?
Thank you!