[sane-devel] ASPI & TWAIN debug logs

m. allan noah anoah at pfeiffer.edu
Sat Jul 16 20:41:37 UTC 2005


gregory-

what fujitsu scanner are you working with? i can get programming specs for 
most of their models, and at least for the scsi ones, they are good enough 
to make sure the sane driver works. windows dumps are helpful to see 
fujitsu's code in action, but actual docs can save alot of time...

allan
(occasional fujitsu backend maintainer)

On Sat, 16 Jul 2005, Gregory C. Johnson wrote:

>> "Gregory C. Johnson" <lists.ix.sane-devel at gregjohnson.com> schrieb am
>> 14.07.05 18:32:55:
>>> I'm looking for a way to log SCSI events under Win98 or 2000...  Do you
>>> know of any beyond the methods listed in
>>> http://www.meier-geinitz.de/sane/misc/develop.html ?
>>
>> Hi Greg,
>>
>> just from their high level principles... I haven't used them so far. You
>> might also take a look at some samples for an ASPI logger to be found at
>> http://www.cdrlabs.com/articles/index.php?articleid=4
>
> Mr. Richard,
>
> That is EXACTLY what I'd remembered seeing a number of months back and
> couldn't find again!  THANK YOU!
>
> Mr. Henning, may I suggest adding this reference (and perhaps the source
> code?) to your develop page?
>
> Aditionally, I should mention that I have had promising results with two
> invaluable tools from SysInternals - Regmon and Filemon.
>
> Anyone forced to work under windows should get to know these utilities, as
> they will show you registry and file accesses, respectively.  In what I
> suspect might well be a widespread practice, I found that the TWAIN driver
> queried "HKLM/Software/Fujitsu/Fujitsu Limited TWAIN Driver/Log/Level".
> Setting this value to FFFF produced an scan so slow the scanner paused
> repeatedly to let the system catch up, and created a 100k file named
> 'Fjtw32.log', which begins like:
>
> Fjtw32.ds  : Version 7.3.5
> Log Start  : Fri Jul 15 00:38:24 2005
> Application: Version       :2.0
>             VersionInfo   :Version 2.9
>             Protocol      :1.9
>             Manufacture   :Fujitsu
>             ProductFamily :Fujitsu Scanner Utilities
>             ProductName   :Fujitsu Scan Control2
>
> [Message] : DG_CONTROL/DAT_IDENTITY/MSG_OPENDS
>            Id = 203
>            Version = MajorNum = 7
>                      MinorNum = 3
>                      Language = 13
>                      Country = 81
>                      Info = Version 7.03
>            ProtocolMajor = 1
>            ProtocolMinor = 7
>            SupportedGroups = 3
>            Manufacture = Fujitsu
>            ProductFamily = Fujitsu TWAIN Data Sources
>            ProductName = Fujitsu Limited TWAIN Driver
> [Command] : Inquiry
>            SRB  :02 00 00 08 00 00 00 00 06 00 00 00 24 00 00 00
>                 :00 00 00 00 12 06 00 00 00 00 00 00 00 00 00 00
>                 :00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>            CDB  :12 00 00 00 24 00 00 00 00 00 00 00 00 00 00 00
>            Status = 1
>            Data [Receive]
>                 :06 00 02 02 5b 00 00 00 46 43 50 41 20 20 20 20
>                 :53 63 61 6e 50 61 72 74 6e 65 72 20 36 30 30 43
>                 :32 2e 30 30
> [Command] : Test Unit Ready
>            SRB  :02 00 00 10 00 00 00 00 06 00 00 00 00 00 00 00
>                 :00 00 00 00 12 06 00 00 00 00 00 00 00 00 00 00
>                 :00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>            CDB  :00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>            Status = 1
> [Command] : Test Unit Ready
>
>
>

-- 
"so don't tell us it can't be done, putting down what you don't know.
money isn't our god, integrity will free our souls" - Max Cavalera



More information about the sane-devel mailing list