Firefly Open Source Community

Title: Full resolution firmware for OV13850 [Print This Page]

Author: renaud    Time: 2/14/2017 22:33
Title: Full resolution firmware for OV13850
Hello,
I am building a system with RK3288 and OV13850.
As reading the source code for the Lollipop I was wondering two things :
- what is the highest resolution I can handle (I don't see full resolution in the Hal code)
- is the Camera v2 API implementation level FULL or only LEGACY or LIMITED.

Thank you very much
Author: isle    Time: 2/15/2017 15:08
Hi renaud,
1 Yes ,the OV13850 highest resolution "4224X3136" can be handled ,
the code is here : ./hardware/rockchip/camera/SiliconImage/isi/drv/OV13850/calib/OV13850.xml
  2 yes, the Camera V2 API is implemented fully.
Author: trancompany80    Time: 3/26/2017 13:39
Hi all,

What is best frame rate it can support?


Author: isle    Time: 3/27/2017 10:02
we only test 1080P 30fps for recording
Author: trancompany80    Time: 3/27/2017 10:27
Hi isle,

How about 720p, can it reach 60 fps?

I have 2 version of OV13850 module with K and H. What is diffirent between them?

Author: isle    Time: 3/27/2017 16:54
Hi
It should can reach 60fps,But we did test it yet.

about the K & H
the circuit board was made by two different factories ,and  There's no other difference.

Author: trancompany80    Time: 3/28/2017 11:10
Hi isle,

Which system do you use for testing 1080P 30fps?
I'm using Android 4.4, it only reach maximum 15 fps with 720p
Author: isle    Time: 3/28/2017 11:47
the latest  Android 5.1 firmware.
Author: renaud    Time: 8/30/2017 05:04
isle Posted at 2/15/2017 15:08
Hi renaud,
1 Yes ,the OV13850 highest resolution "4224X3136" can be handled ,
the code is here : ...

Hi Isle,
Sorry for replying so late. I think I got not notification to tell me about your answer !
This is very good news. I am investigating right now to understand why the APK I use for testing Camera 2 level is returning Legacy. Maybe my firmware it is not configured correctly !
Would you mind having a look at our repository on Gitlab and tell us if you see something wrong ? Can we talk by email or by phone ?
Thank you very much !

Author: isle    Time: 8/30/2017 09:51
hi
Have you try the firefly's repository on Gitlab?
Author: renaud    Time: 9/19/2017 01:02
Hi Isle, thanks for your help!

We try with https://gitlab.com/T-Firefly/firefly-rk3288 repository.

But when we use our APK, the camera2 feature are not implemented. We installed an apk that give the level of implementation of camera 2 and the result is Legacy level

By reading the code in CameraHal.h (https://gitlab.com/T-Firefly/fir ... meraHal/CameraHal.h) include camera.h and not camera3.h


Author: renaud    Time: 9/19/2017 23:39
When we are in debug mode, when we call characteristics.get(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL)) this return INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY
Author: renaud    Time: 9/20/2017 18:09
Here Logcat detail filter on camera string:
  1. D/hwcomposer(  185): RK_GRAPHICS_VER=commit-id:dc92ecc23a Camera2Ìí¼ÓFocus°´¼üÖ§³Ö
  2. I/CameraService(  194): CameraService started (pid=194)
  3. I/CameraService(  194): Loaded "RK29_ICS_CameraHal_Module" camera module
  4. D/CameraHal(  194): createInstance(817): open xml file(/etc/cam_board.xml) success
  5. E/CameraHal(  194): cam_board.xml version(v0.0.0) != xml parser version(v0.13.0)
  6. D/CameraHal(  194):
  7. D/CameraHal(  194):
  8. D/CameraHal(  194):
  9. D/CameraHal(  194):  Cam_board.xml Version Check:
  10. D/CameraHal(  194):     /etc/cam_board.xml : v0.0xd.0
  11. D/CameraHal(  194):     CameraHal_board_xml_parser: v0.13.0
  12. D/CameraHal(  194): ParserSensorInfo(46): SensorName(OV13850)
  13. D/CameraHal(  194): ParserSensorInfo(51): SensorDevID(CAMSYS_DEVID_SENSOR_1B)
  14. D/CameraHal(  194): ParserSensorInfo(62): SensorDevID(33554432)
  15. D/CameraHal(  194): ParserSensorInfo(64): SensorHostDevID(CAMSYS_DEVID_MARVIN)
  16. D/CameraHal(  194): ParserSensorInfo(79): Sensori2cBusNum(3)
  17. D/CameraHal(  194): ParserSensorInfo(82): SensorI2cAddrByte(2)
  18. D/CameraHal(  194): ParserSensorInfo(85): SensorI2cRate(100000)
  19. D/CameraHal(  194): ParserSensorInfo(88): SensorMclk(24000000)
  20. D/CameraHal(  194): ParserSensorInfo(91): SensorAvdd(NC) min(0) max(0)
  21. D/CameraHal(  194): ParserSensorInfo(96): SensorDovdd(NC) min(0) max(0)
  22. D/CameraHal(  194): ParserSensorInfo(101): SensorDvdd(NC) min(0) max(0)
  23. D/CameraHal(  194): ParserSensorInfo(106): SensorGpioPwdn(RK30_PIN2_PB6) active(0)
  24. D/CameraHal(  194): ParserSensorInfo(110): SensorGpioRst(RK30_PIN2_PB0) active(0)
  25. D/CameraHal(  194): ParserSensorInfo(114): SensorGpioPwen(RK30_PIN0_PB3) active(1)
  26. D/CameraHal(  194): ParserSensorInfo(118): SensorFacing(back)
  27. D/CameraHal(  194): ParserSensorInfo(127): SensorInterface(MIPI)
  28. D/CameraHal(  194): ParserSensorInfo(140): SensorMirrorFlip(0)
  29. D/CameraHal(  194): ParserSensorInfo(146): SensorOrientation(0)
  30. D/CameraHal(  194): ParserSensorInfo(143): SensorPowerupSequence(1234)
  31. D/CameraHal(  194): ParserSensorInfo(240): SensorFovParemeter fov_h(60.0)(60.000000) fov_v(60.0)(60.000000)  
  32. D/CameraHal(  194): ParserSensorInfo(243): SensorAWB_Frame_Skip fps(15)
  33. D/CameraHal(  194): ParserSensorInfo(214): SensorPhy: MIPI  lane: 2  phyindex: 1  fmt: 0x2b
  34. D/CameraHal(  194): ParserVCMInfo(255): VCMDrvName(BuiltInSensor)
  35. D/CameraHal(  194): ParserVCMInfo(258): VCMName(NC)
  36. D/CameraHal(  194): ParserVCMInfo(261): VCMI2cBusNum(3)
  37. D/CameraHal(  194): ParserVCMInfo(264): VCMI2cAddrByte(0)
  38. D/CameraHal(  194): ParserVCMInfo(267): VCMI2cRate(0)
  39. D/CameraHal(  194): ParserVCMInfo(278): VCMVdd(NC) min(0) max(0)
  40. D/CameraHal(  194): ParserVCMInfo(270): VCMGpioPwdn(NC) active(0)
  41. D/CameraHal(  194): ParserVCMInfo(274): VCMGpioPower(NC) active(0)
  42. D/CameraHal(  194): ParserVCMInfo(294): start current(20) rated current(80) vcm max(100)  step mode(13)  drv max(100)
  43. D/CameraHal(  194): ParserFlashInfo(308): FlashName(NC)
  44. D/CameraHal(  194): ParserFlashInfo(311): FlashI2cBusNum(0)
  45. D/CameraHal(  194): ParserFlashInfo(314): FlashI2cAddrByte(0)
  46. D/CameraHal(  194): ParserFlashInfo(317): FlashI2cRate(0)
  47. D/CameraHal(  194): ParserFlashInfo(320): FlashTrigger(NC) active(0)
  48. D/CameraHal(  194): ParserFlashInfo(324): FlashEn(NC) active(0)
  49. D/CameraHal(  194): ParserFlashInfo(331): FlashLuminance(0)
  50. D/CameraHal(  194): ParserFlashInfo(334): FlashColorTemp(0)
  51. D/CameraHal(  194): StartElementHandler(760): HDR(1)!
  52. D/CameraHal(  194): StartElementHandler(764): ZSL(1)!
  53. D/CameraHal(  194): StartElementHandler(768): zoom(1)!
  54. D/CameraHal(  194): StartElementHandler(796): Continue_SnapShot(1)!
  55. D/CameraHal(  194): StartElementHandler(799): InterpolationRes(0)!
  56. D/CameraHal(  194): StartElementHandler(790): PreviewSize(0x0)!
  57. D/CameraHal(  194): StartElementHandler(786): face detect config(0),max face num is (0)!
  58. D/CameraHal(  194): ParserDVConfig(601):  DV_QCIF(qcif) resolution(176x144) fps(10) support(1)
  59. D/CameraHal(  194): ParserDVConfig(613):  DV_QVGA(qvga) resolution(320x240) fps(10) support(1)
  60. D/CameraHal(  194): ParserDVConfig(625):  DV_CIF(cif) resolution(352x288) fps(10) support(1)
  61. D/CameraHal(  194): ParserDVConfig(637):  DV_VGA(480p) resolution(640x480) fps(10) support(0)
  62. D/CameraHal(  194): ParserDVConfig(649):  DV_480P(480p) resolution(720x480) fps(10) support(0)
  63. D/CameraHal(  194): ParserDVConfig(673):  DV_720P(720p) resolution(1280x720) fps(10) support(1)
  64. D/CameraHal(  194): ParserDVConfig(685):  DV_1080P(1080p) resolution(1920x1080) fps(10) support(1)
  65. D/CameraHal(  194): number of camdevice (1)
  66. D/CameraHal(  194): now DV size(7)
  67. E/CameraHal(  194): camera_get_number_of_cameras(690): board profiles cam num 1
  68. D/CameraHal(  194): read cam name from xml(/data/camera/media_profiles.xml)
  69. D/CameraHal(  194): videoname0="OV13850" index=0 facing=0 -->  
  70. D/CameraHal(  194):
  71. D/CameraHal(  194): find camera count(1) cam1(OV13850) cam2()
  72. D/CameraHal(  194):
  73. D/CameraHal(  194):
  74. D/CameraHal(  194):
  75. D/CameraHal(  194):  CamSys_Head.h Version Check:
  76. D/CameraHal(  194):     Kernel camsys_head.h: v0.11.0
  77. D/CameraHal(  194):     Kernel camsys_drv :   v0.32.0
  78. D/CameraHal(  194):     CameraHal camsys_head.h : v0.11.0
  79. D/CameraHal(  194):
  80. D/CameraHal(  194):
  81. D/CameraHal(  194):
  82. E/CameraHal(  194): CAMSYS_QUREYIOMMU failed !!!!
  83. D/CameraHal(  194): Check OV13850 ID: reg: 0x300a  val: 0xd8 default: 0xd8
  84. D/CameraHal(  194): Check OV13850 ID: reg: 0x300b  val: 0x50 default: 0x50
  85. D/CameraHal(  194): OpenAndRegistOneSensor(992): sensor xml file name : /etc/OV13850.xml lens name
  86. D/MediaProfiles(  198): CameraGroupFound(668): media_profiles_id: 0x0
  87. D/MediaProfiles(  198): getInstance(763): Create instance from /data/camera/media_profiles.xml
  88. E/CameraHal(  194): camera_get_number_of_cameras(697): load sensor name(OV13850) connect 1
  89. E/CameraHal(  194): camera_get_number_of_cameras(750): Open /dev/video0 failed! strr: No such file or directory
  90. D/CameraHal(  194): camera_get_number_of_cameras(1114): camera_get_number_of_cameras(1114): Current board have 1 cameras attached.
  91. D/CameraHal(  194): camera_get_number_of_cameras(1117): meida_profiles_xml_control time (240031)us
  92. W/PackageParser(  482): Unknown element under <manifest>: meta-data at /data/app/com.example.android.camera2basic-2/base.apk Binary XML file line #29
  93. W/PackageManager(  482): Not granting permission android.permission.BIND_WALLPAPER to package com.android.camera2 (protectionLevel=18 flags=0x58bc45)
  94. W/PackageManager(  482): Unknown permission com.android.vending.CHECK_LICENSE in package com.flavionet.android.camera.lite
  95. W/PackageManager(  482): Not granting permission android.permission.BIND_WALLPAPER to package com.android.camera2 (protectionLevel=18 flags=0x58bc45)
  96. W/PackageManager(  482): Unknown permission com.android.vending.CHECK_LICENSE in package com.flavionet.android.camera.lite
  97. W/PackageManager(  482): Not granting permission android.permission.BIND_WALLPAPER to package com.android.camera2 (protectionLevel=18 flags=0xd8bc45)
  98. W/PackageManager(  482): Unknown permission com.android.vending.CHECK_LICENSE in package com.flavionet.android.camera.lite
  99. W/PackageManager(  601): Failure retrieving resources for supercurio.niveaucamera2: Resource ID #0x0
  100. W/PackageManager(  601): Failure retrieving resources for com.example.android.camera2basic: Resource ID #0x0
  101. I/CameraManagerGlobal(  601): getCameraService: Reconnecting to camera service
  102. E/CameraManagerGlobal(  601): Camera id 0 has status changed to 0x1
  103. I/CameraService(  194): getCameraCharacteristics: Switching to HAL1 shim implementation...
  104. D/CameraHal(  194): camera_get_camera_info(1311): camera_get_camera_info(1311): camera_0 facing(0), orientation(0)
  105. D/CameraHal(  194): camera_get_camera_info(1311): camera_get_camera_info(1311): camera_0 facing(0), orientation(0)
  106. I/CameraClient(  194): Opening camera 0
  107. D/CameraHal(  194): camera_get_camera_info(1311): camera_get_camera_info(1311): camera_0 facing(0), orientation(0)
  108. I/CameraHal(  194): camera_device_open(500): camera_device open
  109. D/CameraHal(  194): gCameraHalLogLevel: 0
  110. D/CameraHal(  194): CameraHal(133): it is a isp  camera
  111. D/CameraHal(  194): Calling process is: /system/bin/mediaserver
  112. E/CameraManagerGlobal(  601): Camera id 0 has status changed to 0x80000000
  113. E/CameraHal_Marvin(  194): HAL-MOCKUP: CAMSYS_QUREYIOMMU failed !!!!
  114. E/CameraHal(  194): disconnectCamera(1717): getFocusLimits failed!
  115. D/CameraHal_Marvin(  194):
  116. D/CameraHal_Marvin(  194):
  117. D/CameraHal_Marvin(  194):
  118. D/CameraHal_Marvin(  194): CameraHal Version Check:
  119. D/CameraHal_Marvin(  194):     CamSys_Head.h version:
  120. D/CameraHal_Marvin(  194):        kernel: (0x) v0.b.0
  121. D/CameraHal_Marvin(  194):        libisp_siliconimage_isp.so: (0x) v0.b.0
  122. D/CameraHal_Marvin(  194):     LibIsp version:
  123. D/CameraHal_Marvin(  194):        local: (0x) v1.27.0
  124. D/CameraHal_Marvin(  194):        camera.rk30board.so: (0x) v1.27.0
  125. D/CameraHal_Marvin(  194):     Sensor ISI version:
  126. D/CameraHal_Marvin(  194):         libisp_isi_drv_XXX: (0x) v0.a.0
  127. D/CameraHal_Marvin(  194):         libisp_siliconimage_isp.so: (0x) v0.a.0
  128. D/CameraHal_Marvin(  194):     Tunning XML version:
  129. D/CameraHal_Marvin(  194):         libisp_isi_drv_XXX: (22-May-2014_OUYANG_OV13850_FX288_v1.0)
  130. D/CameraHal_Marvin(  194):         Calibdb: (06-Aug-2014_ZYL-OYYF_OV13850_CMK-CT0116-FV1_v0.1.2)
  131. D/CameraHal_Marvin(  194):     sensor name OV13850:
  132. D/CameraHal_Marvin(  194):        sensor drv version: (0x) v0.9.0
  133. D/CameraHal_Marvin(  194):
  134. D/CameraHal_Marvin(  194):
  135. D/CameraHal_Marvin(  194):
  136. D/CameraHal(  194): setupPreview(248): isp out put format is YUV420SP.
  137. D/CameraHal(  194): initDefaultParameters(914): ------mHardInfo.mVcmInfo.mVcmDrvName in not NC-----
  138. D/CameraHal(  194): enableSensor(213): orientation = 0xb70bd1a0 (MPL accel)
  139. W/CameraService(  194): CameraService::connect X (id 0, this pid is 194, name media)
  140. D/CameraHal(  194): commandThread(983): commandThread(983): receive CMD_PREVIEW_CAPTURE_CANCEL
  141. D/CameraHal(  194): commandThread(991): commandThread(991): CMD_PREVIEW_CAPTURE_CANCEL out
  142. D/CameraHal(  194): cancelPicture(561): cancel picture OK.
  143. D/CameraHal(  194): commandThread(911): commandThread(911):receive CMD_PREVIEW_STOP
  144. D/CameraHal(  194): commandThread(932): commandThread(932): CMD_PREVIEW_STOP out
  145. D/CameraHal(  194): stopPreview(362): stop preview OK.
  146. I/CameraClient(  194): Destroying camera 0
  147. D/CameraHal(  194): camera_device_close(451): camera_device_close
  148. D/CameraHal(  194): disableSensor(237): orientation = 0xb70bd1a0 (MPL accel)
  149. D/CameraHal(  194): ~SensorListener(110): Kill looper thread
  150. D/CameraHal(  194): ~SensorListener(122): Kill looper
  151. D/CameraHal(  194): ~SensorListener(128): SensorListener destroyed
  152. D/CameraHal(  194): displayThread(622): displayThread(622): receive CMD_DISPLAY_STOP
  153. D/CameraHal(  194): cameraDisplayBufferDestory(399): cameraDisplayBufferDestory(399): mANativeWindow is NULL, destory is ignore
  154. D/CameraHal(  194): encProcessThread(1632): encProcessThread(1632): receive CMD_ENCPROCESS_EXIT
  155. E/CameraHal_Marvin(  194): OV13850:  STREAM OFF ++++++++++++++
  156. D/CameraHal(  194): commandThread(1095): commandThread(1095): receive CMD_EXIT
  157. D/CameraHal(  194): ~CameraHal(293): CameraHal destory success
  158. W/CameraService(  194): removeClient: clear camera 0, package name media
  159. E/CameraManagerGlobal(  601): Camera id 0 has status changed to 0x1
  160. D/CameraHal(  194): camera_get_camera_info(1311): camera_get_camera_info(1311): camera_0 facing(0), orientation(0)
  161. D/CameraHal(  194): camera_get_camera_info(1311): camera_get_camera_info(1311): camera_0 facing(0), orientation(0)
Copy the code





Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1