General foo2hbpl2 :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
Dell 1320cn [solved: contact foo2hbpl1 author]
Posted by: Marc_Eberhard ()
Date: July 08, 2015 04:27PM

Hi,

just a quick question if someone managed to get a Dell 1320cn to work? It works with the Fuji Xerox DocuPrint C525 A drivers, which include a file called FXM_HBPL. This is called as the last bit of the filter chain in CUPS, so I assume the printer is using some form of the HBPL protocol. However, neither foo2hbpl1-wrapper nor foo2hbpl2-wrapper produce a file that produces output. Interestingly, the printer flags up an error, so there is some reaction. If I send raw Postscript files, the printer simply blinks and returns to normal. It does not flag an error. So, both wrapper scripts procude something the printer is willing to consider and not ignore. Any idea or suggestions to playing with parameters, etc, to get this to work? The reason I can't use the Xerox drivers anymore is because I want to move my printer server to a Raspberry Pi and the drivers are only available as i386 binaries, which don't work on an ARM CPU.

Thanks,
Marc



Edited 1 time(s). Last edit at 07/13/2015 12:26PM by rickrich.

Options: ReplyQuote
Re: Dell 1320cn
Posted by: Marc_Eberhard ()
Date: July 13, 2015 11:14AM

Hi Rick,

thanks for your quick reply and apologies for my late reply! Unfortunately, the qpdl encoder did not work, but I have captured a raw print file from an x86 machine, which seems to be hbpl encoded:

$ foo2zjs/hbpldecode ~/scratch/download/print_working.raw
\033%-12345X@PJL COMMENT DATE=07/13/2015
@PJL COMMENT TIME=14:55:54
@PJL COMMENT DNAME=plot.pdf
@PJL JOB MODE=PRINTER
@PJL SET JOBATTR="@LUNA=marc"
@PJL SET JOBATTR="@JOAU=marc"
@PJL SET JOBATTR="@CNAM=athene.local"
@PJL SET JOBATTR="@NLPP=1"
@PJL SET COPIES=1
@PJL SET RENDERMODE=COLOR
@PJL SET DUPLEX=OFF
@PJL SET OUTBIN=FACEDOWN
@PJL SET PAPERDIRECTION=SEF
@PJL SET JOBATTR="@MSIP=NORMAL"
@PJL SET RESOLUTION=600
@PJL SET BITSPERPIXEL=8
@PJL SET JOBATTR="@TRCH=ON"
@PJL SET JOBATTR="@APSP=OFF"
@PJL SET ECONOMODE=OFF
@PJL SET SLIPSHEET=OFF
@PJL SET JOBATTR="@SPSE=AUTO"
@PJL SET JOBATTR="@PODR=NORMAL"
@PJL SET JOBATTR="@DRDM=RASTER"
@PJL SET JOBATTR="@BANR=DEVICE"
@PJL SET JOBATTR="@IREC=OFF"
@PJL SET JOBATTR="@TCPR=24"
@PJL SET JOBATTR="@GCPR=24"
@PJL SET JOBATTR="@ICPR=24"
@PJL SET JOBATTR="@TUCR=24"
@PJL SET JOBATTR="@GUCR=24"
@PJL SET JOBATTR="@IUCR=24"
@PJL SET JOBATTR="@TTRC=9"
@PJL SET JOBATTR="@GTRC=9"
@PJL SET JOBATTR="@ITRC=9"
@PJL SET JOBATTR="@TSCR=9"
@PJL SET JOBATTR="@GSCR=9"
@PJL SET JOBATTR="@ISCR=9"
@PJL ENTER LANGUAGE=HBPL
[hbpldecode1]
RECTYPE 'A' [0x41]:
81 a1: 0x0
82 a2: 0x1
83 a2: 0x1
RECTYPE 'C' [0x43]:
91 a1: 0x0
92 a1: 0x2
93 a1: 0x1
94 a1: 2 [paper=A4]
95 c2: 0x0
96 a1: 0x3
97 c3: 0x5e005e
98 a1: 0x0
99 a4: 1 [page]
9a c4: 4776x6600 (0x12a8 x 0x19c8) [WxH]
9b a1: 0x0
9c a1: 0x1
9d a1: 0x16
9e a1: 0x0
9f a1: 0x1
a0 a1: 0x20
a1 a1: 0x0
a2 c4: 4776x6600 (0x12a8 x 0x19c8) [WxH]
RECTYPE 'Q' [0x51]:
RECTYPE 'R' [0x52]:
a3 a1: 0x0
a4 a4: 56275 (0xdbd3) bytes of data...
Page 1 image found -- use "-d basename" to decode
RECTYPE 'S' [0x53]:
RECTYPE 'D' [0x44]:
RECTYPE 'B' [0x42]:
\033%-12345X@PJL EOJ

I then tried to produce a similar file using:

$ ./foo2zjs-pstops -n plot.ps | cat | (gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE -sPAPERSIZE=a4 -g4776x6600 -r600x600 -sDEVICE=pamcmyk32 -sOutputFile="|cat 1>&3" CLP-300cms CLP-300-1200x600cms2 -_ >/dev/null) 3>&1 | ./foo2hbpl1 -m1 -u 51,51,51,51 -J "" -U "" > print.raw

And the output looks similar enough:

$ foo2zjs/hbpldecode print.raw
\033%-12345X@PJL SET STRINGCODESET=UTF8
@PJL COMMENT DATE=07/13/2015
@PJL COMMENT TIME=16:07:25
@PJL COMMENT DNAME=
@PJL JOB MODE=PRINTER
@PJL SET JOBATTR="@LUNA="
@PJL SET JOBATTR="@TRCH=OFF"
@PJL SET DUPLEX=OFF
@PJL SET BINDING=LONGEDGE
@PJL SET IWAMANUALDUP=OFF
@PJL SET JOBATTR="@MSIP=NORMAL"
@PJL SET RENDERMODE=COLOR
@PJL SET ECONOMODE=OFF
@PJL SET RET=ON
@PJL SET JOBATTR="@IREC=OFF"
@PJL SET JOBATTR="@TRAP=ON"
@PJL SET JOBATTR="@JOAU="
@PJL SET JOBATTR="@CNAM=raspi-4"
@PJL SET COPIES=1
@PJL SET QTY=1
@PJL SET PAPERDIRECTION=SEF
@PJL SET RESOLUTION=600
@PJL SET BITSPERPIXEL=8
@PJL SET JOBATTR="@DRDM=XRC"
@PJL SET JOBATTR="@TSCR=11"
@PJL SET JOBATTR="@GSCR=11"
@PJL SET JOBATTR="@ISCR=12"
@PJL SET JOBATTR="@TTRC=11"
@PJL SET JOBATTR="@GTRC=11"
@PJL SET JOBATTR="@ITRC=12"
@PJL SET JOBATTR="@TCPR=11"
@PJL SET JOBATTR="@GCPR=11"
@PJL SET JOBATTR="@ICPR=12"
@PJL SET JOBATTR="@TUCR=11"
@PJL SET JOBATTR="@GUCR=11"
@PJL SET JOBATTR="@IUCR=12"
@PJL SET JOBATTR="@BSPM=OFF"
@PJL SET JOBATTR="@TDFT=0"
@PJL SET JOBATTR="@GDFT=0"
@PJL SET JOBATTR="@IDFT=0"
@PJL ENTER LANGUAGE=HBPL
[hbpldecode1]
RECTYPE 'A' [0x41]:
81 a1: 0x0
82 a2: 0x7
83 a2: 0x1
RECTYPE 'C' [0x43]:
91 a1: 0x0
92 a1: 0x1
93 a1: 0x1
94 a1: 255 [paper=Custom]
95 c2: 2022x2794 [WxH in 0.1mm units]
96 a1: 0x2
97 c3: 0x0
98 a1: 0x0
99 a4: 1 [page]
9a c4: 4776x6600 (0x12a8 x 0x19c8) [WxH]
9b a1: 0x0
9c a1: 0x1
9d a1: 0x8b
9e a1: 0x2
9f a1: 0x5
a0 a1: 0x8
a1 a1: 0x0
a2 c4: 4776x6600 (0x12a8 x 0x19c8) [WxH]
RECTYPE 'Q' [0x51]:
RECTYPE 'R' [0x52]:
a3 a1: 0x0
a4 a2: 42357 (0xa575) bytes of data...
Page 1 image found -- use "-d basename" to decode
RECTYPE 'S' [0x53]:
RECTYPE 'D' [0x44]:
RECTYPE 'B' [0x42]:
\033%-12345X@PJL EOJ

The printer receives the file and then the error LED is blinking and it doesn't print anything.

Any idea what parameters I could tweak? Looks like it is pretty close now!

Thanks,
Marc

Options: ReplyQuote
Re: Dell 1320cn
Posted by: rickrich ()
Date: July 13, 2015 12:22PM

Not my problem. I only do JBIG stuff.

@PJL ENTER LANGUAGE=HBPL
[hbpldecode1]

Contact the author of that software.

Options: ReplyQuote


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