piping text to an ieee-1284 / centronics parallel port

I want to send raw text to a parallel port (IEEE-1284) via a USB-parallel converter. I plug the converter in and the Mac recognizes it natively; it shows up in the list of printers in the System Profiler. How would I pipe text to the thing? With a serial device, it's easy, sending the text to the appropriate device in /dev/tty.*

Any pointers would be greatly appreciated.

-Michael

Mac Pro, Mac OS X (10.5.6)

Posted on Apr 6, 2009 8:57 PM

Reply
13 replies

Apr 7, 2009 2:03 PM in response to Keith Barkley

You are right that lpr is generally used to print in Unix-world, but as best I can tell, in OSX it can print only to printers known to (and properly configured with CUPS).

In this case, by default CUPS tries to assign a 'generic postscript driver,' which fails, and offers only a small menu of (as best I can tell entirely unrelated) device drivers.

Once upon a time, parallel ports shows up as devices, and parallel printers were easy to talk to. Why is this so hard now?

Apr 7, 2009 2:39 PM in response to Central Harlem Anonymous

Central Harlem Anonymous wrote:


Once upon a time, parallel ports shows up as devices, and parallel printers were easy to talk to. Why is this so hard now?


I can't recall the last time I saw an Apple product that shipped with a parallel port, but I imagine its hard because there aren't enough people clamoring for 40 year old technology to justify maintaining support for it in modern source bases.

You can find what driver is matching for the device in the IORegistry with the ioreg tool.

Apr 8, 2009 12:12 AM in response to Central Harlem Anonymous

Central Harlem Anonymous wrote:
I don't expect Apple to offer a parallel port, but it would nice if an external parallel port, once recognized by the Mac, were to show up as a device in /dev

This works with USB-to-serial converters, so why not USB-to-parallel?


Again, it's the vendor's responsibility to provide drivers for their products if they want them to be used that way. If whatever's loading doesn't provide a BSD user client then you're going to have to write your own.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

piping text to an ieee-1284 / centronics parallel port

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.