The Museum of HP Calculators

HP Forum Archive 11

[ Return to Index | Top of Index ]

Using INPRT to capture IR from a 42S
Message #1 Posted by Steve on 3 Apr 2003, 8:46 a.m.

Is there any way to clean up the received IR byte stream from a 42S to the 48GX running INPRT? I get non-printing characters when printing the stack, alpha reg, or a program, when captured by INPRT. When I use my 17Bii to send the current date/time, it is captured fine without additional characters. Is there a flag on the 42s to get rid of these characters? Thanks,


Re: Using INPRT to capture IR from a 42S
Message #2 Posted by Vieira, Luiz C. (Brazil) on 3 Apr 2003, 10:15 a.m.,
in response to message #1 by Steve

Hi, Steve;

INPRT is intended to capture the HP42S coded character set when printing text. I remember I edited a copy of INPRT (I still have an HP48SX copy of it) and I saw two character strings: one had an ASCII seqence and the other was almost the same, with some characters in diferent postions. I changed the second one so both were identical and I called this INPRT copy and INGRAPH. If I had to capture LCD, I used it. Instead, I used the original one.

When printing graphics using IR port, all calcualtors send bytes equivalent to an 8-bit column. When psinting text, each character is received an 8-bit code. What happens is that the HP42S has a different "character map" so INPRT "translates" the different codes and I guess it uses those strings: locate character in first string, get the character in the other string in the same position. When I changed the second one to be like the first one, translation returns the same character ever.

My INGRAPH version (same as INPRT with those changes) runs only in the HP48SX. If it is of any use, let me know.


Luiz C. Vieira - Brazil

[ Return to Index | Top of Index ]

Go back to the main exhibit hall