This had been working fine for months. Then I started to have problems. so I just updated to Octoprint 1.3.9
What is the problem? ------------------------------------
The pi is alive and apparently well. I can see video on port 8080. I am also able to upload files. When I try to connect to the printer, I get error msgs:
Connecting to: /dev/ttyAMA0Changing monitoring state from "Offline" to "Opening serial port"Connected to: Serial<id=0xb01c4830, open=True>(port='/dev/ttyAMA0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=10.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitorChanging monitoring state from "Opening serial port" to "Connecting"Send: N0 M110 N0*125Unexpected error while reading serial port, please consult octoprint.log for details: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2581Changing monitoring state from "Connecting" to "Offline (Error: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2581)"Connection closed, closing down monitor
What did you already try to solve it? ------------------------------------
Tried AUTO for both port and Baud but no joy.
Set baud=115200 which is what I had been using sucessfully; no joy.
Set port to /dev/ttyAMA0 - no joy.
Pulled SD card from pi and reprog it, no joy.
Additional information about your setup (OctoPrint version, OctoPi version, printer, firmware, octoprint.log
, serial.log
or output on terminal tab, ...) ------------------------------------
Printer is a CR10
from octoprint.log:
2018-09-14 15:39:02,545 - octoprint.util.comm - INFO - Changing monitoring state from "Detecting baudrate" to "Offline"
2018-09-14 15:39:09,512 - octoprint.util.comm - INFO - Changing monitoring state from "Offline" to "Opening serial port"
2018-09-14 15:39:09,568 - octoprint.util.comm - INFO - Changing monitoring state from "Opening serial port" to "Connecting"
2018-09-14 15:39:09,608 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2018-09-14 15:39:09,614 - octoprint.util.comm - ERROR - Unexpected error while reading from serial port
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/util/comm.py", line 2581, in _readline
ret = self._serial.readline()
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/util/comm.py", line 4599, in readline
data += bytearray(self.read(self.in_waiting))
File "/home/pi/oprint/local/lib/python2.7/site-packages/serial/serialposix.py", line 467, in in_waiting
s = fcntl.ioctl(self.fd, TIOCINQ, TIOCM_zero_str)
IOError: [Errno 25] Inappropriate ioctl for device
2018-09-14 15:39:09,668 - octoprint.util.comm - INFO - Changing monitoring state from "Connecting" to "Offline (Error: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2581)"
2018-09-14 15:41:18,896 - tornado.access - WARNING - 404 GET /currentsetting.htm (::ffff:192.168.1.139) 51.49ms
2018-09-14 15:46:30,021 - tornado.access - WARNING - 404 GET /currentsetting.htm (::ffff:192.168.1.139) 47.62ms