Strobe output to Pointgrey Firefly MV using libdc1394

I use Pointgrey Firefly MV (more precisely, FFMV-03M2M / C) and I want to start some kind of external device every time the shutter starts. According to the technical description , the camera supports IIDC 1.31, and also provides four GPIOs that can be used as trigger and / or strobe outputs. As described in Section 4.11.3 of the IIDC Standard , it should be possible to configure these strobe outputs using IIDC.

My application is implemented in C ++ and uses libdc1394 to access and control the camera. So far, everything is working very well, but I can’t tune the strobe output. As far as I understand libdc and IIDC, it should be possible to include the first output as follows ( camerathis is a pointer to a valid one dc1394camera_t):

dc1394error_t err;
uint64_t strobe_offset = 0x200;
uint32_t strobe_settings = 0;

err = dc1394_get_strobe_register(camera, strobe_offset, &strobe_settings);
if (err == DC1394_SUCCESS) {
    /* Set bits 6 (strobe on) and 7 (active-high level)
       IIDC uses msb 0, so we need to shift by 25/24 instead of 6/7 */
    strobe_settings = strobe_settings | (1 << 25) | (1 << 24);

    err = dc1394_set_strobe_register(camera, strobe_offset, strobe_settings);

}

if (err != DC1394_SUCCESS) {
    log(LOG_ERROR, "Failed to set strobe.");
}

, - ( , ). , (0x204, 0x208 0x20C), . Strobe_CTRL_Inq Strobe_[0123]_Inq, , . , On/Off_Inq Strobe_[0123]_Inq , , Polarity_Inq , ( , ). Windows, Pointgrey, .

, ? IIDC ​​ ?

: , -: orignal, 0x1300, , 0x1110/0x1114, PointGrey. , / ( PIO ). . , libdc1394, PointGrey - . .

+3
1

(, ), , GPIO, , . PIO_DIRECTION 0x11F8, - (0) (1). , , ?

http://ptgrey.com/support/downloads/documents/TAN2005002_Output_strobe_signal_pulse.pdf

, , . get/set_strobe_register API libdc1394. , get set_register, , . 0x200 ?

http://www.cs.unc.edu/Research/stc/FAQs/Cameras_Lenses/PtGrey/DcamRegisterRefManual.pdf , , 0x1300, , , , "? , , set_register , , .

, .

+2

Source: https://habr.com/ru/post/1781562/


All Articles