Can I use a parallel port as a CUPS input device?
I have an old piece of a hardware that does diagnostics on medical equipment. It prints out results over a parallel port. Is there any way to have CUPS accept jobs from a parallel port and redirect them to the default printer?
Essentially I want CUPS to listen to /dev/lp0
for incoming jobs.
Reading about this problem a bit, would it be possible for me to capture the PCL data via the parallel port (cat /dev/lp0 > out.pcl
) and then convert it to Postscript using pspc16 or somehow send the PCL to Ghostscript to interpret the PCL and dispatch to CUPS?
linux hardware devices cups parallel-port
bumped to the homepage by Community♦ 3 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I have an old piece of a hardware that does diagnostics on medical equipment. It prints out results over a parallel port. Is there any way to have CUPS accept jobs from a parallel port and redirect them to the default printer?
Essentially I want CUPS to listen to /dev/lp0
for incoming jobs.
Reading about this problem a bit, would it be possible for me to capture the PCL data via the parallel port (cat /dev/lp0 > out.pcl
) and then convert it to Postscript using pspc16 or somehow send the PCL to Ghostscript to interpret the PCL and dispatch to CUPS?
linux hardware devices cups parallel-port
bumped to the homepage by Community♦ 3 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Not clear on the question, are you saying the hardware has a parallel port, normally you would connect directly to a printer, but you would like to connect to a different machines parallel port and use the CUPS service on that machine?
– Tim
May 24 '12 at 18:10
yes, exactly. I want toservice station -> lp -> linux box w/ CUPS -> spool to non-lp printer
– Evan Carroll
May 24 '12 at 18:13
I don't think this is possible with cups. You would have to write a software listening on the parallel port and sending jobs to cups
– Ulrich Dangel
May 24 '12 at 18:22
3
I think you need a special cable, parallel ports aren't wired symmetrically (I'm not sure a crossover cable would be enough: some pins aren't wired inside the computer). There are two parts to your problem: getting the data from the diagnostics equipment to your computer's parallel port, for which you'll find more expertise on Super User, and routing the data from the parallel port to CUPS, which this site should address best.
– Gilles
May 24 '12 at 23:47
add a comment |
I have an old piece of a hardware that does diagnostics on medical equipment. It prints out results over a parallel port. Is there any way to have CUPS accept jobs from a parallel port and redirect them to the default printer?
Essentially I want CUPS to listen to /dev/lp0
for incoming jobs.
Reading about this problem a bit, would it be possible for me to capture the PCL data via the parallel port (cat /dev/lp0 > out.pcl
) and then convert it to Postscript using pspc16 or somehow send the PCL to Ghostscript to interpret the PCL and dispatch to CUPS?
linux hardware devices cups parallel-port
I have an old piece of a hardware that does diagnostics on medical equipment. It prints out results over a parallel port. Is there any way to have CUPS accept jobs from a parallel port and redirect them to the default printer?
Essentially I want CUPS to listen to /dev/lp0
for incoming jobs.
Reading about this problem a bit, would it be possible for me to capture the PCL data via the parallel port (cat /dev/lp0 > out.pcl
) and then convert it to Postscript using pspc16 or somehow send the PCL to Ghostscript to interpret the PCL and dispatch to CUPS?
linux hardware devices cups parallel-port
linux hardware devices cups parallel-port
edited May 23 '17 at 12:39
Community♦
1
1
asked May 24 '12 at 18:03
Evan CarrollEvan Carroll
5,536114381
5,536114381
bumped to the homepage by Community♦ 3 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 3 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Not clear on the question, are you saying the hardware has a parallel port, normally you would connect directly to a printer, but you would like to connect to a different machines parallel port and use the CUPS service on that machine?
– Tim
May 24 '12 at 18:10
yes, exactly. I want toservice station -> lp -> linux box w/ CUPS -> spool to non-lp printer
– Evan Carroll
May 24 '12 at 18:13
I don't think this is possible with cups. You would have to write a software listening on the parallel port and sending jobs to cups
– Ulrich Dangel
May 24 '12 at 18:22
3
I think you need a special cable, parallel ports aren't wired symmetrically (I'm not sure a crossover cable would be enough: some pins aren't wired inside the computer). There are two parts to your problem: getting the data from the diagnostics equipment to your computer's parallel port, for which you'll find more expertise on Super User, and routing the data from the parallel port to CUPS, which this site should address best.
– Gilles
May 24 '12 at 23:47
add a comment |
Not clear on the question, are you saying the hardware has a parallel port, normally you would connect directly to a printer, but you would like to connect to a different machines parallel port and use the CUPS service on that machine?
– Tim
May 24 '12 at 18:10
yes, exactly. I want toservice station -> lp -> linux box w/ CUPS -> spool to non-lp printer
– Evan Carroll
May 24 '12 at 18:13
I don't think this is possible with cups. You would have to write a software listening on the parallel port and sending jobs to cups
– Ulrich Dangel
May 24 '12 at 18:22
3
I think you need a special cable, parallel ports aren't wired symmetrically (I'm not sure a crossover cable would be enough: some pins aren't wired inside the computer). There are two parts to your problem: getting the data from the diagnostics equipment to your computer's parallel port, for which you'll find more expertise on Super User, and routing the data from the parallel port to CUPS, which this site should address best.
– Gilles
May 24 '12 at 23:47
Not clear on the question, are you saying the hardware has a parallel port, normally you would connect directly to a printer, but you would like to connect to a different machines parallel port and use the CUPS service on that machine?
– Tim
May 24 '12 at 18:10
Not clear on the question, are you saying the hardware has a parallel port, normally you would connect directly to a printer, but you would like to connect to a different machines parallel port and use the CUPS service on that machine?
– Tim
May 24 '12 at 18:10
yes, exactly. I want to
service station -> lp -> linux box w/ CUPS -> spool to non-lp printer
– Evan Carroll
May 24 '12 at 18:13
yes, exactly. I want to
service station -> lp -> linux box w/ CUPS -> spool to non-lp printer
– Evan Carroll
May 24 '12 at 18:13
I don't think this is possible with cups. You would have to write a software listening on the parallel port and sending jobs to cups
– Ulrich Dangel
May 24 '12 at 18:22
I don't think this is possible with cups. You would have to write a software listening on the parallel port and sending jobs to cups
– Ulrich Dangel
May 24 '12 at 18:22
3
3
I think you need a special cable, parallel ports aren't wired symmetrically (I'm not sure a crossover cable would be enough: some pins aren't wired inside the computer). There are two parts to your problem: getting the data from the diagnostics equipment to your computer's parallel port, for which you'll find more expertise on Super User, and routing the data from the parallel port to CUPS, which this site should address best.
– Gilles
May 24 '12 at 23:47
I think you need a special cable, parallel ports aren't wired symmetrically (I'm not sure a crossover cable would be enough: some pins aren't wired inside the computer). There are two parts to your problem: getting the data from the diagnostics equipment to your computer's parallel port, for which you'll find more expertise on Super User, and routing the data from the parallel port to CUPS, which this site should address best.
– Gilles
May 24 '12 at 23:47
add a comment |
1 Answer
1
active
oldest
votes
This is not possible with a PC alone the parallel port is not designed to act as a printer.
You will need some sort of hardware that emulates a printer and then relays the data to the computer.
This page describes the sort of product you need. I don't know anything about that specific company.
Another option option might be a parallel to serial converter and then connect that to your PC.
Why can't the PC do this in software? There has to be some kind of project that tackled this, the technology is like 40 years old. I mean, you're telling me if I want to turn a Linux box into an LPT printer, I'm SOL? This sounds like a popular request.
– Evan Carroll
May 24 '12 at 19:47
Very specific need. Legacy hardware support.
– Tim
May 24 '12 at 19:50
I am pretty sure you could do it manually yourself. Just write a software reading the data from the parallel port and process it.
– Ulrich Dangel
May 24 '12 at 19:55
2
An adequate cable and some userspace software to read the data from the parallel port should be all you need. You might need to hack your own software, though.
– Renan
Jun 24 '12 at 3:09
2
For the cable, see Laplink (null-printer) cable. For the software... I don't know but you will probably be operating on/dev/parport*
(the raw parallel port device) instead of/dev/lp*
(specifically made for talking to a printer, not pretending to be one)
– Alan Curry
Aug 23 '12 at 4:37
|
show 2 more comments
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f39280%2fcan-i-use-a-parallel-port-as-a-cups-input-device%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
This is not possible with a PC alone the parallel port is not designed to act as a printer.
You will need some sort of hardware that emulates a printer and then relays the data to the computer.
This page describes the sort of product you need. I don't know anything about that specific company.
Another option option might be a parallel to serial converter and then connect that to your PC.
Why can't the PC do this in software? There has to be some kind of project that tackled this, the technology is like 40 years old. I mean, you're telling me if I want to turn a Linux box into an LPT printer, I'm SOL? This sounds like a popular request.
– Evan Carroll
May 24 '12 at 19:47
Very specific need. Legacy hardware support.
– Tim
May 24 '12 at 19:50
I am pretty sure you could do it manually yourself. Just write a software reading the data from the parallel port and process it.
– Ulrich Dangel
May 24 '12 at 19:55
2
An adequate cable and some userspace software to read the data from the parallel port should be all you need. You might need to hack your own software, though.
– Renan
Jun 24 '12 at 3:09
2
For the cable, see Laplink (null-printer) cable. For the software... I don't know but you will probably be operating on/dev/parport*
(the raw parallel port device) instead of/dev/lp*
(specifically made for talking to a printer, not pretending to be one)
– Alan Curry
Aug 23 '12 at 4:37
|
show 2 more comments
This is not possible with a PC alone the parallel port is not designed to act as a printer.
You will need some sort of hardware that emulates a printer and then relays the data to the computer.
This page describes the sort of product you need. I don't know anything about that specific company.
Another option option might be a parallel to serial converter and then connect that to your PC.
Why can't the PC do this in software? There has to be some kind of project that tackled this, the technology is like 40 years old. I mean, you're telling me if I want to turn a Linux box into an LPT printer, I'm SOL? This sounds like a popular request.
– Evan Carroll
May 24 '12 at 19:47
Very specific need. Legacy hardware support.
– Tim
May 24 '12 at 19:50
I am pretty sure you could do it manually yourself. Just write a software reading the data from the parallel port and process it.
– Ulrich Dangel
May 24 '12 at 19:55
2
An adequate cable and some userspace software to read the data from the parallel port should be all you need. You might need to hack your own software, though.
– Renan
Jun 24 '12 at 3:09
2
For the cable, see Laplink (null-printer) cable. For the software... I don't know but you will probably be operating on/dev/parport*
(the raw parallel port device) instead of/dev/lp*
(specifically made for talking to a printer, not pretending to be one)
– Alan Curry
Aug 23 '12 at 4:37
|
show 2 more comments
This is not possible with a PC alone the parallel port is not designed to act as a printer.
You will need some sort of hardware that emulates a printer and then relays the data to the computer.
This page describes the sort of product you need. I don't know anything about that specific company.
Another option option might be a parallel to serial converter and then connect that to your PC.
This is not possible with a PC alone the parallel port is not designed to act as a printer.
You will need some sort of hardware that emulates a printer and then relays the data to the computer.
This page describes the sort of product you need. I don't know anything about that specific company.
Another option option might be a parallel to serial converter and then connect that to your PC.
edited May 24 '12 at 20:28
answered May 24 '12 at 19:42
CraigCraig
58436
58436
Why can't the PC do this in software? There has to be some kind of project that tackled this, the technology is like 40 years old. I mean, you're telling me if I want to turn a Linux box into an LPT printer, I'm SOL? This sounds like a popular request.
– Evan Carroll
May 24 '12 at 19:47
Very specific need. Legacy hardware support.
– Tim
May 24 '12 at 19:50
I am pretty sure you could do it manually yourself. Just write a software reading the data from the parallel port and process it.
– Ulrich Dangel
May 24 '12 at 19:55
2
An adequate cable and some userspace software to read the data from the parallel port should be all you need. You might need to hack your own software, though.
– Renan
Jun 24 '12 at 3:09
2
For the cable, see Laplink (null-printer) cable. For the software... I don't know but you will probably be operating on/dev/parport*
(the raw parallel port device) instead of/dev/lp*
(specifically made for talking to a printer, not pretending to be one)
– Alan Curry
Aug 23 '12 at 4:37
|
show 2 more comments
Why can't the PC do this in software? There has to be some kind of project that tackled this, the technology is like 40 years old. I mean, you're telling me if I want to turn a Linux box into an LPT printer, I'm SOL? This sounds like a popular request.
– Evan Carroll
May 24 '12 at 19:47
Very specific need. Legacy hardware support.
– Tim
May 24 '12 at 19:50
I am pretty sure you could do it manually yourself. Just write a software reading the data from the parallel port and process it.
– Ulrich Dangel
May 24 '12 at 19:55
2
An adequate cable and some userspace software to read the data from the parallel port should be all you need. You might need to hack your own software, though.
– Renan
Jun 24 '12 at 3:09
2
For the cable, see Laplink (null-printer) cable. For the software... I don't know but you will probably be operating on/dev/parport*
(the raw parallel port device) instead of/dev/lp*
(specifically made for talking to a printer, not pretending to be one)
– Alan Curry
Aug 23 '12 at 4:37
Why can't the PC do this in software? There has to be some kind of project that tackled this, the technology is like 40 years old. I mean, you're telling me if I want to turn a Linux box into an LPT printer, I'm SOL? This sounds like a popular request.
– Evan Carroll
May 24 '12 at 19:47
Why can't the PC do this in software? There has to be some kind of project that tackled this, the technology is like 40 years old. I mean, you're telling me if I want to turn a Linux box into an LPT printer, I'm SOL? This sounds like a popular request.
– Evan Carroll
May 24 '12 at 19:47
Very specific need. Legacy hardware support.
– Tim
May 24 '12 at 19:50
Very specific need. Legacy hardware support.
– Tim
May 24 '12 at 19:50
I am pretty sure you could do it manually yourself. Just write a software reading the data from the parallel port and process it.
– Ulrich Dangel
May 24 '12 at 19:55
I am pretty sure you could do it manually yourself. Just write a software reading the data from the parallel port and process it.
– Ulrich Dangel
May 24 '12 at 19:55
2
2
An adequate cable and some userspace software to read the data from the parallel port should be all you need. You might need to hack your own software, though.
– Renan
Jun 24 '12 at 3:09
An adequate cable and some userspace software to read the data from the parallel port should be all you need. You might need to hack your own software, though.
– Renan
Jun 24 '12 at 3:09
2
2
For the cable, see Laplink (null-printer) cable. For the software... I don't know but you will probably be operating on
/dev/parport*
(the raw parallel port device) instead of /dev/lp*
(specifically made for talking to a printer, not pretending to be one)– Alan Curry
Aug 23 '12 at 4:37
For the cable, see Laplink (null-printer) cable. For the software... I don't know but you will probably be operating on
/dev/parport*
(the raw parallel port device) instead of /dev/lp*
(specifically made for talking to a printer, not pretending to be one)– Alan Curry
Aug 23 '12 at 4:37
|
show 2 more comments
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f39280%2fcan-i-use-a-parallel-port-as-a-cups-input-device%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Not clear on the question, are you saying the hardware has a parallel port, normally you would connect directly to a printer, but you would like to connect to a different machines parallel port and use the CUPS service on that machine?
– Tim
May 24 '12 at 18:10
yes, exactly. I want to
service station -> lp -> linux box w/ CUPS -> spool to non-lp printer
– Evan Carroll
May 24 '12 at 18:13
I don't think this is possible with cups. You would have to write a software listening on the parallel port and sending jobs to cups
– Ulrich Dangel
May 24 '12 at 18:22
3
I think you need a special cable, parallel ports aren't wired symmetrically (I'm not sure a crossover cable would be enough: some pins aren't wired inside the computer). There are two parts to your problem: getting the data from the diagnostics equipment to your computer's parallel port, for which you'll find more expertise on Super User, and routing the data from the parallel port to CUPS, which this site should address best.
– Gilles
May 24 '12 at 23:47