2025-10-10 16:07:00 +08:00

85 lines
2.4 KiB
ReStructuredText
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

UVC
=================================
:link_to_translation:`en:[English]`
1. 简介
---------------------------------
本工程是UVC默认调试工程可以用来测试插入的UVC工作是否正常默认使用16M PSRAM。
1.1 规格
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
请参考 `规格 <../../media/doorbell/index.html#id2>`_
1.2 路径
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
<bk_avdk源代码路径>/projects/peripheral/uvc
2. 框架图
---------------------------------
请参考 `框架图 <../../media/doorviewer/index.html#id4>`_
3. 配置
---------------------------------
3.1 蓝牙与多媒体内存复用
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
使用此工程只是单纯验证uvc故内存不需要与蓝牙共用。
+-------------------------------------+---------------+-------------------------------------+
| marco | value | implication |
+-------------------------------------+---------------+-------------------------------------+
| CONFIG_BT_REUSE_MEDIA_MEMORY | N | 多媒体和蓝牙共用一块sram分时复用|
+-------------------------------------+---------------+-------------------------------------+
3.1.1 卸载蓝牙
.................................
::
#ifdef CONFIG_BT_REUSE_MEDIA_MEMORY
#if CONFIG_BLUETOOTH
bk_bluetooth_deinit();
#endif
#endif
3.1.2 初始化蓝牙
.................................
::
bk_bluetooth_init();
3.2 区别
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
uvc与doorbell的区别在于
* uvc默认上电启动外设uvc并通过软件解码器分析输出的JPEG图像原始数据格式YUV422/YUV420和输出分辨率。其他外设不参与不支持图传LCD显示语音传输等。
* doorbell是一个完整的门锁方案。
4. 演示说明
---------------------------------
默认上电自启动不需要额外操作会打印如下log。
::
(4736):##MJPEG: frame_id:113, length:56922, frame_addr:0x6020fba0
video_co:I(4736):4:2:2, YUV:
(4736):##DECODE:pixel_x:864, pixel_y:480
(4736):rotate_angle:0(0:0 1:90 2:180 3:270)
(4736):byte_order:0(0:little endian 1:big endian)
(4736):out_fmt:YUYV
5. 代码讲解
---------------------------------
请参考 `代码讲解 <../../media/doorbell/index.html#id13>`_