[Elphel-support] Synchronizing with an external flash

Andrey Filippov support-list at support.elphel.com
Tue Jul 24 11:34:04 PDT 2012


Eric,

you may try
"wget http://192.168.0.9:8081/trig/wait/bimg"
to trigger, wait fro the new image and return it.
If you open just  http://192.168.0.9:8081 in the browser it will show
mini help for the options

To save parameters you can use http://192.168.0.9/autocampars.php - it
allows you to edit groups of parameters and save several
configurations - the default will be loaded at boot time

I would recommend you to uncheck "Include image" so it will not freeze
if camera is not triggered.

When you open link "View/Edit current" there is a column "Program
ahead" - if camera is in single triggered mode I would rather put 0
here - and still some parameters will influence image only several
frames later. All parameters have some description that will appear if
you hold cursor over it (tool tip)

If running camera in single trigger mode you may want to set
IRQ_SMART=6
In that case image will be available after the first trigger. With
default (IRQ_SMART=3) the image will be ready only at the first
trigger _after_ it is actually acquired (that mode is used in
continuously running camera). All other values of IRQ_SMART are not
used - only 3 and 6.


Andrey

On Tue, Jul 24, 2012 at 11:54 AM, Eric Boudrand <dev at boudrand.net> wrote:
> Hi Andrey,
>
> Thanks for the help.
>
> After calling "wget http://192.168.0.9:8081/trig/pointers" how can I
> download the corresponding image frame ?
>
> Calling the page did not trigger the flash device. I should check the
> voltage input. The voltage converter works because I saw several flash
> lights once I plugged the cable (it must be a capacitor discharging). It
> was not synchronized with the camera.
>
> Is it possible to save the trigger settings in order to reload them
> after reboot ?
>
> Regards.
>
> Éric Boudrand
>
>
> Le mardi 24 juillet 2012 à 10:38 -0600, Andrey Filippov a écrit :
>> Hello Eric,
>> "TRIG_PERIOD = 1" means single trigger mode  (camera can not work at
>> 96000000 fps - period is measured in pixel clock cycles, normally
>> 96MHz), in this mode you may still trigger the camera with
>> http://192.168.0.9:8081/trig/pointers (assuming 192.168.0.9)
>>
>> The camvc program freezes, because it used all the php instances (by
>> default - 3, that number can be increased at the expense of more
>> memory used), and the php scrips (as camvc.php) are waiting for the
>> camera to be triggered). You can unfreeze the camera over telnet with
>> "killall -9 lighttpd" - the web server will be automatically restarted
>> together with the php instances.
>> Port 8081 (in http://192.168.0.9:8081/trig/pointers) is used by
>> another server (imgsrv) that does not need php running.
>>
>> Andrey
>>
>> On Tue, Jul 24, 2012 at 10:15 AM, Eric Boudrand <dev at boudrand.net> wrote:
>> > Hi,
>> >
>> > When I set :
>> > TRIG = 4
>> > TRIG_PERIOD = 1
>> > TRIG_CONDITION = 0
>> > TRIG_OUT = 0x800000
>> > I lose http connection to the camvc.html. Ping is working. I can restart
>> > the camera, but the settings are not kept. Any idea ?
>> >
>> > Regards.
>> >
>> > Éric Boudrand
>> >
>> >
>> >
>> > Le mardi 24 juillet 2012 à 12:12 +0200, Alexandre Poltorak a écrit :
>> >> Hi Eric,
>> >>
>> >> TRIG_PERIOD - defines FPS (1/frame period; FPS = 96000000 / TRIG_PERIOD)
>> >> Example: 3840000 [decimal] for 25FPS
>> >>
>> >> Best regards,
>> >> Alexandre
>> >>
>> >> ----- Mail original -----
>> >> | De: "Eric Boudrand" <dev at boudrand.net>
>> >> | À: "Oleg" <support-list at support.elphel.com>
>> >> | Envoyé: Mardi 24 Juillet 2012 11:05:10
>> >> | Objet: Re: [Elphel-support] Synchronizing with an external flash
>> >> |
>> >> | Hi Oleg
>> >> |
>> >> | > You might have seen the schematics -
>> >> | > http://wiki.elphel.com/images/9/9a/10369a.pdf
>> >> | >
>> >> | I haven't seen it. Thanks.
>> >> |
>> >> | > So, you get 5V only on the PIN 4 of J15. TRIG_OUT=0x800000.
>> >> |
>> >> | Ok. I'am using this now. I have resolder the cable and I got 5V on
>> >> | the
>> >> | output despite the fact I made a mistake in the configuration. I set
>> >> | 0x800000 in decimal value of TRIG_OUT.
>> >> |
>> >> | > PINs 2 & 3 need an external power source. They are galvanically
>> >> | > decoupled with the camera's circuitry. GPIO[10] controls a diod.
>> >> | > So if you would like to use PIN2 you should connect: V+=>PIN3,
>> >> | > PIN2=>FLASH=>GND.
>> >> | >
>> >> | > TRIG_OUT should be 0x200000. Each GPIO has 2 bits in this register.
>> >> | > You probably saw this page as well -
>> >> | > http://wiki.elphel.com/index.php?title=Trigger
>> >> | >
>> >> | I have read this page. But, it is not clear. I do not understand how
>> >> | TRIG_OUT is computed. I will use the values from the page.
>> >> |
>> >> | Concerning TRIG_PERIOD, if I set 0x500, does this value means 1280
>> >> | sec ?
>> >> |
>> >> | Regards.
>> >> |
>> >> | Éric Boudrand
>> >> |
>> >> |
>> >> |
>> >> | _______________________________________________
>> >> | Support-list mailing list
>> >> | Support-list at support.elphel.com
>> >> | http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com
>> >> |
>> >
>> >
>> > _______________________________________________
>> > Support-list mailing list
>> > Support-list at support.elphel.com
>> > http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com
>
>
> _______________________________________________
> Support-list mailing list
> Support-list at support.elphel.com
> http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com




More information about the Support-list mailing list