Hi, Louis.
18.11.2021 16:32, Louis Lagendijk пишет:
I digged a bit. It looks like the scanner is returning the wrong
identity at the MDL part:
[23:30:31.029950] [bjnp] get_scanner_id: Scanner identity string =
MFG:CANON;CMD:MFNP1,MultiPASS 2.1;MDL:Canon MF110/910
Series;CLS:IMG;DES:Canon MF110/910 Series; - length = 96
parse_IEEE1284_to_model function expects something like "MDL:MF110",
but here is "MDL:Canon MF110/910 Series".
Almost correct. The model description in the backend may be wrong. It
is always a guess what the scanner returns, but all scanners so far
returned only the model number in the MDL string. Try adding a line
with corrected model right next to the old one or just replace the old
one.
That was the first thing I did (see my first letter):
diff --git a/backend/pixma/pixma_imageclass.c b/backend/pixma/pixma_imageclass.c
index ae061807f..087a26cb5 100644
--- a/backend/pixma/pixma_imageclass.c
+++ b/backend/pixma/pixma_imageclass.c
@@ -977,6 +977,7 @@ const pixma_config_t pixma_iclass_devices[] = {
DEV ("Canon imageCLASS MF733C", "MF731C/733C", MF731_PID, 600, 0, 637, 1050,
PIXMA_CAP_ADFDUP), /* however, we need this for ethernet/wifi */
DEV ("Canon imageCLASS D570", "D570", D570_PID, 600, 0, 640, 877, 0),
DEV ("Canon i-SENSYS MF110/910 Series", "MF110", MF110_PID, 600, 0, 640,
1050, 0),
+ DEV ("Canon i-SENSYS MF113w", "Canon MF110/910 Series", MF110_PID, 600, 0,
640, 1050, 0),
DEV ("Canon i-SENSYS MF520 Series", "MF520", MF520_PID, 600, 0, 640, 1050,
PIXMA_CAP_ADFDUP),
DEV ("Canon i-SENSYS MF420 Series", "MF420", MF420_PID, 600, 0, 640, 1050,
PIXMA_CAP_ADFDUP),
DEV ("Canon i-SENSYS MF260 Series", "MF260", MF260_PID, 600, 0, 640, 1050,
PIXMA_CAP_JPEG | PIXMA_CAP_ADFDUP),
The result was:
[23:50:24.631130] [bjnp] lookup_scanner: Scanner model found: Name Canon
MF110/910 Series(Canon i-SENSYS MF113w) matches Canon MF110/910 Series
[23:50:24.631137] [bjnp] add_scanner: New scanner added:
mfnp://192.168.128.30:8610/timeout=10000, serial 192.168.128.30, mac address:
c4ac59aafd5b.
[23:50:24.631146] [bjnp] sanei_bjnp_find_devices: Select returned, time left
0.499998....
[23:50:24.631154] [bjnp] sanei_find_devices: Discover response:
[23:50:24.631160] [bjnp] 00000000:4d 46 4e 50 82 01 00 00 00 00 00 00 00 00
00 10 [23:50:24.631166] [bjnp] 00000010:00 01 08 00 06 04 c4 ac 59 aa fd 5b
c0 a8 80 1e [23:50:24.636638] [bjnp] get_scanner_name: Name for 192.168.128.30
not found : Name or service not known
[23:50:24.636653] [bjnp]
bjnp_allocate_device(mfnp://192.168.128.30:8610/timeout=10000) 1
[23:50:24.642054] [bjnp] get_scanner_name: Name for 192.168.128.30 not found :
Name or service not known
[23:50:24.642077] [bjnp] setup_udp_socket: Setting up a UDP socket, dest:
192.168.128.30 port 8610
[23:50:24.644112] [bjnp] bjnp_get_scanner_mac_address: Discover response:
[23:50:24.644132] [bjnp] 00000000:4d 46 4e 50 82 01 00 00 00 00 00 00 00 00
00 10 [23:50:24.644139] [bjnp] 00000010:00 01 08 00 06 04 c4 ac 59 aa fd 5b
c0 a8 80 1e [23:50:24.644146] [bjnp] add_scanner: Scanner at
mfnp://192.168.128.30:8610/timeout=10000 was added before, good!
[23:50:25.144494] [bjnp] sanei_find_devices: scanner discovery finished...
device `pixma:Canon MF110/910 Series_192.168.128.30' is a CANON Canon i-SENSYS
MF113w multi-function peripheral
device `escl:https://192.168.128.30:443' is a Canon MF110/910 platen scanner
And now I can scan.
--
Mekras