自动识别打印机类型 [英] Auto recognition type of printer

查看:102
本文介绍了自动识别打印机类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好!

我需要自动识别插入com端口的POS打印机的类型.
现在,我需要列出系统中所有可用的com端口,然后检查每个端口.

我如何不使用任何驱动程序和POS.NET就能知道POS打印机的类型(名称)?附加到它.
您要问的内容取决于打印机,并且没有标准的方法可以从中获取描述数据.
每个足够智能的打印机"(但是,我们已经在打印其中的一个子集)通过返回一些描述性文本来响应某些特定的字符序列.
不幸的是,这种顺序"(又名命令")的形成方式取决于打印机.


Hello!

I need automatically recognize the type of the POS printer which is plugged to my com port.
Now I need to list all of the com ports available in the system, then check every port.

How I can know the type(name) of POS printer without using any drivers and POS.NET?

解决方案

What a COM port does is sending and receiving data what is attached to it.
What you''re asking depends on the printer, and there is no standard way to get description data from them.
Every "enough intellingent printer" (but, already we are speacking of a subset of them) responds to certain particular character sequences by returning some descriptive text.
How this "sequeces" (aka "commands") are formed -unfortunately- depends printer by printer.


这篇关于自动识别打印机类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆