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_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()
[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_1080p30_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_1080p30_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
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()
@占航 OK Thanks for your reply. I do not have another hardware at this movement. Let me try to borrow.
Sign in to comment