hi3516d + ar0237
2 E币
成为会员,免费下载资料
文件大小:8.72 MB
上传者:Nikita
时间:2016-09-29 20:25:40
下载量:34
Hi!
I have such camera
[img=600,600]https://gd3.alicdn.com/bao/uploaded/i3/23791004/TB2BSFruXXXXXc1XXXXXXXXXXXX_!!23791004.jpg_600x600.jpg[/img]
It is hi3516d + ar0237, seems it is XM company production.
I try to deploy my software, but I can`t get CMOS works, it doesn`t send any frames :(
I use following parameters for init, also I am linking my code with -lsns_ar0237
and it reports me that ar0237 inited ok
[code]combo_dev_attr_t HISPI_4lane_SENSOR_AR0237_12BIT_1080p_NOWDR_ATTR =
{
/* input mode */
.input_mode = INPUT_MODE_HISPI,
{
.lvds_attr = {
.img_size = {1920, 1080},
HI_WDR_MODE_NONE,
LVDS_SYNC_MODE_SOL,
RAW_DATA_12BIT,
LVDS_ENDIAN_LITTLE,
LVDS_ENDIAN_LITTLE,
.lane_id = {0, 1, 2, 3, -1, -1, -1, -1},
.sync_code = {
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane0
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane1
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane2
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane3
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane0
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane1
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane2
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane3
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
}
}
}
};
VI_DEV_ATTR_S DEV_ATTR_LVDS_BASE =
{
/* interface mode */
VI_MODE_LVDS,
/* multiplex mode */
VI_WORK_MODE_1Multiplex,
/* r_mask g_mask b_mask*/
{0xFFF00000, 0x0},
/* progessive or interleaving */
VI_SCAN_PROGRESSIVE,
/*AdChnId*/
{-1, -1, -1, -1},
/*enDataSeq, only support yuv*/
VI_INPUT_DATA_YUYV,
/* synchronization information */
{
/*port_vsync port_vsync_neg port_hsync port_hsync_neg */
VI_VSYNC_PULSE, VI_VSYNC_NEG_LOW, VI_HSYNC_VALID_SINGNAL,VI_HSYNC_NEG_HIGH,VI_VSYNC_VALID_SINGAL,VI_VSYNC_VALID_NEG_HIGH,
/*hsync_hfb hsync_act hsync_hhb*/
{0, 1280, 0,
/*vsync0_vhb vsync0_act vsync0_hhb*/
0, 720, 0,
/*vsync1_vhb vsync1_act vsync1_hhb*/
0, 0, 0}
},
/* use interior ISP */
VI_PATH_ISP, //VI_PATH_BYPASS, //VI_PATH_ISP,
/* input data type */
VI_DATA_TYPE_RGB,
/* bRever */
HI_FALSE,
/* DEV CROP */
{0, 0, 1920, 1080}
};
[/code]
My rootfs is based on last buildroot and last hi3516a/d SDK (V100R001C01SPC050).
I have downloaded original camera module firmware/software, there is strange init:
loadmod:
[code]cd /usr/lib/modules/
./load3516a -i -sensor ov4689 -osmem 50
. /usr/etc/loadpublic
cd /
[/code]
So, they init modules with sensor ov4689, but camera has ar0237.
Anyway my question is how to get this sensor to send me frames. For example with hi3516a+imx178 everything works ok.
I have such camera
[img=600,600]https://gd3.alicdn.com/bao/uploaded/i3/23791004/TB2BSFruXXXXXc1XXXXXXXXXXXX_!!23791004.jpg_600x600.jpg[/img]
It is hi3516d + ar0237, seems it is XM company production.
I try to deploy my software, but I can`t get CMOS works, it doesn`t send any frames :(
I use following parameters for init, also I am linking my code with -lsns_ar0237
and it reports me that ar0237 inited ok
[code]combo_dev_attr_t HISPI_4lane_SENSOR_AR0237_12BIT_1080p_NOWDR_ATTR =
{
/* input mode */
.input_mode = INPUT_MODE_HISPI,
{
.lvds_attr = {
.img_size = {1920, 1080},
HI_WDR_MODE_NONE,
LVDS_SYNC_MODE_SOL,
RAW_DATA_12BIT,
LVDS_ENDIAN_LITTLE,
LVDS_ENDIAN_LITTLE,
.lane_id = {0, 1, 2, 3, -1, -1, -1, -1},
.sync_code = {
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane0
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane1
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane2
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane3
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane0
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane1
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane2
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
{{ 0x3, 0x7, 0x1, 0x5 }, //PHY0_lane3
{0x043, 0x047, 0x041, 0x045},
{0x023, 0x027, 0x021, 0x025},
{0x083, 0x087, 0x081, 0x085}},
}
}
}
};
VI_DEV_ATTR_S DEV_ATTR_LVDS_BASE =
{
/* interface mode */
VI_MODE_LVDS,
/* multiplex mode */
VI_WORK_MODE_1Multiplex,
/* r_mask g_mask b_mask*/
{0xFFF00000, 0x0},
/* progessive or interleaving */
VI_SCAN_PROGRESSIVE,
/*AdChnId*/
{-1, -1, -1, -1},
/*enDataSeq, only support yuv*/
VI_INPUT_DATA_YUYV,
/* synchronization information */
{
/*port_vsync port_vsync_neg port_hsync port_hsync_neg */
VI_VSYNC_PULSE, VI_VSYNC_NEG_LOW, VI_HSYNC_VALID_SINGNAL,VI_HSYNC_NEG_HIGH,VI_VSYNC_VALID_SINGAL,VI_VSYNC_VALID_NEG_HIGH,
/*hsync_hfb hsync_act hsync_hhb*/
{0, 1280, 0,
/*vsync0_vhb vsync0_act vsync0_hhb*/
0, 720, 0,
/*vsync1_vhb vsync1_act vsync1_hhb*/
0, 0, 0}
},
/* use interior ISP */
VI_PATH_ISP, //VI_PATH_BYPASS, //VI_PATH_ISP,
/* input data type */
VI_DATA_TYPE_RGB,
/* bRever */
HI_FALSE,
/* DEV CROP */
{0, 0, 1920, 1080}
};
[/code]
My rootfs is based on last buildroot and last hi3516a/d SDK (V100R001C01SPC050).
I have downloaded original camera module firmware/software, there is strange init:
loadmod:
[code]cd /usr/lib/modules/
./load3516a -i -sensor ov4689 -osmem 50
. /usr/etc/loadpublic
cd /
[/code]
So, they init modules with sensor ov4689, but camera has ar0237.
Anyway my question is how to get this sensor to send me frames. For example with hi3516a+imx178 everything works ok.
展开》
折叠》