No subject


Thu Aug 20 06:46:28 UTC 2009


0x51(address), 0x3a and 0x3b (values) but im not sure how this
translates to the settings in genesys_devices.c:<br>
<br>
<font face="Console">&nbsp; {DAC_PLUSTEK_3600,{0x00, 0x3d, 0x08, 0x00}<br>
&nbsp;&nbsp; , {0x00, 0x00, 0x00}<br>
&nbsp;&nbsp; , {0xe1, 0xe1, 0xe1}<br>
&nbsp;&nbsp; , {0x93, 0x93, 0x93}<br>
&nbsp;&nbsp; , {0x00, 0x19, 0x06}<br>
&nbsp;&nbsp; }</font><br>
<br>
Now I think the first 4 values correspond to addresses 0x00 - 0x03 of
the DAC, but the following arrays are a bit of a mystery to me. I have
had a look at the log from run-genesys and it seems that they are
trying to set many DAC registers but the Snoop reveals that only
fe_writes to addresses 0x00 - 0x07 are made. <br>
<br>
As when I try a scan everything (aside from the light not being on)
seems to be reasonable but results in a garbled image I think it might
just be a case of getting the light on and setting up the DAC properly.
If you could help me understand the DAC settings I might be able to
investigate the matter further.<br>
<br>
Thanks<br>
<br>
Chris<br>
<br>
<br>
On 12/29/2009 07:46 AM, stef wrote:
<blockquote cite="mid:200912290846.07439.stef.dev at free.fr" type="cite">
  <pre wrap="">Le jeudi 24 d&eacute;cembre 2009 06:07:23 Chris Berry, vous avez &eacute;crit :
  </pre>
  <blockquote type="cite">
    <pre wrap="">Just a quick update, I had to take a little time off from the project
but I should be able to work on it more now. I have an update at
<a class="moz-txt-link-freetext" href="http://sites.google.com/site/bez625/updates-1/update">http://sites.google.com/site/bez625/updates-1/update</a> with new log files
for smaller scan and preview snoops.

Stef is there any chance you could explain the layout of your script to
me a little, for instance

URB  7278  control  0xc0 0x0c 0x8e 0x20 len     1 read  0x01

I take it this means:

URB &lt;URB Num&gt; &lt;URB Type&gt; &lt;4 hex values&gt; len &lt;Length&gt; &lt;r/w&gt; &lt;data&gt;

What are the 4 hex values for? Also anything else helpful will be
appreciated. I'm not certain how I can better find the values I need for
genesys_devices.c, I look for the hex values of the registers that need
to be set and cant find them in the new reduced log files. Maybe some of
these values are only set at power up and not before a scan or preview?

Chris

    </pre>
  </blockquote>
  <pre wrap="">
	Hello,

	these numbers are to be converted in sanei_usb_control_msg() function calls. 
You can have a look at the defines in genesys_low.h around line 113 for the 
known values. The 0x8e value isn't defined and currently used in the genesys 
backend. However, after looking at the logs you posted, I think it is some 
data reading. The trouble is that currently there is no such access to data 
for the supported models. While I think it could be turned to something like  
sanei_genesys_bulk_read(), you'll need to experiment. As far I understand, 
these are vendor specific accesses. I couldn't find these values in any USB 
documents.

	You are right that some register values don't change much and are set up 
early, and not at every scan.

Regards,
	Stef
	

  </pre>
</blockquote>
<br>
</body>
</html>

--------------020801010007060901080109--

------------=_1262168299-9015-100
Content-Type: text/plain
Content-Disposition: inline
MIME-Version: 1.0
X-Mailer: MIME-tools 5.420 (Entity 5.420)
Content-Description: Edinburgh University charitable status
Content-Transfer-Encoding: 7bit

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

------------=_1262168299-9015-100--



More information about the sane-devel mailing list