Page 1 of 1

trouble reading module type

Posted: Wed Sep 06, 2006 2:18 pm
by roberthagens
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.

Posted: Fri Sep 22, 2006 1:11 pm
by Paradigm
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.