thank you for the plugin, it works very well.
Sorry I do not speak russian, but you can write in russian and I can google-translate it
I also get
Код: Выделить всё
10:43:49 working thread: cycle_webvars.php
PHP Warning: socket_read(): unable to read from socket [10060]: A connection at
tempt failed because the connected party did not properly respond after a period
of time, or established connection failed because connected host has failed to
respond.
in C:\_majordomo\htdocs\modules\mysensor\phpMSTcp.php on line 72
I can ignore this error as everything is working fine, I have 4 sensors connected.
However, one thing happens from time to time, it is usually when I restart some of the nodes, for example if battery is empty, and when I connect the battery - then controller looses communication with the gateway and my CPU usage goes to 100%.
When this happens, I cannot send or receive any command to any of the nodes, and cycle-mysensors.php log is empty, it just says on every 15 minutes.
Код: Выделить всё
2015-12-10 04:11:55Disconnected
2015-12-10 04:11:55 Reconnect
2015-12-10 04:11:55 Connecting TCP
2015-12-10 04:11:55 Connected
2015-12-10 04:11:55 Connecting main
2015-12-10 04:11:55 Send: 0;0;3;0;14;Gateway startup complete
2015-12-10 04:11:55 Internal: Node:0; Sensor:0; Type:3; Ack:0; Sub:14; Msg:Gateway startup complete.
(a lot of errors mentioned above)
2015-12-10 04:26:56Disconnected
2015-12-10 04:26:56 Reconnect
2015-12-10 04:26:56 Connecting TCP
2015-12-10 04:26:56 Connected
2015-12-10 04:26:56 Connecting main
2015-12-10 04:26:56 Send: 0;0;3;0;14;Gateway startup complete
2015-12-10 04:26:57 Internal: Node:0; Sensor:0; Type:3; Ack:0; Sub:14; Msg:Gateway startup complete.
Similar thing happens when I make a new sensor, I always have to restart majordomo and things work fine after that.
If I do not restart majordomo, then there is no communication for days.
I am running latest version of majordomo and mysensor plugin, running on the windows 7 laptop.
I can do some php, I work as php developer, do you have any idea how I can fix this, or how to test it?
Would it be possible just to restart majordomo if I see no communication with the gateway?
Thank you all for great controller and code!