◆ReadoutrateMaximumframerateinFullHD1080pmode:120frames◆Highdynamicrange(HDR)functionMult
◆Readout rate
Maximum frame rate in Full HD 1080p mode: 120 frame / s
◆High dynamic range (HDR) function Multiple exposure HDR
Digital overlap HDR
最大支持1080P120帧
我的使用场景1080P30帧就够,所以从sony拿到sensor初始化代码,然后随便找一款sony的sensor驱动,进行修改,我选的是imx307
printf("setting to 30 mode\n");
sensor_write_register(ViPipe, 0x3000, 0x01); // Standby mode
sensor_write_register(ViPipe, 0x3001, 0x01);
sensor_write_register(ViPipe, 0x3002, 0x01); // Master mode sto
sensor_write_register(ViPipe, 0x3005, 0x01);
sensor_write_register(ViPipe, 0x3007, 0x00);
sensor_write_register(ViPipe, 0x3009, 0x02);
sensor_write_register(ViPipe, 0x300a, 0xF0);
sensor_write_register(ViPipe, 0x300b, 0x00);
sensor_write_register(ViPipe, 0x3010, 0x21); // gain
sensor_write_register(ViPipe, 0x3011, 0xa); // VMAX
sensor_write_register(ViPipe, 0x3012, 0x64);
sensor_write_register(ViPipe, 0x3014, 0x00);
sensor_write_register(ViPipe, 0x3018, 0x65);
sensor_write_register(ViPipe, 0x3019, 0x04);
sensor_write_register(ViPipe, 0x301a, 0x00);
sensor_write_register(ViPipe, 0x301c, 0x30);//0x98); // HMAX;
sensor_write_register(ViPipe, 0x301d, 0x11);// 0x08); // SHS
sensor_write_register(ViPipe, 0x3022, 0x00); // SHS1
sensor_write_register(ViPipe, 0x3046, 0x01); // SHS1
sensor_write_register(ViPipe, 0x3048, 0x00); // SHS1
sensor_write_register(ViPipe, 0x3049, 0x08); // SHS1
sensor_write_register(ViPipe, 0x304b, 0x0a); // SHS1
sensor_write_register(ViPipe, 0x305c, 0x18); // RHS1
sensor_write_register(ViPipe, 0x305d, 0x03); // RHS1
sensor_write_register(ViPipe, 0x305e, 0x20); // RHS1
sensor_write_register(ViPipe, 0x305f, 0x01);
sensor_write_register(ViPipe, 0x309e, 0x4a); // SHS2
sensor_write_register(ViPipe, 0x309f, 0x4a); // SHS2
sensor_write_register(ViPipe, 0x30d2, 0x19);
sensor_write_register(ViPipe, 0x30d7, 0x03);
sensor_write_register(ViPipe, 0x3129, 0x00); // ADBIT2,12Bit;
sensor_write_register(ViPipe, 0x313b, 0x61); // ADBIT3,12Bit;
sensor_write_register(ViPipe, 0x315e, 0x1a);
sensor_write_register(ViPipe, 0x3164, 0x1a);
sensor_write_register(ViPipe, 0x317c, 0x00);
sensor_write_register(ViPipe, 0x31ec, 0x0e);
sensor_write_register(ViPipe, 0x3405, 0x10);
sensor_write_register(ViPipe, 0x3407, 0x01);
sensor_write_register(ViPipe, 0x3414, 0x0a);
sensor_write_register(ViPipe, 0x3418, 0x49);
sensor_write_register(ViPipe, 0x3419, 0x04);
sensor_write_register(ViPipe, 0x3441, 0x0c);
sensor_write_register(ViPipe, 0x3442, 0x0c);
sensor_write_register(ViPipe, 0x3443, 0x1);
sensor_write_register(ViPipe, 0x3444, 0x20);
sensor_write_register(ViPipe, 0x3445, 0x25);
sensor_write_register(ViPipe, 0x3446, 0x57);
sensor_write_register(ViPipe, 0x3447, 0x00);
sensor_write_register(ViPipe, 0x3448, 0x37);
sensor_write_register(ViPipe, 0x3449, 0x00);
sensor_write_register(ViPipe, 0x344a, 0x1f);
sensor_write_register(ViPipe, 0x344b, 0x00);
sensor_write_register(ViPipe, 0x344c, 0x1f);
sensor_write_register(ViPipe, 0x344d, 0x00);
sensor_write_register(ViPipe, 0x344e, 0x1f);
sensor_write_register(ViPipe, 0x344f, 0x00);
sensor_write_register(ViPipe, 0x3450, 0x77);
sensor_write_register(ViPipe, 0x3451, 0x00);
sensor_write_register(ViPipe, 0x3452, 0x1f);
sensor_write_register(ViPipe, 0x3453, 0x00);
sensor_write_register(ViPipe, 0x3454, 0x17);
sensor_write_register(ViPipe, 0x3455, 0x00);
sensor_write_register(ViPipe, 0x3472, 0x9c);
sensor_write_register(ViPipe, 0x3473, 0x07);
sensor_write_register(ViPipe, 0x3480, 0x49);
// Standby Cancel
sensor_write_register(ViPipe, 0x3000, 0x00); //do not standby
usleep(20000); // DELAY20mS
sensor_write_register(ViPipe, 0x3001, 0x00);
usleep(20000); // DELAY20mS
sensor_write_register(ViPipe, 0x3002, 0x00); // master mode start
// sensor_write_register(ViPipe, 0x304B, 0x0a);
加载驱动后,sensor正常出图。