96 Commits

Author SHA1 Message Date
Simon Lundell
b3f0292ce6 Cancel the print when the printer sends message (b'!!') about a fatal error. 2018-02-23 18:47:10 +01:00
Simon Lundell
b1be25e8d8 Start the device thread GCODE streaming after the main thread has sent those first few lines of codes. This fixes an issue where a race between the main thread and device thread, caused both to try to send the first lines of codes and the line numbering were then messed up. This caused the printer to
send a resend request for a line whose number Cura did not recognize, and the printing would wait forever to start.
2018-02-23 18:47:10 +01:00
Simon Lundell
946a09eb62 Parse heatbed temperatures even if no extruder temperature is sent. Attempts to fix bug #3332 2018-02-23 18:47:10 +01:00
Simon Lundell
d62dbe5187 Stop sending empty commands as this confuses the communication with e.g. Smoothieware. See PR #3346 and bug #1777 2018-02-23 18:47:10 +01:00
Simon Lundell
112bb260ac Do not send new G-CODEs when the RX buffer is filling up. This is in an attempt to fix #1777 where smoothieware based printers would halt in the middle of the print. 2018-02-18 11:44:04 +01:00
ChrisTerBeke
6cd64e1ce8
Two more fixes for typo in USBPrinterOutputController 2018-01-25 22:47:48 +01:00
ChrisTerBeke
8c7f8fa1fa
Fix typo in USBOutputController 2018-01-25 22:34:28 +01:00
Jaime van Kessel
1986677276 re-addded connection text
CL-541
2018-01-12 10:58:16 +01:00
ChrisTerBeke
b2d3d15011 Fix conflicts 2018-01-11 09:06:59 +01:00
Lipu Fei
c8cef9583e rename scene.gcode_list to gcode_dict
CURA-4741

With the multi build plate feature, scene.gcode_list is now a dict which
stores a list of gcode for a build plate, so it makes more sense to have
it renamed to "gcode_dict" because it's not a list.
2018-01-08 16:18:41 +01:00
Jaime van Kessel
99de75a3fd Fixed connection label state
CL-541
2018-01-08 13:44:20 +01:00
Jaime van Kessel
2ca06f383e USB printers also get their name set
CL-541
2018-01-08 09:41:18 +01:00
Jaime van Kessel
79add4ffd8 Added typing
CL-541
2017-12-19 16:15:48 +01:00
Jaime van Kessel
32cbd27b70 Fixed the firmware update for USB print
CL-541
2017-12-19 15:59:21 +01:00
Jaime van Kessel
1ae881caee USB device is first added and then trying to connect.
This is to ensure that USB printers work without autodetect
2017-12-15 16:03:58 +01:00
Jaime van Kessel
bd4797404d Changed showMonitorStage to setActiveStage
CL-541
2017-12-15 15:46:15 +01:00
Jaime van Kessel
0ac48817b2 Added abort, start & pause
USL-541
2017-12-15 15:00:10 +01:00
Jaime van Kessel
6bdce54e1d Enable progress bar for USB printing
CL-541
2017-12-15 14:47:06 +01:00
Jaime van Kessel
a6deddb6ae Added controller for USB printer
CL-541
2017-12-15 14:30:01 +01:00
Jaime van Kessel
e2845a224c No longer start print if it's already started
CL-541
2017-12-15 14:01:58 +01:00
Jaime van Kessel
aef54f99db If a print is completed, it's now also updated in UI
CL-541
2017-12-15 13:43:19 +01:00
Jaime van Kessel
d3d9a6e1bb Starting a print with USB printer now works with reworked printeroutputmodel
CL-541
2017-12-15 13:25:35 +01:00
Jaime van Kessel
d3b9ac0d45 Also start reworking the USBPrint.
It's also time for some much needed code cleaning in that bit. The auto-detect is moved to it's own job,
which should make it a whole lot easier to disable it all together.

CL-541
2017-12-14 17:37:57 +01:00
ChrisTerBeke
9bf954643c Use new method of setting active stage when needing to switch to monitor 2017-12-07 11:56:52 +01:00
ChrisTerBeke
867836bd76
Merge pull request #2773 from fieldOfView/fix_usb_target_temperatures
Show USB target temperatures, (estimated) time and jobname
2017-12-01 15:29:37 +01:00
Diego Prado Gesto
e7ac2e37b4 Fix an error when closing USB connection. This error raised several
times in the crash reports in the stats.
2017-12-01 13:17:36 +01:00
fieldOfView
2d2b943d07 Fix getting temperatures 2017-11-13 10:44:49 +01:00
fieldOfView
e0c37cc56e Add elapsed time and total time 2017-11-12 20:59:31 +01:00
fieldOfView
698f42b837 Set job name when starting a print and clear it after printing 2017-11-12 17:55:25 +01:00
fieldOfView
826f438c72 Get target temperatures from M105 responses
Contributes to #2760
2017-11-12 15:30:55 +01:00
Ghostkeeper
d458fcde5c
Revert "Revert "Merge branch 'fix_garbled_fonts_macos' into 3.0""
This reverts commit e07e7bc9e714843cf853f0a255ee5a8432696886.

Contributes to issue CURA-4414.
2017-10-05 10:58:49 +02:00
Ghostkeeper
e07e7bc9e7
Revert "Merge branch 'fix_garbled_fonts_macos' into 3.0"
This reverts commit b62c19206f5e494fa27eb0b877197556c559e449, reversing
changes made to 104926c6ed1648ec20b4308fdacad4e99c14c8b3.

Contributes to issue CURA-4414.
2017-10-05 10:28:54 +02:00
Mark
b4154b8cc0 Merge branch '3.0' 2017-09-28 13:01:10 +02:00
Mark
9a193ad5c5 Changing AGPLv3 to LGPLv3 2017-09-28 13:00:43 +02:00
krisrok
6641415a38 refine abort sequence
homing the head with "G28" does not work on my printer for some reason. "G28 X" and "G28 Y" however do.
this fix should not break behaviour on other printers as "G28" is just a shortcut.
2017-09-25 23:43:45 +02:00
Ghostkeeper
11060e010b
Clarify message title
The title should add something to the message, such as a summary.
2017-09-21 12:52:07 +02:00
alekseisasin
204019702d Added Title for messages
CURA-4203
2017-09-13 13:58:08 +02:00
fieldOfView
371ca36047 Remove home bed from abort sequence
On printers that home the bed to the bottom (ie: printhead moves towards the bed), homing the bed when aborting a print could cause the printhead to crash into the aborted print.
2017-09-06 13:21:17 +02:00
Ghostkeeper
6d2b46244f
Home printer after aborting
Otherwise the head gets left on top of the print and you'd have to manually move it aside after each abort.
2017-07-10 13:38:40 +02:00
Jaime van Kessel
d6d6036760 Fixed minor mistake with pull request
CURA-3681
2017-04-14 10:29:24 +02:00
Jaime van Kessel
04d2f8d68c Merge branch 'usbprinting-zparseerror-refactor' of git://github.com/tamarintech/Cura 2017-04-14 10:28:14 +02:00
Jaime van Kessel
bb752fa16f Added more logging 2017-04-13 19:05:13 +02:00
Elijah Snyder
b4f6ae8c5f First refactor for section to increase verbosity and move all translated M105s. 2017-04-10 19:01:59 -05:00
Lipu Fei
9f5a1b3695 Merge pull request #1564 from nallath/usb_fixes
Usb fixes
2017-04-04 12:05:49 +02:00
Jaime van Kessel
f5590a98ed Added missing close for USB programmer. Thanks to legoabram for the fix 2017-03-30 21:35:26 +02:00
Jaime van Kessel
e30e2a8018 Instead of not sending the line at all, just send a get temp command 2017-03-23 20:13:13 +01:00
Jaime van Kessel
645e3e8dfe Don't try to send empty g-code lines 2017-03-23 19:42:52 +01:00
Jaime van Kessel
7993d9e95e Added **kwargs option to request write
CURA-3496
2017-03-14 13:30:47 +01:00
Jaime van Kessel
beea9caf04 Clarified unable to print over USB message for ulti-gcode 2017-02-22 09:43:24 +01:00
Ghostkeeper
d2fa6dbae2
Notify to update remaining time when it drastically changes
When the time passes normally it doesn't trigger this signal but just go on counting, but when the pre-heat starts or cancels it updates via this signal. This is handy for the future, when we want to update the remaining time from the printer information. However for now it is also nice because we can make the pre-heat timer dependent on this signal so we know when to have it running. This fixes the problem that the pre-heat seems to have been cancelled in the GUI when you switch away the tab, because the timer running is now dependent on the property rather than always false.

Contributes to issue CURA-3161.
2017-02-16 12:58:39 +01:00