Is there guidance for create for implementing protocols?

Hi everyone!

I’m attempting to create macros (K1-Series-Klipper/klippy/extras/box_wrapper.pyx at cfs_restore_missed_pyx · ityshchenko/K1-Series-Klipper · GitHub) that enable Creality CFS to function with any Klipper-based printer. However, I require RS485 support to communicate with the printer in the same manner as Creality with CFS and Filament Hub.

The specific challenge I’m facing is determining the appropriate method to send binary commands to the MCU, which lacks Klipper firmware. I’m not inclined to develop my own firmware for CFS and filament hub but rather intend to reuse commands obtained through reverse-engineering libraries or by using a Modbus sniffer.

Could you please provide guidance or limitations regarding the possibility of adding additional protocols, such as CANBUS, or should I proceed with creating kind PrinterRS485Bus?

P. S.: If someone has concerns why PR might be rejected, please, raise your hand! xD

I can’t say anything about should it to be in upstream or not.
But, can say where you can look for the example implementation.
First is the palette2 support, technically it is an MMU.
The second is: AnyCubic Kobra ACE

Hope that helps.

1 Like