Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JL_jiancetai
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
梁百峰
JL_jiancetai
Commits
924ebb8c
Commit
924ebb8c
authored
Jan 13, 2026
by
梁百峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
📃
docs:增加部分注释说明
parent
f40121f0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
11 deletions
+32
-11
app_main.c
...2025-12-23/fw-AC792_SDK/sdk/apps/wifi_soundbox/app_main.c
+6
-5
app_uart.c
...2025-12-23/fw-AC792_SDK/sdk/apps/wifi_soundbox/app_uart.c
+3
-2
a2dp_play.c
...3/fw-AC792_SDK/sdk/apps/wifi_soundbox/mode/bt/a2dp_play.c
+4
-0
wifi_demo.c
...025-12-23/fw-AC792_SDK/sdk/apps/wifi_soundbox/wifi_demo.c
+3
-3
README.md
README.md
+16
-1
No files found.
AC792N_SDK_BETA_V3.0.11_2025-12-23/fw-AC792_SDK/sdk/apps/wifi_soundbox/app_main.c
View file @
924ebb8c
...
...
@@ -347,27 +347,28 @@ void jiancetai_main_task(void)
}
if
(
main_task_10ms
%
100
==
0
)
{
//当获取到Mac地址后,且功能开关Switch_indicator为1时,开始搜索WiFi
if
(
testflag
==
1
&&
Switch_indicator
==
1
)
{
printf
(
"jiancetai_main_task testflag = 1"
);
testflag
=
2
;
bt_search_device
();
bt_search_device
();
//开启蓝牙搜索功能
}
// wifi_demo_example();
// printf("Hello World!!!\n");
}
if
(
main_task_10ms
%
2
==
0
)
{
//当连接成功后修改蓝牙模式
if
(
click1111
==
1
)
{
click1111
=
2
;
printf
(
"app_mode_change_next"
);
app_mode_change_next
();
app_default_volume_change_handler
(
1
);
app_mode_change_next
();
//修改模式
app_default_volume_change_handler
(
1
);
//设置音量
os_time_dly
(
20
);
wifi_demo_init
();
wifi_demo_init
();
//wifi初始化
}
// if(click1111 == 0)
// {
...
...
AC792N_SDK_BETA_V3.0.11_2025-12-23/fw-AC792_SDK/sdk/apps/wifi_soundbox/app_uart.c
View file @
924ebb8c
...
...
@@ -15,9 +15,10 @@ static void *uart_hdl = NULL;
/* 任务相关变量 */
static
u8
uart_task_running
=
0
;
uint8_t
Yadea_Mac_Addr
[
6
]
=
{
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
};
uint8_t
Switch_indicator
=
0
;
uint8_t
Yadea_Mac_Addr
[
6
]
=
{
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
};
//串口接到的Mac
uint8_t
Switch_indicator
=
0
;
//串口接到的功能开关状态
//串口解析
int
Uart_Data_Analysis
(
u8
*
data
)
{
if
(
data
[
0
]
==
0x59
&&
data
[
1
]
==
0x44
&&
data
[
15
]
==
0x4B
&&
data
[
16
]
==
0x4A
)
...
...
AC792N_SDK_BETA_V3.0.11_2025-12-23/fw-AC792_SDK/sdk/apps/wifi_soundbox/mode/bt/a2dp_play.c
View file @
924ebb8c
...
...
@@ -509,6 +509,10 @@ static int a2dp_bt_hci_event_handler(void *evt)
switch
(
event
->
event
)
{
case
HCI_EVENT_DISCONNECTION_COMPLETE
:
a2dp_play_close
(
event
->
args
);
/*在这里,如果仪表处于回连状态,如果在仪表回连状态的时候连接
的话会导致连接失败,库里的逻辑会直接关闭a2dp,没找到在哪里重
新执行连接的逻辑,干脆复位来的痛快。
system_soft_reset();这个就是复位函数*/
system_soft_reset
();
break
;
}
...
...
AC792N_SDK_BETA_V3.0.11_2025-12-23/fw-AC792_SDK/sdk/apps/wifi_soundbox/wifi_demo.c
View file @
924ebb8c
...
...
@@ -104,9 +104,9 @@ uint16_t crc16(uint8_t *puchMsg, uint32_t usDataLen)
#define UDP_SEND_INTERVAL 1000 // 发送间隔1秒
#define UDP_DATA_SIZE 1000 // UDP数据长度1000字节
#define UDP_PACKET_SIZE 1024 // UDP单包发送大小4K字节
uint8_t
sta_ssid
[
14
];
uint8_t
sta_password
[
24
];
uint8_t
wifi_mac
[
6
];
uint8_t
sta_ssid
[
14
];
//wifi名称变量
uint8_t
sta_password
[
24
];
//wifi密码变量
uint8_t
wifi_mac
[
6
];
//wifi Mac变量
// WiFi状态标志
static
u8
wifi_initialized
=
0
;
static
u8
wifi_connected
=
0
;
...
...
README.md
View file @
924ebb8c
JL 检测台工程文件
\ No newline at end of file
# JL_Jiancetai 项目说明文档
## 项目概述
本项目是基于杰理AC792N系列芯片的WiFi投屏与蓝牙音乐工程,用于雅迪检测台检测
## 项目中可以修改的文件
该工程文件在AC792N_SDK_BETA_V3.0.11_2025-12-23
\f
w-AC792_SDK
\s
dk
\a
pps
\w
ifi_soundbox中
可修改文件包括:
1.
wifi_demo.c // 该文件为WiFi连接与扫描相关函数(修改投屏协议可以在这里修改)
2.
wifi_demo.h
3.
wifi_analysis.c // 该文件为WiFi参数分析相关函数
4.
wifi_analysis.h
5.
main.c //Maintask所在处
6.
app_uart.c //串口解析
7.
app_uart.h
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment