MIPI摄像头AI推理使用GC4663报错

[ERROR]["LOG"][src/hb_vin_mipi_host.c:272] !!! host0 MIPIHOSTIOC_INIT error, ret = -1
[ERROR]["LOG"][src/hb_vin.c:124] mipi_host 0 init error!
[ERROR]["mipi"][mipi/hb_mipi_api.c:461] hb_vin_init fail
[ERROR]["LOG"][/home/hobot/1-work/08_bsp/hbre/hb_ubuntu/hb_vio_python/x3_sdk/x3_sdk_swap/src/x3_vio_vin.c:114] hb mipi set mipi attr error!
[ERROR]["LOG"][/home/hobot/1-work/08_bsp/hbre/hb_ubuntu/hb_vio_python/x3_sdk/x3_sdk_swap/src/x3_vio_vin.c:230] x3_mipi_init error!
start stop ptf -2069278240
[ERROR]["LOG"][utility/hb_cam_utility.c:547] sen_devfd -1 ioctl SENSOR_USER_UNLOCK fail(Bad file descriptor)
[ERROR]["LOG"][utility/hb_cam_utility.c:550] sen_devfd -1 ioctl SENSOR_GET_INIT_CNT fail(Bad file descriptor)
[ERROR]["mipi"][mipi/hb_mipi_api.c:302] need sensor init before cam start
HB_MIPI_ResetSensor error!
x3_sensor_start error!
2022/09/09 19:11:36.413 ERROR [x3_cam_start][0291]x3_vin_start failed, -50
[ERROR]["mipi"][mipi/hb_mipi_api.c:256] need mipi SensorInit before mipi sensor deinit
HB_MIPI_DeinitSensor error!
[ERROR]["sys"][sys/hb_sys.c:254] [141.728744]HB_SYS_Bind[254]: vps grp 255 chn 1 donot create.

[Module_bind]:[833]:HB_SYS_Bind failed, src:3 pipe:255 chn:1 dst:2 pipe:0 chn:0
Segmentation fault

报错代码如上

host0 MIPIHOSTIOC_INIT error, ret = -1 这个错误可以尝试重新插拔一下排线,排查mipi信号传输的异常。

兄弟,这个问题你解决了么,我的也会报错

[ 3207.066709]hb_isp_algo_stop@main_user.c:389 GENERIC(ERR) :g_mutex destroy.

[ERROR][“LOG”][utility/hb_cam_utility.c:554] sen_devfd -1 ioctl SENSOR_USER_UNLOCK fail(Bad file descriptor)

[ERROR][“LOG”][utility/hb_cam_utility.c:557] sen_devfd -1 ioctl SENSOR_GET_INIT_CNT fail(Bad file descriptor)

看起来摄像头异常或者没有连接好。

参考手册7.2章节,确认摄像头是否正常:7.1. 购买渠道 — 地平线机器人平台用户手册 1.0 文档 (horizon.ai)

摄像头连接正常,29能显示出来

root@ubuntu:/home/sunrise# i2cdetect -y -r 1     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f00:          -- -- -- -- -- -- -- -- -- -- -- -- --10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --20: -- -- -- -- -- -- -- -- -- 29 -- -- -- -- -- --30: -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- --40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --70: -- -- -- -- -- -- -- --root@ubuntu:/home/sunrise#

能够正常连接

host0 MIPIHOSTIOC_INIT error, ret = -1 这个错误可以尝试重新插拔一下排线,排查mipi信号传输的异常。-

你也可以试试重新插拔。

没解决

我是看到他有两句报错和我遇到的问题一样,可能是一样的问题,但是我的摄像头可以打开,但是还是会报错,你可以去看我昨天发的求助帖,看看能给啥意见