Posts: 1
Joined: Mon Nov 06, 2017 8:13 am

ESC/POS php print from Raspberry

Mon Nov 06, 2017 8:41 am


I'm new here. I'm testing with my raspberry pi with Raspbian.

I would like to print from web with php code. I have been reading about this and the better option would be print using ESC/POS way.

After reading a lot of information I have doubts:

To print from web in my Raspberry Is necessary to install the printer in cups server? Or ESC/POS can print directly to the printer?

Is posible to print with an USB printer?

The printer is Epson TM-20

Thanks in advance!

User avatar
Posts: 4344
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: ESC/POS php print from Raspberry

Mon Nov 06, 2017 2:17 pm

USB printers are usually setup to emulate Serialport so from an application point of view its still talking to a serialport.
Personally I think its a bit overkill to use CUPS for a TM-20 but It might work, but I dont think its necessary for getting ESCPOS.

If you find an ESCPOS library for PHP your biggest challenge might be to get the web-server to have the correct access rights to the serialport(USB).

Return to “Recommended peripherals”

Who is online

Users browsing this forum: No registered users and 1 guest