prusa3d / MM-control-01

MMU 3-axis stepper control
GNU General Public License v3.0
92 stars 104 forks source link

home() is called twice on power up on a Prusa i3 MK3 #48

Open KarlZeilhofer opened 5 years ago

KarlZeilhofer commented 5 years ago

since this is a lengthy process, it is very annoying. considering how many users are out there, this should really be optimized.

I assume, the MK3 is sending some command to the MMU to rehome, right? How about homing on that command only?

Greets, Karl

AbeFM commented 5 years ago

Certainly the MMU could respond with "I just homed, haven't done anything since". Store a "GOOD home" flag?

KarlZeilhofer commented 5 years ago

@AbeFM good hint! should be doable!

KarlZeilhofer commented 5 years ago

I found out now, that this isn't done via a command, but by triggering the reset line.

Possible solutions:

AbeFM commented 5 years ago

Polling for a valid home state is a feature which could be of BROAD applicability - and used in you logic above to decide if a reset is needed.

PavelSindler commented 5 years ago

Thank you for feedback. Printer should trigger hw reset as you need to reset also mmu2, when you press reset button on printer. Homing just on certain command instead of automatic homing on mmu2 reset/power up is good idea.

AbeFM commented 5 years ago

If you read through the preceding thread, we focused the possibility of a "reset valid" flag.

Clearly the MMU can't be left in an unknown state. The new customer-led firmware resets in a third the time and more quietly so it is less of an issue running that.

              Thanks!
                      -Abe.

Sent from my "smart"phone, please excuse brevity and Swype-oes