1.1K Star 6.1K Fork 4.9K

OpenHarmony / docs

 / 详情

Image Capture & Record fails on hi3518ev300 board with camera_sample app

已完成
任务
创建于  
2020-11-12 19:26

Hello,

I have followed the instruction provided under https://device.harmonyos.com/en/docs/develop/demo/oem_device_iotcamera_control_app-0000001054682532 to capture the image and record the video but both are failed. (I don't have the display, hence i have not tried the Preview option)

**When i run the camera_sample application with "Capture" option, i am getting the below error:
**
OHOS # ./camera_sample
OHOS # Camera sample begin.


Select the behavior of avrecorder.
1: Capture
2: Record(Press s to stop)
3: Preview(Press s to stop)
q: quit the sample.


[Func]:cmos_set_wdr_mode [Line]:731 [Info]:linear mode
[JXF23] Date: Aug 26 2020
[JXF23] Time: 15:54:36

soi_sensor_init()
soi_sensor_linear_1080_init()
01-01 00:01:15.354 9 37 D 02B00/MultiMedia: {Initialize()-camera_service.cpp:45} Camera service initializing.
[ERR][HDF:E/i2c_hi35xx]HibvtI2cWaitIdle: wait idle abort!, RIS: 0x611

[ERR][HDF:E/i2c_hi35xx]HibvtI2cWaitIdle: wait idle abort!, RIS: 0x611

[ERR][HDF:E/i2c_hi35xx]HibvtI2cWaitIdle: wait idle abort!, RIS: 0x611

<< soi_sensor_linear_1080_init()
<< soi_sensor_init()
[ViIspThread]-1517: ISP Dev 0 running !
AvAdecInit:378
RegisterDummyDecoder:276
AddAdecDecoder 2 g_adecDecRegList.cnt:1
[Avplay] audio decoder load ok: /usr/lib/libhiaacdec.so
AddAdecDecoder 2 g_adecDecRegList.cnt:2
AvAdecRegisterDecoder:294 decoderFile:/usr/lib/libhimp3dec.so
AvAdecRegisterDecoder:294 decoderFile:/lib/libhimp3dec.so
reg libhimp3dec.so failed ffffffff
[AvAencInit][211] HI_MPI_AENC_AacInit :0x0
camera name:main
Sample recv OnCreate camera.
01-01 00:01:16.260 9 37 D 02B00/MultiMedia: {Initialize()-camera_device.cpp:516} Codec module init succeed.
01-01 00:01:16.261 9 37 D 02B00/MultiMedia: {OnCameraServiceInitialized()-camera_manager.cpp:44} Camera manager initializing.
01-01 00:01:16.261 9 37 D 02B00/MultiMedia: {GetCameraIds()-camera_manager.cpp:113} main_

When i run the camera_sample application with "Record" option, i am getting the below error:

OHOS # ./camera_sample
OHOS # Camera sample begin.


Select the behavior of avrecorder.
1: Capture
2: Record(Press s to stop)
3: Preview(Press s to stop)
q: quit the sample.


[Func]:cmos_set_wdr_mode [Line]:731 [Info]:linear mode
[JXF23] Date: Aug 26 2020
[JXF23] Time: 15:54:36

soi_sensor_init()
soi_sensor_linear_1080_init()
01-01 00:00:34.423 9 37 D 02B00/MultiMedia: {Initialize()-camera_service.cpp:45} Camera service initializing.
[ERR][HDF:E/i2c_hi35xx]HibvtI2cWaitIdle: wait idle abort!, RIS: 0x611

[ERR][HDF:E/i2c_hi35xx]HibvtI2cWaitIdle: wait idle abort!, RIS: 0x611

[ERR][HDF:E/i2c_hi35xx]HibvtI2cWaitIdle: wait idle abort!, RIS: 0x611

<< soi_sensor_linear_1080_init()
<< soi_sensor_init()
[ViIspThread]-1517: ISP Dev 0 running !
AvAdecInit:378
RegisterDummyDecoder:276
AddAdecDecoder 2 g_adecDecRegList.cnt:1
[Avplay] audio decoder load ok: /usr/lib/libhiaacdec.so
AddAdecDecoder 2 g_adecDecRegList.cnt:2
AvAdecRegisterDecoder:294 decoderFile:/usr/lib/libhimp3dec.so
AvAdecRegisterDecoder:294 decoderFile:/lib/libhimp3dec.so
reg libhimp3dec.so failed ffffffff
[AvAencInit][211] HI_MPI_AENC_AacInit :0x0
camera name:main
Sample recv OnCreate camera.
01-01 00:00:35.329 9 37 D 02B00/MultiMedia: {Initialize()-camera_device.cpp:516} Codec module init succeed.
01-01 00:00:35.330 9 37 D 02B00/MultiMedia: {OnCameraServiceInitialized()-camera_manager.cpp:44} Camera manager initializing.
01-01 00:00:35.330 9 37 D 02B00/MultiMedia: {GetCameraIds()-camera_manager.cpp:113} main

S


Select the behavior of avrecorder.
1: Capture
2: Record(Press s to stop)
3: Preview(Press s to stop)
q: quit the sample.


Any input will be on highly appreciated.

Cheers, Sudhesh

评论 (2)

Sudhesh 创建了任务
Sudhesh 关联仓库设置为OpenHarmony/docs
NEEN 添加了product-question(已删除)标签
NEEN 负责人设置为qianpeng
展开全部操作日志

This error should be caused by an abnormal hardware i2c, which caused the sensor connection to fail. You can try to change a set of hardware equipment(HI3516DV300D or HI3518EV300) to debug and see if this error will occur.

soi_sensor_init()
soi_sensor_linear_1080p30_init()
01-01 00:01:15.354 9 37 D 02B00/MultiMedia: {Initialize()-camera_service.cpp:45} Camera service initializing.
[ERR][HDF:E/i2c_hi35xx]HibvtI2cWaitIdle: wait idle abort!, RIS: 0x611
[ERR][HDF:E/i2c_hi35xx]HibvtI2cWaitIdle: wait idle abort!, RIS: 0x611
[ERR][HDF:E/i2c_hi35xx]HibvtI2cWaitIdle: wait idle abort!, RIS: 0x611
<< soi_sensor_linear_1080p30_init()
<< soi_sensor_init()

This error should be caused by an abnormal hardware i2c, which caused the sensor connection to fail. You can try to change a set of hardware equipment(HI3516DV300D or HI3518EV300) to debug and see if this error will occur.

soi_sensor_init()
soi_sensor_linear_1080p30_init()
01-01 00:01:15.354 9 37 D 02B00/MultiMedia: {Initialize()-camera_service.cpp:45} Camera service initializing.
[ERR][HDF:E/i2c_hi35xx]HibvtI2cWaitIdle: wait idle abort!, RIS: 0x611
[ERR][HDF:E/i2c_hi35xx]HibvtI2cWaitIdle: wait idle abort!, RIS: 0x611
[ERR][HDF:E/i2c_hi35xx]HibvtI2cWaitIdle: wait idle abort!, RIS: 0x611
<< soi_sensor_linear_1080p30_init()
<< soi_sensor_init()

@zhanhang OK Thanks for your reply. I do not have another hardware at this movement. Let me try to borrow.

NEEN 任务状态待办的 修改为已完成
NEEN 移除了product-question(已删除)标签
wangRuiNa 修改了描述

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
8087701 hangliebe 1619417662 8068048 sudhesh 1629271850
其他
1
https://gitee.com/openharmony/docs.git
git@gitee.com:openharmony/docs.git
openharmony
docs
docs

搜索帮助