Sample for using getSensorEepromData function from LibArgus

Hi,

JetPack : 4.3

I’m using a custom CSI camera with LibArgus, i want to retreive EEPROM data from this latter, i’ve found the function getSensorEepromData but i didn’t find any example in argus sample to use it, **can you please suggest an implementation to use this function ?

I am wondering what’s the argument dst ? and how can i display this data ? I tried to this in my app, but i am getting a segmentation fault :

 // Get the camera device
std::vector<Argus::CameraDevice*> cameraDevices;
iCameraProvider->getCameraDevices(&cameraDevices);
if (cameraDevices.size() == 0)
    printf("No cameras available");

// Get EEPROM data
void* buffer = (void*) malloc(5 *sizeof(char));
Argus::Ext::ISensorEepromData *iSensorEepromData = Argus::interface_cast<Argus::Ext::ISensorEepromData>(cameraDevices[0]);
iSensorEepromData->getSensorEepromData(buffer, iSensorEepromData->getSensorEepromDataSize());

I think i’m having a segmentation fault because the EEPROM is not enabled in the device tree, so this error appear when i use iSensorEepromData->getSensorEepromDataSize() but i am wondering what i can do as parameter in the buffer (dst) ?

Thanks

Make sure the your sensor driver have implement the EEPROM CID first.

Hi @ShaneCCC,

Thank you for your answer, but i wanna know how this function will display the EEPROM data, what kind of output can i have with this latter ?

Thanks

Should be able get the EEPROM data like below eeprom_data and opt_data.

nvidia@nvidia-desktop:~$ v4l2-ctl --all
Driver Info (not using libv4l2):
        Driver name   : tegra-video
        Card type     : vi-output, ov5693 2-0036
        Bus info      : platform:15c10000.vi:2
        Driver version: 4.9.253
        Capabilities  : 0x84200001
                Video Capture
                Streaming
                Extended Pix Format
                Device Capabilities
        Device Caps   : 0x04200001
                Video Capture
                Streaming
                Extended Pix Format
Priority: 2
Video input : 0 (Camera 2: no power)
Format Video Capture:
        Width/Height      : 2592/1944
        Pixel Format      : 'BG10'
        Field             : None
        Bytes per Line    : 5184
        Size Image        : 10077696
        Colorspace        : sRGB
        Transfer Function : Default (maps to sRGB)
        YCbCr/HSV Encoding: Default (maps to ITU-R 601)
        Quantization      : Default (maps to Full Range)
        Flags             :

Camera Controls

                     group_hold 0x009a2003 (bool)   : default=0 value=0 flags=execute-on-write
                     hdr_enable 0x009a2004 (intmenu): min=0 max=1 default=0 value=0
                    eeprom_data 0x009a2005 (str)    : min=0 max=2048 step=2 value='01000700fe0ce803014d00ffffffffffff00ae053639392d38333332362d313030302d313030204d2e30ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff50333332364130315031343534ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff46464646ffff4646ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff73ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff' flags=read-only, has-payload
                       otp_data 0x009a2006 (str)    : min=0 max=1024 step=2 value='9332eb330820d234000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000822a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000057000000000000000000170000000000' flags=read-only, has-payload

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.