Hi
Im working on a MQTT Port for the Pi, based on your work. During debuging, a discovered a strange behavior. If i connect my Sensor to a Arduino-Gateway, everything works well. As soon as i connect the same Sensor to a Pi-Gateway, the Gateway receives the Messages, but on the Sensor-Side, the Logs looks quiet Special:
send: 20-20-0-0 s=3,c=1,t=0,pt=7,l=5,st=ok:21.1
send: 20-20-0-0 s=2,c=1,t=1,pt=7,l=5,st=ok:55.4
send: 20-20-0-0 s=4,c=1,t=23,pt=7,l=5,st=ok:96
send: 20-20-0-0 s=1,c=1,t=16,pt=0,l=1,st=ok:1
send: 20-20-0-0 s=3,c=1,t=0,pt=7,l=5,st=fail:21.1
send: 20-20-0-0 s=2,c=1,t=1,pt=7,l=5,st=fail:55.4
send: 20-20-0-0 s=4,c=1,t=23,pt=7,l=5,st=fail:97
send: 20-20-0-0 s=1,c=1,t=16,pt=0,l=1,st=fail:0
send: 20-20-0-0 s=3,c=1,t=0,pt=7,l=5,st=fail:21.1
send: 20-20-0-0 s=2,c=1,t=1,pt=7,l=5,st=fail:55.4
send: 20-20-0-0 s=4,c=1,t=23,pt=7,l=5,st=fail:97
send: 20-20-255-255 s=255,c=3,t=7,pt=0,l=0,st=fail:
read: 20-1-255 s=255,c=3,t=7,pt=0,l=0:
read: 20-1-255 s=255,c=3,t=7,pt=0,l=0:
read: 20-1-255 s=255,c=3,t=7,pt=0,l=0:
read: 0-0-20 s=255,c=3,t=8,pt=1,l=1:0
new parent=0, d=1
send: 20-20-0-0 s=1,c=1,t=16,pt=0,l=1,st=ok:0
send: 20-20-0-0 s=3,c=1,t=0,pt=7,l=5,st=ok:21.1
send: 20-20-0-0 s=2,c=1,t=1,pt=7,l=5,st=ok:55.4
send: 20-20-0-0 s=4,c=1,t=23,pt=7,l=5,st=fail:97
send: 20-20-0-0 s=1,c=1,t=16,pt=0,l=1,st=fail:1
send: 20-20-0-0 s=3,c=1,t=0,pt=7,l=5,st=fail:21.1
send: 20-20-0-0 s=2,c=1,t=1,pt=7,l=5,st=fail:55.4
send: 20-20-0-0 s=4,c=1,t=23,pt=7,l=5,st=fail:97
send: 20-20-0-0 s=1,c=1,t=16,pt=0,l=1,st=fail:0
send: 20-20-0-0 s=3,c=1,t=0,pt=7,l=5,st=fail:21.1
send: 20-20-255-255 s=255,c=3,t=7,pt=0,l=0,st=fail:
read: 20-1-255 s=255,c=3,t=7,pt=0,l=0:
read: 20-1-255 s=255,c=3,t=7,pt=0,l=0:
read: 20-1-255 s=255,c=3,t=7,pt=0,l=0:
send: 20-20-0-0 s=2,c=1,t=1,pt=7,l=5,st=ok:55.3
send: 20-20-0-0 s=4,c=1,t=23,pt=7,l=5,st=ok:96
send: 20-20-0-0 s=1,c=1,t=16,pt=0,l=1,st=ok:0
send: 20-20-0-0 s=3,c=1,t=0,pt=7,l=5,st=fail:21.1
send: 20-20-0-0 s=2,c=1,t=1,pt=7,l=5,st=fail:55.3
send: 20-20-0-0 s=4,c=1,t=23,pt=7,l=5,st=fail:96
send: 20-20-0-0 s=1,c=1,t=16,pt=0,l=1,st=fail:1
send: 20-20-0-0 s=3,c=1,t=0,pt=7,l=5,st=fail:21.1
send: 20-20-0-0 s=2,c=1,t=1,pt=7,l=5,st=fail:55.3
send: 20-20-0-0 s=4,c=1,t=23,pt=7,l=5,st=fail:97
send: 20-20-255-255 s=255,c=3,t=7,pt=0,l=0,st=fail:
read: 20-1-255 s=255,c=3,t=7,pt=0,l=0:
read: 20-1-255 s=255,c=3,t=7,pt=0,l=0:
read: 20-1-255 s=255,c=3,t=7,pt=0,l=0:
read: 0-0-20 s=255,c=3,t=8,pt=1,l=1:0
new parent=0, d=1
send: 20-20-0-0 s=1,c=1,t=16,pt=0,l=1,st=ok:0
send: 20-20-0-0 s=4,c=1,t=23,pt=7,l=5,st=ok:97
send: 20-20-0-0 s=1,c=1,t=16,pt=0,l=1,st=ok:1
send: 20-20-0-0 s=4,c=1,t=23,pt=7,l=5,st=fail:96
send: 20-20-0-0 s=1,c=1,t=16,pt=0,l=1,st=fail:0
send: 20-20-0-0 s=4,c=1,t=23,pt=7,l=5,st=fail:96
send: 20-20-0-0 s=1,c=1,t=16,pt=0,l=1,st=fail:1
send: 20-20-0-0 s=4,c=1,t=23,pt=7,l=5,st=fail:97
send: 20-20-0-0 s=1,c=1,t=16,pt=0,l=1,st=fail:0
send: 20-20-0-0 s=4,c=1,t=23,pt=7,l=5,st=fail:97
send: 20-20-255-255 s=255,c=3,t=7,pt=0,l=0,st=fail:
read: 20-1-255 s=255,c=3,t=7,pt=0,l=0:
read: 20-1-255 s=255,c=3,t=7,pt=0,l=0:
read: 20-1-255 s=255,c=3,t=7,pt=0,l=0:
send: 20-20-0-0 s=1,c=1,t=16,pt=0,l=1,st=ok:0
send: 20-20-0-0 s=3,c=1,t=0,pt=7,l=5,st=ok:21.1
send: 20-20-0-0 s=2,c=1,t=1,pt=7,l=5,st=ok:55.3
send: 20-20-0-0 s=4,c=1,t=23,pt=7,l=5,st=ok:96
send: 20-20-0-0 s=1,c=1,t=16,pt=0,l=1,st=fail:1
send: 20-20-0-0 s=3,c=1,t=0,pt=7,l=5,st=fail:21.1
send: 20-20-0-0 s=2,c=1,t=1,pt=7,l=5,st=fail:55.3
send: 20-20-0-0 s=4,c=1,t=23,pt=7,l=5,st=fail:96
send: 20-20-0-0 s=1,c=1,t=16,pt=0,l=1,st=fail:0
send: 20-20-0-0 s=3,c=1,t=0,pt=7,l=5,st=fail:21.1
send: 20-20-0-0 s=2,c=1,t=1,pt=7,l=5,st=fail:55.3
send: 20-20-255-255 s=255,c=3,t=7,pt=0,l=0,st=fail:
read: 20-1-255 s=255,c=3,t=7,pt=0,l=0:
read: 20-1-255 s=255,c=3,t=7,pt=0,l=0:
read: 20-1-255 s=255,c=3,t=7,pt=0,l=0:
send: 20-20-0-0 s=4,c=1,t=23,pt=7,l=5,st=ok:96
send: 20-20-0-0 s=1,c=1,t=16,pt=0,l=1,st=ok:0
send: 20-20-0-0 s=3,c=1,t=0,pt=7,l=5,st=ok:21.1
send: 20-20-0-0 s=2,c=1,t=1,pt=7,l=5,st=fail:55.3
send: 20-20-0-0 s=4,c=1,t=23,pt=7,l=5,st=fail:97
send: 20-20-0-0 s=1,c=1,t=16,pt=0,l=1,st=fail:1
send: 20-20-0-0 s=3,c=1,t=0,pt=7,l=5,st=fail:21.1
send: 20-20-0-0 s=2,c=1,t=1,pt=7,l=5,st=fail:55.3
send: 20-20-0-0 s=4,c=1,t=23,pt=7,l=5,st=fail:97
send: 20-20-0-0 s=1,c=1,t=16,pt=0,l=1,st=fail:0
send: 20-20-255-255 s=255,c=3,t=7,pt=0,l=0,st=fail:
read: 20-1-255 s=255,c=3,t=7,pt=0,l=0:
read: 20-1-255 s=255,c=3,t=7,pt=0,l=0:
read: 20-1-255 s=255,c=3,t=7,pt=0,l=0:
read: 0-0-20 s=255,c=3,t=8,pt=1,l=1:0
new parent=0, d=1
As you can see, there is kind of a Pattern ocouring every 14 Messages starting with 3-4 OK, followed by 7 FAIL and then the Discovery. Any Ideas what the cause ot this behavor could be?
Greetings
busa