I obtain a max 8ms sync jitter between camera (usb remot), anyone have some tips to improve, thx alot?
Some more background.
This test, for SX150IS, used "normal" usb sync for 88 stereo pairs:
https://chdk.setepontos.com/index.php?topic=6953.msg120316#msg120316 I used a CRT to measure sync. The results were unexpectedly good. The average mis-sync was 0.37ms and maximum was 5.1ms . The test used a physical spst switch - chdkptp was not used.
I had actually expected results similar to those in waterwingz test, for A1200, here:
https://chdk.setepontos.com/index.php?topic=8312.msg107601#msg107601 i.e. the distribution referred to for
Normal CHDK sync method enabled (i've attached the original diagram from that post here). That test used a single camera triggered by a microcontroller.
I do not understand why the SX150IS results were so good cf A1200.
Edit:
Having said this, Microfunguy did mention, prior to the availability of vnd's precision sync code, sub 1ms sync "most" of the time (in SDM) here:
Presumably as a consequence of the nature of multi-tasking (tasks having to yield at random times), most results have sub-millisecond error whilst the rogue shots are many milliseconds in error.
Although not sure, I don't think the CHDK / SDM code for "normal sync" would have been materially different at that time.
I cannot currently find the result set but a subsequent SX150IS test of 500 stereo pairs, using the
vnd precsion sync code referred to in waterwingz post resulted in a similar distribution of results to that of the original 88 pair test BUT also included 3 pairs in which the mis-sync was approximately 33ms (i.e. seemingly similar to the
green distribution shown in waterwingz experiment).
Before considering these 33ms "outliers" - I do not understand why the "precision" sync results were no better than the "normal" sync results. Neither have I since conducted a larger quantity test with "normal" sync to identify whether mis-sync much greater than 5.1ms occurs infrequently.
In any case, philmoz suggested a fix to address these "precision sync" infrequent "outlier" mis-sync occurrences here (all of around a single 33ms timing period):
https://chdk.setepontos.com/index.php?topic=13363.msg136293#msg136293I had that built and then tested 1000 stereo pairs here:
https://chdk.setepontos.com/index.php?topic=13363.msg136349#msg136349The Maximum Mis-Sync was 7.57ms and average 0.13ms. The single timing period problem outlier's seem solved for SX150IS.
As the precision sync code stands there is probably a delay of 4 x std periods (around 132ms) between usb release and exposure start but that could be camera dependent (also, if ambient light is dropped low/very low after focus I suspect it will also destroy precision sync). My comment here:
https://chdk.setepontos.com/index.php?topic=13273.msg138690#msg138690suggests this delay could be reduced to 3 x std periods (approx 99ms). I plan to test that soon, after a ptp sync investigation, but don't currently have a chdk build environment.
To enable the precision sync code (without my suggested changes) the camera's platform_camera.h file is included as described here:
https://chdk.setepontos.com/index.php?topic=13273.msg138775#msg138775 If you are interested in testing precision sync someone will probably build that for you if you mention it.
Are you triggering the 5 cameras, directly, from a single digital i/o?How did you measure the 8ms max mis-sync & how many 5 cam trials did you base that on?
To be sure, are you only firing a single flash in each experiment (IGBT controlled flash simply stop xenon discharge at a point and their start time depends on a few things)?
In summary, as it stands I can't be totally sure that precision sync provides any benefit to normal sync (and could just be adding a little extra latency). If you are measuring a maximum of 8ms mis-sync across hundreds of images that is excellent and a precision sync test is probably unnecessary - if your cameras provide sub 1ms sync practically all the time (like SX150IS) then that is just icing on the cake.