Hello.
6 days ago I downloaded the latest/current DietPi and installed it successfully on an ODROID C2. Works really well. Then I installed octoprint (from apt) and mjpg-streamer. Both also work, except of some issues:
I have connected a USB Webcam and an Arduino Mega (RAMPS 1.4 board). Camera works, octoprint works.
But during printing I repeatedly get an “unexpected error” in octoprint and it closes the connection to the 3D printer. When stopping mjpg-streamer, printing works fine.
This makes me think this is related to excessive load on USB, caused by the high data volume caused by the camera.
So I had a close look on USB using ‘lsusb’:
My Odroid C2 shows only one bus:
BUS 001 … Root HUB and all USB devices appear on this bus.
My friend also has an Odroid C2 running a slightly older DietPi version, but also has a USB Camera and Arduino connected to the four USB-A connectors. (Nothing on the microUSB !)
His ‘lsusb’ surprisingly shows two busses:
BUS 001 … Here arduino is connected
BUS 002 … Here his USB Camera is connected)
I am pretty sure this is the secret why his Odroid works stable, while mine repeatedly looses the data communication between Arduino and octoprint (while /dev/ttyACM0 still exists!). Somehow the dataflow randomly stucks, and then octoprint disconnects the printer.
My only idea is that USB is so extremely loaded by the camera that responses from Marlin are lost.
Does anybody have an idea in this:
How can my friend’s C2 have two USB busses while mine has only one? As this are two identical devices, this only can be a configuration issue on my side.
How can I get this communications error solved? I cannot print anything because of this persistant risc that communication fails.
It will be very kind if somebody can help. I am lost.