Notifications
Clear all

OctoPi, OctoPrint and MK2  

Page 2 / 5
  RSS
Linux User Group Oberschwaben
(@linux-user-group-oberschwaben)
Estimable Member
Re: OctoPi, OctoPrint and MK2

Hi guys,

Yesterday i finally hocked up my octoprint installation to the mk2 and i only can connect to it with a very low baud rate (115200) anything higher is not accepted.

Is this normal for the mk2 ?

I read about the problem with 250000 baudrate and octoprint but there should be higher values still that 115.... who should work.

Any advice on this ?

I uninstalled python-serial as octoprint comes with its own but i was not able to patch the one mentioned in the 250000 baudrate wiki page 🙁

I'm running a normal raspian not the octoprint version...

Thanks a lot!

EDIT: Another Question, is there a Gcode for flow control ?

Publié : 19/09/2016 11:24 am
christophe.p
(@christophe-p)
Membre Moderator
Re: OctoPi, OctoPrint and MK2

Hi Manuel,

don't worry, 115200 bauds is the standard (and only working) serial line speed for mk2, and it's fine, you don't need more you just stream the gcode to the printer, you don't upload a file 🙂

I'm like Jon Snow, I know nothing.

Publié : 19/09/2016 12:21 pm
JohnOCFII
(@johnocfii)
Estimable Member
Re: OctoPi, OctoPrint and MK2

Odd. Last night I finished a print from the front panel. I waited for MK2 to cool down, removed the print, and turned off the printer.

This morning, I plugged in my Raspberry Pi with OctoPrint (which I've previously used on a different printer). I turned on the rPi and let it start up, then I turned on the MK2. The MK2 gave me the LCD message about the printer not having been calibrated before!

I unplugged the RPi from the printer and power cycled the MK2, but the message still shows up. Is there some logic flow about seeing activity on the USB connection that causes this message to show up, or un-set a flag that the printer was calibrated?

Thanks for any ideas.

John

Publié : 20/09/2016 6:43 pm
Linux User Group Oberschwaben
(@linux-user-group-oberschwaben)
Estimable Member
Re: OctoPi, OctoPrint and MK2

Hmm

I did the same thing sort of (unplugged octroptint) and repluged it (several times). I did not encouter that message. So i think it has nothing to do with the USB.

Sorry that i can not be of more help....

Publié : 20/09/2016 11:17 pm
JohnOCFII
(@johnocfii)
Estimable Member
Re: OctoPi, OctoPrint and MK2

Hmm

I did the same thing sort of (unplugged octroptint) and repluged it (several times). I did not encouter that message. So i think it has nothing to do with the USB.

Thanks for checking. This is the very first time I've plugged anything into the USB port on this MK2 - so I'm wondering if it is a one-time thing. I guess I'll find out when I try to recalibrate.

John

Publié : 20/09/2016 11:38 pm
Linux User Group Oberschwaben
(@linux-user-group-oberschwaben)
Estimable Member
Re: OctoPi, OctoPrint and MK2

Hmm

I did the same thing sort of (unplugged octroptint) and repluged it (several times). I did not encouter that message. So i think it has nothing to do with the USB.

Thanks for checking. This is the very first time I've plugged anything into the USB port on this MK2 - so I'm wondering if it is a one-time thing. I guess I'll find out when I try to recalibrate.

John

It did not even happen to first time to me. The only time it happend was when a missprint got into the y axis pulley and misaligned my print bed and the point check before print failed.Then the message poped up.

Publié : 20/09/2016 11:41 pm
Rutilate
(@rutilate)
Trusted Member
Re: OctoPi, OctoPrint and MK2

OctoPi/Print looks like a really, really cool little utility. What other plugins are people using?

Publié : 22/09/2016 4:44 am
Linux User Group Oberschwaben
(@linux-user-group-oberschwaben)
Estimable Member
Re: OctoPi, OctoPrint and MK2

Octroprint is super cool!

You can hook up a webcam and stream (and record) the print. So you can see if something is wrong even if not at home. You can remotely start or stop prints. It also has a plugin for a filament sensor and Email notification.

I love it!

Publié : 22/09/2016 11:10 pm
agtturnip
(@agtturnip)
New Member
Re: OctoPi, OctoPrint and MK2

Hmm

I did the same thing sort of (unplugged octroptint) and repluged it (several times). I did not encouter that message. So i think it has nothing to do with the USB.

Thanks for checking. This is the very first time I've plugged anything into the USB port on this MK2 - so I'm wondering if it is a one-time thing. I guess I'll find out when I try to recalibrate.

John

It did not even happen to first time to me. The only time it happend was when a missprint got into the y axis pulley and misaligned my print bed and the point check before print failed.Then the message poped up.

I had this exact issue too. I think it comes from not letting the V2Calibration code run all the way through before hooking it up to octoprint. I did a full reset of my printer, re-calibrated xyz, then did the V2Calibration code without stopping it in the middle. After that I can run in octoprint no problem and I don't get that message anymore.

Publié : 23/09/2016 5:41 am
apsu
 apsu
(@apsu)
Membre
Re: OctoPi, OctoPrint and MK2

Looking at the firmware source code, the actual requirement to get rid of this message is to send the G87 gcode. This is also present in the V2Calibration.gcode file. The XYZ calibration process resets the Z adjust value to 0.00, and stores a value in the EEPROM also represented by the G86 code, apparently, which tells the firmware Z adjust needs calibrating, so it shows the message whenever the firmware is initialized (such as when USB is plugged in or the power turned on).

Since you're going to want to adjust Z anyway, pretty much always no matter what... this is fine. You don't need to work around anything, just run the V2 code, or if you prefer your own print to be used for calibration, just insert the G87 code in it 🙂

Note: There's also a G88 in there, but in at least the latest firmware (3.0.8), this code is entirely ignored.

Publié : 30/09/2016 7:17 pm
JohnOCFII
(@johnocfii)
Estimable Member
Re: OctoPi, OctoPrint and MK2

Looking at the firmware source code, the actual requirement to get rid of this message is to send the G87 gcode. This is also present in the V2Calibration.gcode file. The XYZ calibration process resets the Z adjust value to 0.00, and stores a value in the EEPROM also represented by the G86 code, apparently, which tells the firmware Z adjust needs calibrating, so it shows the message whenever the firmware is initialized (such as when USB is plugged in or the power turned on).

Since you're going to want to adjust Z anyway, pretty much always no matter what... this is fine. You don't need to work around anything, just run the V2 code, or if you prefer your own print to be used for calibration, just insert the G87 code in it 🙂

Note: There's also a G88 in there, but in at least the latest firmware (3.0.8), this code is entirely ignored.

Thanks for the detail. I did confirm that on subsequent use, I did not get the message to re-calibrate.

Publié : 30/09/2016 9:20 pm
benjamin.m
(@benjamin-m)
New Member
Re: OctoPi, OctoPrint and MK2

I've been having issues with OctoPrint communicating with my MK2. Lots of "line number is not last line number" and checksums not working. I think it's losing commands and/or not receiving an "ok," but doesn't send a valid repeat and when continuing to the next line, the line numbers are no longer sequential? After one print was sent successfully (probably because it was from the SD card), it only stayed updated for a few minutes before losing connection and therefore status.

OctoPrint via OctoPi on a RPi 3 and a fresh MK2 with latest firmware.

Is anyone else having issues like these? I can't imagine any of my settings are that far off. I can post screenshots of settings, later, as well as log files if necessary.

Thanks!

Publié : 05/10/2016 8:02 pm
ayourk
(@ayourk)
Reputable Member
Re: OctoPi, OctoPrint and MK2

I've encountered that issue. My solution was to use the Disconnect button in Octoprint, power cycle the printer, and reconnect within Octoprint. The other thing to check: Make sure you are using the latest stable version of Octoprint.

Dimensions PNG

and an 8 inch (200mm) or greater caliper is recommended.

Publié : 05/10/2016 11:38 pm
JohnOCFII
(@johnocfii)
Estimable Member
Re: OctoPi, OctoPrint and MK2

Is anyone else having issues like these? I can't imagine any of my settings are that far off. I can post screenshots of settings, later, as well as log files if necessary!

I had this issue with a different printer. I unplugged and replugged the USB cable to make sure it was properly seated. I also restarted both the printer and the Pi. Are you using a good quality cable? Also - what speed are you connecting between the Pi and the printer?

John

Publié : 06/10/2016 12:40 am
JohnOCFII
(@johnocfii)
Estimable Member
Re: OctoPi, OctoPrint and MK2

One of the things that really pleased me about the MK2 when it arrived was that the machine keeps track of hours of usage. I was sad to see that that only seems to apply to items printed directly from the SD card, as the time does not increment after prints through OctoPrint.

Any thoughts on whether the firmware could be modified to also track print time even if the item is coming from the USB input?

If not, I guess I could request it of the OctoPrint team to store in OctoPrint. I'd have to look in two places, but it would be better than losing track. I imagine this time would be useful for planning regular maintenance, such as lubrication, or bearing or belt replacements.

John

Publié : 06/10/2016 12:44 am
ayourk
(@ayourk)
Reputable Member
Re: OctoPi, OctoPrint and MK2

One of the things that really pleased me about the MK2 when it arrived was that the machine keeps track of hours of usage. I was sad to see that that only seems to apply to items printed directly from the SD card, as the time does not increment after prints through OctoPrint.

Any thoughts on whether the firmware could be modified to also track print time even if the item is coming from the USB input?

If not, I guess I could request it of the OctoPrint team to store in OctoPrint. I'd have to look in two places, but it would be better than losing track. I imagine this time would be useful for planning regular maintenance, such as lubrication, or bearing or belt replacements.

John

I know there is an OctoPrint plugin that allows you to track usage. I have been using this from the start. It keeps track of print successes and failures.

Dimensions PNG

and an 8 inch (200mm) or greater caliper is recommended.

Publié : 06/10/2016 6:03 am
JohnOCFII
(@johnocfii)
Estimable Member
Re: OctoPi, OctoPrint and MK2

I know there is an OctoPrint plugin that allows you to track usage. I have been using this from the start. It keeps track of print successes and failures.

I see one that tracks discrete items (success, failures, etc.) but don't see that it shows cumulative usage time. Is this the one you are using/thinking of?

http://plugins.octoprint.org/plugins/stats/

Maybe I'm just missing it in the overview, and it does show cumulative time. I've just installed it. Maybe the plug-in author will accept my request.

Thanks,

John

Publié : 06/10/2016 3:50 pm
richard.l
(@richard-l)
Membre Moderator
Re: OctoPi, OctoPrint and MK2

Here's the plugin you want..

https://github.com/imrahil/OctoPrint-PrintHistory

Publié : 06/10/2016 4:08 pm
JohnOCFII
(@johnocfii)
Estimable Member
Re: OctoPi, OctoPrint and MK2

Here's the plugin you want..

https://github.com/imrahil/OctoPrint-PrintHistory

Thanks,

I had seen that, but thought it was just a -per file- statistic. Do you use it? Do the totals include files that have been deleted off the Pi after they have been printed? I don't imagine I'll keep all my GCode out there forever.

John

Publié : 06/10/2016 9:42 pm
benjamin.m
(@benjamin-m)
New Member
Re: OctoPi, OctoPrint and MK2


I had this issue with a different printer. I unplugged and replugged the USB cable to make sure it was properly seated. I also restarted both the printer and the Pi. Are you using a good quality cable? Also - what speed are you connecting between the Pi and the printer?

I've encountered that issue. My solution was to use the Disconnect button in Octoprint, power cycle the printer, and reconnect within Octoprint. The other thing to check: Make sure you are using the latest stable version of Octoprint.

Thanks, all. Unfortunately, my issue persists even after reboots of everything (OctoPi, MK2). The cable should be good. And everything is of the latest version. Tomorrow when I get to the office I'll post pics of my settings, logs, and stuff for further debugging. I'm getting more accustomed to raw gcode and how it works.

Publié : 07/10/2016 2:26 am
Page 2 / 5
Partager :