[sane-devel] Testing for Canon PIXMA MG5420

James Duvall jamestemp8873-sane at yahoo.com
Tue Apr 4 23:52:31 UTC 2017


Rolf,


I checked the buttons on my Pixma MG5420.  The data you requested is pasted at the end of this email (connected via usb only, wifi disabled).  I did get output similar to what you posted, but I still can't figure out how to initiate scanning by pushing the buttons on the scanner.  At the T=14.283 log entry, it looks like it maybe captures the button press, but nothing happened.

Also, I re-checked all scanning resolutions and the 1200 and 2400 dpi resolutions do not work.  The scanner will accept these modes and produce a file (png in my test), but it appears to be multiple scans layered on top of each other.  This is not terribly surprising to me since the windows driver only allows me to scan up to 600 dpi.  The 75/150/300/600 dpi modes all work great.

Cheers,james
##command
james at Al-Khwarizmi:~# SANE_DEBUG_PIXMA=11 scanimage -A

##log of output
[sanei_debug] Setting debug level of pixma to 11.
[pixma] pixma is compiled with pthread support.
[pixma] pixma version 0.17.32
[pixma] pixma_collect_devices() found Canon PIXMA MG5400 Series at libusb:003:003
[bjnp] setup_udp_socket: ERROR - connect failed- Network is unreachable
[bjnp] udp_command: ERROR - Can not setup socket
[bjnp] bjnp_init_device_structure: Cannot read mac address, skipping this scanner
[bjnp] setup_udp_socket: ERROR - connect failed- Network is unreachable
[bjnp] udp_command: ERROR - Can not setup socket
[bjnp] add_scanner: ERROR - Cannot read scanner make & model: bjnp://192.168.0.3
[pixma] pixma_find_scanners() found 1 devices
[pixma] pixma_collect_devices() found Canon PIXMA MG5400 Series at libusb:003:003
[bjnp] setup_udp_socket: ERROR - connect failed- Network is unreachable
[bjnp] udp_command: ERROR - Can not setup socket
[bjnp] bjnp_init_device_structure: Cannot read mac address, skipping this scanner
[bjnp] setup_udp_socket: ERROR - connect failed- Network is unreachable
[bjnp] udp_command: ERROR - Can not setup socket
[bjnp] add_scanner: ERROR - Cannot read scanner make & model: bjnp://192.168.0.3
[pixma] pixma_open(): Canon PIXMA MG5400 Series
[pixma] *mp150_open***** This is a generation 4 scanner.  *****

All options specific to device `pixma:04A91764_408543':
  Scan mode:
    --resolution auto||75|150|300|600|1200|2400dpi [75]
        Sets the resolution of the scanned image.
    --mode auto|Color|Gray|Lineart [Color]
        Selects the scan mode (e.g., lineart, monochrome, or color).
    --source Flatbed [Flatbed]
        Selects the scan source (such as a document-feeder). Set source before
        mode and resolution. Resets mode and resolution to auto values.
    --button-controlled[=(yes|no)] [no]
        When enabled, scan process will not start immediately. To proceed,
        press "SCAN" button (for MP150) or "COLOR" button (for other models).
        To cancel, press "GRAY" button.
  Gamma:
    --custom-gamma[=(auto|yes|no)] [yes]
        Determines whether a builtin or a custom gamma-table should be used.
    --gamma-table auto|0..255,...
        Gamma-correction table.  In color mode this option equally affects the
        red, green, and blue channels simultaneously (i.e., it is an intensity
        gamma table).
    --gamma auto|0.299988..5 [2.2]
        Changes intensity of midtones
  Geometry:
    -l auto|0..216.069mm [0]
        Top-left x position of scan area.
    -t auto|0..297.011mm [0]
        Top-left y position of scan area.
    -x auto|0..216.069mm [216.069]
        Width of scan-area.
    -y auto|0..297.011mm [297.011]
        Height of scan-area.
  Buttons:
    --button-update
        Update button state
[pixma] INTR T=5.240 len=32
[pixma]  00000000:00 00 00 01 00 00 00 00  00 00 00 00 00 00 00 00 
[pixma]  00000010:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
[pixma] 
[pixma] WARNING:send_time() disabled!
[pixma] INTR T=5.496 len=32
[pixma]  00000000:00 00 00 01 00 00 00 00  00 00 00 00 00 00 00 00 
[pixma]  00000010:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
[pixma] 
[pixma] WARNING:send_time() disabled!
    --button-1 <int> [0] [read-only]
        Button 1
    --button-2 <int> [0] [read-only]
        Button 2
    --original <int> [0] [read-only]
        Type of original to scan
    --target <int> [0] [read-only]
        Target operation type
    --scan-resolution <int> [0] [read-only]
        Scan resolution
  Extras:
    --threshold auto|0..100% (in steps of 1) [inactive]
        Select minimum-brightness to get a white point
    --threshold-curve auto|0..127 (in steps of 1) [inactive]
        Dynamic threshold curve, from light to dark, normally 50-65

[pixma] pixma_close(): Canon PIXMA MG5400 Series

##command
james at Al-Khwarizmi:~# SANE_DEBUG_PIXMA=11 scanimage --button-controlled=yes >> testimage

##log of output
[sanei_debug] Setting debug level of pixma to 11.
[pixma] pixma is compiled with pthread support.
[pixma] pixma version 0.17.32
[pixma] pixma_collect_devices() found Canon PIXMA MG5400 Series at libusb:003:003
[bjnp] setup_udp_socket: ERROR - connect failed- Network is unreachable
[bjnp] udp_command: ERROR - Can not setup socket
[bjnp] bjnp_init_device_structure: Cannot read mac address, skipping this scanner
[bjnp] setup_udp_socket: ERROR - connect failed- Network is unreachable
[bjnp] udp_command: ERROR - Can not setup socket
[bjnp] add_scanner: ERROR - Cannot read scanner make & model: bjnp://192.168.0.3
[pixma] pixma_find_scanners() found 1 devices
[pixma] pixma_collect_devices() found Canon PIXMA MG5400 Series at libusb:003:003
[bjnp] setup_udp_socket: ERROR - connect failed- Network is unreachable
[bjnp] udp_command: ERROR - Can not setup socket
[bjnp] bjnp_init_device_structure: Cannot read mac address, skipping this scanner
[bjnp] setup_udp_socket: ERROR - connect failed- Network is unreachable
[bjnp] udp_command: ERROR - Can not setup socket
[bjnp] add_scanner: ERROR - Cannot read scanner make & model: bjnp://192.168.0.3
[pixma] pixma_open(): Canon PIXMA MG5400 Series
[pixma] *mp150_open***** This is a generation 4 scanner.  *****
[pixma] [pixma] Reader task started
Reader task id=139816746080000 (threaded)
[pixma] ==== Button-controlled scan mode is enabled.
[pixma] ==== To proceed, press 'SCAN' or 'COLOR' button. To cancel, press 'GRAY' or 'END' button.
[pixma] INTR T=5.707 len=32
[pixma]  00000000:00 00 00 01 00 00 00 00  00 00 00 00 00 00 00 00 
[pixma]  00000010:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
[pixma] 
[pixma] WARNING:send_time() disabled!
[pixma] INTR T=5.963 len=32
[pixma]  00000000:00 00 00 01 00 00 00 00  00 00 00 00 00 00 00 00 
[pixma]  00000010:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
[pixma] 
[pixma] WARNING:send_time() disabled!
[pixma] INTR T=6.731 len=32
[pixma]  00000000:00 00 00 01 00 00 00 00  00 00 00 00 00 00 00 00 
[pixma]  00000010:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
[pixma] 
[pixma] WARNING:send_time() disabled!
[pixma] INTR T=14.283 len=32
[pixma]  00000000:00 00 00 00 01 01 03 01  01 00 00 00 00 00 00 00 
[pixma]  00000010:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
[pixma] 
[pixma] INTR T=17.739 len=32
[pixma]  00000000:00 00 00 01 00 00 00 00  00 00 00 00 00 00 00 00 
[pixma]  00000010:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
[pixma] 
[pixma] WARNING:send_time() disabled!
[pixma] INTR T=28.746 len=32
[pixma]  00000000:00 00 00 01 00 00 00 00  00 00 00 00 00 00 00 00 
[pixma]  00000010:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
[pixma] 
[pixma] WARNING:send_time() disabled!
[pixma] INTR T=39.754 len=32
[pixma]  00000000:00 00 00 01 00 00 00 00  00 00 00 00 00 00 00 00 
[pixma]  00000010:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
[pixma] 
[pixma] WARNING:send_time() disabled!
[pixma] INTR T=50.761 len=32
[pixma]  00000000:00 00 00 01 00 00 00 00  00 00 00 00 00 00 00 00 
[pixma]  00000010:00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
[pixma] 
[pixma] WARNING:send_time() disabled!
   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20170404/5173438b/attachment-0001.html>


More information about the sane-devel mailing list