pi9
Posts: 50
Joined: Wed Jun 10, 2015 3:32 pm

Printing to an RS232 using a USB cable

Thu May 03, 2018 2:22 pm

Hi

I have a project that uses an Epson TM-T88IV. Since it is an expensive printer, I don't want to mess around with wiring. I am thinking of using an RS232 to USB cable and plug directly in the USB port of the pi, but I am not sure of how to go about the driver part to make it work with cups. I am able to print barcodes from a python application that I created to a regular USB printer. I assume that would be a bit different.

I don't have access to the printer. That's why I am trying to collect as much information as I can before I go try it.
Thanks

wildfire
Posts: 405
Joined: Sat Sep 03, 2016 10:39 am
Location: Dundee, Scotland

Re: Printing to an RS232 using a USB cable

Thu May 03, 2018 3:21 pm

According to Epson, (if I'm interpreting this correctly) they do not supply linux drivers for that family of printers...

https://www.epson.co.uk/viewcon/corpora ... /3458/8907
Epson provides a wide range of Linux-compatible printing and scanning solutions. Linux drivers are available to download from the Epson Website for the following types of products:

Inkjet
Inkjet All-In-One
Large Format Printer
Laser
Laser Multifunction Printer
Scanner

Epson do not provide Linux drivers for product types not listed above, however there may be a third-party driver available. For more information on Linux options, and Epson business solutions including compatibility and certificates, please click here.
I'd make sure you can get a 3rd party driver before you commit yourself.
Scotty never said "I canae give her any more Captain, She'll blow".
B'Elanna Torres however did say "Get the cheese to the sickbay" :?:

pi9
Posts: 50
Joined: Wed Jun 10, 2015 3:32 pm

Re: Printing to an RS232 using a USB cable

Thu May 03, 2018 3:37 pm

That's what I am looking for. Some generic driver. I never really expected epson to make drivers for linux.

fruitoftheloom
Posts: 18175
Joined: Tue Mar 25, 2014 12:40 pm

Re: Printing to an RS232 using a USB cable

Thu May 03, 2018 3:50 pm

pi9 wrote:
Thu May 03, 2018 3:37 pm
That's what I am looking for. Some generic driver. I never really expected epson to make drivers for linux.

Epson supply drivers for x86 Linux, unfortunately the Operating Systems for the RPi are ARMHF Linux:

https://download.epson-biz.com/modules/ ... t=3&pid=30
adieu

My other Computer is an Asus CS10 ChromeBit

Paul Hutch
Posts: 324
Joined: Fri Aug 25, 2017 2:58 pm
Location: Blackstone River Valley, MA, USA

Re: Printing to an RS232 using a USB cable

Thu May 03, 2018 6:54 pm

The Epson page for the product has what appears to be a Java based driver for Linux (JavaPOS ADK for Linux).
https://epson.com/Support/Point-of-Sale ... C31C636084

fruitoftheloom
Posts: 18175
Joined: Tue Mar 25, 2014 12:40 pm

Re: Printing to an RS232 using a USB cable

Thu May 03, 2018 7:16 pm

Paul Hutch wrote:
Thu May 03, 2018 6:54 pm
The Epson page for the product has what appears to be a Java based driver for Linux (JavaPOS ADK for Linux).
https://epson.com/Support/Point-of-Sale ... C31C636084

Yes quite so but not for ARM CPU Architecture !!!
adieu

My other Computer is an Asus CS10 ChromeBit

Paul Hutch
Posts: 324
Joined: Fri Aug 25, 2017 2:58 pm
Location: Blackstone River Valley, MA, USA

Re: Printing to an RS232 using a USB cable

Thu May 03, 2018 9:04 pm

fruitoftheloom wrote:
Thu May 03, 2018 7:16 pm
Paul Hutch wrote:
Thu May 03, 2018 6:54 pm
The Epson page for the product has what appears to be a Java based driver for Linux (JavaPOS ADK for Linux).
https://epson.com/Support/Point-of-Sale ... C31C636084

Yes quite so but not for ARM CPU Architecture !!!
I thought using Java makes it processor independent, the platform's Java VM has the processor dependent bits. Haven't looked at coding in Java for over a decade so I'm not confident.

pi9
Posts: 50
Joined: Wed Jun 10, 2015 3:32 pm

Re: Printing to an RS232 using a USB cable

Fri May 04, 2018 2:47 am

In other words there is no solution?

User avatar
scruss
Posts: 1936
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: Printing to an RS232 using a USB cable

Fri May 04, 2018 3:27 am

This might work: plinth666/epsonsimplecups: A simple CUPS driver for the Epson TM-T20 POS printer

It should just speak ESC-POS, which is not too complex
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.

mosespi
Posts: 508
Joined: Mon May 12, 2014 3:35 pm
Location: 34,-118
Contact: Website

Re: Printing to an RS232 using a USB cable

Fri May 04, 2018 4:04 am

scruss wrote:
Fri May 04, 2018 3:27 am
This might work: plinth666/epsonsimplecups: A simple CUPS driver for the Epson TM-T20 POS printer

It should just speak ESC-POS, which is not too complex

I worked on similar printers from Eltron/Zebra. They had their equivalent printer 'codes' called EPL and ZPL. It was fairly simple to send basic text and barcodes, which is all we needed for that project.

It appears like ESC-POS is similar, see here:
http://content.epson.de/fileadmin/conte ... escpos.pdf

Regards,
-Moses
Power problems? MoPower UPS for the Pi
http://www.allspectrum.com/mopower/

pi9
Posts: 50
Joined: Wed Jun 10, 2015 3:32 pm

Re: Printing to an RS232 using a USB cable

Fri May 04, 2018 1:43 pm

Now I have a starting point. Thank you very much for the info.

pi9
Posts: 50
Joined: Wed Jun 10, 2015 3:32 pm

Re: Printing to an RS232 using a USB cable

Wed Jan 09, 2019 4:00 am

Hi,
I know it's been a while since I made this post, but now I am getting back to working on that project.
I installed the libraries below as instructed

Code: Select all

sudo apt-get install libcups2-dev 
sudo apt-get install libcupsimage2-dev
and downloaded the zip file from github and ran the setup scripts from

Code: Select all

sh /epsonsimplecups-master/src/setup.sh
then I went to http://127.0.0.1:631
Now I am stuck and don't know how to proceed. I am testing the process before I go on site where the actual printer is.
When I click "Administration" then "Add printer", i assume the correct choice for an RS232 printer would be "LPD/LPR Host or Printer". At this point I am not sure what to type or how to find the port when I am on site.

Should it be
socket://localhost:9100 ?

Thanks

User avatar
scruss
Posts: 1936
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: Printing to an RS232 using a USB cable

Wed Jan 09, 2019 4:09 pm

Installing system-config-printer is, for me, much better than trying to config the thing from the CUPS web admin. It does need a GUI and will be one of the few times you're prompted for your user password. Install it with:

Code: Select all

sudo apt install  system-config-printer
LPD is for network printers not serial ones, so you'll be connecting to something like serial:/dev/ttyUSB0?baud=9600. Check the port and baud values. If you plan to add more serial devices, consider using the /dev/serial/* devices instead of a ttyUSBx one. They will be specific to each interface, so the value won't change on reboot.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.

pi9
Posts: 50
Joined: Wed Jun 10, 2015 3:32 pm

Re: Printing to an RS232 using a USB cable

Wed Jan 09, 2019 8:01 pm

How would I find what serial port the printer is on? I would be connecting using a serial to db9 cable and a db9 to db25 converter on top of that because that's what the printer has.

User avatar
scruss
Posts: 1936
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: Printing to an RS232 using a USB cable

Wed Jan 09, 2019 11:38 pm

look at dmesg output, or

Code: Select all

ls /dev/tty*
If there's only one, it'll be /dev/ttyUSB0, and that's your port.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.

pi9
Posts: 50
Joined: Wed Jun 10, 2015 3:32 pm

Re: Printing to an RS232 using a USB cable

Thu Jan 10, 2019 1:29 am

Wow. Thanks. system-config-printer makes things look a lot easier. It is almost like Windows.
Now I have to try it with the printer and hopefully I can get it to work.

pi9
Posts: 50
Joined: Wed Jun 10, 2015 3:32 pm

Re: Printing to an RS232 using a USB cable

Mon Jan 14, 2019 5:32 pm

After a few trials I finally figured out how to compile the rastertoepsonsimple. I installed the printer, it was indeed /dev/ttyUSB0, but I keep getting an error about printer resolution.

Option 'printer-resolution' has value '(unknown IPP tag)' and cannot be edited.

I tried changing the paper size and pointing to the PPD file that came with the epson files I downloaded, but all give me the same result. The print jobs show, but they get withheld. The printer doesn't show any kind of activity when i try to print, but i did see the serial port when I did ls /dev/tty*

Not sure what to do next.

Return to “General discussion”