Comments (10)
Looks like it not finding the display
aka DWIN handshake
, but no DWIN OK
May need to change your serial port for Raspberry Pi 3 as this was tested on Raspberry Pi zero W.
looking at https://www.electronicwings.com/raspberry-pi/raspberry-pi-uart-communication-using-python-and-c
"Hardware UART port i.e. GPIO14(TXD) and GPIO15 (RXD) is also known as serial0"
try changing line
LCD_COM_Port = '/dev/ttyAMA0'
To:
LCD_COM_Port = '/dev/serial0'
from dwin_t5uic1_lcd.
Ah this might be the problem, but your suggesstion doesnt fix it:
As far as I can tell, it also dont make a difference bc serial0 points also to ttyAMA0
I also found out that on rpi3 you have to add 'dtoverlay=pi3-disable-bt' to /boot/config.txt but this also wasn't the problem.
Sadly I'm not very familiar with these basic hardware things as Serial connection and so on.
Do you have any suggestion to find the problem, maybe some tests?
I also tried using ttyS0 and serial1, bc the ports seemes changed on my Pi, but in this case this error show up:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 323, in _reconfigure_port
orig_attr = termios.tcgetattr(self.fd)
termios.error: (5, 'Input/output error')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "run.py", line 13, in
API_Key
File "/home/pi/DWIN_T5UIC1_LCD/dwinlcd.py", line 316, in init
self.lcd = T5UIC1_LCD(USARTx)
File "/home/pi/DWIN_T5UIC1_LCD/DWIN_Screen.py", line 59, in init
self.MYSERIAL1 = serial.Serial(USARTx, 115200, timeout=1)
File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 240, in init
self.open()
File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 272, in open
self._reconfigure_port(force_update=True)
File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 326, in _reconfigure_port
raise SerialException("Could not configure port: {}".format(msg))
serial.serialutil.SerialException: Could not configure port: (5, 'Input/output error')
It is maybe also important that i run the Jyers Firmware before and therefore changed the LCD firmware.
from dwin_t5uic1_lcd.
Having the same issue. Has anyone found a solution? I also had been running Jyers firmware before.
from dwin_t5uic1_lcd.
Flashed original firmware and no luck.
from dwin_t5uic1_lcd.
Running into same issue, RPi 4 and went straight from stock to Klipper. Only see DWIN handshake in start, whenever I rotate the knob I get:
Traceback (most recent call last):
File "/home/pi/DWIN_T5UIC1_LCD/encoder.py", line 47, in transitionOccurred
self.callback(self.value)
File "/home/pi/DWIN_T5UIC1_LCD/dwinlcd.py", line 2252, in encoder_has_data
if self.checkkey == self.MainMenu:
AttributeError: 'DWIN_LCD' object has no attribute 'checkkey'
Traceback (most recent call last):
File "/home/pi/DWIN_T5UIC1_LCD/encoder.py", line 38, in transitionOccurred
self.callback(self.value)
File "/home/pi/DWIN_T5UIC1_LCD/dwinlcd.py", line 2252, in encoder_has_data
if self.checkkey == self.MainMenu:
AttributeError: 'DWIN_LCD' object has no attribute 'checkkey'
Traceback (most recent call last):
File "/home/pi/DWIN_T5UIC1_LCD/encoder.py", line 38, in transitionOccurred
self.callback(self.value)
File "/home/pi/DWIN_T5UIC1_LCD/dwinlcd.py", line 2252, in encoder_has_data
if self.checkkey == self.MainMenu:
AttributeError: 'DWIN_LCD' object has no attribute 'checkkey'
Also using fluidd instead of octoprint, but I don't believe that is the issue since the LCD cannot connect. The LCD is receiving power.
from dwin_t5uic1_lcd.
I have the same issue. I get DWIN handshake, but no DWIN OK. Looking at the code this means it's getting no response from the lcd board over serial. However moving the encoder wheel registers events and I get the error the OP quoted.
I've triple checked all my wiring and tested my cable. If any of the original posters found a solution to this, I'd love to hear it.
from dwin_t5uic1_lcd.
Hey together, I found a fork https://github.com/bustedlogic/DWIN_T5UIC1_LCD
which worked for me, I hope for you too.
Enjoy!
from dwin_t5uic1_lcd.
I tested with that fork and I am still getting the same checkkey error. LCD has power, what should I be looking to test?
EDIT: This fix did the trick:
Looks like it not finding the display aka
DWIN handshake
, but noDWIN OK
May need to change your serial port for Raspberry Pi 3 as this was tested on Raspberry Pi zero W.
looking at https://www.electronicwings.com/raspberry-pi/raspberry-pi-uart-communication-using-python-and-c
"Hardware UART port i.e. GPIO14(TXD) and GPIO15 (RXD) is also known as serial0"
try changing line
LCD_COM_Port = '/dev/ttyAMA0'
To:
LCD_COM_Port = '/dev/serial0'
from dwin_t5uic1_lcd.
from dwin_t5uic1_lcd.
Related Issues (17)
- How to add new preheat row?
- DWIN_T5UIC1_LCD/printerInterface.py - KeyError: 'model' HOT 5
- Can not find the klipper file in /etc/default/klipper how to enable klipper socket HOT 1
- Add menu controls to shutdown the pi HOT 1
- Connecting to seperate moonraker host??
- error when running run.py HOT 13
- Support for standard GPIO - not just raspberry pi
- Control wheel does not work HOT 2
- Help with pin connection HOT 2
- Mainboard connection instead of Rpi GPIO HOT 4
- connect to a touch screen
- Remove octoprint dependency, and communicate only with moonraker API HOT 18
- Moonraker/Klipper only? HOT 1
- KeyError: 'job' HOT 1
- Hanging screen after homing
- Feature request: add menu item to power toggle printer HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dwin_t5uic1_lcd.