Previous in Forum: Power System Stabilizers on Generator Exciters   Next in Forum: Variable Q Repost with Images - Existing Circuit
Close
Close
Close
10 comments
Rate Comments: Nested
Associate

Join Date: Sep 2014
Location: Guang Zhou, China
Posts: 26

Printing Protocol

11/16/2015 1:26 AM

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.

__________________
Time waits for no one.
Register to Reply
Pathfinder Tags: thermal printer
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#1

Re: Printing Protocol

11/16/2015 3:21 AM

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
Register to Reply
Guru
United Kingdom - Member - Indeterminate Engineering Fields - Control Engineering - New Member

Join Date: Jan 2007
Location: In the bothy, 7 chains down the line from Dodman's Lane level crossing, in the nation formerly known as Great Britain. Kettle's on.
Posts: 32175
Good Answers: 839
#2

Re: Printing Protocol

11/16/2015 6:44 AM

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
Register to Reply
Associate

Join Date: Sep 2014
Location: Guang Zhou, China
Posts: 26
#3
In reply to #2

Re: Printing Protocol

11/16/2015 7:07 AM

TLAs? I'm sorry that I do not understand your meaning. Could you explain it to me?

__________________
Time waits for no one.
Register to Reply
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#4
In reply to #3

Re: Printing Protocol

11/16/2015 7:19 AM

TLA: Three-Letter Acronym

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply
Associate

Join Date: Sep 2014
Location: Guang Zhou, China
Posts: 26
#6
In reply to #4

Re: Printing Protocol

11/16/2015 8:39 AM

Thank you. Now I have understood the process of the printer control from the following picture. It is that I exactly want to know about.

__________________
Time waits for no one.
Register to Reply
Guru
Popular Science - Weaponology - New Member Fans of Old Computers - PDP 11 - New Member Technical Fields - Architecture - New Member Hobbies - HAM Radio - New Member

Join Date: Oct 2009
Location: Maine, USA
Posts: 2168
Good Answers: 71
#7
In reply to #6

Re: Printing Protocol

11/16/2015 9:04 AM

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!"
Register to Reply
Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member APIX Pilot Plant Design Project - Member - New Member Hobbies - CNC - New Member Fans of Old Computers - ZX-81 - New Member

Join Date: Jan 2007
Location: Centurion, South Africa
Posts: 3921
Good Answers: 97
#5

Re: Printing Protocol

11/16/2015 8:14 AM

Do you refer to the command to send the printer to a position x,y ?

Which Printer and PCL are you using ?

Google for xxxprinterxxx Printer Command Language [PCL]

__________________
Never do today what you can put of until tomorrow - Student motto
Register to Reply
Associate

Join Date: Sep 2014
Location: Guang Zhou, China
Posts: 26
#8
In reply to #5

Re: Printing Protocol

11/16/2015 9:36 AM

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.

__________________
Time waits for no one.
Register to Reply
Guru
Engineering Fields - Power Engineering - New Member

Join Date: May 2007
Location: NYC metropolitan area.
Posts: 3230
Good Answers: 444
#9

Re: Printing Protocol

11/16/2015 12:21 PM

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.
Register to Reply
Associate

Join Date: Sep 2014
Location: Guang Zhou, China
Posts: 26
#10
In reply to #9

Re: Printing Protocol

11/16/2015 7:28 PM

Thanks for your suggestion. Now my thingking for printer development is being clear.

__________________
Time waits for no one.
Register to Reply
Register to Reply 10 comments
Copy to Clipboard

Users who posted comments:

Hendrik (1); JohnDG (2); Jupiter (4); PWSlack (1); RAMConsult (1); Tom_Consulting (1)

Previous in Forum: Power System Stabilizers on Generator Exciters   Next in Forum: Variable Q Repost with Images - Existing Circuit

Advertisement