When I communicate with RPi2 using USB (pin 6,8,10) to my MacBook Air using Terminal, it works fine until I use nano to edit python. Then the communication gets scrambled (what happens is not what I type on keyboard) within about 10-15 seconds and finally freezes completely. I can usually recover just by unplugging the USB from my computer for a few seconds, plugging in again, and then typing
$ screen /dev/cu.usbserial 115200
again. So it seems like a communication problem, but I'm curious why it always degrades over 10-15 seconds before freezing, and why it seems to happen only after I start editing with nano!
I was told this is not uncommon with Mac and that I can try WiFi, but I would really like to stick with USB.
Is this a known problem? Any suggestions what I can try to get the USB connection to work without freezing?
(help with tags for this question appreciated)