Closed Icesory closed 9 years ago
Ok i know where the failure is. I have defined a rule, which activated a switch. This occours before the Homeduino device (Arduino) is registered. After this all Pimatic-Homeduino devices cant be used from the Mobile-Frontend.
01:25:47.643 [pimatic-mobile-frontend] rendering html finished
01:25:47.649 [pimatic] listening for http-request on port 80...
01:25:48.259 [pimatic-homeduino] data: "ACK"
01:25:48.261 [pimatic-homeduino] data: "PING"
01:25:48.264 [pimatic-homeduino] data: "ready"
01:25:48.266 [pimatic-homeduino] Connected to homeduino device.
01:25:48.268 [pimatic-homeduino] data: "ready"
01:25:58.613 [pimatic-homeduino] data: "PING"
Sometimes i got this failure message
01:30:22.197 [pimatic-mobile-frontend] rendering html
01:30:22.705 [pimatic-mobile-frontend] rendering html finished
01:30:22.711 [pimatic] rule test error executing an action: Serialport not open.
01:30:22.711 [pimatic] Error: Serialport not open.
01:30:22.711 [pimatic]> at SerialPortFactory.SerialPort.write (/home/ronny/pimatic-dev/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/serialport/serialport.js:211:17)
01:30:22.711 [pimatic]> at SerialPort.writeAsync (eval at makeNodePromisifiedEval (/home/ronny/pimatic-dev/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/bluebird/js/main/promisify.js:199:12), <anonymous>:12:22)
01:30:22.711 [pimatic]> at SerialPortDriver.write (/home/ronny/pimatic-dev/node_modules/pimatic-homeduino/node_modules/homeduino/lib/driver/serialport.js:87:28)
01:30:22.711 [pimatic]> at /home/ronny/pimatic-dev/node_modules/pimatic-homeduino/node_modules/homeduino/lib/board.js:156:42
01:30:22.711 [pimatic]> at tryCatch1 (/home/ronny/pimatic-dev/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/bluebird/js/main/util.js:43:21)
01:30:22.711 [pimatic]> at Promise$_callHandler [as _callHandler] (/home/ronny/pimatic-dev/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/bluebird/js/main/promise.js:627:13)
01:30:22.711 [pimatic]> at Promise$_settlePromiseFromHandler [as _settlePromiseFromHandler] (/home/ronny/pimatic-dev/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/bluebird/js/main/promise.js:641:18)
01:30:22.711 [pimatic]> at Promise$_settlePromiseAt [as _settlePromiseAt] (/home/ronny/pimatic-dev/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/bluebird/js/main/promise.js:804:14)
01:30:22.711 [pimatic]> at Async$_consumeFunctionBuffer [as _consumeFunctionBuffer] (/home/ronny/pimatic-dev/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/bluebird/js/main/async.js:75:12)
01:30:22.711 [pimatic]> at Async$consumeFunctionBuffer (/home/ronny/pimatic-dev/node_modules/pimatic-homeduino/node_modules/homeduino/node_modules/bluebird/js/main/async.js:38:14)
01:30:22.711 [pimatic]> at process._tickCallback (node.js:415:13)
01:30:22.719 [pimatic] listening for http-request on port 80...
01:30:23.721 [pimatic-homeduino] data: "PING"
01:30:23.728 [pimatic-homeduino] data: "ready"
01:30:23.730 [pimatic-homeduino] Connected to homeduino device.
01:30:23.736 [pimatic-homeduino] data: "ACK"
01:30:44.088 [pimatic-homeduino] data: "PING"
01:31:03.783 [pimatic-homeduino] data: "PING"
01:31:24.135 [pimatic-homeduino] data: "PING"
Is it possible to set the Homeduino Plugin as loaded after connected to homeduino device?
Is this resolved with 7c8e743?
I cant reproduce the failure
On my development pimatic version i got sometimes a strange timeout while activating a activator xD. I press on an switch to change the state and not happen but press i the button on my remote the button in the mobile-frontend changed his state.
So the received data is right linked to the frontend. But i think the action-links from the frontend can be broken.
What can i do to discover this?