Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?
Posted
Updated 10-Mar-11 21:18pm
v2
Comments
Dalek Dave 11-Mar-11 3:19am    
Edited for Readability and Syntax.

1 solution

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.
 
Share this answer
 
v2
Comments
Xgener 11-Mar-11 2:41am    
Every POS printer can print it's test page witch contain all information about settings of this device. It's possible get this information in programm?
Dalek Dave 11-Mar-11 3:19am    
Fair enough answer.
Xgener 11-Mar-11 3:23am    
I know it but should be another ways may be not so obvious, may be not depend on commands. Many commands in POS printer are equal.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900