TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

Query current State?

Forums › TWAIN Classic › Query current State?

  • This topic has 2 replies, 2 voices, and was last updated 9 years, 2 months ago by clivew.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • October 26, 2011 at 5:39 pm #22714 Reply
    clivew
    Participant
    • Topics - 4
    • Replies - 12
    • Total Posts - 16

    I can not find a call that returns the current state of a source.
    Is there one?

    I am running into some predictable but intermittent failures (I know the steps to reproduce it; but, so far, have not figured out what is different) when changing the CAP_DUPLEXENABLED value and I would like to be able to check the state of the source before making the call as part of my debugging process.

    MSG_GET always works; but that does not have to be in state 4 as far as I can read the specifications.

    FYI: Current scanner in question is Canon DR-2510C

    Any suggestions welcomed.

    Clive

    November 2, 2011 at 12:01 am #25489 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    there isn’t a call to get the current state, you need to track it.

    check a known source, Canon don’t have a great reputation – run a Kodak driver (like an i30/i40) in simulation mode.

    EDITED: there wasn’t one in the 1.9 spec

    November 2, 2011 at 12:39 am #25490 Reply
    clivew
    Participant
    • Topics - 4
    • Replies - 12
    • Total Posts - 16

    Thanks gabe.
    That is what it looked like.

    Tracking it is not much use for debugging.
    I had a call that was failing and wanted to check the current state in case it had somehow changed on me and I had lost track.

    The truth turned out to be that trying to set CAP_DUPLEXENABLED to True for the Canon DR-2510C fails if CAP_XFERCOUNT is currently 1 (one).
    Any other value does does not fail for example 3.

    If you want to follow the TWAIN Capability Ordering documentation you have to set CAP_XFERCOUNT twice.
    Once before CAP_DUPLEXENABLED to any acceptable value (e.g. 2) and once in its proper place near the end to the actual value you want.

    Clive

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Query current State?
Your information:




Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • EPSON V600 TWAIN and WIA on Windows 10
  • When and how to use WaitForEvents command ?
  • Problem enumerating list of installed scanners in windows server 2012
  • Failed to create TWAIN progress! Error code is 1260.
  • To get the list of scanners from javascript client side (browser)
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.