VOGONS


First post, by b.driesen

User metadata
Rank Newbie
Rank
Newbie

Hi Forum,

we use the DOSBox for an old DOS application, which uses old CGA graphics. This works realy great, but we have a small problem with the print output.

The program prints only to LPT1, so we use the NET USE command, to redirect the LPT1 to a network printer. I can see the printjob in the queue from Windows, but the printer starts first, when I stop the DOS application.

Can I set a timeout somewhere, so that the printer starts after for example 5 seconds without receiving any data?

Thanks for your answers,

Bernd.

Reply 1 of 16, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Laser printer? Those expect a "end of page" character to start printing. You could also try to convince the printer by pressing its buttons...

1+1=10

Reply 2 of 16, by eL_PuSHeR

User metadata
Rank l33t++
Rank
l33t++

I think you need to send PCL or PostScript data (depending on printer's installed personalities) to printer in order to properly print while redirecting LPT1 via "net use" is in effect. That's why I love my HP LS1200, because it has a common parallel port for communicating with the PC. I really hate using USB for printers. It's just PLAIN STUPID, because it breaks backwards compatibility and parallel port has always worked fine for printers. USB is nice but for anything else.

Intel i7 5960X
Gigabye GA-X99-Gaming 5
8 GB DDR4 (2100)
8 GB GeForce GTX 1070 G1 Gaming (Gigabyte)

Reply 3 of 16, by b.driesen

User metadata
Rank Newbie
Rank
Newbie

This is correct, but when I use the program in a "normal" dos box, the printer prints after a timeout of a few seconds without leaving the program.

Bernd.

Reply 4 of 16, by b.driesen

User metadata
Rank Newbie
Rank
Newbie

Sending PCL or Postscript is not the thing. The dos program sends only ascii text. The output is OK, the only point is, that I have to leave the program.

Bernd.

Reply 5 of 16, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

send an email to the address listed on dosbox.sf.net/crew.php
stating your poblem. We might be able to help you with some experimental stuff

Water flows down the stream
How to ask questions the smart way!

Reply 6 of 16, by jal

User metadata
Rank Oldbie
Rank
Oldbie
eL_PuSHeR wrote:

I really hate using USB for printers. It's just PLAIN STUPID, because it breaks backwards compatibility and parallel port has always worked fine for printers.

Yeah, except USB is like a gazillion times faster, and almost noone needs backwards compatibility. I like my USB printer just fine.

JAL

Reply 7 of 16, by eL_PuSHeR

User metadata
Rank l33t++
Rank
l33t++

But do printers really take advantage of USB speeds?
Furthermore, do they need it?

Intel i7 5960X
Gigabye GA-X99-Gaming 5
8 GB DDR4 (2100)
8 GB GeForce GTX 1070 G1 Gaming (Gigabyte)

Reply 8 of 16, by jal

User metadata
Rank Oldbie
Rank
Oldbie
eL_PuSHeR wrote:

But do printers really take advantage of USB speeds?
Furthermore, do they need it?

My budget model, 3 year old, Samsung laserprinter is about 5-10 times faster when I print via USB than via LPT. Modern printers can process data faster than the LPT port can deliver.

JAL

Reply 9 of 16, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

The sad thing is that USB printers don't use a standardized printing protocol... they all do the same thing but every model needs another driver.

1+1=10

Reply 10 of 16, by jal

User metadata
Rank Oldbie
Rank
Oldbie
h-a-l-9000 wrote:

The sad thing is that USB printers don't use a standardized printing protocol... they all do the same thing but every model needs another driver.

True, but that also goed for parallel connected printers. Remember the myriad of printer drivers that came with WP5.1, for example?

JAL

Reply 11 of 16, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

But a lot of those could still print simple text sent to LPT1 for instance.

1+1=10

Reply 12 of 16, by jal

User metadata
Rank Oldbie
Rank
Oldbie
h-a-l-9000 wrote:

But a lot of those could still print simple text sent to LPT1 for instance.

True, but that's just because of the OS's (DOS) LPT1 device, or the BIOS functions. You'd never send text directly to the hardware port, or would you? Same with USB printers, I can just use OS functions to access them, and even send plain text.

JAL

Reply 14 of 16, by mirekluza

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator
DosFreak wrote:

I think you do a "name of command" > PRN but I'm not sure. Don't have a LPT printer to test it with.

Yes, it was like this.

Mirek

Reply 15 of 16, by jal

User metadata
Rank Oldbie
Rank
Oldbie
mirekluza wrote:
DosFreak wrote:

I think you do a "name of command" > PRN but I'm not sure. Don't have a LPT printer to test it with.

Yes, it was like this.

Mirek

My point is, this is hardware abstraction by the OS. And it has very little to do with low-level access to printers. HAL9000's original remark about USB printers ("The sad thing is that USB printers don't use a standardized printing protocol... they all do the same thing but every model needs another driver.") is really about missing OS support (or at least, printing via the file interface support), and I do not see any difference there between parallel and USB printers (except for the parallel port, regardless of printers, having just that support). One would like to have a 'USBx' (where x is 1-number of USB ports) device, so you'd be able to type 'type somefile.txt > USB1', or something

JAL

Reply 16 of 16, by eL_PuSHeR

User metadata
Rank l33t++
Rank
l33t++

Agreed. USBx: should be a reserved port name like PRN, LPTx and so on.

Intel i7 5960X
Gigabye GA-X99-Gaming 5
8 GB DDR4 (2100)
8 GB GeForce GTX 1070 G1 Gaming (Gigabyte)