Linux, serial port, strange chars on screen

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

Moderators: Henry, Mods

Post Reply
ipl31
LCD?
Posts: 2
Joined: Wed Feb 07, 2007 2:21 pm
Location: Seattle

Linux, serial port, strange chars on screen

Post by ipl31 »

Hello,

I had my lk204-25 working great with my laptop and linux using the LCD::MatrixOrbital perl module, although i had to hack it a bit to get it to compile on newer versions of perl:

http://www.evilsoft.org/Software/LCD.txt

Anyways, I moved the setup over a new computer, the permanent home. And it seems like now all I get is strange chars on the screen instead of the normal text. I have noticed that sometimes if I fire up "LCDProc" first and then start my script it seems to work ok. I am wondering if this is a character encoding issue or if my serial port needs to be initialized somehow.
Raquel
Matrix Orbital
Matrix Orbital
Posts: 834
Joined: Thu Aug 19, 2004 3:37 pm
Location: MO Office

Post by Raquel »

Hi ipl31,

Thank you for your post.

The first thing to check when garbled text come up on the screen is the baud rate. Check that the baud rate is not changed somehow on your script.
Raquel Malinis
Design and Development
Matrix Orbital
ipl31
LCD?
Posts: 2
Joined: Wed Feb 07, 2007 2:21 pm
Location: Seattle

Speed

Post by ipl31 »

I have set the speed with setserial and it shows this:

stty -F /dev/ttyS1

speed 19200 baud; line = 0;

min = 1; time = 3;

-brkint -icrnl -imaxbel

-opost

-isig -icanon -iexten -echo


Do I need to change one of the other settings?
Raquel
Matrix Orbital
Matrix Orbital
Posts: 834
Joined: Thu Aug 19, 2004 3:37 pm
Location: MO Office

Post by Raquel »

Hi ipl31,

I am not familiar with linux, but what I would like for you to check are the following:

baud = 19200
stop bit = 1
parity = none
flow control = none

Best Regards,
Raquel Malinis
Design and Development
Matrix Orbital
Post Reply