Coder Social home page Coder Social logo

Comments (4)

gaetancollaud avatar gaetancollaud commented on June 15, 2024

Never used Klipper but as reading the doc you have to use /tmp/printer as serial port. So just mount the device like in the example: https://github.com/OctoPrint/docker/blob/master/docker-compose.yml#L8-L9

     devices:
      - /tmp/printer:/tmp/printer

from octoprint-docker.

minnixtx avatar minnixtx commented on June 15, 2024

Although I can choose /tmp/printer for my serial port within octoprint now, when I try to connect it refuses and I get this error in terminal:

Connecting to: /tmp/printer
Changing monitoring state from "Offline" to "Error: Connection error, see Terminal tab"
Unexpected error while connecting to serial port: /tmp/printer SerialException: '[Errno 5] could not open port /tmp/printer: [Errno 5] Input/output error: '/tmp/printer'' @ comm.py:_openSerial:2691 (hook default)

from octoprint-docker.

minnixtx avatar minnixtx commented on June 15, 2024

Ok, I think I'm getting closer with - /dev/ttyUSB0:/tmp/printer. It seems like it's trying to connect but unable to detect baudrate now. From Octoprint terminal when I hit connect:

Octoprint terminal
Connecting to: /tmp/printer
Changing monitoring state from "Offline" to "Opening serial port"
Connected to: Serial(port='/tmp/printer', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=10.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
Starting baud rate detection...
Changing monitoring state from "Opening serial port" to "Detecting baudrate"
Trying baudrate: 115200
Send: N0 M110 N0*125
Unexpected error while reading serial port, please consult octoprint.log for details: SerialException: 'device reports readiness to read but returned no data (device disconnected or multiple access on port?)' @ comm.py:_readline:2823
Please see https://faq.octoprint.org/serialerror for possible reasons of this.
Changing monitoring state from "Detecting baudrate" to "Offline (Error: SerialException: 'device reports readiness to read but returned no data (device disconnected or multiple access on port?)' @ comm.py:_readline:2823)"
Connection closed, closing down monitor

from octoprint-docker.

minnixtx avatar minnixtx commented on June 15, 2024

This is really weird. When I access log docker-compose logs -f I get

octoprint_1  | Traceback (most recent call last):
octoprint_1  |   File "/opt/venv/lib/python2.7/site-packages/OctoPrint-1.4.0-py2.7.egg/octoprint/util/comm.py", line 2823, in _readline
octoprint_1  |     ret = self._serial.readline()
octoprint_1  |   File "/opt/venv/lib/python2.7/site-packages/OctoPrint-1.4.0-py2.7.egg/octoprint/util/comm.py", line 4968, in readline
octoprint_1  |     c = self.read(1)
octoprint_1  |   File "/opt/venv/lib/python2.7/site-packages/pyserial-3.4-py2.7.egg/serial/serialposix.py", line 501, in read
octoprint_1  |     'device reports readiness to read but returned no data '
octoprint_1  | SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
octoprint_1  | 2020-04-30 22:12:15,778 - octoprint.util.comm - ERROR - Please see https://faq.octoprint.org/serialerror for possible reasons of this.
octoprint_1  | 2020-04-30 22:12:15,786 - octoprint.util.comm - INFO - Changing monitoring state from "Detecting baudrate" to "Offline (Error: SerialException: 'device reports readiness to read but returned no data (device disconnected or multiple access on port?)' @ comm.py:_readline:2823)"
octoprint_1  | 2020-04-30 22:12:45,243 - tornado.access - WARNING - 403 GET /api/printer (192.168.57.19) 20.98ms
octoprint_1  | 2020-04-30 22:12:45,279 - tornado.access - WARNING - 403 GET /api/printer (192.168.57.19) 24.64ms
octoprint_1  | 2020-04-30 22:12:45,316 - tornado.access - WARNING - 403 GET /api/printer (192.168.57.19) 24.29ms
octoprint_1  | 2020-04-30 22:12:45,362 - tornado.access - WARNING - 403 GET /api/printer (192.168.57.19) 24.88ms
octoprint_1  | 2020-04-30 22:12:45,395 - tornado.access - WARNING - 403 GET /api/printer (192.168.57.19) 20.40ms
octoprint_1  | 2020-04-30 22:12:45,477 - tornado.access - WARNING - 403 GET /api/printer (192.168.57.19) 21.04ms
octoprint_1  | 2020-04-30 22:12:45,666 - tornado.access - WARNING - 403 GET /api/printer (192.168.57.19) 20.64ms
octoprint_1  | 2020-04-30 22:12:45,761 - tornado.access - WARNING - 403 GET /api/job (192.168.57.19) 22.19ms
octoprint_1  | 2020-04-30 22:12:45,814 - tornado.access - WARNING - 403 GET /api/job (192.168.57.19) 21.76ms
octoprint_1  | 2020-04-30 22:12:45,869 - tornado.access - WARNING - 403 GET /api/job (192.168.57.19) 22.43ms

192.168.57.19 is a totally different machine on my network that has nothing to do with my printer or the device I'm running octoprint on. Why is it even being accessed?

EDIT: nevermind I'm dumb. That's my home assistant server and I forgot I had it setup to query octoprint for sensor data.

from octoprint-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.