-
Notifications
You must be signed in to change notification settings - Fork 61
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
Information in response to 0xA1A1 command #38
Comments
CAPT: recv A1 A1 14 00 00 03 DD 00 01 00 FF 7F 10 00 00 00 FF FF 01 00 LBP1120 at current state |
Thanks @ra1nst0rm3d for the info on the LBP1120. I guess 0xA1A1 can't be used for autoconfiguration on older (CAPT 1.x?) devices 😞 It may still hold vital clues to implementing perfect support though. |
Here is the response of a LBP3010/LBP3018/LBP3050: |
Thanks @missla for the info and the updates to the SPECS file. It seems bytes 6-7 from the 0xA1A1 response are meant to be put in bytes 2-3 of a 0xD0A0 command, but this is not the case, as seen with the LBP2900. The '2900 uses the same value as the '3000. |
Looks like major parts of commands are just hardcoded. Even the size bytes, there are incorrect size bytes in some commands. |
response of a LBP7010c:
|
Thanks @Alexey5647, I think we have confirmed what bytes 60 and 61 mean now. From the info I could find in this version of the user manual (USRM184862), the LBP 7010 with its 2013 release date might be among the last CAPT printers. Also, this might be the smallest and lightest colour laser printer I know (only 400x290x223mm with all trays closed and ~13Kg in ready-to-use configuration). |
I believe that we are closing in on the exact use of the 0xA1A1 command (dubbed
CAPT_IDENT
) but your help is needed to solve this mystery completely. 🕵️If anyone has a CAPT printer and a few minutes to an hour to spare, maybe post your printer's
0xA1A1
response, along with the printer model name (and add-ons where applicable)?I am especially looking for
0xA1A1
responses from CAPT printers with A3-size printing, colour printing, optional trays, network cards and also printers made 2003 and earlier.Getting the 0xA1A1 response
The
0xA1A1
response may be obtained from several sources:cupsctl --debug-logging
before the last print job. Debug logging may be switched off by runningcupsctl --no-debug-logging
. If you get a connection reset by peer error, try running the command again.grep -i -n6 "A1 A1" /var/log/cups/error_log
to show only lines near the A1 A1 responses.zcat /var/log/cups/error_log.2.gz | grep -i -n6 "A1 A1" -
on older logs (error_log.2.gz
and older) that have been automatically compressed.{0xA1, 0xA1, 0x04, 0x00}
to the printer, read the printer andprintf()
the response and so on...Thanks in advance for your help!
Details
This command appears to return some kind of autoconfiguration constant to set up printers without description files. @agalakhov has suggested in the
SPECS
file that it contains info about "printer capabilities". This information would have been useful to network printing managers, like Canon's NetSpot.I think this string remains the same per model, but I am speculating that it may change if optional hardware is installed or removed. This may be a viable method of generating PPD files.
Response Format as Currently Known
The table below shows what I think the response contains. With your help, we can verify this information and find out the missing bits.
All 16-bit values are shown in big endian.
Scroll right on the table for more printers when viewing on a narrower or smaller screen.
Sources:
LBP2900: Issue #7 comment
LBP6000: mounaiban#11
LBP6020: mounaiban#22
Footnotes
LBP5200 without optional tray and without network card ↩
The Canon LBP 1120 has 512KB of RAM and 32767B x 16 == 524272B which rounds up to 512KiB 🤓
However, doing the same math the other devices results in a memory size twice as large as specified. LBP3000 is claimed to have 2MB, but 65,520B x 64 == 4,193,280B which rounds up to 4MiB. LBP7200 is claimed to have 16MB; 65,520B x 512 == 33,546,240B which rounds up to 32MiB. ↩
According to section F-21 of the LBP7200C User's Guide, only a select number of paper sizes are supported by the duplexer for auto 2-sided printing: B5 (182x257mm), Executive, A4, Letter, Foolscap, Legal (215.9x355.6mm). The largest of the select sizes was Legal, and the smallest was B5. ↩
X/Y resolution may be swapped, but it doesn't matter for now because X and Y-resolution is the same for all known devices ↩
My wild guess: print engine family? Models of the same family are documented by the same service manual. Examples: LBP2900 & 3000, LBP 3100 & 6000... ↩
Some devices have a (much) slower full-colour printing speed: e.g. LBP5200 uses a carousel to swap between four cartridges to dispense toner onto a transfer belt, making the imaging phase a four-pass process. This trades size and complexity for printing speed. ↩
The text was updated successfully, but these errors were encountered: