Page 1 of 1

Find out if LCD panel is connected to serial port

Posted: Mon Nov 28, 2022 8:36 am
by madz
I have a LK204-7T LCD panel running on a Linux machine connected to a serial com port. I am starting the LCD panel through a startup service. Is there a way to check if the LCD panel is actually connected to the machine before I run my service?

Re: Find out if LCD panel is connected to serial port

Posted: Mon Nov 28, 2022 12:18 pm
by Raquel
Hello,

Thank you for posting on the forum.

You can check for ttyUSB0 to know when a display is plugged in.
To further confirm, ask for a module type or version number (please see commands in the manual) and check the display's reply.

I hope this helps.

Thank you,
Raquel

Re: Find out if LCD panel is connected to serial port

Posted: Tue Nov 29, 2022 2:33 am
by madz
I'm connecting the LCD via a serial com port (not a USB serial port) which is a 'ttyS0'. And the machine already has a 'ttyS0' in it regardless if the LCD is connected or not. My issue is identifying if the LCD is connected without having to write to it first.

Re: Find out if LCD panel is connected to serial port

Posted: Tue Nov 29, 2022 9:01 am
by Raquel
Sorry, I assumed you have a USB model.
Unfortunately, no there is no way of knowing a display was plugged in via the serial com port without writing to it.

Thank you,
Raquel