Sorry about your print!
Better rule of thumb: don't keep the usb cable connected when you don't use it.
Yeah, me too! Just thought this should be documented somewhere or possibly caught in Cura, when the printer is printing, don't try to connect.
We don't know that the printer is printing, untill we connect. It's actually a bit of a weird arduino issue that trying to connect to it causes a reboot.
So the only reasonable course of action is not to connect on startup, but only when a connection is required:
From a UX perspective, it could be interesting to have an option to have Cura warn you before it tries to open the USB connection (in case the user opens the print monitor "by accident"/"without thinking").
Also see this discussion/proposal:
https://github.com/Ultimaker/Cura/issues/1049
I like that one: "without thinking"! :-)
Well, now I know!
Since this issue is almost a year old and hasn't had any activity in 11 months, I'm going to go ahead and close it. See fieldOfView's discussion which is open.
This is still an issue with the most recent version. If you start Cura with the USB cable connected to your printer, it ruins your print because Cura causes the printer to restart.
I found that as soon as I open the serial port without any other read/write operations, the UM2+ just resets itself. Seems that the firmware automatically resets whenever there is a new serial connection open. I don't think we can fix this problem in Cura...
This is actually how most USB printers behave. As soon as a new host opens a connection, the printer resets. The only way to prevent it is by having the host not open a connection automatically, but rather have the user actively select a port to connect to.
@ChrisTerBeke That sounds like a nice feature, but a lot more work than expected... I will reopen this and make a new JIRA ticket.
@LipuFei, see #1049 for a proposal of the UI. I once got half implementing it in #1688 but other things (and the release schedule) got in the way. I could pick it up again around the end of june.
PLEASE make Cura stop connecting on startup. It still does this in 4.0. Why can't it just connect you click print? I keep opening a new window to tweak what I'm going to print next and lose hours of work/materials!
I can't believe this is still an issue, it also causes issues with loads of programs as it hogs all of the COM ports so I can't use my Arduino while printing :/
Most helpful comment
@ChrisTerBeke That sounds like a nice feature, but a lot more work than expected... I will reopen this and make a new JIRA ticket.