xcomfortd
xcomfortd copied to clipboard
Messages are "delayed" or "off by one"
Firstly, I must admit that I am using the CKOZ 00/03 instead of the CKOZ 00/14, so I'm open for the posibility that this might be the cause of my problem... (but I don't think it is.)
The first radio message after starting xcomfortd immediately triggers these two lines without any delay:
error message: unknown command
received spurious ack; message timeout is possibly too low
The second radio message appears to do nothing. The third radio message, however, seems to activate the second one. The fourth triggers the third, and so on. I guess you could think of it as a FILO pipeline with length 1.
Other than that (and some MQTT disconnection issues that I managed to work out), it seems to work perfectly!
Outbound messages are send immediately, as far as I can tell.
Cool that you got it to work! Regarding the issues that you are seeing, can you log everything and attach it here, I might be able to see what's going on.
@Geving how did you fix MQTT Disconnected issues ?
After one command is send (successfully), it disconnects and gives me "MQTT Disconnected, The connection was lost"
1561095917: mosquitto version 1.6.2 starting 1561095917: Config loaded from /etc/mosquitto/mosquitto.conf. 1561095917: Opening ipv4 listen socket on port 1883. 1561095917: Opening ipv6 listen socket on port 1883. 1561095933: New connection from ::1 on port 1883. 1561095933: New client connected from ::1 as xcomfort (p2, c0, k30). 1561095933: No will message specified. 1561095933: Sending CONNACK to xcomfort (0, 0) 1561095933: Received SUBSCRIBE from xcomfort 1561095933: xcomfort/+/set/+ (QoS 0) 1561095933: xcomfort 0 xcomfort/+/set/+ 1561095933: Sending SUBACK to xcomfort 1561095943: New connection from ::1 on port 1883. 1561095943: New client connected from ::1 as mosq/4vJKjkgge3tz1JJigB (p2, c1, k60). 1561095943: No will message specified. 1561095943: Sending CONNACK to mosq/4vJKjkgge3tz1JJigB (0, 0) 1561095943: Received PUBLISH from mosq/4vJKjkgge3tz1JJigB (d0, q0, r0, m0, 'xcomfort/1/set/switch', ... (5 bytes)) 1561095943: Sending PUBLISH to xcomfort (d0, q0, r0, m0, 'xcomfort/1/set/switch', ... (5 bytes)) 1561095943: Received DISCONNECT from mosq/4vJKjkgge3tz1JJigB 1561095943: Client mosq/4vJKjkgge3tz1JJigB disconnected.
@deve87 Sorry to say it, but I can't remember! Also, because my C++ skills were not up to the task of modifying/expanding this project to my own satisfaction, so I wrote my own implementation in C# (.NET Core 2.2) as a part of my bachelor thesis. Thus, I haven't been using this code for a long time.