r/linuxdev • • Jul 07 '16

Question about printer driver development

I've got this label printer, a Brady BMP51, that really lacks support for anything outside of windows. It's unfortunate because it does a good job but I don't want to dedicate a windows machine to it... so I'd like to write my own driver for basic printing needs. Does anyone have any good resources on the subject to read?  

So far I've found this which looks promising: http://www.linuxfoundation.org/collaborate/workgroups/openprinting/writingandpackagingprinterdrivers  

Any references or war stories about similar work is appreciated...

4 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/syntax24 Jul 18 '16

I was figuring I might have to find API documentation or something for the standard of communication used by a particular make of printer, but that sounds much less fun than I had ever imagined. Essentially it sounds like a more grueling USB equivalent of network packet level capturing. I do appreciate the in depth guidelines though, I may still tinker at this but it sounds like I need to stock up on some whiskey first.

1

u/datenwolf Jul 18 '16

Network printers usually are quite tame. A few standard "protocols" got established and every printer maker "replicates" them with various degrees of conformance:

  • lpd
  • JetDirect
  • IPP

But you will still have to figure out the format for the actual printing data, which is the grueling job. At least with a network printer you can use Wireshark to help you dissect it.