[文章]

【HarmonyOS HiSpark AI Camera试用连载 】一、开箱+组装

2020-10-24 16:10:30  159 HarmonyOS HiSpark 鸿蒙系统 鸿蒙OS
分享
本帖最后由 renshengrumeng 于 2020-10-24 16:14 编辑

目录
  • 简介
  • 资源链接
  • 开箱
  • 组装
  • 运行效果


简介
    在2019年8月9日,华为在东莞举行华为开发者大会,正式发布操作系统鸿蒙OS
2020年9月10日,华为鸿蒙系统升级至华为鸿蒙系统2.0版本将面向大屏、手表、车机等128KB-128MB终端设备开源。
2021年4月将面向内存128MB-4GB终端设备开源。
2021年10月以后将面向4GB以上所有设备开源。
HiSpark AI Camera 开发板参数如下
配置参数
SoC基于海思专用Smart HD IP camera SoC :Hi3516DV300
双核Cortex-A7 MP2 @900MHz处理器
集成新一代 ISP、高性能NNIE引擎,1.0Tops
操作系统支持Linux OS、Lite OS、鸿蒙 OS多操作系统
通信接口1组DDRC,最大支持32bit/2GB处理空间,标准产品配套1GB ddr3,最大数据数率1.8Gbps
eMMC4.5,最大支持4bit/64GB存储空间,标准产品配套8GB
外部扩展SD存储接口,最大支持2TB SDXC卡
功能特性低功耗Wi-Fi无线通信
Ethernet通信,RMII模式
Type C接口,支持USB2.0+1.2米Type C调试线缆
调试接口JTAG接口
UART0 debug接口+1米串口转接线
100M网口调试
视频与图形处理输入
索尼高端安防低照度Sensor IMX335:5.04M像素,最大分辨率2592(H)x1944(V),60fps帧数率
星光级黑光低照度M12镜头:F1.6大光圈,1/2.7”成像靶面,3.6mm焦距
高精度光敏检测,红外补光+IR-Cut红外夜视功能
输出
H.265视频压缩编码输出图形和视频1/15~16X缩放
图像90°/180°/270°旋转
microHDMI接口输出高清画质,最大分辨率1080P60
兼容4寸、5.5寸LCD/TP屏显示
音频特性单声道驻极体表贴mic,同步预留差分输入mic接口
2030腔体全频段喇叭,配1.25间距端子,位置自由调整
功能扩展蜂鸣器、双色指示灯音色搭配,双提示功能
2路自定义按键、I2C、UART、GPIO、PWM、ADC模拟采集等,支持NFC模组、5G模组、舵机等扩展
安全性预留算法加密IC
3C安全认证、带开关按键、高可靠性Type C接口5V/3A电源适配
资源链接
鸿蒙技术社区,有很多前人的宝贵经验。
https://bbs.elecfans.com/HarmonyOS
华为开发者社区:https://developer.huawei.com/cn/
开箱
开发板带了一个塑料包装盒,包装盒背面有生产厂家联系方式和技术设计二维码,还有官方购买链接。
2.jpg

1.jpg

打开包装盒拿开触摸屏后组装好的开发板就在盒子的右手边,左边是电源,串口线,数据线,上面透明的亚克力板是个为了板子展示和固定做的支架。
3.jpg

电源的设计很好,很是喜欢。方方正正的感觉很舒服,而且出头是可以收缩设计,使电源收起时省空间,像个方盒子。还有个亮点就是电源线上的开关。多的不说了来看看没有任何修饰的图片吧。

微信图片_20201024154958.jpg

再来说下电源参数 输出5V3A type-c接口,太爱来,有没有。
最后登场的时黑白配的 数据线和usb转串口线

4.jpg

不过官方带的串口显示PL2302 的需要自己安装下驱动。具体操作步骤如下链接https://blog.csdn.net/wtf3505/article/details/104138727。
组装
    看到这么多螺丝,这么多元器件,没有忍住诱惑直接就开始自己的组装之路,经过一个晚上的组装最后还是不对,欲哭无泪。不要我,问我经历了什么,看到这篇文章要告诉你的是不要要经历我那么无助的组装之路,因为有人已经录制了相信的视频。链接如下:https://www.bilibili.com/video/BV1tV411m7gW
完成后的效果图:


微信图片_20201024155925.jpg

运行效果
夜间摄像头运行效果:


5.jpg
白天运行效果
6.jpg

串口波特率时115200,系统启动日志如下:
  1. System startup

  2. Uncompress Ok!

  3. U-Boot 2020.01 (Sep 08 2020 - 23:26:57 +0800)hi3516dv300

  4. DRAM:  MMC:
  5. EMMC/MMC/SD controller initialization.
  6. scan edges:2 p2f:6 f2p:1
  7. mix set temp-phase 3
  8. scan elemnts: startp:4 endp:123
  9. Tuning Sampleclock. mix set phase:[03/07] ele:[15d/16]
  10. MMC/SD Card:
  11.     MID:         0x15
  12.     Read Block:  512 Bytes
  13.     Write Block: 512 Bytes
  14.     Chip Size:   7456M Bytes (High Capacity)
  15.     Name:        "8GTF4"
  16.     Chip Type:   MMC
  17.     Version:     0.0
  18.     Speed:       100000000Hz
  19.     Bus Width:   4bit
  20. himci: 0 (eMMC)
  21. Loading Environment from MMC... OK
  22. In:    serial
  23. Out:   serial
  24. Err:   serial
  25. Net:   eth0
  26. Error: eth0 address not set.

  27. Hit any key to stop autoboot:  0
  28. Unknown command 'sf' - try 'help'

  29. MMC read: dev # 0, block # 2048, count 18432 ... 18432 blocks read: OK
  30. 45.24 MB/s
  31. ## Starting application at 0x80000000 ...

  32. ******************Welcome******************

  33. Processor   : Cortex-A7 * 2
  34. Run Mode    : SMP
  35. GIC Rev     : GICv2
  36. build time  : Sep 11 2020 15:21:24
  37. Kernel      : Huawei LiteOS 2.0.0.35/debug

  38. *******************************************

  39. main core booting up...
  40. [ERR][HDF:E/hcs_blob_if]CheckHcsBlobLength: the blobLength: 13128, byteAlign: 1, totalSize: -13108
  41. releasing 1 secondary cores
  42. cpu 0 entering scheduler
  43. cpu 1 entering scheduler
  44. random dev init ...
  45. proc fs init ...
  46. Mount procfs finished.
  47. MMC dev init ...[ERR]No console dev used.
  48. [ERR]No console dev used.
  49. disk_init : register /dev/mmcblk0 ok!
  50. mem dev init ...
  51. spi nor flash init ...
  52. spinor_get_dev_id(56): Spi(cs0) have no device.
  53. Cs[0] have no device!!!
  54. spinor_get_dev_id(56): Spi(cs1) have no device.
  55. Cs[1] have no device!!!
  56. hifmc100_attach(130): Error:spinor scan fail!
  57. net init ...

  58. tcpip_init start

  59. tcpip_init end
  60. Ethernet start.hisi_eth: User did not set phy mode, use default=rmii
  61. hisi_eth: User did not set phy addr, auto scan...
  62. No OTP data, festa PHY use default ATE parameters!
  63. festa PHY wait autotrim done timeout!
  64. Detected phy addr 1, phyid: 0x1cc816
  65. spinor_get_dev_id(56): Spi(cs0) have no device.
  66. Cs[0] have no device!!!
  67. spinor_get_dev_id(56): Spi(cs1) have no device.
  68. Cs[1] have no device!!!
  69. hifmc100_attach(130): Error:spinor scan fail!
  70. netif_is_link_up overtime!

  71. ************************************************************
  72. usb init ...

  73. ******** usb_init in **********
  74. usb v3.05 2019-11-20 10:40
  75. xhci_init (xhci0): 64 bytes context size, 32-bit DMA
  76. usb_bus_attach (usbus0): 5.0Gbps Super Speed USB v3.0
  77. spinor_get_dev_id(56): Spi(cs0) have no device.
  78. Cs[0] have no device!!!
  79. spinor_get_dev_id(56): Spi(cs1) have no device.
  80. Cs[1] have no device!!!
  81. hifmc100_attach(130): Error:spinor scan fail!
  82. ******** usb_init ok**********

  83. Date:Sep 11 2020.
  84. Time:15:37:03.
  85. ugen0.1: <vendor 0x0000> at usbus0
  86. OsMountRootfs start ...
  87. device_set_usb_desc (uhub0): <vendor 0x0000 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
  88. disk_init : register /dev/mmcblk0 ok!
  89. DiskAddPart : register /dev/mmcblk0p0 ok!
  90. DiskAddPart : register /dev/mmcblk0p1 ok!
  91. DiskAddPart : register /dev/mmcblk0p2 ok!
  92. OsMountRootfs end ...
  93. g_mmz_start=0x88000000, g_mmz_size=0x180
  94. mmz param= anonymous,0,0x88000000,384M
  95. <6>Hisilicon Media Memory Zone Manager
  96. Load hifb.ko OK!
  97. [VERSION]:Hi3881V100R001C00SPC020 2020-07-16 23:15:00
  98. oam_main_init SUCCESSFULLY!
  99. wal_customize_init SUCCESSFULLY!
  100. oal_main_init SUCCESSFULLY
  101. frw_main_init SUCCESSFULLY!
  102. hi_wifi_plat_init SUCCESSFULLY
  103. sdio probe:pull up power on gpio
  104. hcc_hmac_init SUCCESSFULLY
  105. uhub_attach (uhub0): 1 port with 1 removable, self powered
  106. plat_firmware_init SUCCESSFULLY
  107. Device is Ready!
  108. wlan_pm_open SUCCESSFULLY!!
  109. hmac_main_init SUCCESSULLY
  110. get rates from device
  111. wal_main_init SUCCESSFULLY
  112. hi_wifi_host_init SUCCESSFULLY
  113. Hi3881 DRV insmod SUCCESSFULLY!
  114. [ERR][HDF:E/HDF_LOG_TAG]HdfWifiDriverInit:init chip 0 success!
  115. sdk init end
  116. cat log shell end
  117. [Init] ****/****/****/****/OpenHarmony/****/****/3/OpenHarmony 1.0/debug
  118. [Init] DoMount, faiLED for vfat /dev/mmcblk0 /sdcard rw,umask=000, err -1.
  119. [ERR]Failed to find block driver /dev/mmcblk1
  120. [Init] DoMount, failed for vfat /dev/mmcblk1 /sdcard rw,umask=000, err -1.
  121. [Init] start service shell succeed, pid 3.
  122. OHOS # [Init] start service apphilogcat succeed, pid 4.
  123. [Init] start service foundation succeed, pid 5.
  124. 01-01 00:00:14.565 5 29 I 01800/Samgr: Initialize Registry!
  125. 01-01 00:00:14.590 5 29 I 00000/(null): Init pms service success
  126. 01-01 00:00:14.605 5 29 I 00000/(null): Init ipcAuth feature success
  127. 01-01 00:00:14.617 5 29 I 00000/(null): Init pms inner feature success
  128. 01-01 00:00:14.617 5 29 I 00000/(null): Init pms lite feature success
  129. 01-01 00:00:14.702 5 29 I 01300/abilityms: AbilityManagerService::Init(43): ams start result is successfully
  130. 01-01 00:00:14.718 5 29 I 01300/abilityms: AbilityMgRFeature::Init(70): ams feature init success
  131. 01-01 00:00:14.718 5 29 I 01300/abilityms: AbilityInnerFeature::Init(60): ams inner feature init success
  132. 01-01 00:00:14.780 5 29 D 00000/(null): BundleMS start success
  133. 01-01 00:00:14.787 5 29 D 00000/(null): BundleMS inner feature start success
  134. 01-01 00:00:14.795 5 29 D 00000/(null): BundleMS feature start success
  135. 01-01 00:00:14.877 5 29 D 00000/(null): [DMSLITE][Init:86][dms service start success]

  136. 01-01 00:00:14.885 5 29 I 01800/Samgr: Bootstrap core services(count:5).
  137. 01-01 00:00:14.899 5 29 I 01800/Samgr: Init service:samgr TaskPool:0x222928e0
  138. [UnRegisteDeathCallback : 960]Wrong cbId:4294967295.
  139. [UnRegisteDeathCallback : 960]Wrong cbId:4294967295.
  140. [UnRegisteDeathCallback : 960]Wrong cbId:4294967295.
  141. write file switch /storage/data/log/hilog2.txt
  142. 01-01 00:00:14.966 5 36 D 01800/Samgr: RegisterRemoteFeatures<bundlems, BmsInnerFeature> ret:0
  143. 01-01 00:00:14.966 5 36 D 01800/Samgr: RegisterIdentity <bundlems, BmsFeature> pid<5> <36, 1> [DISCOVERY] InitLocalDeviceInfo ok

  144. 01-01 00:00:14.966 5 36 D 01800/Samgr: RegisterRemoteFeatures<bundlems, BmsFeature> ret:0[DISCOVERY] CoapReadHandle coin select begin

  145. [AUTH] StartBus StartListener fail
  146. [DISCOVERY] InitService BusManager(1) fail
  147. [DISCOVERY] InitService ok
  148. [DISCOVERY] PublishCallback publishId=1, result=0
  149. 01-01 00:00:14.966 5 36 D 01800/Samgr: RegisterIdentity <abilityms, AmsInnerFeature> pid<5> <36, 3>
  150. 01-01 00:00:14.966 5 36 D 01800/Samgr: RegisterRemoteFeatures<abilityms, AmsInnerFeature> ret:0
  151. 01-01 00:00:14.966 5 36 D 01800/Samgr: RegisterIdentity <permissionms, PmsFeature> pid<5> <36, 4>
  152. 01-01 00:00:14.966 5 36 D 01800/Samgr: RegisterRemoteFeatures<permissionms, PmsFeature> ret:0
  153. 01-01 00:00:14.966 5 36 I 01800/Samgr: Register endpoint<ipc receive> and iunknown finished! remain<0> iunknown!
  154. 01-01 00:00:15.066 5 34 D 00000/(null): [DMSLITE][RegisterTcpCallback:85][Register failed, errCode = -1]

  155. 01-01 00:00:15.066 5 34 I 00000/(null): [DMSLITE][OnPublishSuccess:115][dms service publish success]

  156. 01-01 00:00:15.066 5 34 I 01800/Samgr: Init service dtbschedsrv <time: 194ms> success!
  157. 01-01 00:00:15.066 5 34 I 01800/Samgr: Initialized all core system services!
  158. 01-01 00:00:15.066 5 34 I 01800/Samgr: Goto next boot step failed! errno:-9
  159. [Init] start service bundle_daemon succeed, pid 6.
  160. 01-01 00:00:15.245 6 39 E 01100/bundle_deamon: BundleDaemon::Init(52): register default feature api success[UnRegisteDeathCallback : 960]Wrong cbId:4294967295.
  161. [UnRegisteDeathCallback : 960]Wrong cbId:4294967295.

  162. 01-01 00:00:15.246 6 39 I 01800/Samgr: Init service:bundle_daemon TaskPool:0x239aac10
  163. 01-01 00:00:15.246 6 40 I 01800/Samgr: Initialize Registry!
  164. 01-01 00:00:15.247 5 30 I 01800/Samgr: Register Endpoint<6, 41, 0>
  165. 01-01 00:00:15.247 5 30 D 01800/Samgr: Register Feature<bundle_daemon, (null)> pid<6>, id<41, 0> ret:0
  166. 01-01 00:00:15.247 6 41 D 01800/Samgr: RegisterRemoteFeatures<bundle_daemon, (null)> ret:0
  167. 01-01 00:00:15.247 6 41 I 01800/Samgr: Register endpoint<ipc client> and iunknown finished! remain<0> iunknown!
  168. 01-01 00:00:15.247 5 30 D 01800/Samgr: Register Feature<bundle_daemon, (null)> pid<6>, id<41, 0> ret:0
  169. 01-01 00:00:15.248 6 40 I 01800/Samgr: Register server sa<bundle_daemon, (null)> id<4294967295, 0> retry:1 ret:0!
  170. 01-01 00:00:15.248 6 40 I 01800/Samgr: Init service bundle_daemon <time: 3ms> success!
  171. write file switch /storage/data/log/hilog1.txt
  172. 01-01 00:00:15.248 6 40 I 01800/Samgr: Initialized all core system services!
  173. 01-01 00:00:15.248 6 40 I 01800/Samgr: Goto next boot step failed! errno:-9
  174. 01-01 00:00:15.429 5 33 I 01800/Samgr: Create proxy[0x220948b0]<bundle_daemon, (null), 41, 0>
  175. 01-01 00:00:15.429 6 40 I 01100/bundle_deamon: BundleDaemon::Invoke(102): bundle_daemon invoke start 8
  176. 01-01 00:00:15.469 6 40 I 01100/bundle_deamon: BundleDaemon::Invoke(102): bundle_daemon invoke start 5
  177. 01-01 00:00:15.469 6 40 E 01100/bundle_deamon: BundleDaemonHandler::RemoveFile(194): realPath fail!
  178. 01-01 00:00:15.514 5 33 I 00000/(null): create ZipFile instance
  179. 01-01 00:00:15.514 5 33 I 00000/(null): open: /system/internal/camera.hap
  180. 01-01 00:00:15.535 5 33 I 00000/(null): parse 18 central entries from /system/internal/camera.hap
  181. 01-01 00:00:15.535 5 33 I 00000/(null): extract file config.json
  182. 01-01 00:00:15.535 5 33 I 00000/(null): get entry by name: config.json
  183. 01-01 00:00:15.535 5 33 D 00000/(null): get entry successed
  184. 01-01 00:00:15.540 5 33 I 00000/(null): unzip with inflated
  185. 01-01 00:00:15.540 5 33 I 00000/(null): seek to entry start 0x0000b61b
  186. 01-01 00:00:15.605 5 33 I 00000/(null): unzip with inflated success
  187. 01-01 00:00:15.605 5 33 I 00000/(null): close: /system/internal/camera.hap
  188. 01-01 00:00:15.703 5 33 I 00000/(null): create ZipFile instance
  189. 01-01 00:00:15.703 5 33 I 00000/(null): open: /system/internal/gallery.hap
  190. 01-01 00:00:15.713 5 33 I 00000/(null): parse 12 central entries from /system/internal/gallery.hap
  191. 01-01 00:00:15.713 5 33 I 00000/(null): extract file config.json
  192. 01-01 00:00:15.713 5 33 I 00000/(null): get entry by name: config.json
  193. 01-01 00:00:15.713 5 33 D 00000/(null): get entry successed
  194. 01-01 00:00:15.713 5 33 I 00000/(null): unzip with inflated
  195. 01-01 00:00:15.713 5 33 I 00000/(null): seek to entry start 0x0000977b
  196. 01-01 00:00:15.713 5 33 I 00000/(null): unzip with inflated success
  197. 01-01 00:00:15.713 5 33 I 00000/(null): close: /system/internal/gallery.hap
  198. 01-01 00:00:15.814 5 33 I 00000/(null): create ZipFile instance
  199. 01-01 00:00:15.814 5 33 I 00000/(null): open: /system/internal/launcher.hap
  200. write file switch /storage/data/log/hilog2.txt
  201. 01-01 00:00:15.833 5 33 I 00000/(null): parse 6 central entries from /system/internal/launcher.hap
  202. 01-01 00:00:15.833 5 33 I 00000/(null): extract file config.json
  203. 01-01 00:00:15.833 5 33 I 00000/(null): get entry by name: config.json
  204. 01-01 00:00:15.833 5 33 D 00000/(null): get entry successed
  205. 01-01 00:00:15.836 5 33 I 00000/(null): unzip with inflated
  206. 01-01 00:00:15.836 5 33 I 00000/(null): seek to entry start 0x00007964
  207. 01-01 00:00:15.836 5 33 I 00000/(null): unzip with inflated success
  208. 01-01 00:00:15.836 5 33 I 00000/(null): close: /system/internal/launcher.hap
  209. 01-01 00:00:15.928 5 33 I 00000/(null): create ZipFile instance
  210. 01-01 00:00:15.928 5 33 I 00000/(null): open: /system/internal/setting.hap
  211. 01-01 00:00:15.951 5 33 I 00000/(null): parse 15 central entries from /system/internal/setting.hap
  212. 01-01 00:00:15.951 5 33 I 00000/(null): extract file config.json
  213. 01-01 00:00:15.951 5 33 I 00000/(null): get entry by name: config.json
  214. 01-01 00:00:15.951 5 33 D 00000/(null): get entry successed
  215. 01-01 00:00:15.954 5 33 I 00000/(null): unzip with inflated
  216. 01-01 00:00:15.954 5 33 I 00000/(null): seek to entry start 0x0000a85a
  217. 01-01 00:00:15.954 5 33 I 00000/(null): unzip with inflated success
  218. 01-01 00:00:15.954 5 33 I 00000/(null): close: /system/internal/setting.hap
  219. 01-01 00:00:16.105 5 32 D 01300/abilityms: AbilityMgrHandler::OnServiceInited(122): start
  220. 01-01 00:00:16.106 5 32 I 01300/abilityms: WMSClient::WaitUntilWmsReady(35): wait for window manager service start
  221. [Init] start service appspawn succeed, pid 7.
  222. 01-01 00:00:16.256 7 43 I 00000/(null): [appspawn] get service name appspawn.
  223. [UnRegisteDeathCallback : 960]Wrong cbId:4294967295.
  224. [UnRegisteDeathCallback : 960]Wrong cbId:4294967295.
  225. 01-01 00:00:16.258 7 45 D 01800/Samgr: RegisterRemoteFeatures<appspawn, (null)> ret:0
  226. 01-01 00:00:16.258 7 45 I 01800/Samgr: Register endpoint<ipc client> and iunknown finished! remain<0> iunknown!
  227. 01-01 00:00:16.258 5 30 D 01800/Samgr: Register Feature<appspawn, (null)> pid<7>, id<45, 0> ret:0
  228. 01-01 00:00:16.259 7 44 I 01800/Samgr: Register server sa<appspawn, (null)> id<4294967295, 0> retry:1 ret:0!
  229. 01-01 00:00:16.259 7 44 I 00000/(null): [appspawn] get service name appspawn.
  230. 01-01 00:00:16.259 7 44 I 01800/Samgr: Init service appspawn <time: 2ms> success!
  231. write file switch /storage/data/log/hilog1.txt
  232. 01-01 00:00:16.259 7 44 I 01800/Samgr: Initialized all core system services!
  233. 01-01 00:00:16.259 7 44 I 00000/(null): [appspawn] get service name appspawn.
  234. 01-01 00:00:16.259 7 44 I 01800/Samgr: Goto next boot step failed! errno:-9
  235. 01-01 00:00:16.259 7 43 I 00000/(null): [appspawn] HOS_SystemInit is called!
  236. 01-01 00:00:16.259 7 43 I 00000/(null): [appspawn] main, entering wait.
  237. [Init] start service media_server succeed, pid 8.
  238. Media server initialize succeed.
  239. [Init] start service wms_server succeed, pid 9.
  240. [display I/] LayerInitialize: layer initialize success
  241. [Init] main, entering wait.
复制代码


0

PL2303_Prolific_GPS_1013_20090319.zip

2.15 MB, 下载次数: 1, 下载积分: 积分 -1 分

2020-10-24 16:10:30   评论 分享淘帖
您需要登录后才可以回帖 登录 | 注册

声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容图片侵权或者其他问题,请联系本站作侵删。 侵权投诉
发表新帖