Wallacoloo / printipi

3d printing directly through the Raspberry Pi's GPIO pins
MIT License
141 stars 43 forks source link

Cannot Connect To Printer Ussing octoPrint #92

Closed mohamedamineamdouni closed 7 years ago

mohamedamineamdouni commented 8 years ago

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:943 Changing monitoring state from 'Opening serial port' to 'Error: Failed to open serial port, permissions correct?' 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:943 Changing monitoring state from 'Opening serial port' to 'Error: Failed to open serial port, permissions correct? i make chmod -l 777 /dev/ttyUSBprintipi but still don't work

Wallacoloo commented 8 years ago

You haven't provided much detail as to what you did to trigger the error, but at a glance this appears to be an issue on Octoprint's side.

The standard device naming for serial ports is /dev/ttyAMA0, /dev/ttyAMA1, or /dev/ttyUSB0, /dev/ttyUSB1 (for serial-over-USB devices), ....

Since the "serial port" that Printipi uses for communication is entirely virtual, I elected to use a different naming scheme. It's possible that since then, Octoprint has introduced code that breaks when trying to connect to a serial port with a non-standard name, so you might try renaming it to something like /dev/ttyUSB0 and trying that. You can probably just sudo mv /dev/ttyUSBprintipi /dev/ttyUSB0.