Yadoms / yadoms

Yadoms is open source, simple, powerfull, flexible and multiplatforms domotic solution.
https://www.yadoms.com
Other
63 stars 17 forks source link

[Plugin EnOcean] Bad recovery after error #178

Closed sgallou closed 7 years ago

sgallou commented 7 years ago

After dialog error (bad CRC received), dialog was reset and got 2 bad behaviours :

Log was :

2017/01/10 00:29:30 : [INFORMATION] #### START #### 2017/01/10 00:29:30 : [INFORMATION] Opening message queues id yPlugin.1efaf28b-9bce-4051-8d8a-dbf5440f926a 2017/01/10 00:29:30 : [INFORMATION] enOcean started 2017/01/10 00:29:30 : [INFORMATION] EnOcean is starting... 2017/01/10 00:29:31 : [INFORMATION] EnOcean port opened 2017/01/10 00:29:31 : [INFORMATION] Yadoms >>> 55 00 01 00 05 70 03 09 2017/01/10 00:29:32 : [INFORMATION] Yadoms <<< 55 00 21 00 02 26 00 02 0b 01 00 02 06 03 00 01 9f 7a 59 45 4f 01 03 47 41 54 45 57 41 59 43 54 52 4c 00 00 00 00 00 3c 2017/01/10 00:29:32 : [INFORMATION] EnOcean connection was lost 2017/01/10 00:30:01 : [INFORMATION] Yadoms <<< 55 00 07 07 01 7a d5 08 01 9b 8a 64 00 01 ff ff ff ff 2d 00 43 2017/01/10 00:30:01 : [INFORMATION] Received message for id#019B8A64 : 2017/01/10 00:30:01 : [INFORMATION] - CO - Contact = 0 2017/01/10 00:30:02 : [INFORMATION] EnOcean port opened 2017/01/10 00:30:02 : [INFORMATION] Yadoms >>> 55 00 01 00 05 70 03 09 2017/01/10 00:30:02 : [ERROR] Protocol error : Unable to get Dongle Version, timeout waiting answerData received from EnOcean adapter : Header CRC is invalid, look for another sync byte already in buffer 2017/01/10 00:30:02 : [INFORMATION] EnOcean connection was lost 2017/01/10 00:30:03 : [INFORMATION] Yadoms <<< 55 00 07 07 01 7a d5 08 01 9b 8a 64 00 01 ff ff ff ff 2d 00 43 2017/01/10 00:30:03 : [INFORMATION] Received message for id#019B8A64 : 2017/01/10 00:30:03 : [INFORMATION] - CO - Contact = 0 2017/01/10 00:30:33 : [INFORMATION] EnOcean port opened 2017/01/10 00:30:33 : [INFORMATION] Yadoms >>> 55 00 01 00 05 70 03 09 2017/01/10 00:30:33 : [INFORMATION] EnOcean connection was lost 2017/01/10 00:31:03 : [INFORMATION] EnOcean port opened 2017/01/10 00:31:03 : [INFORMATION] Yadoms >>> 55 00 01 00 05 70 03 09 2017/01/10 00:31:04 : [INFORMATION] EnOcean connection was lost 2017/01/10 00:31:34 : [INFORMATION] EnOcean port opened 2017/01/10 00:31:34 : [INFORMATION] Yadoms >>> 55 00 01 00 05 70 03 09 2017/01/10 00:31:35 : [INFORMATION] EnOcean connection was lost 2017/01/10 00:32:05 : [INFORMATION] EnOcean port opened 2017/01/10 00:32:05 : [INFORMATION] Yadoms >>> 55 00 01 00 05 70 03 09 2017/01/10 00:32:05 : [INFORMATION] EnOcean connection was lost 2017/01/10 00:32:36 : [INFORMATION] EnOcean port opened 2017/01/10 00:32:36 : [INFORMATION] Yadoms >>> 55 00 01 00 05 70 03 09 2017/01/10 00:32:36 : [INFORMATION] EnOcean connection was lost 2017/01/10 00:33:07 : [INFORMATION] EnOcean port opened 2017/01/10 00:33:07 : [INFORMATION] Yadoms >>> 55 00 01 00 05 70 03 09 2017/01/10 00:33:07 : [INFORMATION] Yadoms <<< 55 00 21 00 02 26 00 02 0b 01 00 02 06 03 00 01 9f 7a 59 45 4f 01 03 47 41 54 45 57 41 59 43 54 52 4c 00 00 00 00 00 3c 2017/01/10 00:33:07 : [INFORMATION] EnOcean connection was lost 2017/01/10 00:33:37 : [INFORMATION] EnOcean port opened 2017/01/10 00:33:37 : [INFORMATION] Yadoms >>> 55 00 01 00 05 70 03 09 2017/01/10 00:33:38 : [INFORMATION] EnOcean connection was lost 2017/01/10 00:34:11 : [INFORMATION] EnOcean port opened 2017/01/10 00:34:11 : [INFORMATION] Yadoms >>> 55 00 01 00 05 70 03 09 2017/01/10 00:34:12 : [INFORMATION] EnOcean connection was lost 2017/01/10 00:34:12 : [INFORMATION] Stop requested 2017/01/10 00:34:12 : [INFORMATION] enOcean is stopped 2017/01/10 00:34:12 : [INFORMATION] Close message queues 2017/01/10 00:34:12 : [ERROR] Protocol error : Unable to get Dongle Version, timeout waiting answerProtocol error : Unable to get Dongle Version, timeout waiting answerProtocol error : Unable to get Dongle Version, timeout waiting answerProtocol error : Unable to get Dongle Version, timeout waiting answerProtocol error : Unable to get Dongle Version, timeout waiting answerProtocol error : Unable to get Dongle Version, timeout waiting answerProtocol error : Unable to get Dongle Version, timeout waiting answerProtocol error : Unable to get Dongle Version, timeout waiting answerProtocol error : Unable to get Dongle Version, timeout waiting answer

sgallou commented 7 years ago

Fixed by 9f5f0b5f853dd99b26c932d31e3cbe5d76e01a93