Skip to content
GitLab
LSCloud-logo1
Created with Sketch.
LSCloud-logo2
Created with Sketch.
项目
项目组
代码片段
帮助
正在加载...
帮助
关于聆思
登录
切换导航
D
duomotai_ap
项目概览
项目概览
详情
动态
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
合并请求
11
合并请求
11
CI / CD
CI / CD
流水线
作业
计划
小工具
烧录包信息打印
烧录包校验
烧录包打包
生成LPK包
收起侧边栏
关闭侧边栏
动态
分支图
作业
提交
打开侧边栏
Duomotai
duomotai_ap
提交
31abd741
提交
31abd741
编写于
1年前
作者:
蔡雪峰
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[feature]增加二维码识别功能.
上级
6f32ff8a
流水线
#13178
已失败 ,包含阶段
in 0 second
变更
15
流水线
1
Hide whitespace changes
内联
并排
15 个文件被修改
(
102 行新增
以及
8 行删除
)
+102
-8
apps/LLM_pic/Kconfig.capability
apps/LLM_pic/Kconfig.capability
+11
-1
apps/LLM_pic/boards/csk6_duomotai_devkit.overlay
apps/LLM_pic/boards/csk6_duomotai_devkit.overlay
+8
-2
apps/LLM_pic/image/CMakeLists.txt
apps/LLM_pic/image/CMakeLists.txt
+7
-0
apps/LLM_pic/image/Kconfig.images
apps/LLM_pic/image/Kconfig.images
+10
-0
apps/LLM_pic/image/custom-sections.ld
apps/LLM_pic/image/custom-sections.ld
+7
-0
apps/LLM_pic/image/dsp_resource.h
apps/LLM_pic/image/dsp_resource.h
+6
-0
apps/LLM_pic/image/linker_flash_partitions.ld
apps/LLM_pic/image/linker_flash_partitions.ld
+4
-0
apps/LLM_pic/prj.conf
apps/LLM_pic/prj.conf
+14
-1
apps/LLM_pic/resource/algo_resource/qrcode/qrcode_detect_res_thinker.bin
...source/algo_resource/qrcode/qrcode_detect_res_thinker.bin
+0
-0
apps/LLM_pic/resource/cp_bin_files/venus_cp.bin
apps/LLM_pic/resource/cp_bin_files/venus_cp.bin
+0
-0
apps/LLM_pic/resource/resource.c
apps/LLM_pic/resource/resource.c
+7
-0
apps/LLM_pic/src/main.c
apps/LLM_pic/src/main.c
+15
-2
apps/spd/Kconfig.capability
apps/spd/Kconfig.capability
+10
-0
apps/spd/prj.conf
apps/spd/prj.conf
+1
-0
west.yml
west.yml
+2
-2
未找到文件。
apps/LLM_pic/Kconfig.capability
浏览文件 @
31abd741
...
...
@@ -19,12 +19,22 @@ config CAPABILITY_SPD
select WEBUSB
default n
config CAPABILITY_QRCODE
bool "Enable qrcode"
select GCP
select GCL_COMP_RES
select GCS_SERVICE_QRCODE
select GCL_QRCODE
select GCL_WEBUSB
select WEBUSB
default n
if CAPABILITY_WAKEUP
config GCL_HEAP_SRAM_SIZE
default 40960
config GCL_HEAP_PSRAM_SIZE
default
8192
0
default
20480
0
config GCL_HEAP_SRAM_NOCACHE_SIZE
default 20480
...
...
This diff is collapsed.
Click to expand it.
apps/LLM_pic/boards/csk6_duomotai_devkit.overlay
浏览文件 @
31abd741
...
...
@@ -23,6 +23,7 @@
resource,wakeup_esr_main = &wakeup_esr_main_partition;
resource,wakeup_esr_cmds = &wakeup_esr_cmds_partition;
resource,wakeup_ai_wrap_conf = &wakeup_ai_wrap_conf_partition;
resource,qrcode_detect = &qrcode_detect_partition;
};
aliases {
spk-pa-mute = &spk_pa_mute;
...
...
@@ -105,9 +106,14 @@
label = "id_nvs_storage";
reg = <0x931000 0x4000>;
};
qrcode_detect_partition: partition@935000 {
label = "qrcode_detect_partition";
reg = < 0x935000 0xc0000 >;
};
/* user storage partition */
storage_partition: partition@9
3
5000 {
reg = <0x9
35000 0x7C
A000>;
storage_partition: partition@9
F
5000 {
reg = <0x9
F5000 0x70
A000>;
};
};
};
...
...
This diff is collapsed.
Click to expand it.
apps/LLM_pic/image/CMakeLists.txt
浏览文件 @
31abd741
...
...
@@ -80,6 +80,13 @@ app_generate_inc_file_for_target(
res_image_dependencies
)
app_generate_inc_file_for_target
(
app
../resource/algo_resource/qrcode/qrcode_detect_res_thinker.bin
${
gen_dir
}
/qrcode_detect_res_thinker.inc
res_image_dependencies
)
zephyr_linker_sources
(
SECTIONS custom-sections.ld
)
target_sources
(
app PRIVATE ./dsp_resource.c
)
This diff is collapsed.
Click to expand it.
apps/LLM_pic/image/Kconfig.images
浏览文件 @
31abd741
...
...
@@ -10,6 +10,7 @@ DT_CHOSEN_Z_FLASH_RES_WAKEUP_ESR_MLP := resource,wakeup_esr_mlp
DT_CHOSEN_Z_FLASH_RES_WAKEUP_ESR_MAIN := resource,wakeup_esr_main
DT_CHOSEN_Z_FLASH_RES_WAKEUP_ESR_CMDS := resource,wakeup_esr_cmds
DT_CHOSEN_Z_FLASH_RES_WAKEUP_AI_WRAP_CONF := resource,wakeup_ai_wrap_conf
DT_CHOSEN_Z_FLASH_RES_QRCODE_DETECT := resource,qrcode_detect
config FLASH_RES_IMAGE_ADDRESS
hex "second core firmware space start address"
...
...
@@ -90,3 +91,12 @@ config FLASH_RES_WAKEUP_AI_WRAP_CONF_ADDRESS
config FLASH_RES_WAKEUP_AI_WRAP_CONF_SIZE
hex "Wakeup algorithm resource data space size"
default "$(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_FLASH_RES_WAKEUP_AI_WRAP_CONF))"
config FLASH_RES_QRCODE_DETECT_ADDRESS
hex "algorithm resource data space start address"
default "$(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_FLASH_RES_QRCODE_DETECT))"
config FLASH_RES_QRCODE_DETECT_SIZE
hex "algorithm resource data space size"
default "$(dt_chosen_reg_size_hex,$(DT_CHOSEN_Z_FLASH_RES_QRCODE_DETECT))"
This diff is collapsed.
Click to expand it.
apps/LLM_pic/image/custom-sections.ld
浏览文件 @
31abd741
...
...
@@ -53,4 +53,11 @@ SECTION_PROLOGUE(RES_WAKEUP_AI_WRAP_CONFIG,,)
{
KEEP(*(".wakeup_ai_wrap_config.text"));
} GROUP_LINK_IN(RES_WAKEUP_AI_WRAP_CONFIG)
#endif
#if defined(CONFIG_CAPABILITY_QRCODE)
SECTION_PROLOGUE(RES_QRCODE_DETECT,,)
{
KEEP(*(".qrcode_detect_res_thinker.text"));
} GROUP_LINK_IN(RES_QRCODE_DETECT)
#endif
\ No newline at end of file
This diff is collapsed.
Click to expand it.
apps/LLM_pic/image/dsp_resource.h
浏览文件 @
31abd741
...
...
@@ -49,4 +49,10 @@ __attribute__((section(".wakeup_ai_wrap_config.text"))) static const unsigned ch
#endif
#if defined(CONFIG_CAPABILITY_QRCODE)
__attribute__
((
section
(
".qrcode_detect_res_thinker.text"
)))
static
const
unsigned
char
qrcode_detect
[]
=
{
#include "qrcode_detect_res_thinker.inc"
};
#endif
#pragma GCC pop_options
This diff is collapsed.
Click to expand it.
apps/LLM_pic/image/linker_flash_partitions.ld
浏览文件 @
31abd741
...
...
@@ -40,6 +40,10 @@ MEMORY
RES_WAKEUP_ESR_CMDS (r) : ORIGIN = (CONFIG_FLASH_BASE_ADDRESS + CONFIG_FLASH_RES_WAKEUP_ESR_CMDS_ADDRESS), LENGTH = CONFIG_FLASH_RES_WAKEUP_ESR_CMDS_SIZE
RES_WAKEUP_AI_WRAP_CONFIG (r) : ORIGIN = (CONFIG_FLASH_BASE_ADDRESS + CONFIG_FLASH_RES_WAKEUP_AI_WRAP_CONF_ADDRESS), LENGTH = CONFIG_FLASH_RES_WAKEUP_AI_WRAP_CONF_SIZE
#endif
#if defined(CONFIG_CAPABILITY_QRCODE)
RES_QRCODE_DETECT (r) : ORIGIN = (CONFIG_FLASH_BASE_ADDRESS + CONFIG_FLASH_RES_QRCODE_DETECT_ADDRESS), LENGTH = CONFIG_FLASH_RES_QRCODE_DETECT_SIZE
#endif
}
#include <linker.ld>
This diff is collapsed.
Click to expand it.
apps/LLM_pic/prj.conf
浏览文件 @
31abd741
...
...
@@ -71,12 +71,14 @@ CONFIG_FLASH_MAP=y
CONFIG_FILE_SYSTEM
=
y
CONFIG_FLASH_PAGE_LAYOUT
=
y
CONFIG_FILE_SYSTEM_LITTLEFS
=
y
CONFIG_APLICATION_PACK_IMAGES
=
y
CONFIG_APLICATION_PACK_IMAGES
=
n
CONFIG_GCP
=
y
CONFIG_DISK_MEMORY
=
n
CONFIG_CAPABILITY_WAKEUP
=
y
CONFIG_CAPABILITY_QRCODE
=
y
CONFIG_WEBUSB_DEBUG
=
y
CONFIG_DISK_MEMORY
=
n
CONFIG_GCS_WAKEUP_SERVICE_EVENT_STACK_SIZE
=
4096
...
...
@@ -84,6 +86,17 @@ CONFIG_GCS_WAKEUP_SERVICE_EVENT_STACK_SIZE=4096
CONFIG_GPIO
=
y
CONFIG_GPIO_CSK6_CH32V003
=
y
# dvp
CONFIG_I2C
=
y
CONFIG_VIDEO
=
y
CONFIG_VIDEO_CSK6_DVP
=
y
CONFIG_VIDEO_GC0328
=
y
CONFIG_VIDEO_BUFFER_POOL_SZ_MAX
=
154000
CONFIG_VIDEO_BUFFER_POOL_NUM_MAX
=
3
CONFIG_VIDEO_CUSTOM_SECTION
=
y
CONFIG_VIDEO_CUSTOM_SECTION_NAME
=
".psram_section"
# auth check
CONFIG_MBEDTLS
=
y
CONFIG_MBEDTLS_BUILTIN
=
y
...
...
This diff is collapsed.
Click to expand it.
apps/LLM_pic/resource/algo_resource/qrcode/qrcode_detect_res_thinker.bin
0 → 100644
浏览文件 @
31abd741
文件已添加
This diff is collapsed.
Click to expand it.
apps/LLM_pic/resource/cp_bin_files/venus_cp.bin
浏览文件 @
31abd741
无法预览此类型文件
This diff is collapsed.
Click to expand it.
apps/LLM_pic/resource/resource.c
浏览文件 @
31abd741
...
...
@@ -63,6 +63,13 @@ int components_resource_load(void)
#endif
#if CONFIG_CAPABILITY_QRCODE
res_mgr
->
item
[
res_mgr
->
number
].
res_type
=
COMP_RES_GCL_IPC_QRCODE_DETECT
;
res_mgr
->
item
[
res_mgr
->
number
].
res_addr
=
DT_RES_ADDR
(
resource_qrcode_detect
);
res_mgr
->
item
[
res_mgr
->
number
].
res_size
=
DT_RES_SIZE
(
resource_qrcode_detect
);
res_mgr
->
number
++
;
#endif
gcl_comps_res_load
(
res_mgr
);
csk_free
(
res_mgr
);
...
...
This diff is collapsed.
Click to expand it.
apps/LLM_pic/src/main.c
浏览文件 @
31abd741
...
...
@@ -20,6 +20,8 @@ LOG_MODULE_REGISTER(aiui_sample, LOG_LEVEL_INF);
#include "lsf.h"
#include "ic_message.h"
#include <gcs_wakeup_service.h>
#include <gcs_qrcode_service.h>
#include "gcl_webusb.h"
#include "format.h"
#include "resource.h"
#include "ui_events.h"
...
...
@@ -210,7 +212,9 @@ int main(void)
{
boot_cp
((
const
void
*
)
CP_BOOT_ADDRESS
);
#if CONFIG_GCL_WEBUSB
webusb_gcl_init
();
#endif
ic_message_init
();
#if (CONFIG_GCL_COMP_RES)
components_resource_load
();
...
...
@@ -238,7 +242,16 @@ int main(void)
}
wakeup_service_gcs_stream_data_callback
(
wakeup_stream_data_process
);
wakeup_service_gcs_rlt_callback
(
wakeup_rlt_process
);
wakeup_service_gcs_start
();
// wakeup_service_gcs_start();
qrcode_service_gcs_params_t
params
;
qrcode_service_gcs_init
();
qrcode_service_gcs_params_get
(
&
params
);
qrcode_service_gcs_params_set
(
&
params
);
// qrcode_service_gcs_rlt_callback(qrcode_rlt_process);
qrcode_service_gcs_work_mode_set
(
QRCODE_GCS_WORK_MODE_DEBUG
);
qrcode_service_gcs_start
();
k_sem_give
(
&
m_algos_initialized
);
...
...
This diff is collapsed.
Click to expand it.
apps/spd/Kconfig.capability
浏览文件 @
31abd741
...
...
@@ -11,6 +11,16 @@ config CAPABILITY_SPD
select WEBUSB
default n
config CAPABILITY_QRCODE
bool "Enable QRCODE"
select GCP
select GCL_COMP_RES
select GCS_SERVICE_QRCODE
select GCL_QRCODE
select GCL_WEBUSB
select WEBUSB
default n
if CAPABILITY_SPD
config GCL_HEAP_SRAM_SIZE
default 40960
...
...
This diff is collapsed.
Click to expand it.
apps/spd/prj.conf
浏览文件 @
31abd741
...
...
@@ -47,5 +47,6 @@ CONFIG_FLASH_MAP=y
CONFIG_APLICATION_PACK_IMAGES
=
y
CONFIG_CAPABILITY_SPD
=
y
CONFIG_CAPABILITY_QRCODE
=
y
CONFIG_WEBUSB_DEBUG
=
y
CONFIG_DISK_MEMORY
=
n
This diff is collapsed.
Click to expand it.
west.yml
浏览文件 @
31abd741
...
...
@@ -27,7 +27,7 @@ manifest:
-
name
:
lsf-for-zephyr
remote
:
lsf
revision
:
a4acde8eb36a3badd17cb06ebf1a366d1ed33c33
revision
:
60e7a76892c0fbe513c49e3ebbcff6f452424a3b
path
:
modules/lib/lsf-for-zephyr
-
name
:
transport
...
...
@@ -43,7 +43,7 @@ manifest:
-
name
:
lsf
remote
:
lsf
revision
:
efc3baa36f840a3426152800016c864efefa607e
revision
:
342d860ed04ffc63dcccf6c7d0eb090aea95c4a3
path
:
modules/lib/lsf
-
name
:
urpc
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
支持
Markdown
0%
请重试
or
添加新附件
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录