{"action":"opened","issue":{"url":"https://api.github.com/repos/noopkat/avrgirl-arduino/issues/55","repository_url":"https://api.github.com/repos/noopkat/avrgirl-arduino","labels_url":"https://api.github.com/repos/noopkat/avrgirl-arduino/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/noopkat/avrgirl-arduino/issues/55/comments","events_url":"https://api.github.com/repos/noopkat/avrgirl-arduino/issues/55/events","html_url":"https://github.com/noopkat/avrgirl-arduino/issues/55","id":136195973,"number":55,"title":"Flashing throws often a failure on RPi","user":{"login":"Icesory","id":9157026,"avatar_url":"https://avatars.githubusercontent.com/u/9157026?v=3","gravatar_id":"","url":"https://api.github.com/users/Icesory","html_url":"https://github.com/Icesory","followers_url":"https://api.github.com/users/Icesory/followers","following_url":"https://api.github.com/users/Icesory/following{/other_user}","gists_url":"https://api.github.com/users/Icesory/gists{/gist_id}","starred_url":"https://api.github.com/users/Icesory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Icesory/subscriptions","organizations_url":"https://api.github.com/users/Icesory/orgs","repos_url":"https://api.github.com/users/Icesory/repos","events_url":"https://api.github.com/users/Icesory/events{/privacy}","received_events_url":"https://api.github.com/users/Icesory/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-24T21:46:48Z","updated_at":"2016-02-24T21:46:48Z","closed_at":null,"body":"First of all. Big thanks for this great work! \r\n\r\nI have build an Plugin for Pimatic https://github.com/Icesory/pimatic-arduino-updater. When we run an flash process on an RPi often an Time out error occurs. This is testet with Nano328(CH340), Nano328(FT232RL), ProMini 5V328(FT232RL).\r\n\r\nMost times this error occurs:\r\n```\r\nconnected\r\nreset complete.\r\nflashing, please wait...\r\nflash complete(red)\r\n{ cause: [Error: Sending 3020: receiveData timeout after 400ms], isOperational: true}\r\n```\r\nOr this\r\n```\r\nconnected\r\nreset complete.\r\nflashing, please wait...\r\nflash complete(red)\r\n{ cause: [Error: Sending 55001620: receiveData timeout after 400ms], isOperational: true}\r\n```\r\n\r\nThis is an complete log from Pimatic with an other failure\r\n```\r\n22:31:55.805 [pimatic-arduino-updater] Start Arduino flash for homeduino\r\nconnected\r\nreset complete.\r\nflashing, please wait...\r\n22:32:02.960 [pimatic] A uncaught exception occured: TypeError: Cannot call method 'toString' of undefined\r\n22:32:02.960 [pimatic]>    at /home/pi/pimatic-app/node_modules/pimatic-arduino-updater/node_modules/avrgirl-arduino/node_modules/stk500/index.js:311:44\r\n22:32:02.960 [pimatic]>    at /home/pi/pimatic-app/node_modules/pimatic-arduino-updater/node_modules/avrgirl-arduino/node_modules/stk500/lib/sendCommand.js:37:16\r\n22:32:02.960 [pimatic]>    at finished (/home/pi/pimatic-app/node_modules/pimatic-arduino-updater/node_modules/avrgirl-arduino/node_modules/stk500/lib/receiveData.js:38:5)\r\n22:32:02.960 [pimatic]>    at null._onTimeout (/home/pi/pimatic-app/node_modules/pimatic-arduino-updater/node_modules/avrgirl-arduino/node_modules/stk500/lib/receiveData.js:43:7)\r\n22:32:02.960 [pimatic]>    at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)\r\n22:36:24.314 [pimatic]> This is most probably a bug in pimatic or in a module, please report it!\r\n22:36:24.360 [pimatic] shutting pimatic down...\r\n```\r\n\r\nThe used node version is v0.10.24. On my dev machine (Ubuntu 14.04LTS) all works right. But on the RPi almost every flash throws an error. But in most times the Arduino is flashed with the given hexfile."}}