DangerKlippers / danger-klipper

Klipper but... Dangerous
GNU General Public License v3.0
255 stars 83 forks source link

ability to fully disconnect non-critical MCUs #388

Closed artemen closed 1 month ago

artemen commented 1 month ago

I am working in incorporating cartographer into a tool changer, and would like to use only one probe across all of the tools, basically, a 4 pin magnetic connector on a tool doing 5v,gnd,+can/usb and keep the sensor itself hard fixed on the on the carriage. would it be possible to prevent klipper from shutting down upon disconnect of the cartographer probe?

rogerlz commented 1 month ago

yes, it is possible to do that with regular mcus and beacon.. and since cartographer is a clone, I’d expect it to work too. add is_non_critical: true to your config.

working example for beacon:

[beacon]
is_non_critical: true
artemen commented 1 month ago

thanks for the response, it looks like CAN MCUs can't be declared non-critical, is there any specific issue preventing this or no one needed it yet? thx!

rogerlz commented 1 month ago

thanks for the response, it looks like CAN MCUs can't be declared non-critical, is there any specific issue preventing this or no one needed it yet? thx!

that's correct, CAN mcus are not supported yet. Once mcus are initialized they don't respond to uuid queries anymore, so there is currently no way to discover them. A bit more code is needed and we are not very keen to work on CAN :)