g2 icon indicating copy to clipboard operation
g2 copied to clipboard

Due USB comms not working when self-powered

Open lutorm opened this issue 7 years ago • 7 comments

I don't know if this is an issue with the Due hardware, with g2, or with the Macbook Pro I use to connect to it, but I've noticed that if I turn power on to the controller and then plug in the USB, no ports are detected. If I plug the USB in first, ports are detected and I can subsequently power the controller on without interrupting it. If I subsequently unplug the USB and plug it back in, I'm back to no ports.

lutorm avatar Oct 09 '18 02:10 lutorm

Interesting. Haven't heard of that happening before.

Not sure what could be causing it though. Maybe something going a bit wrong with the g2 code's internal boot sequence?

Hmmm, which version of g2 do you have flashed to the Due? If it's not the 100.26 release (ye old "stable" master release) then give that one a go and see if it still happens. That master version (in theory) should be fairly well battle tested by now. :smile:

justinclift avatar Oct 09 '18 03:10 justinclift

I'm using 7a25dbf (101.03, g2/edge as of June). It's not easy for me to change version because I need to re-port my config, and my changes don't apply cleanly to the master.

lutorm avatar Oct 14 '18 23:10 lutorm

k, no worries. We'll need one of the main developers to investigate then. :smile:

justinclift avatar Oct 15 '18 09:10 justinclift

Having a similar issue with one of my DUE's running Repetier, so doesn't look g2 related.

turboproc avatar Dec 28 '18 10:12 turboproc

I was looking at this again and I suspect it's this issue: https://forum.arduino.cc/index.php?topic=256771.75

lutorm avatar Apr 15 '21 05:04 lutorm

On my g2core/due setup connected to a Raspberry Pi running CNCjs, I have a Pi GPIO connected to the Due's reset line. I have a shell script that pulses the reset before starting CNCjs. Without that, the Due will not start g2core. Instead, it comes up in programming mode.

MitchBradley avatar Apr 15 '21 05:04 MitchBradley

I can confirm that one if the fixes in the thread above (soldering a 10k resistor across a transistor) works, my Due is now accessible even if it's first powered up with the DC jack. (This is the same fix as the one mentioned in Troubleshooting under "flash getting erased at random moments".)

However, if I unplug the USB and then plug it back in, it still does not respond. It enumerates the ttyACM0 port when ?I plug in the USB, but connecting to it with a terminal I get nothing. Is reconnecting the USB supposed to work?

It would be great if I could do this because I'd like to be able to leave the controller powered on and just reconnect to it without having to re-home and re-upload configs.

lutorm avatar Apr 15 '21 07:04 lutorm