Git Product home page Git Product logo

Comments (10)

odwdinc avatar odwdinc commented on July 17, 2024

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.

Samu1808 avatar Samu1808 commented on July 17, 2024

Ah this might be the problem, but your suggesstion doesnt fix it:

image

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.

Hajto avatar Hajto commented on July 17, 2024

Having the same issue. Has anyone found a solution? I also had been running Jyers firmware before.

from dwin_t5uic1_lcd.

Hajto avatar Hajto commented on July 17, 2024

Flashed original firmware and no luck.

from dwin_t5uic1_lcd.

sdavis175 avatar sdavis175 commented on July 17, 2024

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.

jacrify avatar jacrify commented on July 17, 2024

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.

Samu1808 avatar Samu1808 commented on July 17, 2024

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.

sdavis175 avatar sdavis175 commented on July 17, 2024

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 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.

jacrify avatar jacrify commented on July 17, 2024

from dwin_t5uic1_lcd.

Related Issues (17)

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.