{"action":"created","issue":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/517","labels_url":"https://api.github.com/repos/esp8266/Arduino/issues/517/labels{/name}","comments_url":"https://api.github.com/repos/esp8266/Arduino/issues/517/comments","events_url":"https://api.github.com/repos/esp8266/Arduino/issues/517/events","html_url":"https://github.com/esp8266/Arduino/issues/517","id":93649756,"number":517,"title":"80% missed OTA with the latest changes","user":{"login":"hallard","id":2471931,"avatar_url":"https://avatars.githubusercontent.com/u/2471931?v=3","gravatar_id":"","url":"https://api.github.com/users/hallard","html_url":"https://github.com/hallard","followers_url":"https://api.github.com/users/hallard/followers","following_url":"https://api.github.com/users/hallard/following{/other_user}","gists_url":"https://api.github.com/users/hallard/gists{/gist_id}","starred_url":"https://api.github.com/users/hallard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hallard/subscriptions","organizations_url":"https://api.github.com/users/hallard/orgs","repos_url":"https://api.github.com/users/hallard/repos","events_url":"https://api.github.com/users/hallard/events{/privacy}","received_events_url":"https://api.github.com/users/hallard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":56,"created_at":"2015-07-07T23:04:48Z","updated_at":"2015-08-07T10:50:47Z","closed_at":null,"body":"Hi guys,\r\nI just pulled latest repo, just saw OTA has changed for better integration with IDE, that's pretty cool.\r\nSo I migrated my program to use new version of OTA. I was using old @igrr one on command line.\r\nWhat I noticed despite the fact that I do not see ESP port in IDE (I'm on windows and already add lot's of problem with bonjour with Yun compatible board called Dragino, so I won't spend time on this, Command line + up array + enter to run python OTA script is okay for me),\r\nAnyway, my return on this new version is that I miss more OTA than the old version. With old version I was missing about 1/5 OTA and with this version I'm missing about 4/5 (lot errors with \"lmac.c\" seen on Serial Debug)\r\n\r\nI succeeded to decrease OTA errors reducing chunk size from 4096 to 1024 in python script and adding 5ms delay between each chunk. Seems better for me, far from ideal but better here are my changes. \r\n\r\n````python\r\n    chunk = f.read(1024)\r\n      if not chunk: break\r\n      try:\r\n        sys.stderr.write('.')\r\n        sys.stderr.flush()\r\n        connection.sendall(chunk)\r\n        # wait 5ms\r\n        time.sleep (0.005)\r\n````\r\n\r\nMay be a chunk test/valid send from the node after each chunk received to tell python script to continue if okay or send back the chunk could solve more problems.\r\n\r\nAnyway, excellent job guys, just my 2 cents ;-)\r\n\r\nCheers\r\nCharles"},"comment":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/comments/128671563","html_url":"https://github.com/esp8266/Arduino/issues/517#issuecomment-128671563","issue_url":"https://api.github.com/repos/esp8266/Arduino/issues/517","id":128671563,"user":{"login":"igrr","id":4349050,"avatar_url":"https://avatars.githubusercontent.com/u/4349050?v=3","gravatar_id":"","url":"https://api.github.com/users/igrr","html_url":"https://github.com/igrr","followers_url":"https://api.github.com/users/igrr/followers","following_url":"https://api.github.com/users/igrr/following{/other_user}","gists_url":"https://api.github.com/users/igrr/gists{/gist_id}","starred_url":"https://api.github.com/users/igrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igrr/subscriptions","organizations_url":"https://api.github.com/users/igrr/orgs","repos_url":"https://api.github.com/users/igrr/repos","events_url":"https://api.github.com/users/igrr/events{/privacy}","received_events_url":"https://api.github.com/users/igrr/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T10:50:47Z","updated_at":"2015-08-07T10:50:47Z","body":"@rvbcrs any specifics except for the \"none of them worked for me\"? Serial output, debug output, wireshark dumps, python script output, anything?"}}