If I want to control the thermal printer, I just need to send the ESC/POS instructions or PCL to the printer through USB interface or the serial port. Is the right? What is the communication protocol of the printer? Thank you.
There are some pretty smart people here, but, as far as I know, none of us is psychic - we cannot see through your eyes or read your mind.
How can you expect an answer to your question without telling us the make & model of the printer (or the make & model of the printer of which it is a copy)?
__________________
"Love justice, you who rule the world" - Dante Alighieri
Please define the TLAs before using them. For example: <...POS...> ?
__________________
"Did you get my e-mail?" - "The biggest problem in communication is the illusion that it has taken place" - George Bernard Shaw, 1856
Printer drivers (that's what you are trying to design/program) are usually pretty specific to the brand/type/model of printer. You have yet to define those.
/tb/
__________________
Tom - "Hoping my ship will come in before the dock rots!"
Yes, I want to use the mcu to control those thermal printer used in the markert. I just need to send the control command(such as ESC/P) to the printer so as to make it printer the content, is that right? And I have another question about whether the POS system controls the thermal printer by this way. Thank you.
Sounds like you're trying to interface an unknown printer type to a Point of Sale (POS) system that is Unix/Linux based. Your best bet is to start with an understanding of how the Common Unix Printing System (CUPS) works and experiment from there. Depending upon the system you are trying to hack utilize you may have to write your own scripts because the images may be in a proprietary and/or device dependent format.
__________________
“Tell me and I forget. Teach me and I remember. Involve me and I learn.” Ben Franklin.