Was somebody able to install OctoPrint  on an Android device?

Was somebody able to install @OctoPrint on an Android device? That’s what I tried until now:

Unfortuneately my printer was not detected. :frowning: The strange thing is, that I can connect the printer with the @GCodePrintr App. Any advice how to proceed?
https://www.miniand.com/products/MK802%20Android%20Mini%20PC

I’d look at the terminal output from octoprint. There’s likely some library like PySerial or something missing that just needs to be fixed to utilize the correct paths for serial communication.

How are you connecting the printer to android? My guess is Linux Deploy doesn’t pass through that interface from Android to debian.

@ThantiK I’ll look into it.
@Liam_Jackson Over USB and yes, that’s what I’m afraid of.

@ThantiK Terminal output from OctoPrint:
Changing monitoring state from ‘Offline’ to ‘Opening serial port’
Connecting to: None
Unexpected error while connecting to serial port: None OSError: ‘[Errno 2] No such file or directory: ‘None’’ @ comm.py:_openSerial:795
Changing monitoring state from ‘Opening serial port’ to ‘Error: Failed to open seria…’

@Liam_Jackson When I connect the printer to the @GCodePrintr then I get this meesage: https://titanpad.com/pxEZYzkCDF

Yep @enhydra , what do you have in your /dev/ directory? Is there a ttyUSB0, ttyACM0, etc?

IS there a /dev directory available under the android distro?

@ThantiK Hm… no, there is nothing like this. Made a tree of /dev/ and a usb scan per lsusb (usbutils) see here: https://titanpad.com/KsZtvqZOXv

@enhydra well, that’s your problem most likely. Looks like instead of /dev/ttyUSB0; it needs to be looking for /dev/bus/003/004 - @foosel , does that sound right to you? Can you manually set this in a config somewhere to get Octoprint to try that?

Yeah, there’s the additionalPorts option for that: https://github.com/foosel/OctoPrint/wiki/Configuration#serial

Might be a bit complicated to define a glob pattern that matches all usb devices her, but an easy approach might be /dev/bus/003/*

@foosel I added this line of code but I was not able to pick an optional port. Terminal output was:

Changing monitoring state from ‘Offline’ to ‘Opening serial port’
Connecting to: None
Unexpected error while connecting to serial port: None OSError: ‘[Errno 2] No such file or directory: ‘None’’ @ comm.py:_openSerial:795
Changing monitoring state from ‘Opening serial port’ to ‘Error: Failed to open seria…’

@foosel @ThantiK @Liam_Jackson Thread closed: I’m fed up so I ordered a raspy. Thanks anyway :slight_smile:

@enhydra sorry, I still wanted to get back to you but was busy with makerfaire (still there) :confused:

@foosel no problem, @Manuel_Meister and I’ve already spent to much time.

@foosel Btw it would be nice having an native Android #Octoprint fork. :wink: Perhaps an old cell phone could get reanimated (as long it supports OTG).

how are you charging phone

To whom is this question directed and how does it relate to the topic?

Be aware that this is a thread imported from Google+ when Google abandoned it.

Related because*: If you’ve got a 3D printer plugged into the micro USB using an OTG (on-the-go) adapter, then you’re using the charging port of the phone for non-charging purposes. I’m not a 3D printer, but I hear of prints taking a long time (longer than the phone battery would last), so the phone would need charged.

Googling “charge while using otg” got me some results about adapter cables that will do both at the same time.

*At least that’s my guess at relation.

3 Likes