LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 10-06-2004, 06:21 AM   #1
GlamZ
LQ Newbie
 
Registered: Oct 2004
Location: London
Distribution: Gentoo
Posts: 3

Rep: Reputation: 0
Converting a parallel port input to a usb printer via a Linux box as a print server


Hi all, I'm hoping someone can tell me if this is possible.

I have an expensive piece of electronics kit that has the ability to print its ouput via PCL to a parallel port HP printer (or indeed most generic printers)

The printer I was using has died & until I can find an old parallel printer on ebay I only have a usb printer.

The question is surely it is quite simple to install some software (CUPS perhaps?) on my laptop & spool the input parallel signal into a file & then redirect it to the USB printer?? Using my laptop as a simple (all be it expensive) printer switch.

Any suggestions would be greatly received. Thanks in advance!
 
Old 10-06-2004, 11:18 AM   #2
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
Interesting problem, but I have no idea how to do it. What sort of cable were you planning to use to connect your piece of kit to the laptop?
 
Old 10-06-2004, 12:17 PM   #3
GlamZ
LQ Newbie
 
Registered: Oct 2004
Location: London
Distribution: Gentoo
Posts: 3

Original Poster
Rep: Reputation: 0
It would be a standard parallel cable, the equipment has a parallel (centronics) port & internal drivers to print to most standard parallel printers HP laserjet series, Epson's etc.

Trouble is it's an old bit of kit & would be approx 25,000 to buy a newer version (with ethernet) that would talk to a print server, I need to get some data off of it quite quickly, quicker than I can source a new parallel port printer. Given time I figure I could rewrite a patch for some OS software to do it, but was hoping someone had a better idea.

I was figuring that with a print server the print data is embedded into a TCP/IP packet sent to the server that then redirects that data to whatever printer is connected to that server, that either someone else had already done this in S/W or else it would be quite easy to do.

... I guess maybe I'm wrong, but I was figuring that it would involve possibly buffering it as a postscript file & then redirect it using two different apps. Guess I should look at the CUPS source to see how they transfer the data from Internet packets to the printer.
 
Old 10-07-2004, 12:26 AM   #4
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
Have you tried reading the parallel port directly (e.g. cat /dev/parport0 > data.dat)? The source for the parport driver might suggest other things to do.

If you can capture the raw PCL like this then googling for pcl2ps gets a few hits, and practically all linux print setups can print postscript (using ghostscript) to any sort of printer.

I don't understand where TCP/IP gets into the picture.

Edit: about that cable - there are two sorts of parallel cable. One is a printer cable and the other is a 'parallel null' or 'laplink' cable, used for data transfer between two PCs.

Last edited by maroonbaboon; 10-07-2004 at 12:34 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Printer and Parallel port dancar Linux - Hardware 4 04-30-2006 10:43 AM
How do I get my Suse 9.1 box to print to the printer attached to my Win XP box? PadreFabuloso Linux - Newbie 2 06-23-2005 05:06 PM
Parallel port printer dtcamargo Linux - Hardware 4 10-31-2004 11:11 PM
USB-parallel port printer Devenpillay Linux - Laptop and Netbook 1 09-07-2004 10:26 AM
Parallel port and printer Xreagan Linux - Newbie 2 09-04-2002 02:13 PM


All times are GMT -5. The time now is 11:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration