Previous Thread
Next Thread
Print Thread
Page 5 of 11 1 2 3 4 5 6 7 10 11
Joined: Feb 2014
Posts: 1,179
Likes: 215
G
Very Senior Member
Very Senior Member
G Offline
Joined: Feb 2014
Posts: 1,179
Likes: 215
Managed to get DOS Instant Artist printing, seemed to get hung up on some of the lpt status bits, specifically the paper out bit, so ^ 0x20 seemed to fix it.


[Linked Image from i.imgur.com]

Joined: Mar 2001
Posts: 17,258
Likes: 267
R
Very Senior Member
Very Senior Member
R Offline
Joined: Mar 2001
Posts: 17,258
Likes: 267
That's cool. The IW2 was serial only though, so I'm not quite understanding the LPT aspect smile Also, I had no idea the IW2 was supported by software on non-Apple systems.

Joined: Feb 2004
Posts: 2,625
Likes: 332
Very Senior Member
Very Senior Member
Joined: Feb 2004
Posts: 2,625
Likes: 332
ImageWriter II is well-supported on Windows at least until Windows XP. You can get a Bitronics-RS422 bridge to use it on an LPT port if you really want to. "Standard" Windows printer drivers assume that the same high-level byte-oriented protocol can be used to communicate with a printer whether it's on a parallel port (Bitronics or ECP), serial, or a TCP socket connection. You can thank HP for pioneering the nybble-oriented Bitronics back-channel, and their dumb print server modules that just exposed that to a TCP socket.

Joined: Feb 2014
Posts: 1,179
Likes: 215
G
Very Senior Member
Very Senior Member
G Offline
Joined: Feb 2014
Posts: 1,179
Likes: 215
Since most printers are byte-oriented, perhaps we could have a parallel to serial converter and a serial to parallel converter.

Then you could use the ap2000 on a system that only supports serial, for example.

I made a serial luaprinter and added it to nano src/devices/bus/isa/com.cpp so you can do this:

(I did a MODE COM2:9600,N,8,1 before launching instant artist just for good measure)

[Linked Image from i.imgur.com]

[Linked Image from i.imgur.com]



I was going to see if I could get the coco3 to do the luaprinter (maybe getting a CGP-220 driver going) but it freezes up on a PRINT #-2. Also there's some strange double screen action going on.

[Linked Image from i.imgur.com]
[Linked Image from i.imgur.com]

Joined: Feb 2014
Posts: 1,179
Likes: 215
G
Very Senior Member
Very Senior Member
G Offline
Joined: Feb 2014
Posts: 1,179
Likes: 215
I changed the baud rate of the serial printer to 2400 in the source code and could get bytes from the c64 but only on the user port channel 2.

Printers are supposed to be on channel 4 or 5 on the c64 iec bus, however there aren't any iec drivers that work, there's vic1515 but it's just a skeleton.

I was really keen on trying to get an okimate 20 print going, since its graphics commands are pretty simple and I had always wanted an oki.

I can get the user port to connect and send bytes.

[Linked Image from i.imgur.com]

[Linked Image from i.imgur.com]

But the c64 wants printers on 4...

[Linked Image from i.imgur.com]

I did find an okimate 20 apple2 disc on archive but it was in a2r format.


Joined: Feb 2014
Posts: 1,179
Likes: 215
G
Very Senior Member
Very Senior Member
G Offline
Joined: Feb 2014
Posts: 1,179
Likes: 215
I found an article that mentioned printer drivers for Atari ST Degas and it has a bunch of different drivers for different dot matrix printers.

Hacking on a lua script made it output something recognizable for an Okimate 20.

Consulting the document "MCS-820_Printer_Handbook_(aka_Okimate_20).pdf" was indispensable.

[Linked Image from i.imgur.com]


Joined: Feb 2014
Posts: 1,179
Likes: 215
G
Very Senior Member
Very Senior Member
G Offline
Joined: Feb 2014
Posts: 1,179
Likes: 215
So let's see if we can get windows 3.1 to print something.

After some fits and starts, win 3.1 installed with "SETUP /I" which disables the hardware detection.

And the ap2000 works with the Epson FX-80 driver. Cool!

[Linked Image from i.imgur.com]

and I tried the luaprinter with the c-itoh 8510 driver as I couldn't find an imagewriter II driver anywhere for windows 3.1. Unfortunately the 8510 driver doesn't do color.

[Linked Image from i.imgur.com]

Interestingly, it complained about paper being out for the luaprinter but not the ap2000, so I did the ^0x20 to the status just to get it to work.

Joined: Feb 2014
Posts: 1,179
Likes: 215
G
Very Senior Member
Very Senior Member
G Offline
Joined: Feb 2014
Posts: 1,179
Likes: 215
Just for fun, I added a buffer indicator to the ap2000. The buffer size is shown by the little green bars in the upper left of the printout. Each bar represents a hex digit of the size. It's kinda fun to watch the bars grow and shrink as the buffer fills and clears.

It's also a good indicator of whether the system is properly respecting the busy/ack signals as it will never use the buffer if so.

[Linked Image from i.imgur.com]

Joined: Feb 2014
Posts: 1,179
Likes: 215
G
Very Senior Member
Very Senior Member
G Offline
Joined: Feb 2014
Posts: 1,179
Likes: 215
Adding output_perror(0) seems to fix the paper out problems:

Code
void centronics_luaprinter_device::device_reset()
{
        printf("DEVICE RESET CALLED\n");
        m_busy = false;
        output_busy(m_busy);
        output_fault(1);
        output_ack(1);
        output_ack(0);
        output_select(1);
        output_perror(0); // added paper out
}

So let's see if Geos 2.0 will print something:

[Linked Image from i.imgur.com]

Joined: Feb 2014
Posts: 1,179
Likes: 215
G
Very Senior Member
Very Senior Member
G Offline
Joined: Feb 2014
Posts: 1,179
Likes: 215

And if win3.1 works, why not try win 95?

(installing from floppies and using the file manager is so tedious! but it works!)

Luaprinter:

[Linked Image from i.imgur.com]

Ap2000:

[Linked Image from i.imgur.com]

Page 5 of 11 1 2 3 4 5 6 7 10 11

Link Copied to Clipboard
Who's Online Now
2 members (Olivier Galibert, Dorando), 158 guests, and 0 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,355
Posts122,423
Members5,082
Most Online1,283
Dec 21st, 2022
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Powered by UBB.threads™ PHP Forum Software 8.0.0