Ricoh SP 201 :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
SP201N Won't Print From CUPS
Posted by: yuljk ()
Date: January 31, 2019 06:43PM

Hi - I'm using a Ricoh SP201N connected over ethernet to a Debian 9 VM running CUPS.

I have installed your DDST driver successfully as per your instructions. However, after trying several of the queue options when creating the printer via the CUPS web GUI, none appear to allow me to printn.

When using socket://ipofprinter - The printer status light flashes (presumably it's receiving some data) but never prints.

I also tried socket://ipofprinter:9100 which also didn't work.

Any idea how to get this printer working in CUPS?



Edited 1 time(s). Last edit at 01/31/2019 06:59PM by yuljk.

Options: ReplyQuote
Re: SP201N Won't Print From CUPS
Posted by: rickrich ()
Date: February 01, 2019 12:52PM

$ cd foo2zjs

$ foo2ddst-wrapper testpage.ps > xxx.prn

$ ddstdecode -d xxx xxx.prn
\033%-12345X@PJL
@PJL SET TIMESTAMP=2019/02/01 11:45:03
@PJL SET FILENAME=stdin
@PJL SET COMPRESS=JBIG
@PJL SET USERNAME=root
@PJL SET COVER=OFF
@PJL SET PAGESTATUS=START
@PJL SET COPIES=1
@PJL SET MEDIASOURCE=TRAY1
@PJL SET MEDIATYPE=PLAINRECYCLE
@PJL SET PAPER=LETTER
@PJL SET PAPERWIDTH=5100
@PJL SET PAPERLENGTH=6600
@PJL SET RESOLUTION=600
@PJL SET IMAGELEN=57799
DDST_JBIG_DATA_BEGIN 57799 bytes
                DL = 0, D = 0, P = 1, - = 0, XY = 5100 x 6600
                L0 = 128, MX = 0, MY = 0
                Order   = 3  ILEAVE SMID
                Options = 72  LRLTWO TPBON
                52 stripes, 0 layers, 1 planes
DDST_JBIG_DATA_END
@PJL SET DOTCOUNT=12345
@PJL SET PAGESTATUS=END
@PJL EOJ
\033%-12345X
     
$ eog xxx-01-4.pbm                 #image view it!

$ nc 192.168.1.nnn 9100 < xxx.prn  #print it

What does that say?

Options: ReplyQuote
Re: SP201N Won't Print From CUPS
Posted by: yuljk ()
Date: February 01, 2019 07:41PM

Hi rickrich - I ran the first two commands successfully.

root@typhon:~# cd foo2zjs/
root@typhon:~/foo2zjs# foo2ddst-wrapper testpage.ps > xxx.prn
root@typhon:~/foo2zjs# ddstdecode -d xxx xxx.prn
\033%-12345X@PJL
@PJL SET TIMESTAMP=2019/02/02 00:38:41
@PJL SET FILENAME=stdin
@PJL SET COMPRESS=JBIG
@PJL SET USERNAME=root
@PJL SET COVER=OFF
@PJL SET PAGESTATUS=START
@PJL SET COPIES=1
@PJL SET MEDIASOURCE=TRAY1
@PJL SET MEDIATYPE=PLAINRECYCLE
@PJL SET PAPER=LETTER
@PJL SET PAPERWIDTH=5100
@PJL SET PAPERLENGTH=6600
@PJL SET RESOLUTION=600
@PJL SET IMAGELEN=57799
DDST_JBIG_DATA_BEGIN 57799 bytes
DL = 0, D = 0, P = 1, - = 0, XY = 5100 x 6600
L0 = 128, MX = 0, MY = 0
Order = 3 ILEAVE SMID
Options = 72 LRLTWO TPBON
52 stripes, 0 layers, 1 planes
DDST_JBIG_DATA_END
@PJL SET DOTCOUNT=12345
@PJL SET PAGESTATUS=END
@PJL EOJ
\033%-12345X

However when running eog xxx-01-4.pbm I get 'eog command not found'

I ran nc 192.168.5.175 9100 < xxx.prn (192.168.5.175 being the IP of the printer) and nothing was printed.

Many thanks



Edited 3 time(s). Last edit at 02/01/2019 07:54PM by yuljk.

Options: ReplyQuote
Re: SP201N Won't Print From CUPS
Posted by: rickrich ()
Date: February 01, 2019 10:40PM

eog: https://www.lifewire.com/guide-to-eye-of-gnome-image-viewer-2188343

Install this first.

Download http://foo2zjs.rkkda.com/tmp/ricoh-sp201-win.prn

$ ddstdecode -d www ricoh-sp201-win.prn        #decode it

$ eog www-01-4.pbm                             #view it

$ nc 192.168.1.nnn 9100 < ricoh-sp201-win.prn  #print it

What does that say?

Options: ReplyQuote
Re: SP201N Won't Print From CUPS
Posted by: yuljk ()
Date: February 02, 2019 02:39PM

Hi - I ran those commands and eog displayed the 'Red Hat Printconf page' and I was able to print it.

But I still cannot print a test page from CUPS.

I should note that sending a test print from CUPS the light on the front of the printer flashes and won't stop until I power cycle it.

(Was quite a pain getting eog to work properly without an X Window!)



Edited 4 time(s). Last edit at 02/02/2019 03:47PM by yuljk.

Options: ReplyQuote
Re: SP201N Won't Print From CUPS
Posted by: yuljk ()
Date: February 04, 2019 10:16PM

Any other ideas Rick?

Many thanks.

Options: ReplyQuote
Re: SP201N Won't Print From CUPS
Posted by: rickrich ()
Date: February 05, 2019 08:33AM

I don't know what the issue is, so far.

For your alternative driver:

https://github.com/madlynx/ricoh-sp100/issues/57
Quote
mvr88

OK, replacing identify with pamfile (netpbm-package) did it, e.g.

< read fn ft xs ys garb < <(identify $page | tr "x" " ")
> read xs ys < <(pamfile $uid/$page | sed -r 's/.* ([0-9]+) by ([0-9]+).*/\1 \2/g')

Options: ReplyQuote
Re: SP201N Won't Print From CUPS
Posted by: rickrich ()
Date: February 05, 2019 11:45AM

Download http://foo2zjs.rkkda.com/tmp/ricoh-alt1.prn and print. What does that say?

Options: ReplyQuote
Re: SP201N Won't Print From CUPS
Posted by: yuljk ()
Date: February 05, 2019 01:06PM

Cheers Rick - here's the results with the new file.

root@typhon:~# ddstdecode -d www ricoh-alt1.prn
\033%-12345X@PJL
@PJL SET TIMESTAMP=2019/02/05 10:37:11
@PJL SET FILENAME=Document
@PJL SET COMPRESS=JBIG
@PJL SET USERNAME=
@PJL SET COVER=OFF
@PJL SET HOLD=OFF
@PJL SET PAGESTATUS=START
@PJL SET COPIES=1
@PJL SET MEDIASOURCE=TRAY1
@PJL SET MEDIATYPE=PLAINRECYCLE
@PJL SET PAPER=LETTER
@PJL SET PAPERWIDTH=5100
@PJL SET PAPERLENGTH=6600
@PJL SET RESOLUTION=600
@PJL SET IMAGELEN=57795
DDST_JBIG_DATA_BEGIN 57795 bytes
DL = 0, D = 0, P = 1, - = 0, XY = 5100 x 6600
L0 = 128, MX = 0, MY = 0
Order = 3 ILEAVE SMID
Options = 72 LRLTWO TPBON
52 stripes, 0 layers, 1 planes
DDST_JBIG_DATA_END
@PJL SET DOTCOUNT=193891
@PJL SET PAGESTATUS=END
@PJL EOJ
\033%-12345X


eog www-01-4.pbm - displays the RedHat test page as before.

nc 192.168.5.175 9100 < ricoh-alt1.prn - the page prints successfully.

Many thanks!

Options: ReplyQuote
Re: SP201N Won't Print From CUPS
Posted by: rickrich ()
Date: February 05, 2019 01:33PM

You can use:

pstoricohddst-gdi

and

RICOH_Aficio_SP_100.ppd

or

RICOH_Aficio_SP_204.ppd

It is a modified version of https://github.com/madlynx/ricoh-sp100 .

Tarball: pstoricohddst.tar.gz



Edited 3 time(s). Last edit at 02/06/2019 09:03AM by rickrich.

Options: ReplyQuote
Re: SP201N Won't Print From CUPS
Posted by: yuljk ()
Date: February 05, 2019 01:41PM

I'll give those a try now with CUPS. The original driver had a script that checks for requirements. Are there any additional files I'll need for these modified drivers?

Many thanks

Options: ReplyQuote
Re: SP201N Won't Print From CUPS
Posted by: rickrich ()
Date: February 05, 2019 01:51PM

$ pstoricohddst-gdi  '' '' '' '' 'PageSize=letter' < ~/testpage.ps > xxxx.prn
which: no inotifywait in (/usr/lib64/qt-3.3/bin:/usr/share/Modules/bin:/usr/lib64/:/home/rick/go/bin)

$ ddstdecode xxxx.prn
\033%-12345X@PJL
@PJL SET TIMESTAMP=2019/02/05 12:48:40
@PJL SET FILENAME=Document
@PJL SET COMPRESS=JBIG
@PJL SET USERNAME=
@PJL SET COVER=OFF
@PJL SET HOLD=OFF
@PJL SET PAGESTATUS=START
@PJL SET COPIES=1
@PJL SET MEDIASOURCE=TRAY1
@PJL SET MEDIATYPE=PLAINRECYCLE
@PJL SET PAPER=LETTER
@PJL SET PAPERWIDTH=5100
@PJL SET PAPERLENGTH=6600
@PJL SET RESOLUTION=600
@PJL SET IMAGELEN=57795
DDST_JBIG_DATA_BEGIN 57795 bytes
                DL = 0, D = 0, P = 1, - = 0, XY = 5100 x 6600
                L0 = 128, MX = 0, MY = 0
                Order   = 3  ILEAVE SMID
                Options = 72  LRLTWO TPBON
                52 stripes, 0 layers, 1 planes
DDST_JBIG_DATA_END
@PJL SET DOTCOUNT=193891
@PJL SET PAGESTATUS=END
@PJL EOJ
\033%-12345X

$



Edited 1 time(s). Last edit at 02/05/2019 07:00PM by rickrich.

Options: ReplyQuote
Re: SP201N Won't Print From CUPS
Posted by: yuljk ()
Date: February 05, 2019 03:53PM

The new filter driver works a treat with CUPS!

Using the 100 series PPD and setting up a socket:// queue in CUPS.

I really appreciate all your help Rick.

The only thing I've noticed is that it can take quite a while before the document prints. Whereas testing on a Windows VM it prints a test page within a couple of seconds - CUPS seems to take around 20+ before spitting out a page.

Regards

Options: ReplyQuote
Re: SP201N Won't Print From CUPS
Posted by: rickrich ()
Date: February 05, 2019 04:26PM

I think there is another problem:
$ diff -u ~/src/pstoricohddst/pstoricohddst-gdi ~/bin/pstoricohddst-gdi 
--- /home/rick/src/pstoricohddst/pstoricohddst-gdi      2019-02-05 12:45:07.367490804 -0600
+++ /home/rick/bin/pstoricohddst-gdi    2019-02-05 15:18:10.064700146 -0600
@@ -171,7 +171,8 @@
 
        # Converting from PostScript to PostScript-monochrome, then to PBM image format (per page)
        log "Converting document to pages"
-       gs -sDEVICE=ps2write -sPAPERSIZE=$lcpagesize -sOutputFile=- -r$resolution -dQUIET -dBATCH -dNOPAUSE - | gs -sPAPERSIZE=$lcpagesize -sDEVICE=pbmraw -sOutputFile=${uid}/%03d-page.pbm -r$resolution -dQUIET -dBATCH -dNOPAUSE -
+       # gs -sDEVICE=ps2write -sPAPERSIZE=$lcpagesize -sOutputFile=- -r$resolution -dQUIET -dBATCH -dNOPAUSE - |
+       gs -sPAPERSIZE=$lcpagesize -sDEVICE=pbmraw -sOutputFile=${uid}/%03d-page.pbm -r$resolution -dQUIET -dBATCH -dNOPAUSE -
        log "Conversion complete"
 
        output_header
Try that and report back. I don't know why the two copies of gs were there.



Edited 1 time(s). Last edit at 02/05/2019 04:35PM by rickrich.

Options: ReplyQuote
Re: SP201N Won't Print From CUPS
Posted by: yuljk ()
Date: February 05, 2019 06:31PM

Cheers Rick - do you mind uploading the updated filter?

Ta :)

Options: ReplyQuote
Re: SP201N Won't Print From CUPS
Posted by: rickrich ()
Date: February 05, 2019 06:59PM

Done.

Options: ReplyQuote
Re: SP201N Won't Print From CUPS
Posted by: yuljk ()
Date: February 05, 2019 09:36PM

Many thanks - I'll give it another try tomorrow.

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.