Find out if LCD panel is connected to serial port

LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT Series

Moderators: Henry, Mods

Post Reply
madz
LCD?
Posts: 6
Joined: Thu Nov 03, 2022 4:52 am

Find out if LCD panel is connected to serial port

Post 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?

Raquel
Matrix Orbital
Matrix Orbital
Posts: 805
Joined: Thu Aug 19, 2004 3:37 pm
Location: MO Office

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

Post 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
Raquel Malinis
Design and Development
Matrix Orbital

madz
LCD?
Posts: 6
Joined: Thu Nov 03, 2022 4:52 am

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

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

Raquel
Matrix Orbital
Matrix Orbital
Posts: 805
Joined: Thu Aug 19, 2004 3:37 pm
Location: MO Office

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

Post 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
Raquel Malinis
Design and Development
Matrix Orbital

Post Reply