ondrej-zary / carps-cups

CUPS driver for Canon CARPS printers
GNU General Public License v3.0
69 stars 22 forks source link

Update README.md #2

Closed emarginato closed 10 years ago

emarginato commented 10 years ago

Proven to work on FAX-L400

Hbardeli commented 10 years ago

Dear all,

it took me long time to fine a driver to use Canon PC-D300/FAX-L400/ICD300 with linux. I use opensuse 12.2 and setup the Makefile and use pcd300.ppd with cups Everything looks good, but the printer only says: fill up pager into a special slot.

Can you give me any help ?

regards, Helmut

ondrej-zary commented 10 years ago

Which printer do you have? PC-D300 or FAX-L400 or ICD300? Do you have correct paper size set in CUPS printer options or document properties (same as on the printer panel)? If the MF5730 printer is configured for A4 and you try to print anything in Letter format, the printer display shows a paper size error which does not go away until power is cycled (crappy firmware).

Hbardeli commented 10 years ago

I use the printer Canon PC D340 The printer is attached to a windows 8 system as USBPRINT\Canon PC-D300/Fax-L400/ICD300

The paper format is set to A4 with 600 dpi normal paper Set to default in CUPS

There is no problem to print from my old windows XP system to this printer.

ondrej-zary commented 10 years ago

Please print a test page from Windows (where the printer works) to a file (change the printer port to FILE:). Then print a test page from CUPS to another file (in Debian: stop CUPS, set FileDevice to yes in /etc/cups/cups-files.conf, set Device URI to file:///home/you/something.prn in your printer's section in /etc/cups/printers.conf, start CUPS). Then run carps-decode on both files and post the decoded headers here (first ~25 lines - until line_len= is displayed).

Hbardeli commented 10 years ago

BLOCK 0 (len=13): DOCUMENT BEGINNING BLOCK 1 (len=14): DOCUMENT INFORMATION: !!!!!!!! Title: 'Testseite' BLOCK 2 (len=19): DOCUMENT INFORMATION: !!!!!!!! User: 'Helmut Bardeli' BLOCK 3 (len=10): DOCUMENT INFORMATION: Time: 2014-07-11 (FRI) 09:37:48.793 BLOCK 4 (len=4): BEGIN SOMETHING 1 BLOCK 5 (len=4): BEGIN SOMETHING 2 BLOCK 6 (len=5): PRINT PARAMETERS: !!!!!!!! Unknown param=0x2e00 2e 82 00 00 BLOCK 7 (len=87): PRINT DATA 0x01ESC%@ ESCP42;600;1J;ImgColor ESC\ ESC[11h ESC[?7;600 I ESC[20't ESC[14;;;;;;p ESC[?2h ESC[1v ESC[600;1;0;32;;64;0'c BLOCK 8 (len=379): PRINT DATA 0x01ESC[;4768;109;15.Pwidth=4768, height=109 line_len=596 Data length: 348 ok, we have 349 bytes len=349 out_pos: 0x0, line_num=0, line_pos=0 (0), len=349, in_pos=0x16e 1 1 11 1 1 01 zero byte DICTIONARY=AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA BLOCK 0 (len=13): DOCUMENT BEGINNING BLOCK 1 (len=14): DOCUMENT INFORMATION: Title: 'Test Page' BLOCK 2 (len=9): DOCUMENT INFORMATION: User: 'root' BLOCK 3 (len=10): DOCUMENT INFORMATION: Time: 2014-07-11 (FRI) 13:11:08.0 BLOCK 4 (len=4): BEGIN SOMETHING 1 BLOCK 5 (len=4): BEGIN SOMETHING 2 BLOCK 6 (len=5): PRINT PARAMETERS: !!!!!!!! Unknown param=0x2e00 2e 82 00 00 BLOCK 7 (len=3): PRINT PARAMETERS: Image refinement: enabled BLOCK 8 (len=103): PRINT DATA 0x01ESC%@ ESCP42;300;1J;ImgColor ESC\ ESC[11h ESC[?7;300 I ESC[20't ESC[80;3508;2479;60;60;60;60p ESC[?2h ESC[1v ESC[300;1;0;32;;64;0'c BLOCK 9 (len=3106): PRINT DATA 0x01ESC[;2360;221;15.Pwidth=2360, height=221 line_len=296

Hbardeli commented 10 years ago

I found a first reason. The carps_paper_size in rastertocarps is set to "CUSTOM". Therefore you find 80 instead of 14 in the data. When I set A4 fix in rastertocarps the printer works. I have no idea why !strcmp paper_size_name in rastertocarps dowes not work.

ondrej-zary commented 10 years ago

Try adding ERR("%s",paper_size_name) in encode_paper_size() and see the CUPS error log. Maybe CUPS is sending something different.

Hbardeli commented 10 years ago

My cups 1.5.3 pass only " " and no paper_size_name

ondrej-zary commented 10 years ago

Installed OpenSuse 12.2 and reproduced the problem: cupsPageSizeName is empty. We can get page size name from PPD instead: 3b8f41441baeea67045a7499dd662c70453ba9a9