ludiazv / octocitrico

OctoPrint for other fruits
149 stars 18 forks source link

Orange Pi PC - OTG as a G Mass Storage #49

Open bvaerewyck opened 2 months ago

bvaerewyck commented 2 months ago

Trying to use Octoprint and the Orange Pi PC as a storage device for a Qidi Shadow 5.5s.

Two things are needed to accomplish this. 1) connect Pi to the UART that is onboard the the Shadow. 2) connect the Orange Pi PC to the USB on the Shadow to mimic the USB Storage.

1) Because it is a Chituboard I loaded the plugin Octoprint-Chituboard. I can control the printer via the using an USB to TTL Serial Cable.

I landed up talking out all the current plugins, because it is not Marlin, need bed leveling, or gcode viewer. I just load the Octoprint-Chituboard. Which the author of that pluggin has a script for Samba, but it breaks because in is and Orange Pi PC and not a Raspberry Pi.

2) What I am struggling with is getting the OTG to work as G Mass Storage device. It wants to be Serial Gadget. I have the micro usb connected to an OTG USB A cable and then it plugs into the Shadow with a USB A power blocker. The Shadow is not getting any power from the Orange PI PC. LCD Screen will power on without blocker. I have gone thru many guides to try to make this happen, but it comes down to recompiling the kernel.

Any help or optional builds?

Thank you for putting this all together, this has been a learning adventure :-)