Predator Printer Serial port

What is the problem?
i get error " Offline (Error: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823)" when i connect Octoprint

What did you already try to solve it?
i added serial port /dev/ttyAMA* but still same issue

Logs (syslog, dmesg, ... no logs, no support)

2020-06-18 17:41:14,980 - Changing monitoring state from "Offline" to "Detecting serial port"
2020-06-18 17:41:15,029 - Serial port list: []
2020-06-18 17:41:15,030 - Changing monitoring state from "Detecting serial port" to "Error: Failed to autodetect serial port, please set it manually."
2020-06-18 17:41:15,037 - Failed to autodetect serial port, please set it manually.
2020-06-18 17:47:48,218 - Changing monitoring state from "Offline" to "Detecting serial port"
2020-06-18 17:47:48,357 - Serial port list: []
2020-06-18 17:47:48,359 - Changing monitoring state from "Detecting serial port" to "Error: Failed to autodetect serial port, please set it manually."
2020-06-18 17:47:48,363 - Failed to autodetect serial port, please set it manually.
2020-06-18 17:48:17,953 - Changing monitoring state from "Offline" to "Detecting serial port"
2020-06-18 17:48:18,027 - Serial port list: []
2020-06-18 17:48:18,028 - Changing monitoring state from "Detecting serial port" to "Error: Failed to autodetect serial port, please set it manually."
2020-06-18 17:48:18,035 - Failed to autodetect serial port, please set it manually.
2020-06-18 17:49:32,971 - Changing monitoring state from "Offline" to "Detecting serial port"
2020-06-18 17:49:33,048 - Serial port list: []
2020-06-18 17:49:33,049 - Changing monitoring state from "Detecting serial port" to "Error: Failed to autodetect serial port, please set it manually."
2020-06-18 17:49:33,054 - Failed to autodetect serial port, please set it manually.
2020-06-18 17:49:37,692 - Changing monitoring state from "Offline" to "Detecting serial port"
2020-06-18 17:49:37,839 - Serial port list: []
2020-06-18 17:49:37,842 - Changing monitoring state from "Detecting serial port" to "Error: Failed to autodetect serial port, please set it manually."
2020-06-18 17:49:37,859 - Failed to autodetect serial port, please set it manually.
2020-06-18 17:50:42,473 - Changing monitoring state from "Offline" to "Detecting serial port"
2020-06-18 17:50:42,549 - Serial port list: []
2020-06-18 17:50:42,551 - Changing monitoring state from "Detecting serial port" to "Error: Failed to autodetect serial port, please set it manually."
2020-06-18 17:50:42,556 - Failed to autodetect serial port, please set it manually.
2020-06-18 17:51:14,280 - Changing monitoring state from "Offline" to "Detecting serial port"
2020-06-18 17:51:14,356 - Serial port list: []
2020-06-18 17:51:14,358 - Changing monitoring state from "Detecting serial port" to "Error: Failed to autodetect serial port, please set it manually."
2020-06-18 17:51:14,362 - Failed to autodetect serial port, please set it manually.
2020-06-18 17:51:35,400 - Changing monitoring state from "Offline" to "Detecting serial port"
2020-06-18 17:51:35,480 - Serial port list: []
2020-06-18 17:51:35,480 - Changing monitoring state from "Detecting serial port" to "Error: Failed to autodetect serial port, please set it manually."
2020-06-18 17:51:35,486 - Failed to autodetect serial port, please set it manually.
2020-06-18 18:06:25,636 - Changing monitoring state from "Offline" to "Detecting serial port"
2020-06-18 18:06:25,837 - Serial port list: ['/dev/ttyAMA0']
2020-06-18 18:06:25,839 - Connecting to: /dev/ttyAMA0
2020-06-18 18:06:25,844 - Changing monitoring state from "Detecting serial port" to "Opening serial port"
2020-06-18 18:06:25,851 - Connected to: Serial<id=0x67ddceb0, open=True>(port='/dev/ttyAMA0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=10.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
2020-06-18 18:06:25,855 - Changing monitoring state from "Opening serial port" to "Connecting"
2020-06-18 18:06:25,873 - Send: N0 M110 N0*125
2020-06-18 18:06:25,973 - Unexpected error while reading serial port, please consult octoprint.log for details: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823
2020-06-18 18:06:25,980 - Changing monitoring state from "Connecting" to "Offline (Error: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823)"
2020-06-18 18:06:25,985 - Connection closed, closing down monitor
2020-06-18 18:06:36,459 - Connecting to: /dev/ttyAMA0
2020-06-18 18:06:36,489 - Changing monitoring state from "Offline" to "Opening serial port"
2020-06-18 18:06:36,494 - Connected to: Serial<id=0x67ddcb30, open=True>(port='/dev/ttyAMA0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=10.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
2020-06-18 18:06:36,495 - Changing monitoring state from "Opening serial port" to "Connecting"
2020-06-18 18:06:36,518 - Send: N0 M110 N0*125
2020-06-18 18:06:36,590 - Unexpected error while reading serial port, please consult octoprint.log for details: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823
2020-06-18 18:06:36,595 - Changing monitoring state from "Connecting" to "Offline (Error: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823)"
2020-06-18 18:06:36,604 - Connection closed, closing down monitor
2020-06-18 18:07:15,780 - Connecting to: /dev/ttyAMA0
2020-06-18 18:07:15,804 - Changing monitoring state from "Offline" to "Opening serial port"
2020-06-18 18:07:15,812 - Connected to: Serial<id=0x67dac490, open=True>(port='/dev/ttyAMA0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=10.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
2020-06-18 18:07:15,815 - Changing monitoring state from "Opening serial port" to "Connecting"
2020-06-18 18:07:15,895 - Unexpected error while reading serial port, please consult octoprint.log for details: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823
2020-06-18 18:07:15,899 - Send: N0 M110 N0*125
2020-06-18 18:07:15,901 - Changing monitoring state from "Connecting" to "Offline (Error: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823)"
2020-06-18 18:07:15,921 - Connection closed, closing down monitor
2020-06-18 18:08:26,797 - Connecting to: /dev/ttyAMA0
2020-06-18 18:08:26,820 - Changing monitoring state from "Offline" to "Opening serial port"
2020-06-18 18:08:26,827 - Connected to: Serial<id=0x67f357d0, open=True>(port='/dev/ttyAMA0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=10.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
2020-06-18 18:08:26,830 - Changing monitoring state from "Opening serial port" to "Connecting"
2020-06-18 18:08:26,850 - Send: N0 M110 N0*125
2020-06-18 18:08:26,920 - Unexpected error while reading serial port, please consult octoprint.log for details: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823
2020-06-18 18:08:26,935 - Changing monitoring state from "Connecting" to "Offline (Error: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823)"
2020-06-18 18:08:26,941 - Connection closed, closing down monitor
2020-06-18 18:08:38,085 - Connecting to: /dev/ttyAMA0
2020-06-18 18:08:38,111 - Changing monitoring state from "Offline" to "Opening serial port"
2020-06-18 18:08:38,126 - Connected to: Serial<id=0x688c40d0, open=True>(port='/dev/ttyAMA0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=10.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
2020-06-18 18:08:38,131 - Changing monitoring state from "Opening serial port" to "Connecting"
2020-06-18 18:08:38,145 - Send: N0 M110 N0*125
2020-06-18 18:08:38,215 - Unexpected error while reading serial port, please consult octoprint.log for details: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823
2020-06-18 18:08:38,218 - Changing monitoring state from "Connecting" to "Offline (Error: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823)"
2020-06-18 18:08:38,231 - Connection closed, closing down monitor
2020-06-18 18:08:46,524 - Connecting to: /dev/ttyAMA0
2020-06-18 18:08:46,554 - Changing monitoring state from "Offline" to "Opening serial port"
2020-06-18 18:08:46,563 - Connected to: Serial<id=0x688ee550, open=True>(port='/dev/ttyAMA0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=10.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
2020-06-18 18:08:46,567 - Changing monitoring state from "Opening serial port" to "Connecting"
2020-06-18 18:08:46,584 - Send: N0 M110 N0*125
2020-06-18 18:08:46,662 - Unexpected error while reading serial port, please consult octoprint.log for details: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823
2020-06-18 18:08:46,666 - Changing monitoring state from "Connecting" to "Offline (Error: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823)"
2020-06-18 18:08:46,682 - Connection closed, closing down monitor
2020-06-18 18:08:54,460 - Connecting to: /dev/ttyAMA0
2020-06-18 18:08:54,484 - Changing monitoring state from "Offline" to "Opening serial port"
2020-06-18 18:08:54,492 - Connected to: Serial<id=0x689886f0, open=True>(port='/dev/ttyAMA0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=10.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
2020-06-18 18:08:54,495 - Changing monitoring state from "Opening serial port" to "Connecting"
2020-06-18 18:08:54,592 - Send: N0 M110 N0*125
2020-06-18 18:08:54,592 - Unexpected error while reading serial port, please consult octoprint.log for details: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823
2020-06-18 18:08:54,597 - Changing monitoring state from "Connecting" to "Offline (Error: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823)"
2020-06-18 18:08:54,612 - Connection closed, closing down monitor
2020-06-18 18:09:23,006 - Connecting to: /dev/ttyAMA0
2020-06-18 18:09:23,030 - Changing monitoring state from "Offline" to "Opening serial port"
2020-06-18 18:09:23,037 - Connected to: Serial<id=0x68881b30, open=True>(port='/dev/ttyAMA0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=10.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
2020-06-18 18:09:23,040 - Changing monitoring state from "Opening serial port" to "Connecting"
2020-06-18 18:09:23,075 - Send: N0 M110 N0*125
2020-06-18 18:09:23,152 - Unexpected error while reading serial port, please consult octoprint.log for details: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823
2020-06-18 18:09:23,157 - Changing monitoring state from "Connecting" to "Offline (Error: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823)"
2020-06-18 18:09:23,168 - Connection closed, closing down monitor
2020-06-18 18:09:45,226 - Connecting to: /dev/ttyAMA0
2020-06-18 18:09:45,249 - Changing monitoring state from "Offline" to "Opening serial port"
2020-06-18 18:09:45,254 - Connected to: Serial<id=0x688c49d0, open=True>(port='/dev/ttyAMA0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=10.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
2020-06-18 18:09:45,257 - Changing monitoring state from "Opening serial port" to "Connecting"
2020-06-18 18:09:45,280 - Send: N0 M110 N0*125
2020-06-18 18:09:45,364 - Unexpected error while reading serial port, please consult octoprint.log for details: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823
2020-06-18 18:09:45,372 - Changing monitoring state from "Connecting" to "Offline (Error: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823)"
2020-06-18 18:09:45,382 - Connection closed, closing down monitor
2020-06-18 18:09:52,695 - Changing monitoring state from "Offline" to "Detecting serial port"
2020-06-18 18:09:52,772 - Serial port list: ['/dev/ttyAMA0']
2020-06-18 18:09:52,773 - Connecting to: /dev/ttyAMA0
2020-06-18 18:09:52,777 - Changing monitoring state from "Detecting serial port" to "Opening serial port"
2020-06-18 18:09:52,784 - Connected to: Serial<id=0x68988af0, open=True>(port='/dev/ttyAMA0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=10.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
2020-06-18 18:09:52,785 - Changing monitoring state from "Opening serial port" to "Connecting"
2020-06-18 18:09:52,801 - Send: N0 M110 N0*125
2020-06-18 18:09:52,880 - Unexpected error while reading serial port, please consult octoprint.log for details: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823
2020-06-18 18:09:52,884 - Changing monitoring state from "Connecting" to "Offline (Error: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823)"
2020-06-18 18:09:52,894 - Connection closed, closing down monitor
2020-06-18 18:09:52,904 - Closing down send loop
2020-06-18 18:09:56,805 - Connecting to: /dev/ttyAMA0
2020-06-18 18:09:56,826 - Changing monitoring state from "Offline" to "Opening serial port"
2020-06-18 18:09:56,832 - Connected to: Serial<id=0x688c4850, open=True>(port='/dev/ttyAMA0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=10.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
2020-06-18 18:09:56,838 - Changing monitoring state from "Opening serial port" to "Connecting"
2020-06-18 18:09:56,930 - Unexpected error while reading serial port, please consult octoprint.log for details: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823
2020-06-18 18:09:56,932 - Send: N0 M110 N0*125
2020-06-18 18:09:56,938 - Changing monitoring state from "Connecting" to "Offline (Error: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823)"
2020-06-18 18:09:56,948 - Connection closed, closing down monitor
2020-06-18 18:10:00,239 - Connecting to: /dev/ttyAMA0
2020-06-18 18:10:00,263 - Changing monitoring state from "Offline" to "Opening serial port"
2020-06-18 18:10:00,267 - Connected to: Serial<id=0x6883a430, open=True>(port='/dev/ttyAMA0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=10.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
2020-06-18 18:10:00,270 - Changing monitoring state from "Opening serial port" to "Connecting"
2020-06-18 18:10:00,283 - Send: N0 M110 N0*125
2020-06-18 18:10:00,367 - Unexpected error while reading serial port, please consult octoprint.log for details: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823
2020-06-18 18:10:00,383 - Changing monitoring state from "Connecting" to "Offline (Error: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823)"
2020-06-18 18:10:00,385 - Closing down send loop
2020-06-18 18:10:00,395 - Connection closed, closing down monitor
2020-06-18 18:11:05,641 - Connecting to: /dev/ttyAMA0
2020-06-18 18:11:05,664 - Changing monitoring state from "Offline" to "Opening serial port"
2020-06-18 18:11:05,675 - Connected to: Serial<id=0x6897da10, open=True>(port='/dev/ttyAMA0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=10.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
2020-06-18 18:11:05,676 - Changing monitoring state from "Opening serial port" to "Connecting"
2020-06-18 18:11:05,689 - Send: N0 M110 N0*125
2020-06-18 18:11:05,770 - Unexpected error while reading serial port, please consult octoprint.log for details: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823
2020-06-18 18:11:05,775 - Changing monitoring state from "Connecting" to "Offline (Error: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823)"
2020-06-18 18:11:05,783 - Connection closed, closing down monitor
2020-06-18 18:11:29,130 - Connecting to: /dev/ttyAMA0
2020-06-18 18:11:29,153 - Changing monitoring state from "Offline" to "Opening serial port"
2020-06-18 18:11:29,159 - Connected to: Serial<id=0x67d90bb0, open=True>(port='/dev/ttyAMA0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=10.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
2020-06-18 18:11:29,161 - Changing monitoring state from "Opening serial port" to "Connecting"
2020-06-18 18:11:29,173 - Send: N0 M110 N0*125
2020-06-18 18:11:29,252 - Unexpected error while reading serial port, please consult octoprint.log for details: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823
2020-06-18 18:11:29,260 - Changing monitoring state from "Connecting" to "Offline (Error: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823)"
2020-06-18 18:11:29,272 - Connection closed, closing down monitor
2020-06-18 18:14:54,213 - Connecting to: /dev/ttyAMA0
2020-06-18 18:14:54,237 - Changing monitoring state from "Offline" to "Opening serial port"
2020-06-18 18:14:54,245 - Connected to: Serial<id=0x68922b10, open=True>(port='/dev/ttyAMA0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=10.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
2020-06-18 18:14:54,247 - Changing monitoring state from "Opening serial port" to "Connecting"
2020-06-18 18:14:54,260 - Send: N0 M110 N0*125
2020-06-18 18:14:54,346 - Unexpected error while reading serial port, please consult octoprint.log for details: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823
2020-06-18 18:14:54,359 - Changing monitoring state from "Connecting" to "Offline (Error: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823)"
2020-06-18 18:14:54,372 - Connection closed, closing down monitor
2020-06-18 18:15:05,809 - Connecting to: /dev/ttyAMA0
2020-06-18 18:15:05,832 - Changing monitoring state from "Offline" to "Opening serial port"
2020-06-18 18:15:05,839 - Connected to: Serial<id=0x6897da10, open=True>(port='/dev/ttyAMA0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=10.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
2020-06-18 18:15:05,840 - Changing monitoring state from "Opening serial port" to "Connecting"
2020-06-18 18:15:05,860 - Send: N0 M110 N0*125
2020-06-18 18:15:05,939 - Unexpected error while reading serial port, please consult octoprint.log for details: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823
2020-06-18 18:15:05,944 - Changing monitoring state from "Connecting" to "Offline (Error: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823)"
2020-06-18 18:15:05,954 - Connection closed, closing down monitor
2020-06-18 18:15:09,955 - Connecting to: /dev/ttyAMA0
2020-06-18 18:15:09,985 - Changing monitoring state from "Offline" to "Opening serial port"
2020-06-18 18:15:09,991 - Connected to: Serial<id=0x688c4550, open=True>(port='/dev/ttyAMA0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=10.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
2020-06-18 18:15:09,995 - Changing monitoring state from "Opening serial port" to "Connecting"
2020-06-18 18:15:10,010 - Send: N0 M110 N0*125
2020-06-18 18:15:10,093 - Unexpected error while reading serial port, please consult octoprint.log for details: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823
2020-06-18 18:15:10,109 - Changing monitoring state from "Connecting" to "Offline (Error: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823)"
2020-06-18 18:15:10,117 - Connection closed, closing down monitor
2020-06-18 18:15:52,993 - Changing monitoring state from "Offline" to "Detecting serial port"
2020-06-18 18:15:53,069 - Serial port list: ['/dev/ttyAMA0']
2020-06-18 18:15:53,070 - Connecting to: /dev/ttyAMA0
2020-06-18 18:15:53,074 - Changing monitoring state from "Detecting serial port" to "Opening serial port"
2020-06-18 18:15:53,080 - Connected to: Serial<id=0x68a2ffb0, open=True>(port='/dev/ttyAMA0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=10.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
2020-06-18 18:15:53,085 - Changing monitoring state from "Opening serial port" to "Connecting"
2020-06-18 18:15:53,173 - Send: N0 M110 N0*125
2020-06-18 18:15:53,258 - Unexpected error while reading serial port, please consult octoprint.log for details: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823
2020-06-18 18:15:53,294 - Changing monitoring state from "Connecting" to "Offline (Error: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823)"
2020-06-18 18:15:53,339 - Connection closed, closing down monitor
2020-06-18 18:16:02,488 - Connecting to: /dev/ttyAMA0
2020-06-18 18:16:02,519 - Changing monitoring state from "Offline" to "Opening serial port"
2020-06-18 18:16:02,527 - Connected to: Serial<id=0x67ddc7f0, open=True>(port='/dev/ttyAMA0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=10.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
2020-06-18 18:16:02,530 - Changing monitoring state from "Opening serial port" to "Connecting"
2020-06-18 18:16:02,546 - Send: N0 M110 N0*125
2020-06-18 18:16:02,623 - Unexpected error while reading serial port, please consult octoprint.log for details: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823
2020-06-18 18:16:02,626 - Changing monitoring state from "Connecting" to "Offline (Error: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823)"
2020-06-18 18:16:02,637 - Connection closed, closing down monitor
2020-06-18 18:23:25,811 - Connecting to: /dev/ttyAMA0
2020-06-18 18:23:25,835 - Changing monitoring state from "Offline" to "Opening serial port"
2020-06-18 18:23:25,841 - Connected to: Serial<id=0x68862e50, open=True>(port='/dev/ttyAMA0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=10.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
2020-06-18 18:23:25,842 - Changing monitoring state from "Opening serial port" to "Connecting"
2020-06-18 18:23:25,860 - Send: N0 M110 N0*125
2020-06-18 18:23:25,942 - Unexpected error while reading serial port, please consult octoprint.log for details: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823
2020-06-18 18:23:25,958 - Changing monitoring state from "Connecting" to "Offline (Error: IOError: '[Errno 25] Inappropriate ioctl for device' @ comm.py:_readline:2823)"
2020-06-18 18:23:25,970 - Connection closed, closing down monitor

Additional information about your network (Hardware you are trying to connect to, hardware you are trying to connect from, router, access point, used operating systems, ...)

i have a predator printer and SKR 1.4 turbo installed , and Raspberry PI 3B+

Lets see if the SKR is detected it all :slight_smile:

Log into your pi via ssh then disconnect your printer, connect it again, enter dmesg | tail -n 20 and post the output here.

If you need help with the ssh part


Scroll down and start with the Connecting to Your Raspberry Pi over SSH part.
The first part is already done for you in the octopi image.

Did you try other baudrates like 250000 for example?

i only tried 112500

Did you build the firmware yourself?

no that firmware was built by Kris Waclawski]n the facebook for SKR 1.4 turbo and i just edit a bet for my cooperhead so i change the the temp sensor to 67

here is the results

[ 10.837379] 8021q: 802.1Q VLAN Support v1.8
[ 11.195409] Adding 102396k swap on /var/swap. Priority:-2 extents:1 across:102396k SSFS
[ 11.306358] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 11.306520] brcmfmac: power management disabled
[ 11.638060] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 11.638073] 8021q: adding VLAN 0 to HW filter on device eth0
[ 14.356037] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 17.900850] Bluetooth: Core ver 2.22
[ 17.900960] NET: Registered protocol family 31
[ 17.900963] Bluetooth: HCI device and connection manager initialized
[ 17.900985] Bluetooth: HCI socket layer initialized
[ 17.900992] Bluetooth: L2CAP socket layer initialized
[ 17.901020] Bluetooth: SCO socket layer initialized
[ 17.949667] Bluetooth: HCI UART driver ver 2.3
[ 17.949676] Bluetooth: HCI UART protocol H4 registered
[ 17.949721] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 17.949828] Bluetooth: HCI UART protocol Broadcom registered
[ 18.301289] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 18.301298] Bluetooth: BNEP filters: protocol multicast
[ 18.301314] Bluetooth: BNEP socket layer initialized
pi@PREDATOR:~ $

the skr isn't detected
I assume the printer is powered on?
Did Kris Waclawskin share the source of his firmware? Like a GitHub link?

[ 10.837379] 8021q: 802.1Q VLAN Support v1.8
[ 11.195409] Adding 102396k swap on /var/swap. Priority:-2 extents:1 across:102396k SSFS
[ 11.306358] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 11.306520] brcmfmac: power management disabled
[ 11.638060] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 11.638073] 8021q: adding VLAN 0 to HW filter on device eth0
[ 14.356037] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 17.900850] Bluetooth: Core ver 2.22
[ 17.900960] NET: Registered protocol family 31
[ 17.900963] Bluetooth: HCI device and connection manager initialized
[ 17.900985] Bluetooth: HCI socket layer initialized
[ 17.900992] Bluetooth: L2CAP socket layer initialized
[ 17.901020] Bluetooth: SCO socket layer initialized
[ 17.949667] Bluetooth: HCI UART driver ver 2.3
[ 17.949676] Bluetooth: HCI UART protocol H4 registered
[ 17.949721] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 17.949828] Bluetooth: HCI UART protocol Broadcom registered
[ 18.301289] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 18.301298] Bluetooth: BNEP filters: protocol multicast
[ 18.301314] Bluetooth: BNEP socket layer initialized
pi@PREDATOR:~ $

the print is on and kris he shared it on facebook here is the link to it https://www.facebook.com/groups/2408703419189476/search/?query=marlin&epa=SEARCH_BOX

Sry I don't do social media. If there is anything other than the compiled firmware.bin , like a downloadable marlin folder or a zip you could upload it somewhere else and I'll take a look into the config.

when i open the web of the octoprint and i press connect it give me this error Offline (Error: Could not write to serial port)

Yeah if it isn't detected by the pi (which you would see in dmesg after disconnecting and connecting it again) octoprint is also not able to connect to it.
I guess there is a configuration error in the firmware

yes i can attach the firmware.bin do i change the ext bin to somthing else like jpg ? it wont allow me to attach here

the firmware bin doesn't help, sorry.
It's already compiled and I can't look into the source code.

i can zip the source folder and attach here is that ok

Yep do that.

this is the link to the files he had but i only took the source of the SKR 1.4 part https://mega.nz/file/RD5zRJhZ#F2uRRc3gY21YocmqYpir_xRTUhxMF8X3Czd_KHabicY

so this firmware is modified for the predator printer and i added the mod for the cooperhead hotend from slic eng.but my modification is not in that source you downloaded which is very small mod

I guess the mod only changes the dimensions of the hotend?

I didn't find an obvious problem in the configuration of this marlin firmware. I thought there might be a problem with the board type or the serial ports - but nope. Those parts are ok.

Did you try another usb cable?

no i didnt i will check another one now

Serial port list: ['/dev/ttyAMA0']
Connecting to: /dev/ttyAMA0
Changing monitoring state from "Detecting serial port" to "Opening serial port"
Connected to: Serial<id=0x67bdb6b0, open=True>(port='/dev/ttyAMA0', 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
Could not write anything to the serial port in 5 tries, something appears to be wrong with the printer communication
Changing monitoring state from "Detecting baudrate" to "Offline (Error: Could not write to serial port)"
Connection closed, closing down monitor
Closing down send loop

should i add something to the additional serial port or not ?