Commit a1087a51 authored by 时昊's avatar 时昊

feat:增加胎压调试测试代码

parent fd0f5d14
......@@ -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 0x01 0x02 \r\n");
printf("send 0x02 \r\n");
}
}
Uart_Send_Id01_Pro();
}
//BAT32A239
......
......@@ -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);
}
}
......
......@@ -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]);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment