Le dimanche 10 février 2008 22:35, Erik Andrén a écrit :
> Hi,
> By sniffing the windows driver I have created the attached patch which
> inits the webcam some more.
> Using this patch, the camera works reliably every time for me, not needing
> to reinsert the module a number of times.
> I refactored the code a bit and pulled out the actual hex data into a
> couple of arrays and used some loops to create the actual writes, as I felt
> that this made the code more readable and separated the actual firmware
> data from the initialization function. I'm not too familiar with svn but
> created the patch with using "svn diff", I hope this is the right way of
> doing it.
>
> Also, I've tried to investigate the pitch problem but haven't fully wrapped
> my head around the problem.
> What is needed to be done with a frame and the pitch to get a proper image?
>
> Please review the patch and commit if appropriate!
>
> Regards,
> Erik Andrén

Hello Erik,

from our investiguations on this sensor+bridge binome, we know that
all your table is explained as follow:

works 4 by 4 bytes.

b0:=0x13 is write bridge_register
b1&b2:=16bit address you can read in your .csr file (clear text)
b3:= value set to register
unfortunately, no doc exist for bridge commands but one us is
working on the 5603c microcode ;-) Maybe some idea to apply
to 5602.


#define GET_FEATURES            0x12
#define SET_BRIDGE              0x13
#define GET_BRIDGE              0x14
#define SET_MICROCODE           0x15
#define SET_MICROCODE_DONE      0x10
#define SET_SENSOR              0x17
#define GET_SENSOR              0x18
....


I don't recognize other ccommands. (0x23)
but sure they are for the SENSOR connected to the bridge.

b0:=23 is the commond SET_SENSOR_variation_for5602
b1: is the i2c address you can confirm in sensor documentation
b2: is the sensor register
b3: is value set to it
It is relativly easy the 'find' the Sensor Init sequence.

A loop exists in many drivers, waiting for a 'bit' change after
a command is sent. 
When you see repetitive 'commands', it
is certainly such a loop that you can 'rewrite'.


Franck


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
M560x-driver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/m560x-driver-devel

Reply via email to