atlewee / node-red-contrib-knx-easy

Use KNX just like the mqtt nodes
20 stars 5 forks source link

communication fail hours or days #4

Closed duncanvsmith996 closed 5 years ago

duncanvsmith996 commented 5 years ago

This is a great node-red addition. I am using the communication node in my own home with a weinzierl knx ip baos 772 with no problems. I was busy with another server using a weinzierl knx ip baos 773 and the communication fails after a few hours or somtimes days. I was doing some testing, is I break the network connection, and reconnect. The knx connection will reinstate the connection only once. If I repeat the test it will not reconnect a second time.

15 Nov 09:45:37 - [error] [knxEasy-config:efd324f1.af3278] timed out waiting for CONNECTIONSTATE_RESPONSE [warn] 2018-11-15 09:45:40.918 connection timed out, retrying... [warn] 2018-11-15 09:45:40.929 connection timed out, retrying... [warn] 2018-11-15 09:45:43.933 connection timed out, retrying... [warn] 2018-11-15 09:45:43.935 connection timed out, retrying... 15 Nov 10:23:06 - [error] [knxEasy-config:efd324f1.af3278] timed out waiting for CONNECTIONSTATE_RESPONSE [warn] 2018-11-15 10:23:09.233 connection timed out, retrying... [warn] 2018-11-15 10:23:09.235 connection timed out, retrying... [warn] 2018-11-15 10:23:12.251 connection timed out, retrying... [warn] 2018-11-15 10:23:12.253 connection timed out, retrying...

verstrepeng commented 5 years ago

Seems I also have compatibel issues... Knx just stops working after days/weeks. Where Can I find the logs ?

atlewee commented 5 years ago

I will investigate this. I have not had access to a unit for testing in a while. I get the same issue myself after a power outage at home. I might get some time to update this today. If anyone knows a fix, I'm open for suggestions.

atlewee commented 5 years ago

I have released a new version 0.0.7 that fixed my problem. My problem was when the KNX bus lost power/connection, not the gateway. I have now added new status to the nodes that shows gateway connected, but error on KNX-bus. I could not replicate your problem with loss of ethernet communication. (If I understood you correctly) ( My gateway is PoE, and I only tested by removing the plug and back again a couple of times, since its PoE it will also restart the gateway... )

There was a bug in my code that tried to instantiate more and more connections on every connection error. Maybe this caused your problem. Please try version 0.0.7 and see if it fixes your problem as well :)

atlewee commented 5 years ago

Issue should be resolved now y removing that bug, we can open again if it did not solve the problem.