Serial port hits EOF randomly during run
capaulson opened this issue · 1 comments
capaulson commented
I haven't been able to run a single reliability.
My hardware is a tinyg g2 running on a Due (latest version from master). The board is powered with an external supply, has a 100uF cap on Vin and is connected with a short USB cable (2ft) to a MacBook pro. The board is in a shielded box driving a Gecko G540. The spindle drive electronics are ~2-3ft away.
I'm running Version:1.94. The output of -v when the code fails is:
2017/04/30 11:33:42 serialport.go:187: Hit end of file on serial port
2017/04/30 11:33:42 serialport.go:193: EOF
2017/04/30 11:33:42 serial.go:141: Unregistering a port: /dev/cu.usbmodem1421
2017/04/30 11:33:42 serialport.go:363: Shutting down writer on /dev/cu.usbmodem1421
2017/04/30 11:33:42 serialport.go:257: writerBuffered just got closed. make sure you make a new one. port:/dev/cu.usbmodem1421
Any thoughts on why the serial port is crashing?
johnlauer commented
First line of your debug indicates your USB connection is dropping and thus your serial port is disappearing. It indicates this is hardware issue on your end, not software.
From: capaulson [mailto:notifications@github.com]
Sent: Sunday, April 30, 2017 11:46 AM
To: johnlauer/serial-port-json-server <serial-port-json-server@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Subject: [johnlauer/serial-port-json-server] Serial port hits EOF randomly during run (#62)
I haven't been able to run a single reliability.
My hardware is a tinyg g2 running on a Due (latest version from master). The board is powered with an external supply, has a 100uF cap on Vin and is connected with a short USB cable (2ft) to a MacBook pro. The board is in a shielded box driving a Gecko G540. The spindle drive electronics are ~2-3ft away.
I'm running Version:1.94. The output of -v when the code fails is:
2017/04/30 11:33:42 serialport.go:187: Hit end of file on serial port
2017/04/30 11:33:42 serialport.go:193: EOF
2017/04/30 11:33:42 serial.go:141: Unregistering a port: /dev/cu.usbmodem1421
2017/04/30 11:33:42 serialport.go:363: Shutting down writer on /dev/cu.usbmodem1421
2017/04/30 11:33:42 serialport.go:257: writerBuffered just got closed. make sure you make a new one. port:/dev/cu.usbmodem1421
Any thoughts on why the serial port is crashing?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#62>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AA8jlY9UmeRKGy8dS_tAJIJYoJ1VdrQqks5r1NbWgaJpZM4NMp0F>.