HP-71B-HP-IL/RS232 vs Carriage Return



#5

I have a HP-71B and the HPIL/RS232 successfully transferring data and files to/from my PC. Im using an old x286 machine and ProcommPlus (for DOS) as a host. I also have all the documentation for the calculator and the interface.

The only problem left to conquer is the carriage return (CR). My PC will not recognize the <cr> that the -71B generates. I have found the command setup for the interface to delete/insert (ie:change) the <CR>, Im just not sure what ASCII characters I should change. Anybody know what the trick is? I am attempting to transfer BASIC files (transformed into text) over to my PC.

Thanks in advance,

Doug Thomas


#6

I am not sure my quick answer is right, but you may have to include both the <CR> (carraige return) and <LF> (line feed) asciss character in strings. Many years ago I programmed a lot of HP equip and this was usually required to get data out correctly.

#7

The 71B does not generate a <CR>. It uses UNIX convention, where the end-of-line character is a <LF> instead of <CR> <LF>, like in modern PCs.

Ever wondered, why there's a BINary and an ASCII mode in all the ftp programs? That's the reason.

BTW: the development of the 71B ROM was made on a UNIX workstation (a HP 9300 machine), so the developers were used to it. PCs were not very common in the glory days (the 71 was developed 1983-1984). For example the 71B Text Editor Module uses regular expressions for search and replace. The editor is similar to EX (which preceded VI).

There's a lot of conversion utilities on the net and it should be easy to write one on the PC (for use only with Text files). I can see, if I find something on my Winchester (hey, nice old word for a HDD, I just felt I had to use it now).

I know, that for printing you can use the ENDLINE string to specify <CR><LF> (ASCII 13,10), but I doubt, that TRANSFORM will use these settings.

#8

Well....after much pondering...I figured out a way to get what I wanted. Instead of trying to tackle the CR/LF issue, I just did the following.

1. Initialized the HPIL/RS232 interface from the Hp-71B.
2. Bring up my host application (ProcommPlus for DOS).
3. From the HP-71B, issue this command: PRINTER is :RS232
4. From the HP-71B, issue this command: PLIST FILENAME

The file had previously been transformed from basis to text.
The text file is transferred over to my host application and I captured the whole thing.

If anyone needs help with the HP42461A interface, drop me a byte, Ive been using one a lot for the last month or so.

Doug Thomas


Possibly Related Threads...
Thread Author Replies Views Last Post
  [HP-41][HP-71B][HP-75C/D][HP-IL] Found a mother-lode of programs on ftp.stak.tk rdj 2 1,162 11-26-2013, 05:31 PM
Last Post: rdj
  HP Prime - GETPIX_P Return? Thomas Chrapkiewicz 7 1,716 11-25-2013, 08:54 AM
Last Post: Thomas Chrapkiewicz
  HP PRIME: Hide return value from program and swap Edit with Run vrrr 2 1,038 11-09-2013, 04:04 PM
Last Post: vrrr
  HP Prime Programming Tutorial #1: LOCAL, RETURN Eddie W. Shore 6 2,117 10-26-2013, 08:42 PM
Last Post: Miguel Toro
  How to move lexfiles from PC to 71 w/o HP-IL? Joe Horn 9 2,497 10-18-2013, 03:50 PM
Last Post: Christoph Giesselink
  HP-71B Cursor Chirp aj04062 4 1,430 09-29-2013, 08:30 PM
Last Post: Geoff Quickfall
  Best way to test HP-71B RAM modules (the 32K/96K ones etc.)? Philippe Lasnier 4 1,819 09-25-2013, 09:54 AM
Last Post: Philippe Lasnier
  Hand Held Products RS232 to HP-IL aj04062 11 2,438 08-31-2013, 07:12 PM
Last Post: Paul Berger (Canada)
  HP IL over wifi ... (ILPer & go71b) Olivier De Smet 12 3,147 08-20-2013, 05:44 AM
Last Post: Olivier De Smet
  How do you print a 'data' file on the HP 71B to the HP 2225B thinkjet? Geoff Quickfall 3 1,215 08-18-2013, 04:32 PM
Last Post: Geoff Quickfall

Forum Jump: