Hi,
I am little bit confused. Just purchased the BVK202A, which is a LK202-25.
Anyhoo, using perl, there is a few things I need to set and do with the command set - like set the startup screen and have a cursor be at certain positions.
The perl example that came on the CD doesn't seem to work.
For example, for clearing the screen ...
syswrite DisplayIO, sprintf ("%cX", 0xfe);
It's reporting it out to the LCD, which tells me that the command did not take.
HOWEVER, this does work for clearing the screen ...
syswrite DisplayIO, sprintf ("%c",0x0c);
or
syswrite DisplayIO, sprintf ("%c", 12);
If the latter is the correct way, does anyone have the command sets converted?
Now, would someone be able to tell me what the difference is between 0xfe and '12', because %c is taking care of the convert.
Doing od dumps on the output, I see that \f is being passed to the LCD.
So, I am presuming that 12 is someform of \f ... which I guess works for clearing the screen, but I would really like to use the other parts of the command structure... Any ideas? Why doesn't the perl code in the example given on the CD work?
stty is reporting correct speed, 19200, and I am able to echo test >/dev/ttyS0 just fine.....
TIA!
-Graham.
RH8 /Perl/BVK202A [LK202-25]
-
- LCD?
- Posts: 2
- Joined: Sat Jul 19, 2003 1:24 pm
RESOLVED
Hi all,
It appears that RH changes the char set, starting in 8.0.
Hence, that's why the perl (an others maybe) was tranforming the input.
So, all I did was take a RH7.3 /etc/sysconfig/i18n and copy it over my 8.0 ... and wholla! It behaves as it should.
If you are not able to retrieve this file from a RH7.3 box, here it is:
LANG="en_US.iso885915"
SUPPORTED="en_US.iso885915:en_US:en"
SYSFONT="lat0-sun16"
SYSFONTACM="iso15"
NOTE --> This was done by me for what I need it to do. This may affect output of other items... not sure though. Just an FYI.
Hope this helps someone....
-Graham.
It appears that RH changes the char set, starting in 8.0.
Hence, that's why the perl (an others maybe) was tranforming the input.
So, all I did was take a RH7.3 /etc/sysconfig/i18n and copy it over my 8.0 ... and wholla! It behaves as it should.
If you are not able to retrieve this file from a RH7.3 box, here it is:
LANG="en_US.iso885915"
SUPPORTED="en_US.iso885915:en_US:en"
SYSFONT="lat0-sun16"
SYSFONTACM="iso15"
NOTE --> This was done by me for what I need it to do. This may affect output of other items... not sure though. Just an FYI.
Hope this helps someone....
-Graham.