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
4a77af30
Commit
4a77af30
authored
May 23, 2024
by
时昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:替换名字
parent
62b011ae
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
133 additions
and
142 deletions
+133
-142
Protocol_User.c
RT200T_2_ESP32/main/Protocol_User.c
+10
-10
Protocol_User.h
RT200T_2_ESP32/main/Protocol_User.h
+0
-9
app_Ble_User.c
RT200T_2_ESP32/main/app_Ble_User.c
+43
-43
app_Ble_User.h
RT200T_2_ESP32/main/app_Ble_User.h
+77
-77
main_user.c
RT200T_2_ESP32/main/main_user.c
+3
-3
No files found.
RT200T_2_ESP32/main/Protocol_User.c
View file @
4a77af30
...
...
@@ -258,7 +258,7 @@ static void Protocol_UartHandle(const Protocol_Data_t *pData)//esp接收底板
}
}
}
else
if
(
pData
->
CmdID
==
0x21
)
else
if
(
pData
->
CmdID
==
0x21
)
//esp32收到底板发送的是1,则esp32需要升级
{
//printf("Wifi_OTA_Request is %d\r\n",Wifi_OTA_Request);
if
(
pData
->
Data
[
0
]
==
1
)
...
...
@@ -332,16 +332,16 @@ void Uart_Send_Id12_Pro(void )//收到底板回复的0x20后,发送蓝牙类型
void
Uart_Send_Id01_Pro
(
void
)
{
uint8_t
ID01
[
6
]
=
{
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
};
if
(
Ble_User
.
Navi
_Updat
)
if
(
Ble_User
.
Tpms
_Updat
)
{
ID01
[
0
]
=
Ble_
Navi_Data
.
Navi
_Sts
;
ID01
[
1
]
=
Ble_
Navi_Data
.
Navi
_Turn
;
ID01
[
2
]
=
Ble_
Navi_Data
.
Navi
_Dte
[
0
];
ID01
[
3
]
=
Ble_
Navi_Data
.
Navi
_Dte
[
1
];
ID01
[
4
]
=
Ble_
Navi_Data
.
Navi
_Dte
[
2
];
ID01
[
5
]
=
Ble_
Navi_Data
.
Navi
_Dte
[
3
];
//printf("转向编码:%d\r\n",Ble_
Navi_Data.Navi
_Turn);
ID01
[
0
]
=
Ble_
Tpms_Data
.
Tpms
_Sts
;
ID01
[
1
]
=
Ble_
Tpms_Data
.
Tpms
_Turn
;
ID01
[
2
]
=
Ble_
Tpms_Data
.
Tpms
_Dte
[
0
];
ID01
[
3
]
=
Ble_
Tpms_Data
.
Tpms
_Dte
[
1
];
ID01
[
4
]
=
Ble_
Tpms_Data
.
Tpms
_Dte
[
2
];
ID01
[
5
]
=
Ble_
Tpms_Data
.
Tpms
_Dte
[
3
];
//printf("转向编码:%d\r\n",Ble_
Tpms_Data.Tpms
_Turn);
}
Protocol_Send
(
0x01
,
ID01
,
6
);
}
...
...
RT200T_2_ESP32/main/Protocol_User.h
View file @
4a77af30
...
...
@@ -4,15 +4,6 @@
#include "Protocol_Lib.h"
#define BLE_START_STA 0x10
#define MCU_REPLY 0x20
#define BLE_NAVIGATION 0x01
#define BLE_WEATHER 0x02
#define BLE_LOCATION 0x03
#define BLE_STA 0x12
#define MCU_TO_BLE_INFO 0x21
void
Protocol_KL30_Wakeup_Init
(
void
);
void
Protocol_Send_Service
(
void
);
// 10ms任务调用
void
UART_Put
(
Protocol_uint16_t
Data
);
...
...
RT200T_2_ESP32/main/app_Ble_User.c
View file @
4a77af30
...
...
@@ -34,7 +34,7 @@ SemaphoreHandle_t BleRecSuc_Semaphore;
Ble_User_Control_Struct
Ble_User
;
Ble_
Navi_Info_Struct
Ble_Navi
_Data
;
Ble_
Tpms_Info_Struct
Ble_Tpms
_Data
;
uint8_t
tp_Ble_Crc
(
uint8_t
*
data
,
uint32_t
len
)
...
...
@@ -320,7 +320,7 @@ void Ble_MsgRec_Authr_Result_Analysis(void )
if
(
BleRecData
.
Msg
.
Param
[
0
]
==
0
)
{
Ble_User
.
Ble_Sts
=
Ble_Authr
;
Ble_User
.
Request_
Navi
=
1
;
Ble_User
.
Request_
Tpms
=
1
;
printf
(
"Authr suc
\n
"
);
}
...
...
@@ -328,12 +328,12 @@ void Ble_MsgRec_Authr_Result_Analysis(void )
void
Ble_Msg_Request
Navi
_RLY
(
void
)
void
Ble_Msg_Request
Tpms
_RLY
(
void
)
{
uint8_t
total_frame
=
0
;
uint8_t
trans_len
=
0
;
if
(
Ble_User
.
Request_
Navi
)
if
(
Ble_User
.
Request_
Tpms
)
{
BleTransData
.
Msg
.
FrameHeader
=
0x24
;
BleTransData
.
Msg
.
Cmd
=
0x14
;
...
...
@@ -383,45 +383,45 @@ void Ble_Msg_RequestNavi_RLY(void )
// vTaskDelay(1);
}
Ble_User
.
Request_
Navi
=
0
;
Ble_User
.
Request_
Tpms
=
0
;
}
}
void
Ble_MsgRec_
Navi
_Analysis
(
void
)
void
Ble_MsgRec_
Tpms
_Analysis
(
void
)
{
//
Navi
data
Ble_
Navi_Data
.
Navi
_Sts
=
BleRecData
.
Msg
.
Param
[
0
];
Ble_
Navi_Data
.
Navi
_Turn
=
BleRecData
.
Msg
.
Param
[
1
];
Ble_
Navi_Data
.
Navi
_Dte
[
0
]
=
BleRecData
.
Msg
.
Param
[
2
];
Ble_
Navi_Data
.
Navi
_Dte
[
1
]
=
BleRecData
.
Msg
.
Param
[
3
];
Ble_
Navi_Data
.
Navi
_Dte
[
2
]
=
BleRecData
.
Msg
.
Param
[
4
];
Ble_
Navi_Data
.
Navi
_Dte
[
3
]
=
BleRecData
.
Msg
.
Param
[
5
];
//
Tpms
data
Ble_
Tpms_Data
.
Tpms
_Sts
=
BleRecData
.
Msg
.
Param
[
0
];
Ble_
Tpms_Data
.
Tpms
_Turn
=
BleRecData
.
Msg
.
Param
[
1
];
Ble_
Tpms_Data
.
Tpms
_Dte
[
0
]
=
BleRecData
.
Msg
.
Param
[
2
];
Ble_
Tpms_Data
.
Tpms
_Dte
[
1
]
=
BleRecData
.
Msg
.
Param
[
3
];
Ble_
Tpms_Data
.
Tpms
_Dte
[
2
]
=
BleRecData
.
Msg
.
Param
[
4
];
Ble_
Tpms_Data
.
Tpms
_Dte
[
3
]
=
BleRecData
.
Msg
.
Param
[
5
];
printf
(
"
Navi sts %d Navi_Turn %x Navi_Dte0 %x Navi_Dte1 %x Navi_Dte2 %x Navi
_Dte3 %x
\r\n
"
,
\
Ble_
Navi_Data
.
Navi_Sts
,
Ble_Navi_Data
.
Navi_Turn
,
Ble_Navi_Data
.
Navi_Dte
[
0
],
Ble_Navi_Data
.
Navi_Dte
[
1
],
Ble_Navi_Data
.
Navi_Dte
[
2
],
Ble_Navi_Data
.
Navi
_Dte
[
3
]);
printf
(
"
Tpms sts %d Tpms_Turn %x Tpms_Dte0 %x Tpms_Dte1 %x Tpms_Dte2 %x Tpms
_Dte3 %x
\r\n
"
,
\
Ble_
Tpms_Data
.
Tpms_Sts
,
Ble_Tpms_Data
.
Tpms_Turn
,
Ble_Tpms_Data
.
Tpms_Dte
[
0
],
Ble_Tpms_Data
.
Tpms_Dte
[
1
],
Ble_Tpms_Data
.
Tpms_Dte
[
2
],
Ble_Tpms_Data
.
Tpms
_Dte
[
3
]);
Ble_User
.
Navi
_Updat
=
1
;
Ble_User
.
Navi
_T
=
0
;
Ble_User
.
Tpms
_Updat
=
1
;
Ble_User
.
Tpms
_T
=
0
;
}
void
Ble_MsgRec_
Navi
_Timeout
(
void
)
void
Ble_MsgRec_
Tpms
_Timeout
(
void
)
{
if
(
Ble_User
.
Navi
_Updat
)
if
(
Ble_User
.
Tpms
_Updat
)
{
Ble_User
.
Navi
_T
++
;
if
(
Ble_User
.
Navi
_T
>=
100
)
Ble_User
.
Tpms
_T
++
;
if
(
Ble_User
.
Tpms
_T
>=
100
)
{
Ble_User
.
Navi
_Updat
=
0
;
Ble_User
.
Navi
_T
=
0
;
Ble_User
.
Tpms
_Updat
=
0
;
Ble_User
.
Tpms
_T
=
0
;
}
}
else
{
Ble_User
.
Navi
_T
=
0
;
Ble_User
.
Tpms
_T
=
0
;
}
}
...
...
@@ -437,9 +437,9 @@ void Ble_Rec_Msg_Analysis_Process(void )
void
Ble_Connect_Event_Pro
(
void
)
{
Ble_User
.
Ble_Sts
=
Ble_Conn
;
Ble_User
.
Request_
Navi
=
0
;
Ble_User
.
Navi
_Updat
=
0
;
Ble_User
.
Navi
_T
=
0
;
Ble_User
.
Request_
Tpms
=
0
;
Ble_User
.
Tpms
_Updat
=
0
;
Ble_User
.
Tpms
_T
=
0
;
Ble_Clear_Tx_Buffer
();
Ble_Clear_Rx_Buffer
();
...
...
@@ -449,19 +449,19 @@ void Ble_Connect_Event_Pro(void )
void
Ble_DisConnect_Event_Pro
(
void
)
{
Ble_User
.
Ble_Sts
=
Ble_Idle
;
Ble_User
.
Request_
Navi
=
0
;
Ble_User
.
Navi
_Updat
=
0
;
Ble_User
.
Navi
_T
=
0
;
Ble_User
.
Request_
Tpms
=
0
;
Ble_User
.
Tpms
_Updat
=
0
;
Ble_User
.
Tpms
_T
=
0
;
RecCtrl
.
RecLen
=
0
;
RecCtrl
.
TotalLen
=
0
;
RecCtrl
.
Sts
=
BleRec_Idle
;
Ble_
Navi_Data
.
Navi
_Sts
=
0
;
Ble_
Navi_Data
.
Navi
_Turn
=
0
;
for
(
uint8_t
i
=
0
;
i
<
sizeof
(
Ble_
Navi_Data
.
Navi
_Dte
);
i
++
)
Ble_
Tpms_Data
.
Tpms
_Sts
=
0
;
Ble_
Tpms_Data
.
Tpms
_Turn
=
0
;
for
(
uint8_t
i
=
0
;
i
<
sizeof
(
Ble_
Tpms_Data
.
Tpms
_Dte
);
i
++
)
{
Ble_
Navi_Data
.
Navi
_Dte
[
i
]
=
0
;
Ble_
Tpms_Data
.
Tpms
_Dte
[
i
]
=
0
;
}
...
...
@@ -487,11 +487,11 @@ void Ble_User_Task(void *pvParameter)
else
if
(
BleRecData
.
Msg
.
Cmd
==
EC_BTP_P2C_CHECK_AUTH_RESULT
)
{
Ble_MsgRec_Authr_Result_Analysis
();
Ble_Msg_Request
Navi
_RLY
();
Ble_Msg_Request
Tpms
_RLY
();
}
else
if
(
BleRecData
.
Msg
.
Cmd
==
EC_BTP_P2C_HUD
)
{
Ble_MsgRec_
Navi
_Analysis
();
Ble_MsgRec_
Tpms
_Analysis
();
}
Ble_Clear_Tx_Buffer
();
...
...
@@ -508,20 +508,20 @@ void Ble_User_Init(void )
BleRecSuc_Semaphore
=
xSemaphoreCreateBinary
();
Ble_User
.
Ble_Sts
=
Ble_Idle
;
Ble_User
.
Request_
Navi
=
0
;
Ble_User
.
Navi
_Updat
=
0
;
Ble_User
.
Navi
_T
=
0
;
Ble_User
.
Request_
Tpms
=
0
;
Ble_User
.
Tpms
_Updat
=
0
;
Ble_User
.
Tpms
_T
=
0
;
Ble_User
.
UseridUpdate
=
0
;
RecCtrl
.
RecLen
=
0
;
RecCtrl
.
TotalLen
=
0
;
RecCtrl
.
Sts
=
BleRec_Idle
;
Ble_
Navi_Data
.
Navi
_Sts
=
0
;
Ble_
Navi_Data
.
Navi
_Turn
=
0
;
for
(
uint8_t
i
=
0
;
i
<
sizeof
(
Ble_
Navi_Data
.
Navi
_Dte
);
i
++
)
Ble_
Tpms_Data
.
Tpms
_Sts
=
0
;
Ble_
Tpms_Data
.
Tpms
_Turn
=
0
;
for
(
uint8_t
i
=
0
;
i
<
sizeof
(
Ble_
Tpms_Data
.
Tpms
_Dte
);
i
++
)
{
Ble_
Navi_Data
.
Navi
_Dte
[
i
]
=
0
;
Ble_
Tpms_Data
.
Tpms
_Dte
[
i
]
=
0
;
}
...
...
RT200T_2_ESP32/main/app_Ble_User.h
View file @
4a77af30
...
...
@@ -25,19 +25,19 @@ typedef enum
typedef
struct
{
uint8_t
Ble_Sts
;
uint8_t
Request_
Navi
;
uint8_t
Navi
_Updat
;
uint8_t
Navi
_T
;
uint8_t
Request_
Tpms
;
uint8_t
Tpms
_Updat
;
uint8_t
Tpms
_T
;
uint8_t
UseridUpdate
;
}
Ble_User_Control_Struct
;
typedef
struct
{
uint8_t
Navi
_Sts
;
uint8_t
Navi
_Turn
;
uint8_t
Navi
_Dte
[
4
];
}
Ble_
Navi
_Info_Struct
;
uint8_t
Tpms
_Sts
;
uint8_t
Tpms
_Turn
;
uint8_t
Tpms
_Dte
[
4
];
}
Ble_
Tpms
_Info_Struct
;
...
...
@@ -63,7 +63,7 @@ typedef struct
extern
app_Ble_Rec_Data_Ctrl_Struct
RecCtrl
;
extern
Ble_User_Control_Struct
Ble_User
;
extern
Ble_
Navi_Info_Struct
Ble_Navi
_Data
;
extern
Ble_
Tpms_Info_Struct
Ble_Tpms
_Data
;
extern
uint8_t
Wifi_OTA_Request
;
void
Get_Ble_Raw_Data
(
uint8_t
*
data
,
uint32_t
len
);
...
...
@@ -116,68 +116,68 @@ void Get_Ble_Raw_Data(uint8_t *data, uint32_t len);
* @brief HUD导航图标类型
*
*/
#define
Navi
IconType_NONE 0 ///< 导航段转向图标类型 无定义,自定义转向图标数组,请忽略这个元素,从左转图标开始
#define
Navi
IconType_DEFAULT 1 ///< 导航段转向图标类型 自车图标,自定义转向图标数组,请忽略这个元素,从左转图标开始
#define
Navi
IconType_LEFT 2 ///< 导航段转向图标类型 左转图标
#define
Navi
IconType_RIGHT 3 ///< 导航段转向图标类型 右转图标
#define
Navi
IconType_LEFT_FRONT 4 ///< 导航段转向图标类型 左前方图标
#define
Navi
IconType_RIGHT_FRONT 5 ///< 导航段转向图标类型 右前方图标
#define
Navi
IconType_LEFT_BACK 6 ///< 导航段转向图标类型 左后方图
#define
Navi
IconType_RIGHT_BACK 7 ///< 导航段转向图标类型 右后方图标
#define
Navi
IconType_LEFT_TURN_AROUND 8 ///< 导航段转向图标类型 左转掉头图标
#define
Navi
IconType_STRAIGHT 9 ///< 导航段转向图标类型 直行图标
#define
Navi
IconType_ARRIVED_WAYPOINT 10 ///< 导航段转向图标类型 到达途经点图标
#define
Navi
IconType_ENTER_ROUNDABOUT 11 ///< 导航段转向图标类型 进入环岛图标
#define
Navi
IconType_OUT_ROUNDABOUT 12 ///< 导航段转向图标类型 驶出环岛图标
#define
Navi
IconType_ARRIVED_SERVICE_AREA 13 ///< 导航段转向图标类型 到达服务区图标
#define
Navi
IconType_ARRIVED_TOLLGATE 14 ///< 导航段转向图标类型 到达收费站图标
#define
Navi
IconType_ARRIVED_DESTINATION 15 ///< 导航段转向图标类型 到达目的地图标
#define
Navi
IconType_ARRIVED_TUNNEL 16 ///< 导航段转向图标类型 到达隧道图标
#define
Navi
IconType_CROSSWALK 17 ///< 导航段转向图标类型:通过人行横道图标
#define
Navi
IconType_OVERPASS 18 ///< 导航段转向图标类型:通过过街天桥图标
#define
Navi
IconType_UNDERPASS 19 ///< 导航段转向图标类型:通过地下通道图标
#define
Navi
IconType_SQUARE 20 ///< 导航段转向图标类型:通过广场图标
#define
Navi
IconType_PARK 21 ///< 导航段转向图标类型:通过公园图标
#define
Navi
IconType_STAIRCASE 22 ///< 导航段转向图标类型:通过扶梯图标
#define
Navi
IconType_LIFT 23 ///< 导航段转向图标类型:通过直梯图标
#define
Navi
IconType_CABLEWAY 24 ///< 导航段转向图标类型:通过索道图标
#define
Navi
IconType_SKY_CHANNEL 25 ///< 导航段转向图标类型:通过空中通道图标
#define
Navi
IconType_CHANNEL 26 ///< 导航段转向图标类型:通过通道、建筑物穿越通道图标
#define
Navi
IconType_WALK_ROAD 27 ///< 导航段转向图标类型:通过行人道路图标
#define
Navi
IconType_CRUISE_ROUTE 28 ///< 导航段转向图标类型:通过游船路线图标
#define
Navi
IconType_SIGHTSEEING_BUSLINE 29 ///< 导航段转向图标类型:通过观光车路线图标
#define
Navi
IconType_SLIDEWAY 30 ///< 导航段转向图标类型:通过滑道图标
#define
Navi
IconType_LADDER 31 ///< 导航段转向图标类型:通过阶梯图标
#define
Navi
IconType_MERGE_LEFT 51 ///< 导航段转向图标类型:靠左行驶
#define
Navi
IconType_MERGE_RIGHT 52 ///< 导航段转向图标类型:靠右行驶
#define
Navi
IconType_SLOW 53 ///< 导航段转向图标类型:减速慢行
#define
Navi
IconType_ENTRY_RING_LEFT 54 ///< 标准小环岛 绕环岛左转,右侧通行地区的逆时针环岛
#define
Navi
IconType_ENTRY_RING_RIGHT 55 ///< 标准小环岛 绕环岛右转,右侧通行地区的逆时针环岛
#define
Navi
IconType_ENTRY_RING_CONTINUE 56 ///< 标准小环岛 绕环岛直行,右侧通行地区的逆时针环岛
#define
Navi
IconType_ENTRY_RING_UTURN 57 ///< 标准小环岛 绕环岛调头,右侧通行地区的逆时针环岛
#define
Navi
IconType_ENTRY_LEFT_RING 58 ///< 进入环岛图标,左侧通行地区的顺时针环岛
#define
Navi
IconType_LEAVE_LEFT_RING 59 ///< 驶出环岛图标,左侧通行地区的顺时针环岛
#define
Navi
IconType_UTURN_RIGHT 60 ///< 右转掉头图标,左侧通行地区的掉头
#define
Navi
IconType_SPECIAL_CONTINUE 61 ///< 顺行图标(和直行有区别,顺行图标带有虚线)
#define
Navi
IconType_ENTRY_LEFT_RING_LEFT 62 ///< 标准小环岛 绕环岛左转,左侧通行地区的顺时针环岛
#define
Navi
IconType_ENTRY_LEFT_RING_RIGHT 63 ///< 标准小环岛 绕环岛右转,左侧通行地区的顺时针环岛
#define
Navi
IconType_ENTRY_LEFT_RING_CONTINUE 64 ///< 标准小环岛 绕环岛直行,左侧通行地区的顺时针环岛
#define
Navi
IconType_ENTRY_LEFT_RING_UTURN 65 ///< 标准小环岛 绕环岛调头,左侧通行地区的顺时针环岛
#define
Navi
IconType_SLOPE 66 ///< 通过斜坡图标
#define
Navi
IconType_BRIDGE 67 ///< 通过桥图标
#define
Navi
IconType_FERRYBOAT 68 ///< 通过渡轮图标
#define
Navi
IconType_SUBWAY 69 ///< 通过地铁图标
#define
Navi
IconType_ENTER_BUILDING 70 ///< 进入建筑物图标
#define
Navi
IconType_LEAVE_BUILDING 71 ///< 离开建筑物图标
#define
Navi
IconType_BY_ELEVATOR 72 ///< 电梯换层图标
#define
Navi
IconType_BY_STAIR 73 ///< 楼梯换层图标
#define
Navi
IconType_ESCALATOR 74 ///< 扶梯换层图标
#define
Navi
IconType_LOW_TRAFFIC_CROSS 75 ///< 非导航段通过红绿灯路口图标
#define
Navi
IconType_LOW_CROSS 76 ///< 非导航段通过普通路口图标
#define
Navi
IconType_ROTARY_SHARP_LEFT 77 ///< 环岛左后转,右侧通行地区的逆时针环岛
#define
Navi
IconType_ROTARY_SHARP_RIGHT 78 ///< 环岛后右转,右侧通行地区的逆时针环岛
#define
Navi
IconType_ROTARY_SLIGHT_LEFT 79 ///< 环岛左前转,右侧通行地区的逆时针环岛
#define
Navi
IconType_ROTARY_SLIGHT_RIGHT 80 ///< 环岛右前转,右侧通行地区的逆时针环岛
#define
Tpms
IconType_NONE 0 ///< 导航段转向图标类型 无定义,自定义转向图标数组,请忽略这个元素,从左转图标开始
#define
Tpms
IconType_DEFAULT 1 ///< 导航段转向图标类型 自车图标,自定义转向图标数组,请忽略这个元素,从左转图标开始
#define
Tpms
IconType_LEFT 2 ///< 导航段转向图标类型 左转图标
#define
Tpms
IconType_RIGHT 3 ///< 导航段转向图标类型 右转图标
#define
Tpms
IconType_LEFT_FRONT 4 ///< 导航段转向图标类型 左前方图标
#define
Tpms
IconType_RIGHT_FRONT 5 ///< 导航段转向图标类型 右前方图标
#define
Tpms
IconType_LEFT_BACK 6 ///< 导航段转向图标类型 左后方图
#define
Tpms
IconType_RIGHT_BACK 7 ///< 导航段转向图标类型 右后方图标
#define
Tpms
IconType_LEFT_TURN_AROUND 8 ///< 导航段转向图标类型 左转掉头图标
#define
Tpms
IconType_STRAIGHT 9 ///< 导航段转向图标类型 直行图标
#define
Tpms
IconType_ARRIVED_WAYPOINT 10 ///< 导航段转向图标类型 到达途经点图标
#define
Tpms
IconType_ENTER_ROUNDABOUT 11 ///< 导航段转向图标类型 进入环岛图标
#define
Tpms
IconType_OUT_ROUNDABOUT 12 ///< 导航段转向图标类型 驶出环岛图标
#define
Tpms
IconType_ARRIVED_SERVICE_AREA 13 ///< 导航段转向图标类型 到达服务区图标
#define
Tpms
IconType_ARRIVED_TOLLGATE 14 ///< 导航段转向图标类型 到达收费站图标
#define
Tpms
IconType_ARRIVED_DESTINATION 15 ///< 导航段转向图标类型 到达目的地图标
#define
Tpms
IconType_ARRIVED_TUNNEL 16 ///< 导航段转向图标类型 到达隧道图标
#define
Tpms
IconType_CROSSWALK 17 ///< 导航段转向图标类型:通过人行横道图标
#define
Tpms
IconType_OVERPASS 18 ///< 导航段转向图标类型:通过过街天桥图标
#define
Tpms
IconType_UNDERPASS 19 ///< 导航段转向图标类型:通过地下通道图标
#define
Tpms
IconType_SQUARE 20 ///< 导航段转向图标类型:通过广场图标
#define
Tpms
IconType_PARK 21 ///< 导航段转向图标类型:通过公园图标
#define
Tpms
IconType_STAIRCASE 22 ///< 导航段转向图标类型:通过扶梯图标
#define
Tpms
IconType_LIFT 23 ///< 导航段转向图标类型:通过直梯图标
#define
Tpms
IconType_CABLEWAY 24 ///< 导航段转向图标类型:通过索道图标
#define
Tpms
IconType_SKY_CHANNEL 25 ///< 导航段转向图标类型:通过空中通道图标
#define
Tpms
IconType_CHANNEL 26 ///< 导航段转向图标类型:通过通道、建筑物穿越通道图标
#define
Tpms
IconType_WALK_ROAD 27 ///< 导航段转向图标类型:通过行人道路图标
#define
Tpms
IconType_CRUISE_ROUTE 28 ///< 导航段转向图标类型:通过游船路线图标
#define
Tpms
IconType_SIGHTSEEING_BUSLINE 29 ///< 导航段转向图标类型:通过观光车路线图标
#define
Tpms
IconType_SLIDEWAY 30 ///< 导航段转向图标类型:通过滑道图标
#define
Tpms
IconType_LADDER 31 ///< 导航段转向图标类型:通过阶梯图标
#define
Tpms
IconType_MERGE_LEFT 51 ///< 导航段转向图标类型:靠左行驶
#define
Tpms
IconType_MERGE_RIGHT 52 ///< 导航段转向图标类型:靠右行驶
#define
Tpms
IconType_SLOW 53 ///< 导航段转向图标类型:减速慢行
#define
Tpms
IconType_ENTRY_RING_LEFT 54 ///< 标准小环岛 绕环岛左转,右侧通行地区的逆时针环岛
#define
Tpms
IconType_ENTRY_RING_RIGHT 55 ///< 标准小环岛 绕环岛右转,右侧通行地区的逆时针环岛
#define
Tpms
IconType_ENTRY_RING_CONTINUE 56 ///< 标准小环岛 绕环岛直行,右侧通行地区的逆时针环岛
#define
Tpms
IconType_ENTRY_RING_UTURN 57 ///< 标准小环岛 绕环岛调头,右侧通行地区的逆时针环岛
#define
Tpms
IconType_ENTRY_LEFT_RING 58 ///< 进入环岛图标,左侧通行地区的顺时针环岛
#define
Tpms
IconType_LEAVE_LEFT_RING 59 ///< 驶出环岛图标,左侧通行地区的顺时针环岛
#define
Tpms
IconType_UTURN_RIGHT 60 ///< 右转掉头图标,左侧通行地区的掉头
#define
Tpms
IconType_SPECIAL_CONTINUE 61 ///< 顺行图标(和直行有区别,顺行图标带有虚线)
#define
Tpms
IconType_ENTRY_LEFT_RING_LEFT 62 ///< 标准小环岛 绕环岛左转,左侧通行地区的顺时针环岛
#define
Tpms
IconType_ENTRY_LEFT_RING_RIGHT 63 ///< 标准小环岛 绕环岛右转,左侧通行地区的顺时针环岛
#define
Tpms
IconType_ENTRY_LEFT_RING_CONTINUE 64 ///< 标准小环岛 绕环岛直行,左侧通行地区的顺时针环岛
#define
Tpms
IconType_ENTRY_LEFT_RING_UTURN 65 ///< 标准小环岛 绕环岛调头,左侧通行地区的顺时针环岛
#define
Tpms
IconType_SLOPE 66 ///< 通过斜坡图标
#define
Tpms
IconType_BRIDGE 67 ///< 通过桥图标
#define
Tpms
IconType_FERRYBOAT 68 ///< 通过渡轮图标
#define
Tpms
IconType_SUBWAY 69 ///< 通过地铁图标
#define
Tpms
IconType_ENTER_BUILDING 70 ///< 进入建筑物图标
#define
Tpms
IconType_LEAVE_BUILDING 71 ///< 离开建筑物图标
#define
Tpms
IconType_BY_ELEVATOR 72 ///< 电梯换层图标
#define
Tpms
IconType_BY_STAIR 73 ///< 楼梯换层图标
#define
Tpms
IconType_ESCALATOR 74 ///< 扶梯换层图标
#define
Tpms
IconType_LOW_TRAFFIC_CROSS 75 ///< 非导航段通过红绿灯路口图标
#define
Tpms
IconType_LOW_CROSS 76 ///< 非导航段通过普通路口图标
#define
Tpms
IconType_ROTARY_SHARP_LEFT 77 ///< 环岛左后转,右侧通行地区的逆时针环岛
#define
Tpms
IconType_ROTARY_SHARP_RIGHT 78 ///< 环岛后右转,右侧通行地区的逆时针环岛
#define
Tpms
IconType_ROTARY_SLIGHT_LEFT 79 ///< 环岛左前转,右侧通行地区的逆时针环岛
#define
Tpms
IconType_ROTARY_SLIGHT_RIGHT 80 ///< 环岛右前转,右侧通行地区的逆时针环岛
/**
* @brief HUD导航功能枚举
...
...
@@ -190,21 +190,21 @@ void Get_Ble_Raw_Data(uint8_t *data, uint32_t len);
* @reqCmd EC_BTP_C2P_HUD
* @reqData 字段 字节数 内容
* enable 1BYTE 0:关闭HUD数据,1:开启HUD数据,一次生命周期内只需要发送一次命令。
* max
Navi
Icon 2BYTE 车机端支持的导航图标最大值
* max
Tpms
Icon 2BYTE 车机端支持的导航图标最大值
* funciton 2BYTE 车机端支持的功能,参考 EC_BTP_HUD_FUNCITON_SUPPORT*
* @rlyData EC_BTP_P2C_HUD
*/
#define EC_BTP_C2P_HUD 0x14
#define EC_BTP_
NAVI
_STATUS_STOPED 0x35 ///< 未导航或导航结束
#define EC_BTP_
NAVI
_STATUS_RUNNING 0x33 ///< 正在导航
#define EC_BTP_
Tpms
_STATUS_STOPED 0x35 ///< 未导航或导航结束
#define EC_BTP_
Tpms
_STATUS_RUNNING 0x33 ///< 正在导航
/** @brief
* @reqCmd EC_BTP_P2C_HUD
* @reqData 字段 字节数 内容
* 导航状态 1BYTE 参见:EC_BTP_
NAVI
_STATUS_*
* 导航转向编码 1BYTE 参见:
Navi
IconType_*
* 导航状态 1BYTE 参见:EC_BTP_
Tpms
_STATUS_*
* 导航转向编码 1BYTE 参见:
Tpms
IconType_*
* 转向距离 4BYTE 距离转向的距离(单位:米)
* 转向⽬的地字节数 1BYTE 转向⽬的地UTF-8所占字节数
* 转向⽬的地 60BYTE 最多60个字节(UTF-8编码)
...
...
@@ -222,7 +222,7 @@ void Ble_Rec_Msg_Analysis_Process(void );
void
Ble_Connect_Event_Pro
(
void
);
void
Ble_DisConnect_Event_Pro
(
void
);
void
Ble_User_Init
(
void
);
void
Ble_Msg_Request
Navi
_RLY
(
void
);
void
Ble_MsgRec_
Navi
_Timeout
(
void
);
void
Ble_Msg_Request
Tpms
_RLY
(
void
);
void
Ble_MsgRec_
Tpms
_Timeout
(
void
);
#endif
\ No newline at end of file
RT200T_2_ESP32/main/main_user.c
View file @
4a77af30
...
...
@@ -80,7 +80,7 @@ static void Sys_Run_Tasks(void *arg)
if
(
SYS_RUN_TASK_100MS
)
{
Ble_MsgRec_
Navi
_Timeout
();
Ble_MsgRec_
Tpms
_Timeout
();
}
if
(
SYS_RUN_TASK_1000MS
)
...
...
@@ -98,12 +98,12 @@ static void Sys_Run_Tasks(void *arg)
// esp_log_buffer_hex(TAG, peer_addr, 6);
// printf("Ble_User.
Navi_Updat = %d\r\n", Ble_User.Navi
_Updat);
// printf("Ble_User.
Tpms_Updat = %d\r\n", Ble_User.Tpms
_Updat);
// printf("RecCtrl.Sts = %d\r\n", RecCtrl.Sts);
// Ble_Msg_Request
Navi
_RLY();
// Ble_Msg_Request
Tpms
_RLY();
...
...
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