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.
@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…’
@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?
@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…’
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.