payload: {"action":"created","issue":{"url":"https://api.github.com/repos/dhylands/rshell/issues/26","repository_url":"https://api.github.com/repos/dhylands/rshell","labels_url":"https://api.github.com/repos/dhylands/rshell/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/dhylands/rshell/issues/26/comments","events_url":"https://api.github.com/repos/dhylands/rshell/issues/26/events","html_url":"https://github.com/dhylands/rshell/issues/26","id":237473181,"node_id":"MDU6SXNzdWUyMzc0NzMxODE=","number":26,"title":"Problem copying an mpy file to the ESP8266","user":{"login":"peterhinch","id":8437477,"node_id":"MDQ6VXNlcjg0Mzc0Nzc=","avatar_url":"https://avatars3.githubusercontent.com/u/8437477?v=4","gravatar_id":"","url":"https://api.github.com/users/peterhinch","html_url":"https://github.com/peterhinch","followers_url":"https://api.github.com/users/peterhinch/followers","following_url":"https://api.github.com/users/peterhinch/following{/other_user}","gists_url":"https://api.github.com/users/peterhinch/gists{/gist_id}","starred_url":"https://api.github.com/users/peterhinch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterhinch/subscriptions","organizations_url":"https://api.github.com/users/peterhinch/orgs","repos_url":"https://api.github.com/users/peterhinch/repos","events_url":"https://api.github.com/users/peterhinch/events{/privacy}","received_events_url":"https://api.github.com/users/peterhinch/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":25,"created_at":"2017-06-21T09:36:40Z","updated_at":"2019-12-25T02:11:19Z","closed_at":"2019-01-11T17:43:55Z","author_association":"CONTRIBUTOR","body":"I can copy the attached file to a Pyboard without problems. Copying it to the Feather Huzzah reference board with an empty filesystem produces the following outcome:\r\n```\r\n[adminpete@axolotl]: /mnt/qnap2/data/Projects/MicroPython/projects/mqtt_as\r\n$ rsusb\r\nConnecting to /dev/ttyUSB0 ...\r\nWelcome to rshell. Use Control-D to exit.\r\n/mnt/qnap2/data/Projects/MicroPython/projects/mqtt_as> ls /pyboard/\r\nboot.py\r\n/mnt/qnap2/data/Projects/MicroPython/projects/mqtt_as> cp mqtt_as.mpy /pyboard/\r\nFalse\r\n\u0004\u0004>raw REPL; CTRL-B to exit\r\n>raw REPL; CTRL-B to exit\r\n>raw REPL; CTRL-B to exit\r\n>\r\nMicroPython v1.8.7-797-ge5e49be on 2017-06-21; ESP module with ESP8266\r\nType \"help()\" for more information.\r\n>>> \r\nraw REPL; CTRL-B to exit\r\n```\r\nI have tried erasing flash. It copies the larger .py source file without issue so I don't believe there is a filesystem problem. Oddly I've copied .mpy files to the ESP8266 before without issue. Is it a particular binary value problem?\r\nMy invocation is via\r\n```\r\nalias rsusb='rshell -p /dev/ttyUSB0 --editor nano --buffer-size=30'\r\n```\r\n```\r\n[adminpete@axolotl]: /mnt/qnap2/data/Projects/MicroPython/projects/mqtt_as\r\n$ rshell -V\r\n0.0.8\r\n```\r\n[test.zip](https://github.com/dhylands/rshell/files/1091041/test.zip)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dhylands/rshell/issues/comments/568822228","html_url":"https://github.com/dhylands/rshell/issues/26#issuecomment-568822228","issue_url":"https://api.github.com/repos/dhylands/rshell/issues/26","id":568822228,"node_id":"MDEyOklzc3VlQ29tbWVudDU2ODgyMjIyOA==","user":{"login":"pacmac","id":2349856,"node_id":"MDQ6VXNlcjIzNDk4NTY=","avatar_url":"https://avatars2.githubusercontent.com/u/2349856?v=4","gravatar_id":"","url":"https://api.github.com/users/pacmac","html_url":"https://github.com/pacmac","followers_url":"https://api.github.com/users/pacmac/followers","following_url":"https://api.github.com/users/pacmac/following{/other_user}","gists_url":"https://api.github.com/users/pacmac/gists{/gist_id}","starred_url":"https://api.github.com/users/pacmac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pacmac/subscriptions","organizations_url":"https://api.github.com/users/pacmac/orgs","repos_url":"https://api.github.com/users/pacmac/repos","events_url":"https://api.github.com/users/pacmac/events{/privacy}","received_events_url":"https://api.github.com/users/pacmac/received_events","type":"User","site_admin":false},"created_at":"2019-12-25T02:11:19Z","updated_at":"2019-12-25T02:11:19Z","author_association":"NONE","body":"I am facing this issue to with an ESP12F/ESP8266, I have use buffer sizes, 512,32,30 and 14 all have the same effect:\r\n\r\n```\r\nrshell -p $slab --buffer-size=14 -e nano -a\r\nConnecting to /dev/tty.SLAB_USBtoUART ...\r\nWelcome to rshell. Use Control-D to exit.\r\n\r\n/Volumes/dev/uPython/flash> boards\r\npyboard @ pyboard connected Epoch: 2000 Dirs: \r\n/Volumes/dev/uPython/flash> cp test/moziot/moziot.py /pyboard\r\ntimed out or error in transfer to remote\r\n/Volumes/dev/uPython/flash> \r\n```\r\n\r\nWhen I enter the REPL it hangs and needs a reset:\r\n\r\n```\r\n/Volumes/dev/uPython/flash> repl\r\nEntering REPL. Use Control-X to exit.\r\nrepl_serial_to_stdout dev = <rshell.main.DeviceSerial object at 0x105012d68>\r\nalse\r\n>\r\n```\r\n\r\n\r\n"}}
other: {"actor":{"display_login":"pacmac"}}