I'm using the LK202-24-USB on a PC running fedora core 5. The program driving the LK202 is written in perl. I have had no trouble getting it to write commands and text to the display. However, when issue the read module type command (0xFE 0x37), I never get any data back from the device (my read hangs)....Any thoughts or examples of this working in perl would be appreciated.
Thanks,
Robert Hagens
Envysion, Inc.
trouble reading module type
-
- LCD?
- Posts: 1
- Joined: Wed Sep 06, 2006 12:47 pm
- Contact:
-
- Matrix Orbital
- Posts: 255
- Joined: Thu Sep 13, 2001 6:00 pm
- Location: Calgary, Alberta, Canada
Sorry for the delayed response. We don't have any perl examples to pull out for this one. But some quick googling around found a few pages like:
http://www.rocketaware.com/perl/perlfaq ... e_seri.htm
One thing that you could try is to setup non-blocking calls. Then at least if there is no data then it will return instantly instead of locking your program. But as for why there is no data being transmitted back, that is a mystery. You might want to try things out with a terminal application that allows you to send/receive binary data.
http://www.rocketaware.com/perl/perlfaq ... e_seri.htm
One thing that you could try is to setup non-blocking calls. Then at least if there is no data then it will return instantly instead of locking your program. But as for why there is no data being transmitted back, that is a mystery. You might want to try things out with a terminal application that allows you to send/receive binary data.
James McTavish, P.Eng
Director of Engineering
Matrix Orbital
Director of Engineering
Matrix Orbital