Samsung CLP-600 :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
SPL-C ERROR: INCORRECT CHECKSUM [FIXED: 2007/06/29]
Posted by: Dragonlord ()
Date: June 22, 2007 05:38PM

I'm trying to get my new CLP-600N working. The Samsung driver works but in color mode there are stripes all over ( not sure if this is the driver messing up though ). I tried now with this driver here and the following configuration:

printer over IPP ( ipp://pssclp600n )
make and model: Samsung CLP-600 Foomatic/foo2qpdl (recommended)

Whenever I print I get an error page out of my printer labeled:

SPL-C ERROR: INCORRECT CHECKSUM
This page contains invalid dtaa.
Please, try printing this page again.

Any ideas where this problem comes from? Some bug in the driver causing this or doe I need a very specific setup to get it working?

System is Gentoo. Driver just downloaded and compiled from this page. CUPS test page prints out without an error page but parts of the page are missing.



Edited 1 time(s). Last edit at 07/26/2007 04:55AM by rickrich.

Options: ReplyQuote
Re: SPL-C ERROR: INCORRECT CHECKSUM
Posted by: rickrich ()
Date: June 22, 2007 10:43PM

Try this:
$ cd foo2zjs
$ foo2qpdl-wrapper testpage.ps >xxx
$ nc 192.168.xxx.yyy 9100 <xxx

Options: ReplyQuote
Re: SPL-C ERROR: INCORRECT CHECKSUM
Posted by: Dragonlord ()
Date: June 27, 2007 12:45PM

Sorry for not posting. Like always I registered for post-notification but your forum failed at sending me an email. I got a bit suspicious and had a look at the forum today just to find a new post :/ .

Anyways I tried this out. It works and gives me a print out although only in black and white.

So what could be the problem that it does not work through CUPS directly?

EDIT: I printed a page into test.ps and send this through the same process ( using your wrapper ). I get again the same error page.



Edited 1 time(s). Last edit at 06/27/2007 12:50PM by Dragonlord.

Options: ReplyQuote
Re: SPL-C ERROR: INCORRECT CHECKSUM
Posted by: rickrich ()
Date: June 27, 2007 04:55PM

Please put "test.ps" and "test.prn" (foo2qpdl-wrapper test.ps > test.prn) on the web.



Edited 1 time(s). Last edit at 06/27/2007 04:57PM by rickrich.

Options: ReplyQuote
Re: SPL-C ERROR: INCORRECT CHECKSUM
Posted by: Dragonlord ()
Date: June 27, 2007 07:10PM

I made some additional tests. It looks like printing out geometry and text works ( if you don't look at the lines being not solid ). What gives the driver the creeps are images it looks like. I used the following test image since it has a lot of blue which seems to be a problem ( samsung driver tends to purple-ize blue areas ).

testing.tar.bz2

Options: ReplyQuote
Re: SPL-C ERROR: INCORRECT CHECKSUM
Posted by: rickrich ()
Date: June 27, 2007 07:25PM

I don't understand.

Is this "SPL-C ERROR: INCORRECT CHECKSUM", or some other problem???

If it is some other problem, then you file another bug report.

I don't have a CLP-600. Just CLP-300.



Edited 1 time(s). Last edit at 06/27/2007 07:27PM by rickrich.

Options: ReplyQuote
Re: SPL-C ERROR: INCORRECT CHECKSUM
Posted by: rickrich ()
Date: June 27, 2007 07:40PM

$ qpdldecode <test.prn
\033%-12345X@PJL DEFAULT SERVICEDATE=20070628
@PJL SET USERNAME="Unknown"
@PJL SET JOBNAME="<stdin>"
@PJL SET COLORMODE=MONO
@PJL SET PAPERTYPE = NORMAL
@PJL ENTER LANGUAGE = QPDL
RECTYPE 0x0     len=17
                yres=600, copies=1, papersize=letter(0), w=2550, h=3300
                papersource=auto, unk=0, duplex=0:0, unk=0,2,  unk=268(0x10c)
                xres=1200
RECTYPE 0xc     len=68(0x44)
                stripe=0, WB=1248(0x4e0), H=128(0x80), plane=4, comp=0x13,
                len=56(0x38)
                magic=0x39abcdef, len=20(0x14), unk=0,0,0,0,0,0,
                ver=3, checksum WANT=0x356 GOT=0x356
                DL = 0, D = 0, P = 1, - = 0, XY = 9984 x 6400
                L0 = 6400, MX = 0, MY = 0
                Order   = 0
                Options = 72  LRLTWO TPBON
                1 stripes, 0 layers, 1 planes
RECTYPE 0xc     len=812748(0xc66cc)
                stripe=1, WB=1248(0x4e0), H=128(0x80), plane=4, comp=0x13,
                len=812736(0xc66c0)
                magic=0x39abcdef, len=812700(0xc669c), unk=2000000,0,0,0,0,0,
                ver=3, checksum WANT=0x620e190 GOT=0x620e190
RECTYPE 0x1     len=3
                copies=1
RECTYPE 0x9     len=0
\033%-12345X

$ nc 192.168.1.11 9100 <test.prn
It printed fine on CLP-300.

Options: ReplyQuote
Re: SPL-C ERROR: INCORRECT CHECKSUM
Posted by: rickrich ()
Date: June 27, 2007 07:46PM

Also, color prints fine, too.
$ foo2qpdl-wrapper -c test.ps > color.prn
$ nc 192.168.1.11 9100 <color.prn
Blue in the image is "light blue", not purple.

Options: ReplyQuote
Re: SPL-C ERROR: INCORRECT CHECKSUM
Posted by: rickrich ()
Date: June 27, 2007 08:21PM

Scanned on CanoScan LIDE 70...





Edited 1 time(s). Last edit at 06/27/2007 08:23PM by rickrich.

Options: ReplyQuote
Re: SPL-C ERROR: INCORRECT CHECKSUM
Posted by: Dragonlord ()
Date: June 27, 2007 09:03PM

Maybe this is something particular on CLP-600N? Because if I print the very same file I packed in the archive here I get a printout with said error text. So if it works on CLP-300 but not CLP-600 then something must be different between the two versions. Any chance how to narrow down what the problem could be? Also what could make thin lines to be not solid lines but a string of dots?

Options: ReplyQuote
Re: SPL-C ERROR: INCORRECT CHECKSUM
Posted by: rickrich ()
Date: June 28, 2007 09:19PM

Set the resolution to 600x600 and try again.

$ foo2qpdl-wrapper -c -r600x600 test.ps > color.prn
$ nc 192.168.1.11 9100 <color.prn

Options: ReplyQuote
Re: SPL-C ERROR: INCORRECT CHECKSUM
Posted by: Dragonlord ()
Date: June 29, 2007 04:32PM

I played around with the -r parameter to give some feedback. The following happened:

foo2qpdl-wrapper -c -r600x600 test.ps > color.prn
This produced a printout of the image. The resolution is very low and the image rather pixelated. The colors are though not smeared ( as far as I can see this from the pixellated printout ). The colors are a bit over-brightened but an ICM profile should take care of this.

foo2qpdl-wrapper -c -r1200x600 test.ps > color.prn
error page

foo2qpdl-wrapper -c -r1200x1200 test.ps > color.prn
error page

Looks like the higher resolution results in a checksum error. I quickly poked at the wrapper file and noticed that for the 600x600 resolution the value written is

XDIM=`expr $XDIM / 2`;;

but for all other ( higher ) resolutions it is

YDIM=`expr $YDIM \* 2`;;

Any particular reason why this kind of calculation is used? Could it be that during the printing the values fall outside the printer range and the printer simply bails out with that checksum error? I don't know how this protocol works but judging from the results this would be one of my first guesses.

Options: ReplyQuote
Re: SPL-C ERROR: INCORRECT CHECKSUM
Posted by: rickrich ()
Date: June 29, 2007 06:54PM

2007-06-29      Rick Richardson <rick.richardson@comcast.net>
        * foo2qpdl: Change to limit chunk size to 0x80000 for CLP-600.

Redownload and install again. Use 1200x600.

Options: ReplyQuote
Re: SPL-C ERROR: INCORRECT CHECKSUM
Posted by: Dragonlord ()
Date: June 29, 2007 08:42PM

Went ahead and tested with 1200x600 and 1200x1200. With 1200x600 the printout works. The resolution is a bit better but the colors suffered ( slight desaturation compared to 600x600 ). This can though be cured with the ICM profile. What goes for the 1200x1200 it's a bit particular. I get a printout but it's a bit... well... strange. The resolution is much better than the 1200x600 case. The colors are also better even without ICM profile in use. But the graphic is "chopped off". Unfortunately my scanner is broken currently so I have to describe it. Up to 50% ( in y direction measured from the top ) the image is good. From 50% to 75% it looks like the original image but the colors are slightly brighter and somehow look washed. From 75% to 100% only red and green color is left ( cyan is missing ).

Limiting that chunk size did help for the 1200x600 case. Where did you get your informations about the printer protocol? C coding is nothing new to me so maybe I could try out a couple of things on my end.

EDIT:
I made another test and took OpenOffice Draw to print out the image again as in the first case this time both with 1200x600 and 1200x1200 using the CLP-600 ICM profile. I don't know why but this time ( with the ICM profile ) the printout is doing correctly ( also at 1200x1200 ). The 1200x600 looks good and the 1200x1200 okay with a couple of thin stripes across ( faint paint ) across the image.

Chances are that the test.ps from the last test has not been suited well for the test. I have to make though some more tests especially to see if the stripes persist.

EDIT:
Made another test with a pdf file we use in business for out manufactured devices ( sort of front plate cover ). That's an image covering nearly an entire A4 page. This did not work well neither with 1200x1200 nor 1200x600. It looks like the image went slightly beyond the printing range ( acroread doesn't know what centering an image means ) so the part of the image outside turned into a heap of lines across the page. I have to test this a bit further to see if it really is the printing range causing troubles or if acroread simply doesn't like your driver one bit.



Edited 2 time(s). Last edit at 06/29/2007 09:03PM by Dragonlord.

Options: ReplyQuote
Re: SPL-C ERROR: INCORRECT CHECKSUM
Posted by: rickrich ()
Date: June 29, 2007 09:34PM

So "SPL-C ERROR: INCORRECT CHECKSUM" works then??

Please file another bug report on color issues. This is just "SPL-C ERROR: INCORRECT CHECKSUM" issues.

Options: ReplyQuote
Re: SPL-C ERROR: INCORRECT CHECKSUM
Posted by: Dragonlord ()
Date: June 30, 2007 01:30PM

"SPL-C ERROR: INCORRECT CHECKSUM" is solived with this. I did not get the error anymore since then. For the other issues I made up a new topic.

Options: ReplyQuote


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