Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RT200T_ESP32
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
RT200T
RT200T_ESP32
Commits
a1087a51
Commit
a1087a51
authored
Jun 06, 2024
by
时昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:增加胎压调试测试代码
parent
fd0f5d14
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
Protocol_User.c
RT200T_2_ESP32/main/Protocol_User.c
+2
-2
bt_app_hf.c
RT200T_2_ESP32/main/bt_app_hf.c
+3
-2
gattc_demo.c
RT200T_2_ESP32/main/gattc_demo.c
+2
-1
No files found.
RT200T_2_ESP32/main/Protocol_User.c
View file @
a1087a51
...
...
@@ -397,12 +397,12 @@ void Prot_Send_Msg_Process(void )
}
else
{
Uart_Send_Id01_Pro
();
Uart_Send_Id02_Pro
();
Prot_User
.
TimeDelay
=
0
;
printf
(
"send 0x0
1 0x0
2
\r\n
"
);
printf
(
"send 0x02
\r\n
"
);
}
}
Uart_Send_Id01_Pro
();
}
//BAT32A239
...
...
RT200T_2_ESP32/main/bt_app_hf.c
View file @
a1087a51
...
...
@@ -417,7 +417,8 @@ void bt_app_hf_client_cb(esp_hf_client_cb_event_t event, esp_hf_client_cb_param_
else
{
size_t
number_length
=
strlen
(
param
->
clip
.
number
);
if
(
number_length
>
20
)
{
if
(
number_length
>
20
)
{
number_length
=
20
;
}
memcpy
(
Iphone_Num
,
param
->
clip
.
number
,
number_length
);
...
...
@@ -425,7 +426,7 @@ void bt_app_hf_client_cb(esp_hf_client_cb_event_t event, esp_hf_client_cb_param_
for
(
int
i
=
0
;
i
<
sizeof
(
Iphone_Num
);
i
++
)
{
// 0xcf 为无效值不显示
ESP_LOGI
(
BT_HF_TAG
,
"--iphone number %x"
,
Iphone_Num
[
i
]
-
0x30
);
//
ESP_LOGI(BT_HF_TAG, "--iphone number %x", Iphone_Num[i] - 0x30);
}
}
...
...
RT200T_2_ESP32/main/gattc_demo.c
View file @
a1087a51
...
...
@@ -352,7 +352,7 @@ static void esp_gap_cb(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *par
case
ESP_GAP_SEARCH_INQ_RES_EVT
:
//用于在设备执行蓝牙扫描时报告发现的结果。在扫描过程中发现一个或多个BLE设备时,会触发这个事件
//esp_log_buffer_hex(GATTC_TAG, scan_result->scan_rst.bda, 6);//尤其是当你需要查看设备地址、UUID ,Mac地址。
if
(
scan_result
->
scan_rst
.
bda
[
4
]
==
0x22
)
if
(
(
scan_result
->
scan_rst
.
bda
[
4
]
==
0x22
)
||
(
scan_result
->
scan_rst
.
bda
[
4
]
==
0x1c
)
)
{
esp_log_buffer_hex
(
"1111111111111111111111111111111111111"
,
scan_result
->
scan_rst
.
ble_adv
,
scan_result
->
scan_rst
.
adv_data_len
);
//ESP_LOGI(GATTC_TAG, "searched Adv Data Len %d, Scan Response Len %d", scan_result->scan_rst.adv_data_len, scan_result->scan_rst.scan_rsp_len);
...
...
@@ -392,6 +392,7 @@ static void esp_gap_cb(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *par
for
(
i
=
0
;
i
<
scan_result
->
scan_rst
.
adv_data_len
;
i
++
)
{
ID01
[
i
]
=
scan_result
->
scan_rst
.
ble_adv
[
i
];
//printf("数据:%x \r\n",ID01[i]);
}
}
}
...
...
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