Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lbp3010 stopped #3

Open
missla opened this issue Nov 20, 2013 · 14 comments
Open

lbp3010 stopped #3

missla opened this issue Nov 20, 2013 · 14 comments

Comments

@missla
Copy link
Contributor

missla commented Nov 20, 2013

Hallo, is capt-master suitable for the lbp3010 model too?

I tried but I received that:

status: stopped
"CAPT: bad reply from printer, expected size 58 00, got 46 00"

best regards
Laura

@agalakhov
Copy link
Owner

On Wed, 20 Nov 2013 08:45:00 -0800
missla [email protected] wrote:

Hallo, is capt-master suitable for the lbp3010 model too?

Hi! I had no idea if it worked for lbp3010 or not. According to your
report, it doesn't. Ok, then let's support it!

I tried but I received that:

status: stopped
"CAPT: bad reply from printer, expected size 58 00, got 46 00"

Ok. I see. LBP-3010 may split the message in more than two parts. My
driver reads first two parts only. This could be fixed. Thank you for
the report.

The printer may work or may not work after this fix. I'm sure it will
work someday.

Regards,
Alex

@missla
Copy link
Contributor Author

missla commented Nov 22, 2013

Hi Alex, many thanks for your replay, but I already have bad news.
This time the printer status was

stopped
"CAPT: bad reply from printer, expected size 58 00, got 18 00"

and when I restarted the job from the cups web interface the status it
changed into processing endless.

regards
Laura

@agalakhov agalakhov reopened this Nov 22, 2013
@agalakhov
Copy link
Owner

Hi,
Is it the message at the same point of processing?
Regards,
Alex

@agalakhov
Copy link
Owner

I found a fixed another bug. Could you please test it now?
Please turn on debugging in CUPS and send me a couple of lines from the log that preceed the error message.
Regards,
Alex

@missla
Copy link
Contributor Author

missla commented Nov 25, 2013

Hello Alex, I am here again.

This time the printer gives no error, but does not work.

I only added the line

register_printer("LBP3010/LBP3018/LBP3050", lbp2900_ops, EXPERIMENTAL);

at the end of src/prn_lbp2900.c file and I used the command

lpr -P Canon-LBP3010-LBP3018-LBP3050 ./SPECS

for printing. This time the printer went directly into processing state and remained there
until I cancelled the job.
I can't attach here the log file (only image are supported) but this is a snapshot of when
the printer was in processing state

...
D [25/Nov/2013:08:38:46 +0000] [Job 13] CAPT: send A0 E0 04 00
D [25/Nov/2013:08:38:46 +0000] [Job 13] Read 4 bytes of print data...
D [25/Nov/2013:08:38:46 +0000] [Job 13] Wrote 4 bytes of print data...
D [25/Nov/2013:08:38:46 +0000] [Job 13] CUPS_SC_CMD_DRAIN_OUTPUT received from driver...
D [25/Nov/2013:08:38:46 +0000] [Job 13] CAPT: waiting for 6 bytes
D [25/Nov/2013:08:38:46 +0000] [Job 13] Read 6 bytes of back-channel data...
D [25/Nov/2013:08:38:46 +0000] [Job 13] Read 6 bytes of back-channel data...
D [25/Nov/2013:08:38:46 +0000] [Job 13] CAPT: waiting for 6 bytes
D [25/Nov/2013:08:38:46 +0000] [Job 13] CAPT: recv A0 E0 0C 00 12 8E 00 00 0F 00 00 00
D [25/Nov/2013:08:38:47 +0000] [Job 13] CAPT: send A0 E0 04 00
D [25/Nov/2013:08:38:47 +0000] [Job 13] Read 4 bytes of print data...
D [25/Nov/2013:08:38:47 +0000] [Job 13] Wrote 4 bytes of print data...
D [25/Nov/2013:08:38:47 +0000] [Job 13] CUPS_SC_CMD_DRAIN_OUTPUT received from driver...
D [25/Nov/2013:08:38:47 +0000] [Job 13] Read 6 bytes of back-channel data...
D [25/Nov/2013:08:38:47 +0000] [Job 13] Read 6 bytes of back-channel data...
D [25/Nov/2013:08:38:48 +0000] [Job 13] CAPT: output already empty, not drained
D [25/Nov/2013:08:38:48 +0000] [Job 13] CAPT: waiting for 6 bytes
D [25/Nov/2013:08:38:48 +0000] [Job 13] CAPT: waiting for 6 bytes
D [25/Nov/2013:08:38:48 +0000] [Job 13] CAPT: recv A0 E0 0C 00 12 8E 00 00 0F 00 00 00
D [25/Nov/2013:08:38:49 +0000] [Job 13] CAPT: send A0 E0 04 00
D [25/Nov/2013:08:38:49 +0000] [Job 13] Read 4 bytes of print data...
D [25/Nov/2013:08:38:49 +0000] [Job 13] Wrote 4 bytes of print data...
D [25/Nov/2013:08:38:49 +0000] [Job 13] CUPS_SC_CMD_DRAIN_OUTPUT received from driver...
D [25/Nov/2013:08:38:49 +0000] [Job 13] CAPT: waiting for 6 bytes
D [25/Nov/2013:08:38:49 +0000] [Job 13] Read 6 bytes of back-channel data...
D [25/Nov/2013:08:38:49 +0000] [Job 13] Read 6 bytes of back-channel data...
D [25/Nov/2013:08:38:49 +0000] [Job 13] CAPT: waiting for 6 bytes
D [25/Nov/2013:08:38:49 +0000] [Job 13] CAPT: recv A0 E0 0C 00 12 8E 00 00 0F 00 00 00
D [25/Nov/2013:08:38:50 +0000] [Job 13] CAPT: send A0 E0 04 00
D [25/Nov/2013:08:38:50 +0000] [Job 13] Read 4 bytes of print data...
D [25/Nov/2013:08:38:50 +0000] [Job 13] Wrote 4 bytes of print data...
D [25/Nov/2013:08:38:50 +0000] [Job 13] CAPT: waiting for 6 bytes
D [25/Nov/2013:08:38:50 +0000] [Job 13] CUPS_SC_CMD_DRAIN_OUTPUT received from driver...
D [25/Nov/2013:08:38:50 +0000] [Job 13] Read 6 bytes of back-channel data...
D [25/Nov/2013:08:38:50 +0000] [Job 13] Read 6 bytes of back-channel data...
D [25/Nov/2013:08:38:50 +0000] [Job 13] CAPT: waiting for 6 bytes
D [25/Nov/2013:08:38:50 +0000] [Job 13] CAPT: recv A0 E0 0C 00 12 8E 00 00 0F 00 00 00
D [25/Nov/2013:08:38:51 +0000] [Job 13] CAPT: send A0 E0 04 00
D [25/Nov/2013:08:38:51 +0000] [Job 13] Read 4 bytes of print data...
D [25/Nov/2013:08:38:51 +0000] [Job 13] Wrote 4 bytes of print data...
D [25/Nov/2013:08:38:51 +0000] [Job 13] CAPT: waiting for 6 bytes
D [25/Nov/2013:08:38:51 +0000] [Job 13] CUPS_SC_CMD_DRAIN_OUTPUT received from driver...
D [25/Nov/2013:08:38:51 +0000] [Job 13] Read 6 bytes of back-channel data...
D [25/Nov/2013:08:38:51 +0000] [Job 13] Read 6 bytes of back-channel data...
D [25/Nov/2013:08:38:51 +0000] [Job 13] CAPT: waiting for 6 bytes
D [25/Nov/2013:08:38:51 +0000] [Job 13] CAPT: recv A0 E0 0C 00 12 8E 00 00 0F 00 00 00
....

and so on. It seems the the same command is repeated all the time.

I also hare the complete the log files referring to the errors of previous posts, let me know if
you need them.

I hope this may help you.

bye
Laura

@agalakhov
Copy link
Owner

Thank you! Now everything is clear. I think I understand what's going on. It's waiting for the flag that's never set on this printer model. I'll try to fix it.
Regards,
Alex

@agalakhov
Copy link
Owner

On Mon, 25 Nov 2013 03:00:03 -0800
missla [email protected] wrote:

Hello Alex, I am here again.

This time the printer gives no error, but does not work.

Hi,

I tried to add experimental LBP3010 support. Could you please test it?

Regards,
Alex

@missla
Copy link
Contributor Author

missla commented Dec 20, 2013

Hello Alex, the printer still didn't work. I made some log file for your need, but I
noticed the each the time the printer looped in a different way. Here is just a couple
of example of the loop

D [18/Dec/2013:23:33:18 +0000] [Job 6] Read 4 bytes of print data...
D [18/Dec/2013:23:33:18 +0000] [Job 6] CUPS_SC_CMD_DRAIN_OUTPUT received from driver...
D [18/Dec/2013:23:33:18 +0000] [Job 6] Wrote 4 bytes of print data...
D [18/Dec/2013:23:33:18 +0000] [Job 6] CAPT: waiting for 6 bytes
D [18/Dec/2013:23:33:18 +0000] [Job 6] Read 6 bytes of back-channel data...
D [18/Dec/2013:23:33:18 +0000] [Job 6] CAPT: waiting for 82 bytes
D [18/Dec/2013:23:33:18 +0000] [Job 6] Read 64 bytes of back-channel data...
D [18/Dec/2013:23:33:18 +0000] [Job 6] CAPT: waiting for 18 bytes
D [18/Dec/2013:23:33:18 +0000] [Job 6] Read 18 bytes of back-channel data...
D [18/Dec/2013:23:33:18 +0000] [Job 6] CAPT: recv A8 A0 58 00 12 8E 00 00 0F 00 00 00 00 40 80 00
D [18/Dec/2013:23:33:18 +0000] [Job 6] CAPT: 00 00 00 00 00 00 00 00 00 00 00 00 56 00 00 00
D [18/Dec/2013:23:33:18 +0000] [Job 6] CAPT: 00 00 00 00 55 08 01 00 00 00 00 00 00 00 00 00
D [18/Dec/2013:23:33:18 +0000] [Job 6] CAPT: 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00
D [18/Dec/2013:23:33:18 +0000] [Job 6] CAPT: 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00
D [18/Dec/2013:23:33:18 +0000] [Job 6] CAPT: 00 00 00 00 00 00 00 00
D [18/Dec/2013:23:33:18 +0000] [Job 6] CAPT: printer status P1=1 P2=1 B=0 B1=0 nE=1
D [18/Dec/2013:23:33:18 +0000] [Job 6] CAPT: pages 0/0/0/0
D [18/Dec/2013:23:33:19 +0000] [Job 6] CAPT: send A8 A0 04 00
D [18/Dec/2013:23:33:19 +0000] [Job 6] Read 4 bytes of print data...
D [18/Dec/2013:23:33:19 +0000] [Job 6] CUPS_SC_CMD_DRAIN_OUTPUT received from driver...
D [18/Dec/2013:23:33:19 +0000] [Job 6] Wrote 4 bytes of print data...
D [18/Dec/2013:23:33:19 +0000] [Job 6] CAPT: waiting for 6 bytes
D [18/Dec/2013:23:33:19 +0000] [Job 6] Read 6 bytes of back-channel data...
D [18/Dec/2013:23:33:19 +0000] [Job 6] CAPT: waiting for 82 bytes
D [18/Dec/2013:23:33:19 +0000] [Job 6] Read 64 bytes of back-channel data...
D [18/Dec/2013:23:33:19 +0000] [Job 6] CAPT: waiting for 18 bytes
D [18/Dec/2013:23:33:19 +0000] [Job 6] Read 18 bytes of back-channel data...
D [18/Dec/2013:23:33:19 +0000] [Job 6] CAPT: recv A8 A0 58 00 12 8E 00 00 0F 00 00 00 00 40 80 00
D [18/Dec/2013:23:33:19 +0000] [Job 6] CAPT: 00 00 00 00 00 00 00 00 00 00 00 00 56 00 00 00
D [18/Dec/2013:23:33:19 +0000] [Job 6] CAPT: 00 00 00 00 55 08 01 00 00 00 00 00 00 00 00 00
D [18/Dec/2013:23:33:19 +0000] [Job 6] CAPT: 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00
D [18/Dec/2013:23:33:19 +0000] [Job 6] CAPT: 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00
D [18/Dec/2013:23:33:19 +0000] [Job 6] CAPT: 00 00 00 00 00 00 00 00
D [18/Dec/2013:23:33:19 +0000] [Job 6] CAPT: printer status P1=1 P2=1 B=0 B1=0 nE=1
D [18/Dec/2013:23:33:19 +0000] [Job 6] CAPT: pages 0/0/0/0

D [18/Dec/2013:23:33:51 +0000] [Job 7] Read 4 bytes of print data...
D [18/Dec/2013:23:33:51 +0000] [Job 7] Wrote 4 bytes of print data...
D [18/Dec/2013:23:33:51 +0000] [Job 7] CAPT: waiting for 6 bytes
D [18/Dec/2013:23:33:51 +0000] [Job 7] Read 6 bytes of back-channel data...
D [18/Dec/2013:23:33:51 +0000] [Job 7] CAPT: recv A2 A3 06 00 00 00
D [18/Dec/2013:23:33:51 +0000] [Job 7] CAPT: send A0 A2 0C 00 00 00 1E 00 00 00 00 00
D [18/Dec/2013:23:33:51 +0000] [Job 7] CUPS_SC_CMD_DRAIN_OUTPUT received from driver...
D [18/Dec/2013:23:33:51 +0000] [Job 7] Read 12 bytes of print data...
D [18/Dec/2013:23:33:51 +0000] [Job 7] Wrote 12 bytes of print data...
D [18/Dec/2013:23:33:51 +0000] [Job 7] CAPT: waiting for 6 bytes
D [18/Dec/2013:23:33:51 +0000] [Job 7] Read 6 bytes of back-channel data...
D [18/Dec/2013:23:33:51 +0000] [Job 7] CAPT: waiting for 2 bytes
D [18/Dec/2013:23:33:51 +0000] [Job 7] Read 2 bytes of back-channel data...
D [18/Dec/2013:23:33:51 +0000] [Job 7] CAPT: recv A0 A2 08 00 87 00 00 00
D [18/Dec/2013:23:33:51 +0000] [Job 7] CAPT: send A0 E0 04 00
D [18/Dec/2013:23:33:51 +0000] [Job 7] CUPS_SC_CMD_DRAIN_OUTPUT received from driver...
D [18/Dec/2013:23:33:51 +0000] [Job 7] Read 4 bytes of print data...
D [18/Dec/2013:23:33:51 +0000] [Job 7] Wrote 4 bytes of print data...
D [18/Dec/2013:23:33:51 +0000] [Job 7] CAPT: waiting for 6 bytes
D [18/Dec/2013:23:33:51 +0000] [Job 7] Read 6 bytes of back-channel data...
D [18/Dec/2013:23:33:51 +0000] [Job 7] CAPT: recv A0 E0 06 00 88 00
D [18/Dec/2013:23:33:52 +0000] [Job 7] CAPT: send A0 E0 04 00
D [18/Dec/2013:23:33:52 +0000] [Job 7] CUPS_SC_CMD_DRAIN_OUTPUT received from driver...

Each time I restarted the cups server and clean the error_log file before printing.
I have the complete the log files referring to these errors; let me know if you need them.

Looking at the Benoit Bolsee SPECS included into his lpb3010 driver for Solaris I notice the he
use some command (such as 0xA3A9 or 0xA2E1) that aren't in src/capt-command.h. Could the
lbp3010 use some different commands from the lbp2900 model?

btw I also noticed that in some system (such as knoppix 7.2.0) the driver didn't recognize the printer
until I changed the src/prnter.c line at line 80 into

    if (  strcmp(r->name, mdl)) {

It may be a gcc iusse.

Thank you for you interest in my printing trouble.

best regards
Laura

@agalakhov
Copy link
Owner

Hello Laura,

On Fri, 20 Dec 2013 08:24:05 -0800
missla [email protected] wrote:

Looking at the Benoit Bolsee SPECS included into his lpb3010 driver
for Solaris I notice the he use some command (such as 0xA3A9 or
0xA2E1) that aren't in src/capt-command.h. Could the lbp3010 use some
different commands from the lbp2900 model?

It does. However they mostly share the same command set. Many commands
are in fact optional.

LBP3010 does not use 0xE0A0 but I don't know about other commands yet.
It's likely that 0xA3A9 isn't really needed but who knows. 0xE1A2 has a
good chance to be mandatory. Looks like printer didn't initialize.

btw I also noticed that in some system (such as knoppix 7.2.0) the
driver didn't recognize the printer until I changed the src/prnter.c
line at line 80 into

  if (  strcmp(r->name, mdl)) {

It may be a gcc iusse.

That's strange. strcmp() returns 0 if match.

Thank you for you interest in my printing trouble.

best regards
Laura


Reply to this email directly or view it on GitHub:
#3 (comment)

@missla
Copy link
Contributor Author

missla commented Dec 23, 2013

Hi Alex, the strcmp() error isn't a gcc problem, but it may be caused by the assignment at line 76 of src/printer.c, because the mdl array is only ''size+1' length.

by,
Laura

@agalakhov
Copy link
Owner

On Mon, 23 Dec 2013 02:50:17 -0800
missla [email protected] wrote:

Hi Alex, the strcmp() error isn't a gcc problem, but it may be caused
by the assignment at line 76 of src/printer.c, because the mdl array
is only ''size+1' length.

Fixed, thanks.

@vivedin
Copy link

vivedin commented Apr 12, 2017

Hello agalakhov,

How you fixed it ??
please let me know I also had a message on cups
first it shows rendering completed but cant print i w8 such a long time, after cancle or restaring printer shows this msg CAPT: bad reply from printer, expected A0 E0 xx xx xx xx, got"

@missla
Copy link
Contributor Author

missla commented Jul 6, 2017

Hello @vivedin,

I tested commit 94b2bf2 on new debian Stretch and all is working fine.
Ensure yourself you have replaced Canon-LBP-2900.ppd with the new one from commit 7718f66 to fix resolution bug.
Let me know if you have further issues.

Regards,
Laura

@ghost
Copy link

ghost commented Jan 27, 2018

Hello,
I installed captdriver on Canon LBP 3050 and it works flawlessly, though I had to reboot after setup.
Thank you so much guys ^_^, I can finally use my old printer again.

Cheers

mounaiban referenced this issue in mounaiban/captdriver Apr 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants