mks-wifi-plugin icon indicating copy to clipboard operation
mks-wifi-plugin copied to clipboard

Disconnect and reconnect multiple times

Open enishi1357 opened this issue 3 years ago • 7 comments

Plugin Version

1.4.1

Cura Version

5.1.1

Platform

Windows 10

Printer

Dovov S2

Reproduction steps

  1. Slice file
  2. The box shows save to sd card then flash to print over Dovov S2
  3. Click print over dovov s2

Actual results

Shows progress uploading file but failed halfway

Expected results

Complete uploading

Checklist of files to include

  • [x] Log file

Additional information & file uploads

Updated wifi module firmware

enishi1357 avatar Sep 17 '22 11:09 enishi1357

Add a log file, please

Elkin-Vasily avatar Sep 17 '22 11:09 Elkin-Vasily

what is the directory to log file?

enishi1357 avatar Sep 17 '22 22:09 enishi1357

cura.log

enishi1357 avatar Sep 17 '22 22:09 enishi1357

Do you have only one instance of Cura opened at the same time?

Printer socket can work only with one connection at the same time.

Elkin-Vasily avatar Oct 21 '22 18:10 Elkin-Vasily

I had the same issue. Faced it when updated to Cura 5.2.1 from 4.* Printer constantly connects and disconnects. In a single instance of Cura. Resolved for myself by downgrading to 5.1.0, it works for me without any glitches. Was not trying other versions in between.

ivanov-alex avatar Nov 04 '22 15:11 ivanov-alex

I've had this issue again, and indeed, restarting my PC and printer worked as a fix. It seems like if you open and close Cura, sometimes the python process might be still working somewhere in the background, trying to reconnect to the printer.

Maybe a way to detect and kill old processes when a new is starting or some kind of lock mechanism should be able to help fix or mitigate this issue.

Nixellion avatar Jan 03 '24 09:01 Nixellion

@Nixellion, thank you. That sounds interesting, we need to delve deeper into this idea and investigate the possibility of closing the socket along with closing Cura. During a debug it usually completes, but maybe something different happens when you change versions.

Jeredian avatar Feb 08 '24 15:02 Jeredian