Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
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
陈家乐
jiancetai
Commits
547c70f6
Commit
547c70f6
authored
Nov 10, 2025
by
何锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:初步完成
parent
bad10ca4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
61 additions
and
15 deletions
+61
-15
Display_Info.c
YueJin_test_bench/source/Appliciation/Display_Info.c
+18
-1
R485_Communication_Matrix.c
...est_bench/source/Appliciation/R485_Communication_Matrix.c
+2
-5
Task.c
YueJin_test_bench/source/Appliciation/Task.c
+34
-2
api_RS485.c
YueJin_test_bench/source/Appliciation/api_RS485.c
+7
-7
No files found.
YueJin_test_bench/source/Appliciation/Display_Info.c
View file @
547c70f6
...
...
@@ -5476,7 +5476,24 @@ void Display_Send_Vspead(uint8_t menu)
TFT_LCD_Draw_Bmp(180+18, 40+25+25+25, ( uint8_t * )NO_W);
GUI_General_Digit_Display(50, Num_15, 6, 5, ODODigitNum09PosX, 40+25+25+25+5);
TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y16);
// TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y04);
TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y10);
TFT_LCD_Draw_Bmp(3+60, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y18);
TFT_LCD_Draw_Bmp(3+60+60, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y01);
// TFT_LCD_Draw_Bmp(3+40+40+40+55, 40+25+25+25+25+25+25, ( uint8_t * )gImage_icon_01X0_Y13);
TFT_LCD_Draw_Bmp(3, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y05);
TFT_LCD_Draw_Bmp(3+50, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y06);
TFT_LCD_Draw_Bmp(3+60+40, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y11);
TFT_LCD_Draw_Bmp(3+60+60+50, 40+25+25+25+25+25+25+40, ( uint8_t * )gImage_icon_01X0_Y14);
TFT_LCD_Draw_Bmp(3+40+60, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_icon_01X0_Y13);
TFT_LCD_Draw_Bmp(3+40+60+50, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_icon_01X0_Y08);
TFT_LCD_Draw_Bmp(3+40+60+100, 40+25+25+25+25+25+25+40+40, ( uint8_t * )gImage_gImage_TCS1X6_Y16);
General_Number_Disp(GPSPattern, 3, 40+25+25+25+25+25+25+40+40);
General_Number_Disp(FourGPattern, 3+60, 40+25+25+25+25+25+25+40+40);
break;
case 5:
TFT_LCD_Draw_Bmp(160,40+25+25+25+25, ( uint8_t * )gImage_gImage_red1X6_Y16);
...
...
YueJin_test_bench/source/Appliciation/R485_Communication_Matrix.c
View file @
547c70f6
...
...
@@ -309,9 +309,6 @@ uint32_t R485_Send_0xD2(void)
R485_IDD2h
.
Sig
.
SlopeDescentFunctionStatus
=
0x01
;
//陡坡缓降
R485_IDD2h
.
Sig
.
ClaudicationPatternFeedback
=
0x01
;
//龟速行驶
R485_IDD2h
.
Sig
.
TCSDefined
=
0x01
;
R485_IDD2h
.
Sig
.
TCSActivation
=
0x02
;
//TCS
break
;
case
4
:
...
...
@@ -325,7 +322,7 @@ uint32_t R485_Send_0xD2(void)
R485_IDD2h
.
Sig
.
MCUFaultStatus_HandlebarFault
=
0x01
;
//故障灯
R485_IDD2h
.
Sig
.
TCSDefined
=
0x01
;
R485_IDD2h
.
Sig
.
TCS
User
Defined
=
0x01
;
R485_IDD2h
.
Sig
.
TCSActivation
=
0x02
;
//TCS
R485_IDD2h
.
Sig
.
ClaudicationPatternFeedback
=
0x01
;
//龟速行驶
...
...
@@ -532,7 +529,6 @@ uint32_t R485_Send_0xD3(void)
case
3
:
// R485_IDD3h.Sig.AutoheadLightSetting = 0x00; //自动大灯
R485_IDD3h
.
Sig
.
RemainingMileageDisSetting
=
0
;
//续航里程
R485_IDD3h
.
Sig
.
SupportSwitchState
=
0x01
;
//边撑状态
R485_IDD3h
.
Sig
.
ElectronicCushionStatus
=
0x01
;
//座桶开启灯
break
;
...
...
@@ -545,6 +541,7 @@ uint32_t R485_Send_0xD3(void)
R485_IDD3h
.
Sig
.
ElectronicCushionStatus
=
0x01
;
//座桶开启灯
// R485_IDD3h.Sig.VehicleStatus = 0x00;
// R485_IDD3h.Sig.AlarmStatus = 0x01; //氛围灯红色(会线束故障挡住显示)
R485_IDD3h
.
Sig
.
SupportSwitchState
=
0x01
;
//边撑状态
break
;
case
5
:
...
...
YueJin_test_bench/source/Appliciation/Task.c
View file @
547c70f6
...
...
@@ -66,7 +66,7 @@ void Sys_Run_Mode_2ms_Tasks_Group(void)
------------------------------------------------------------------------------*/
void
Sys_Run_Mode_5ms_Tasks_Group
(
void
)
{
TX_RX_485_service
();
}
/*==============================================================================
...
...
@@ -83,7 +83,6 @@ void Sys_Run_Mode_10ms_Tasks_Group(void)
downkeyserve
();
}
backsend
();
TX_RX_485_service
();
}
/*==============================================================================
20ms����ִ������ ��0��
...
...
@@ -111,8 +110,41 @@ uint8_t flashtime = 0;
uint8_t
showtime
=
0
;
uint8_t
bleuarttime
=
0
;
uint8_t
querendelay
=
0
;
uint8_t
clesrodoauto
=
0
;
uint8_t
clesrodookauto
=
0
;
void
Sys_Run_Mode_100ms_Tasks_Group
(
void
)
{
if
(
MENU_CHECK_STEP
==
9
)
{
if
(
clesrodoauto
>=
50
)
{
clearOdoFlag
=
1
;
}
else
{
clesrodoauto
++
;
}
}
else
{
clesrodoauto
=
0
;
}
if
(
clearOdoFlag
==
1
)
{
if
(
clesrodookauto
>=
160
)
{
queren
=
1
;
}
else
{
clesrodookauto
++
;
}
}
else
{
clesrodookauto
=
0
;
}
TimeDelay_3s
();
PasswordUnlock
();
...
...
YueJin_test_bench/source/Appliciation/api_RS485.c
View file @
547c70f6
...
...
@@ -489,7 +489,7 @@ uint8_t RS485_User_Tx_Data(void)
if
(
sendfinishflag
==
0
)
{
RS485_send_time
=
0
;
RS485_TxControl
.
sendIndex
++
;
RS485_TxControl
.
sendIndex
=
0
;
}
break
;
...
...
@@ -500,12 +500,12 @@ uint8_t RS485_User_Tx_Data(void)
}
RS485_TxControl
.
Openble
[
0
]
=
0x59
;
RS485_TxControl
.
Openble
[
1
]
=
0x44
;
RS485_TxControl
.
Openble
[
2
]
=
0
xA
;
RS485_TxControl
.
Openble
[
3
]
=
0
x8A
;
RS485_TxControl
.
Openble
[
4
]
=
0
xA
;
RS485_TxControl
.
Openble
[
5
]
=
0
xA
;
RS485_TxControl
.
Openble
[
6
]
=
name2
;
RS485_TxControl
.
Openble
[
7
]
=
name1
;
RS485_TxControl
.
Openble
[
2
]
=
0
;
RS485_TxControl
.
Openble
[
3
]
=
0
;
RS485_TxControl
.
Openble
[
4
]
=
0
;
RS485_TxControl
.
Openble
[
5
]
=
0
;
RS485_TxControl
.
Openble
[
6
]
=
0
;
RS485_TxControl
.
Openble
[
7
]
=
0
;
RS485_TxControl
.
Openble
[
8
]
=
BlueTooth
;
RS485_TxControl
.
Openble
[
9
]
=
name1
;
...
...
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