How to use a parallel printer with the HP Portable Plus
|
03-12-2023, 10:32 AM
(This post was last modified: 03-14-2023 06:03 AM by Klaus Overhage.)
Post: #1
|
|||
|
|||
How to use a parallel printer with the HP Portable Plus
Printers can be connected to the HP Portable Plus via a serial cable or via HP-IL and are then automatically assigned to the MS-DOS device PRN as the standard printer. For example, you can type DIR > PRN from the DOS prompt to print a list of all files.
Anyone who owns an HP 82165A or HP 82166A, a so-called GPIO interface, and has connected a Centronics printer to it, can use it with the HP-75C and HP-71B without any problems by entering PRINTER IS ":PR". The BIOS of the HP Portable Plus does not offer such a possibility, it automatically assigns all HPIL printers and HPIL video interfaces to the device PRN and ignores GPIO interfaces at all. The "Find Device" function of the software interrupt 54h is described on page 5-70 of the PortablePlus_TechnicalReferenceManual. The following sentence made me curious: "The BIOS maintains a table of all devices that have been found on the loop and will return data from this table if it is available." So there is a list of all device accessory IDs found in RAM, but unfortunately there is no where. A printer has the accessory ID 32 (= 20h) and a GPIO interface has the accessory ID 64 (=40h). What happens if you change the value 64 to 32 in this list? Does this mean that a GPIO interface is recognized as a printer and becomes a PRN device? I tried that. The list starts at memory location 3823 decimal. I connected several HP-IL devices at the same time and searched the RAM for their accessory ID's. Unfortunately, it is not enough to change the 64 found in this way to a 32 once, because the value is automatically reset to 64 a short time later. The "Configure Loop" function of the Int 54h is probably executed quite often before an HP-IL action. This gave me the idea of ​​redirecting the entry in the interrupt table of INT 54h to a small machine language routine that sets the 64 of the first connected device to 32 before each HP-IL action. The PRT@GPIO.COM program saves the 19 bytes of machine code to a free location in RAM and changes the entry in the interrupt table. This can be observed with the help of the program MEMVIEW.COM. The MEMVIEW1.txt attached below shows the state before, for example after a soft reset with CTRL-Shift-Break. MEMVIEW2.TXT shows the state after running PRT@GPIO. You can still see the 64 there. It changes to 32 with the next HP-IL action. This DOS command can be used as a test: echo hello > prn Even after switching the HP Portable Plus off and on again, the conversion to 32 remains active. Every application program should also be able to recognize and use the parallel printer. The original state can be restored using CTRL-Shift-Break or with the help of the program PRT@STD.COM. I find Martin Hepperle's HPIL.COM program very helpful because it lists all the HP-IL devices found with their accessory IDs and I have included it in the zip archive. Please refer https://www.hpmuseum.org/forum/thread-15909.html The zip archive contains the files: HPIL.COM MEMVIEW.COM MEMVIEW.PAS PRT@GPIO.COM PRT@GPIO.PAS PRT@STD.COM PRT@STD.PAS |
|||
03-13-2023, 03:55 PM
(This post was last modified: 03-15-2023 05:22 AM by Klaus Overhage.)
Post: #2
|
|||
|
|||
RE: How to use a parallel printer with the HP Portable Plus
I shot an 80 second video to demonstrate the use of the PRT@GPIO.COM program. For this I created a DEMO directory and saved DEMO.BAT in it with the following content:
HPIL.COM DIR > PRN PRT@GPIO.COM HPIL.COM DIR > PRN Before the video, I had done a soft reset on the HP Portable Plus using CTRL-Shift-Break to have a reproducible initial state. Please let me know if the link to the video doesn't work. https://www.dropbox.com/s/4x81jl05h5pc05...t.mp4?dl=0 |
|||
04-05-2023, 06:07 AM
Post: #3
|
|||
|
|||
RE: How to use a parallel printer with the HP Portable Plus
The ThinkJet HP-2225C is a parallel printer, so it has a Centronics interface. Together with an HP-82165A HP-IL/GPIO interface, it can be used as an HP-IL printer. Its special advantage is that it can print graphics as well as text.
The HP Portable Plus allows to print a screenshot by using the key combination Shift-Print. After running my program PRT@GPIO.COM once, I can print the contents of the LCD screen at any time. This also works fine in the middle of a running application, which is then paused during printing. The printout on the HP-2225C is fast and clean, with the help of a magnifying glass every pixel can be recognized. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)