Printer Communication Capture

♀尐吖头ヾ 提交于 2019-12-11 04:05:26

问题


If I need to post this elsewhere let me know.

We have some old software thats being re-written, that uses a printerdriver to a propriatery printer.

I need to rewrite the software bypassing the print driver and go directly to the printer. I do have the specs for the printer communication, thats fine, but what Id like to do is monitor the communications to the printer to view its contents (from the existing software that Im re-writing) and compare it to the specs, and what I will be sending it for validation.

I have to make sure Im not missing anything.

Any ideas on how I might be able to accomplish this?

Thanks


回答1:


To capture the traffic you have to basic options.

1. Use software

If you are using ethernet, you can use a program like WireShark or USBTrace to capture the packets that are being sent out. There are similar programs for USB.

2. Use hardware

Another option would be to use an external logic analyzer. It's basically a box that sits in-between the computer and the printer that captures all the data, then uses software to decode it. There are some inexpensive options available (USBEE, Bus Pirate, and Total Phase Beagle.

I own a USBEE and I've used it to debug a simple USB device. It works well enough for that. The software is a little clunky though.



来源:https://stackoverflow.com/questions/12959844/printer-communication-capture

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!