{"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":65,"created_at":"2015-07-07T23:04:48Z","updated_at":"2015-08-17T02:23:50Z","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/131659668","html_url":"https://github.com/esp8266/Arduino/issues/517#issuecomment-131659668","issue_url":"https://api.github.com/repos/esp8266/Arduino/issues/517","id":131659668,"user":{"login":"EUA","id":125917,"avatar_url":"https://avatars.githubusercontent.com/u/125917?v=3","gravatar_id":"","url":"https://api.github.com/users/EUA","html_url":"https://github.com/EUA","followers_url":"https://api.github.com/users/EUA/followers","following_url":"https://api.github.com/users/EUA/following{/other_user}","gists_url":"https://api.github.com/users/EUA/gists{/gist_id}","starred_url":"https://api.github.com/users/EUA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EUA/subscriptions","organizations_url":"https://api.github.com/users/EUA/orgs","repos_url":"https://api.github.com/users/EUA/repos","events_url":"https://api.github.com/users/EUA/events{/privacy}","received_events_url":"https://api.github.com/users/EUA/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T02:23:50Z","updated_at":"2015-08-17T02:23:50Z","body":"Latest git give me this output on OpenSuse x86_64 bit Linux.\r\n```\r\ndeath@linux:~> python /home/PIC/arduino-1.6.6/hardware/esp8266com/esp8266/tools/espota.py 192.168.1.247 8266 /tmp/build8624467654425436341.tmp/DNS_SD_Arduino_OTA.cpp.bin\r\nStarting on 0.0.0.0:48266\r\nUpload size: 308272\r\nSending invitation to: 192.168.1.247\r\nWaiting for device...\r\n\r\nUploading...\r\nError Uploading\r\ndeath@linux:~> \r\n```\r\nAt serial output:\r\n\r\n```\r\nArduino OTA Test\r\nSketch size: 308256\r\nFree size: 737280\r\nIP address: 192.168.1.247\r\nUpdate Start: ip:192.168.1.2, port:48266, size:308272\r\n\r\nException (0):\r\nepc1=0x40234961 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000\r\n\r\nctx: sys \r\nsp: 3ffffc20 end: 3fffffb0 offset: 01a0\r\n\r\n>>>stack>>>\r\n3ffffdc0:  9a4de000 fe18c8e9 5bbc9c34 40100008  \r\n3ffffdd0:  3fff1500 4023441b 3fff1148 00000060  \r\n3ffffde0:  00000005 3fff0880 3fff1148 3fff1cd8  \r\n3ffffdf0:  4020d8c0 3ffeeab0 3fff1cd8 3ffeaf80  \r\n3ffffe00:  00000002 00000000 3fff1d12 40103f8b  \r\n3ffffe10:  4020fffe 3fff1500 3fff1c1c 3fff1cd8  \r\n3ffffe20:  3fff1500 3fff152f 4021032b 3fff1500  \r\n3ffffe30:  3fff1c1c 0045ddfa 3fff02ac 40104d04  \r\n3ffffe40:  4021040c 3fff1500 3fff1c1c 3fff1cd8  \r\n3ffffe50:  00000000 0045ddfa 4020a2b4 0000e505  \r\n3ffffe60:  3fff1cd8 3fff1c1c 3ffebc6c 00000001  \r\n3ffffe70:  00000001 3fff1c18 00000006 00000000  \r\n3ffffe80:  000000ff 00000014 00002200 4020a22a  \r\n3ffffe90:  3fff1c1c 3fff1cd8 0000ff00 3fffc200  \r\n3ffffea0:  3fff1500 00000000 00000000 00000030  \r\n3ffffeb0:  4020a448 3fff1c1c 3fff1cd8 00000000  \r\n3ffffec0:  3fff1500 00000000 4020c9ab 00000000  \r\n3ffffed0:  3fff1cd8 3fff1c18 000000ff 00000000  \r\n3ffffee0:  00000006 4020d0fb 3fff1c18 00000014  \r\n3ffffef0:  3fff1d34 3fff1c1c 4020d414 3fff1c18  \r\n3fffff00:  00000000 00000000 00000016 40101d9d  \r\n3fffff10:  4020180d 4020c65f 3fff1c18 00000000  \r\n3fffff20:  00000000 4020d8c0 000016d0 00000000  \r\n3fffff30:  4020bf58 0000001c 3ffeaa04 0015e346  \r\n3fffff40:  4020d8c9 000019a0 000005b4 00000018  \r\n3fffff50:  4020daba 0000001c 4020a212 3fff18f0  \r\n3fffff60:  00000000 402113c5 3ffeaf2c 3ffeab90  \r\n3fffff70:  00467e4b 60000600 402106fe 3fff18f0  \r\n3fffff80:  4021140a 3fffdab0 00000000 3fffdcb0  \r\n3fffff90:  3ffeabb8 3fffdc20 3ffea4dc 40201795  \r\n3fffffa0:  40000f49 3fffdab0 3fffdab0 40000f49  \r\n<<<stack<<<\r\n\r\n ets Jan  8 2013,rst cause:2, boot mode:(3,6)\r\n\r\nload 0x4010f000, len 1264, room 16 \r\ntail 0\r\nchksum 0x42\r\ncsum 0x42\r\n~ld\r\n\r\n ets Jan  8 2013,rst cause:2, boot mode:(3,6)\r\n\r\nload 0x4010f000, len 1264, room 16 \r\ntail 0\r\nchksum 0x42\r\ncsum 0x42\r\n~ld\r\n\r\n ets Jan  8 2013,rst cause:2, boot mode:(3,6)\r\n\r\nload 0x4010f000, len 1264, room 16 \r\ntail 0\r\nchksum 0x42\r\ncsum 0x42\r\n~ld\r\n```\r\n\r\nand enters bootloop.\r\nI do not know what is the problem but can say that, this simply doesn't work at my OS."}}