Yes. Hidden Mxxxx G commands is working as expected! At least that is investigated by me till now. You can try it by yourself. Copy contents of attached zip into USB disk, insert into Kobra and “print” any of included gcode files:
1_download_cfg.gcode - it will download full actual printer.cfg and unmodifiable.cfg to the root of USB disk.
2_upload_cfg.gcode - it will upload printer.cfg from your USB disk into printer and completely replace it. So it is possible now I think to modify any controller configuration settings without hassle.
There also M8817 command that will copy printer.cfg from USB disk to /app/resources/configs/printer.cfg (effectively replacing default one) and M8818 that will copy unmodifiable.cfg to the user and default ones. Please use at your own risk!
BTW, I still have not tested back uploading configs, so it is for you, bravehearts here. В бой!
gcode_configs_mgmt.zip (425 Bytes)
Note that there are ROOT and UNROOT commands that enable and disable execution of other Mxxxx commands respectively.
I will, may be, prepare a table with all other investigated usable M commands (as there are tons of it available, effectively a single set command for any printer.cfg corresponding setting property).
Will also investigate a suspicious command that I think may be related with executing shell code. Stay tuned.
3 Likes