View Issue Details

IDProjectCategoryView StatusLast Update
0000652Port RequestsPort Requestpublic2020-08-24 03:10
ReporterDavid McKenna Assigned To 
PrioritynormalSeverityminorReproducibilityN/A
Status closedResolutionopen 
PlatformIntel i3, H55OSeCSOS Version2.1
Summary0000652: Add HP PhotoSmart C309a to Tame scanners
Description Was wondering if you could add the HP PhotoSmart C309a printer scanner to the SCANNER.DAT database of TAME? I have attached the device file indicated in the TAME instructions. Scanning works fine from the command line.
Additional Information This is using TAME 1.03 with SANE-git 20150117 and hpaio 3.13.3.
TagsNo tags attached.
Attached Files
device.txt (3,708 bytes)   
Usage: scanimage [OPTION]...

Start image acquisition on a scanner device and write image data to
standard output.

Parameters are separated by a blank from single-character options (e.g.
-d epson) and by a "=" from multi-character options (e.g. --device-name=epson).
-d, --device-name=DEVICE   use a given scanner device (e.g. hp:/dev/scanner)
    --format=pnm|tiff      file format of output file
-i, --icc-profile=PROFILE  include this ICC profile into TIFF file
-L, --list-devices         show available scanner devices
-f, --formatted-device-list=FORMAT similar to -L, but the FORMAT of the output
                           can be specified: %d (device name), %v (vendor),
                           %m (model), %t (type), %i (index number), and
                           %n (newline)
-b, --batch[=FORMAT]       working in batch mode, FORMAT is `out%d.pnm' or
                           `out%d.tif' by default depending on --format
    --batch-start=#        page number to start naming files with
    --batch-count=#        how many pages to scan in batch mode
    --batch-increment=#    increase page number in filename by #
    --batch-double         increment page number by two, same as
                           --batch-increment=2
    --batch-print          print image filenames to stdout
    --batch-prompt         ask for pressing a key before scanning a page
    --accept-md5-only      only accept authorization requests using md5
-p, --progress             print progress messages
-n, --dont-scan            only set options, don't actually scan
-T, --test                 test backend thoroughly
-A, --all-options          list all available backend options
-h, --help                 display this help message and exit
-v, --verbose              give even more status messages
-B, --buffer-size=#        change input buffer size (in kB, default 32)
-V, --version              print version information

Options specific to device `hpaio:/net/Photosmart_C309a_series?ip=192.168.0.201':
  Scan mode:
    --mode Lineart|Gray|Color [Color]
        Selects the scan mode (e.g., lineart, monochrome, or color).
    --resolution 75|100|150|200|300|600dpi [75]
        Sets the resolution of the scanned image.
  Advanced:
    --contrast -127..127 [0]
        Controls the contrast of the acquired image.
    --brightness -127..127 [0]
        Controls the brightness of the acquired image.
    --compression None|JPEG [JPEG]
        Selects the scanner compression method for faster scans, possibly at
        the expense of image quality.
    --jpeg-quality 0..100 [10]
        Sets the scanner JPEG compression factor. Larger numbers mean better
        compression, and smaller numbers mean better image quality.
    --batch-scan[=(yes|no)] [no]
        Enables continuous scanning with automatic document feeder (ADF).
    --source Auto|Flatbed|ADF [Auto]
        Selects the scan source (such as a document-feeder).
    --duplex[=(yes|no)] [no]
        Enables scanning on both sides of the page.
  Geometry:
    --length-measurement Unknown|Approximate|Padded [Padded]
        Selects how the scanned image length is measured and reported, which
        is impossible to know in advance for scrollfed scans.
    -l 0..215.9mm [0]
        Top-left x position of scan area.
    -t 0..381mm [0]
        Top-left y position of scan area.
    -x 0..215.9mm [215.9]
        Width of scan-area.
    -y 0..381mm [381]
        Height of scan-area.

Type ``scanimage --help -d DEVICE'' to get list of all options for DEVICE.

List of available devices:
    hpaio:/net/Photosmart_C309a_series?ip=192.168.0.201 test:0 test:1
device.txt (3,708 bytes)   

Activities

David McKenna

2015-05-04 20:02

reporter   ~0003040

Made a mistake, I'm using TAME 1.05.

psmedley

2015-05-06 09:48

administrator   ~0003041

...maybe... will need to see if I still have the executable to modify scanner.dat

I think the .DAT is in INI file format, so worst cas eyou may be able to use something like initor to modify it....

David McKenna

2015-05-16 13:11

reporter   ~0003042

You're right, the .DAT file is in .ini file format. I can't make head or tail of many of the entries though, they are labelled A, B, C... and are not always in sequence. Some are obvious, but others have lots of binary characters I have no idea what they mean. Is there a guide anywhere?

David McKenna

2015-06-21 03:24

reporter   ~0003043

I was able to get Tame working with this scanner. I had to create an alias 'C309a' backend by creating a 'dll.aliases' file in the sane.d directory with one line:

alias C309a hpaio:/net/Photosmart_C309a_series?ip=192.168.0.201

 Then I used 'C309a' as the backend in the 'A' key for my scanner in SCANNER.DAT. Also had to create a blank 'C309a.conf' file in the sane.d directory (or Tame won't start). Was also able to set up all the control parameters for this scanner.

Issue History

Date Modified Username Field Change
2015-05-03 16:55 David McKenna New Issue
2015-05-03 16:55 David McKenna File Added: device.txt
2015-05-04 20:02 David McKenna Note Added: 0003040
2015-05-06 09:48 psmedley Note Added: 0003041
2015-05-16 13:11 David McKenna Note Added: 0003042
2015-06-21 03:24 David McKenna Note Added: 0003043
2020-08-24 03:10 psmedley Status new => closed