Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
QJ_500-7c
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
时昊
QJ_500-7c
Commits
555708db
Commit
555708db
authored
Sep 01, 2025
by
薛晓虎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'TYW-2025-00747_devlop' into 'TYW-2025-00747_release'
TYW-2025-00747释放合并请求250901 See merge request
!17
parents
efe3a649
4ba80916
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
8 deletions
+22
-8
bt_app_hf.c
qianjiang/main/bt_app_hf.c
+9
-3
gatts_table_creat_demo.c
qianjiang/main/gatts_table_creat_demo.c
+10
-2
main_user.h
qianjiang/main/main_user.h
+3
-3
No files found.
qianjiang/main/bt_app_hf.c
View file @
555708db
...
...
@@ -456,12 +456,18 @@ void bt_app_hf_client_cb(esp_hf_client_cb_event_t event, esp_hf_client_cb_param_
// call_timer = 0;
// }
// break;
if
((
param
->
clcc
.
idx
!=
0
)
&&
(
param
->
clcc
.
number
))
{
if
((
strstr
(
param
->
clcc
.
number
,
"10000000"
)
==
NULL
)
&&
(
strstr
(
param
->
clcc
.
number
,
"00000000"
)
==
NULL
))
{
// printf("%s\n",param->clcc.number);
// if (param->clcc.number[0] != '+')
{
BT_User
.
Get_Call_Num
=
1
;
}
}
}
}
case
ESP_HF_CLIENT_VOLUME_CONTROL_EVT
:
{
...
...
qianjiang/main/gatts_table_creat_demo.c
View file @
555708db
...
...
@@ -256,7 +256,7 @@ static esp_ble_adv_params_t adv_params = {
.
adv_int_min
=
0x20
,
.
adv_int_max
=
0x40
,
.
adv_type
=
ADV_TYPE_IND
,
.
own_addr_type
=
BLE_ADDR_TYPE_
PUBLIC
,
.
own_addr_type
=
BLE_ADDR_TYPE_
RANDOM
,
.
channel_map
=
ADV_CHNL_ALL
,
.
adv_filter_policy
=
ADV_FILTER_ALLOW_SCAN_ANY_CON_ANY
,
};
...
...
@@ -666,7 +666,7 @@ static void gatts_profile_event_handler(esp_gatts_cb_event_t event, esp_gatt_if_
{
switch
(
event
)
{
case
ESP_GATTS_REG_EVT
:{
//
esp_ble_gap_set_rand_addr(rand_addr);
esp_ble_gap_set_rand_addr
(
rand_addr
);
esp_err_t
set_dev_name_ret
=
esp_ble_gap_set_device_name
((
const
char
*
)
BT_Device_Name
);
if
(
set_dev_name_ret
){
ESP_LOGE
(
GATTS_TABLE_TAG
,
"set device name failed, error code = %x"
,
set_dev_name_ret
);
...
...
@@ -908,6 +908,14 @@ void Get_Mac_Init(void )
char
temp
[
10
]
=
{
0
};
char
temp1
[
20
]
=
{
0
};
esp_read_mac
(
ble_mac
,
ESP_MAC_BT
);
for
(
i
=
1
;
i
<
6
;
i
++
)
{
if
(
ble_mac
[
i
])
{
rand_addr
[
i
]
=
ble_mac
[
i
]
;
}
}
// printf("%d\n",temp);
for
(
i
=
6
;
i
>
0
;
i
--
)
{
...
...
qianjiang/main/main_user.h
View file @
555708db
#ifndef _MAIN_USER_H_
#define _MAIN_USER_H_
#define BL_INTERNAL_SW_YEAR 0x2
4
#define BL_INTERNAL_SW_MONTH 0x
12
#define BL_INTERNAL_SW_DAY 0x
19
#define BL_INTERNAL_SW_YEAR 0x2
5
#define BL_INTERNAL_SW_MONTH 0x
09
#define BL_INTERNAL_SW_DAY 0x
01
#endif
\ 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